JP6735385B2 - Communication adapter, communication method and program - Google Patents
Communication adapter, communication method and program Download PDFInfo
- Publication number
- JP6735385B2 JP6735385B2 JP2019074367A JP2019074367A JP6735385B2 JP 6735385 B2 JP6735385 B2 JP 6735385B2 JP 2019074367 A JP2019074367 A JP 2019074367A JP 2019074367 A JP2019074367 A JP 2019074367A JP 6735385 B2 JP6735385 B2 JP 6735385B2
- Authority
- JP
- Japan
- Prior art keywords
- unit
- setting
- control unit
- protocol control
- controller
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Selective Calling Equipment (AREA)
- Telephonic Communication Services (AREA)
Description
本発明の実施形態は、通信アダプタ、通信方法およびプログラムに関する。 Embodiments of the present invention relate to a communication adapter, a communication method, and a program.
通信アダプタは、通信機能を有さない機器に接続されることで、当該機器が通信を行うことを可能にする。従来の通信アダプタには、接続先の機器が変更された場合に、自動的に設定変更を行うものがあった。しかしながら、設定変更を行うために、接続先の機器から型番などの機器情報を取得する必要があり、取得できない場合には、その機器には適用できなかった。 The communication adapter enables the device to communicate by being connected to the device having no communication function. Some conventional communication adapters automatically change the settings when the connected device is changed. However, in order to change the setting, it is necessary to acquire the device information such as the model number from the device at the connection destination, and if it cannot be acquired, it cannot be applied to the device.
本発明の実施形態は、接続先の機器に合わせて通信アダプタの設定を容易に行うことを目的とする。 An embodiment of the present invention aims to easily set a communication adapter according to a device to be connected.
本発明の実施形態としての通信アダプタは、機器と接続するインタフェース部と、前記インタフェース部を介して前記機器と通信するコントローラ部と、前記コントローラ部を介して前記機器を制御するプロトコル制御部と、前記コントローラ部の動作を検証することにより、前記コントローラ部の設定が前記機器に適合しているかを判断し、前記コントローラ部の設定が前記機器に適合していると判断された場合に、前記プロトコル制御部の動作を検証することにより、前記プロトコル制御部の設定が前記機器に適合しているかを判断する設定検証部と、前記コントローラ部または前記プロトコル制御部の設定が前記機器に適合していないと判断された場合に、前記コントローラ部または前記プロトコル制御部の設定が前記機器に適合していないことを示す情報を送信する通信部とを備える。 A communication adapter as an embodiment of the present invention includes an interface unit that is connected to a device, a controller unit that communicates with the device via the interface unit, and a protocol control unit that controls the device via the controller unit. By verifying the operation of the controller unit, it is determined whether the setting of the controller unit is suitable for the device, and when it is determined that the setting of the controller unit is suitable for the device, the protocol A setting verification unit that determines whether the setting of the protocol control unit is suitable for the device by verifying the operation of the control unit, and the setting of the controller unit or the protocol control unit is not compatible with the device. And a communication unit that transmits information indicating that the setting of the controller unit or the protocol control unit is not suitable for the device.
以下、図面を参照しながら、本発明の実施形態について説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の実施形態に係わる通信アダプタのブロック図である。 FIG. 1 is a block diagram of a communication adapter according to an embodiment of the present invention.
図1の通信アダプタは、通信部101、インタフェース部102、コントローラ部103、プログラム保持部104、プロトコル制御部105、設定検証部106、制御受付部107、設定受付部108および記憶部110を備える。
The communication adapter of FIG. 1 includes a
通信部101は、無線または有線のネットワークに接続され、ネットワークを介して、端末またはサーバ等、外部の装置と通信する。ネットワークは、無線LAN、有線LAN、PANなどがある。
The
インタフェース部102は、家電等の機器と接続するインタフェースを備える。インタフェース部102は、コントローラ部103の制御に従って、接続先の機器と信号を送受信する。インタフェース部102と機器間の接続は有線でもよいし、無線でも良い。
The
コントローラ部103は、インタフェース部102を制御して、機器との通信(シリアル通信など)を行う。コントローラ部103は、一例として、1つまたは複数のコントローラ・チップ等(UART、SPI、I2C、GPIO、PWM等)によって構成されている。コントローラ部103の設定、すなわち、どのコントローラを使用するか、また各コントローラのパラメータ(ビットレートやマスター/スレーブなど)を、設定受付部108により設定できる。インタフェース部102に接続された機器と正常に通信するために、当該機器に適合したコントローラおよびパラメータを使用する必要がある。もし機器との通信が正常に動作していない場合、使用するコントローラまたはそのパラメータの変更が必要である。なお、各コントローラのパラメータが固定のときは、コントローラ部103の設定変更は、使用するコントローラの変更と等価である。以下の説明では、主として各コントローラのパラメータが固定であり、コントローラ部103の設定変更は、使用するコントローラの変更に対応する場合を想定するが、コントローラのパラメータの変更が可能な場合は、同じコントローラを使用しつつそのパラメータを変更する場合も、コントローラ部103の設定変更に含まれてもよい。
The
プログラム保持部104は、1つまたは複数の機器制御用のプロトコルを格納している。インタフェース部102に接続される機器が家電機器の場合は、機器制御用のプロトコルの例として、家電制御用のプロトコルが想定される。プログラム保持部104は、メモリまたはストレージ等により構成することができる。機器制御用プロトコルは、外部のネットワーク上のサーバから取得して、プログラム保持部104に格納してもよい。
The
プロトコル制御部105は、プログラム保持部104に保持されているプロトコルのうちの1つを利用して、インタフェース部102に接続された機器を制御する。プロトコル制御部105の設定、すなわち、どのプロトコルを使用するか、またプロトコルのパラメータを、設定受付部108により設定できる。機器を正常に制御するために、当該機器に適合したプロトコルを使用する、または、当該機器に適合したパラメータをプロトコルに設定する必要がある。もし機器との間でプロトコルエラーが生じている場合、すなわち、機器を正常に制御できない場合、使用するプロトコルの変更、またはプロトコルのパラメータ設定の変更が必要である。なお、各プロトコルのパラメータが固定のときは、コントローラ部103の設定変更は、使用するプロトコルの変更に対応する。以下の説明では、各プロトコルのパラメータが固定であり、プロトコル制御部105の設定変更は、使用するプロトコルの変更に対応する場合を想定するが、プロトコルのパラメータの変更が可能な場合は、同じプロコトルを使用しつつそのパラメータを変更する場合も、プロトコル制御部105の設定変更に含まれてもよい。
The
設定検証部106は、現在の設定(現在のプロトコル制御部の設定および現在のコントローラ部103の設定)の正否、すなわち、現在の設定が接続機器に適合したものかを検証する。より詳細に、設定検証部106は、現在の設定において、コントローラ部103が正常に動作しているかどうかを確認する。もし機器との通信が正常に動作していない場合、コントローラ部103の設定変更(ここでは、使用するコントローラの変更)が必要であるため、コントローラ部103の設定を可能にすべく、設定受付部108を有効にする。また、設定検証部106は、コントローラ部103が正常な場合に、プロトコル制御部105が正常に動作しているかどうかを確認する。もし機器との間でプロトコルエラーが生じている場合、プロトコル制御部105が正常に動作していないため、プロトコル制御部105の設定変更(ここでは、使用するプロトコルの変更)が必要であるとして、プロトコル制御部105の設定を可能にすべく、設定受付部108を有効にする。
The
記憶部110は、通信アダプタの設定情報を記憶する。通信アダプタに現在設定されているコントローラ部103およびプロトコル制御部105の設定情報を記憶する。また通信部101の設定情報を記憶する。通信部101の設定情報の例としては、無線LAN(WiFi)のパラメータ(暗号キー、SSID等)の情報があり得る。また通信アダプタにユーザアカウント等のユーザ情報の設定が必要な場合は、ユーザ情報を記憶する。また、記憶部110は、接続先機器の機器情報を記憶している。機器情報は、例えば機器種別、機器ID、型番、製造者、製造番号、またはこれらのうちの複数を含む。
The
設定検証部106は、プロトコル制御部105を通じて、機器の機器情報(機種IDまたは機器IDまたはこれらの両方等)を取得し、これらが、記憶部110に保存されているものと一致しているか、すなわち記憶部110に登録されているかを確認してもよい。
登録されていない場合、接続されている機器が交換された可能性があるため、設定検証部106は、設定受付部108を有効にして、ユーザに現在接続されている機器が、ユーザが想定している機器に一致するか確認させてもよい。一方、取得した機器情報が、記憶部110に登録されており、かつプロトコル制御部105およびコントローラ部103が正常である場合、通信アダプタの設定は正常であると判断し、制御受付部107を有効にする。なお、それらが一致していない場合であっても、コントローラ部103およびプロトコル制御部105が正常に動作していることが確認されているのであれば、制御受付部107を有効にしても良い。
The
If the device is not registered, the connected device may have been exchanged. Therefore, the
制御受付部107は、通信部101を介して端末から機器の制御を指示する制御メッセージを受け付け、当該制御メッセージをプロトコル制御部105に出力する。プロトコル制御部105は、制御メッセージに基づきコントローラ部103を制御することで、コントローラ部103から当該制御メッセージに対応する制御命令を機器に出力させる。
The
設定受付部108は、端末から本通信アダプタへのアクセス時に、各種設定用の画面を端末に提供する。端末に提供する画面は、例えば設定検証部106により指示される。例えば、設定受付部108は、設定検証部106によりコントローラ部103の設定が機器に適合していないと判断された場合に、コントローラ部103の設定用の画面を提供することで、当該設定が機器に適合していない旨を通知する。設定受付部108は、当該端末からコントローラ部103に対する設定メッセージを受け付け、当該設定メッセージに基づきコントローラ部103の設定を行う。コントローラ部103の設定は、使用するコントローラの設定または変更、または現在使用しているコントローラのパラメータの変更を含む。
The
また、設定受付部108は、設定検証部106によりプロトコル制御部105の設定が機器に適合していないと判断された場合に、プロトコル制御部105の設定用の画面を端末に提供することで、当該設定が機器に適合していない旨を通知する。設定受付部108は、通信部101を介して端末から、プロトコル制御部105に対する設定メッセージを受け付け、当該設定メッセージに基づき、プロトコル制御部105の設定を行う。プロトコル制御部105の設定は、使用するプロトコルの設定または変更、または現在使用しているプロトコルのパラメータの変更を含む。ここで述べた以外にも様々な設定画面がある。
Further, when the setting
図2は、図1の通信アダプタの動作例を示すフローチャートである。 FIG. 2 is a flowchart showing an operation example of the communication adapter of FIG.
設定検証部106は、通信アダプタの初期設定が完了しているか否かを確認する(ステップ201)。初期設定が完了とは、コントローラ部103およびプロトコル制御部105の設定がなされていることを意味する。また通信部101の設定、ユーザアカウントの設定がなされていることも含んでよい。これらの設定項目の中で、初期設定が完了していない項目があれば、初期設定が必要と判断し(ステップ202)、設定受付部108を有効にする(ステップ203)。設定受付部108は、この状態で端末からアクセスがあると、初期設定をユーザに促すための画面を端末に提示する。設定受付部108は、当該画面を介してユーザから入力された設定メッセージに基づき、初期設定を行う。図3に初期設定用の画面の例を示す。初期設定用画面において各設定項目を設定する例を図4に示す。
The setting
初期設定が完了している場合、設定検証部106は、接続されている機器との間でコントローラ部103が正常に動作しているかどうかを確認する(ステップ204)。例えばコントローラ部103から試験的に機器に対して制御命令を送信し、送信した制御命令に対し応答が返ってこない場合、または返ってきたデータを正常に復号できない場合(壊れたバイト列のデータが返される場合)など、コントローラ部103が正常していないと判断する。もしコントローラ部103が正常に動作していない場合、コントローラ部103の設定変更、すなわちコントローラ部103における現在使用しているコントローラを別のコントローラへ変更する必要があると判断する(ステップ205)。そして、設定受付部108を有効にする(ステップ203)。設定受付部106は、この状態で端末からアクセスがあると、コントローラ部103の設定をユーザに促すための画面を端末に提示する。設定受付部108は、ユーザから入力された設定メッセージに基づきコントローラ部103の設定変更を行う。図5にコントローラ部設定用の画面の例を示す。ユーザは変更ボタンをクリックして、コントローラ部103の設定変更(使用するコントローラの変更)を行うことができる。変更対象となるコントローラの候補が複数存在するときは、複数の候補を表示して、ユーザに選択させてもよい。図の例では、変更対象のコントローラの候補が1つ存在し、その候補の情報を表示している。
When the initial setting is completed, the setting
コントローラ部103が正常に動作している場合、設定検証部106は、機器との間でプロトコル制御部105が正常に動作しているかどうかを確認する(ステップ206)。
例えば、設定検証部106は、試験的にプロトコル制御部105を動作させて、指示した動作通りの制御が行われたかを確認する。例えば機器に所定のプロトコルメッセージを送り、所望の応答メッセージが返るか否かで確認する。もし、プロトコル制御部105が正常に動作していない場合、すなわち、プロトコルエラーが生じている場合、使用するプロトコルの変更が必要であると判断し(ステップ207)、設定受付部108を有効にする(ステップ203)。設定受付部108は、この状態で端末から通信アダプタへのアクセスがあると、プロトコル制御部の設定(プロロトコルの変更)をユーザに促すための画面を端末に提示し、ユーザから入力された設定メッセージに基づきプロトコルの設定を行う。図6にプロトコル制御部設定用の画面の例を示す。ユーザは変更ボタンをクリックして、プロトコルの変更を行うことができる。変更対象となるプロトコルの候補が複数存在するときは、複数の候補を表示して、ユーザに選択させてもよい。図の例では、変更対象となるプロトコルの候補が1つ存在し、その候補の情報を表示している。
When the
For example, the setting
プロトコル制御部105が正常に動作している場合、設定検証部106は、プロトコル制御部105を通じて得られる機器情報(機種IDまたは機器IDまたはこれらの両方等)が、記憶部110に登録されているものに一致するかを確認する(ステップ209)。
もし一致しない場合、接続先の機器が交換された可能性があると判断する(ステップ210)。そして、ユーザにその旨を通知させるため、あるいは設定を見直させるために、設定受付部108を有効にする(ステップ203)。設定受付部108は、この状態で端末から通信アダプタへのアクセスがあると、プロトコル制御部105を通じて検出された機器情報と、記憶部110に登録されている機器情報とを含む画面、すなわち、接続先の機器が変更された可能性がある旨をユーザに通知する画面をユーザに提示する。提示する画面の例を図7に示す。ユーザは、画面に基づき、現在の記憶部110の登録内容で問題ないかどうか確認し、問題ないときは、承認ボタンを選択(クリック)する。ユーザ承認を促すことで、機種・機器の変化に気付かずに機器を制御してしまうことを防ぐことができる。なお、取得された機器情報(機種情報・機器ID等)が記憶部110に登録されたものと異なる場合でも、プロトコル制御部105およびコントローラ部103が正常であれば、特に一部の機能(電源のオンオフなど)に関してなど、機器を正常に制御でき得る。
When the
If they do not match, it is determined that the connection destination device may have been replaced (step 210). Then, the
一方、プロトコル制御部105を通じて検出された機器情報が、記憶部110に登録されているものに一致する場合、通信アダプタの設定は正常であると判断し(ステップ210)、制御受付部107を有効にする(ステップ211)。制御受付部107は、この状態で端末から通信アダプタへのアクセスがあると、機器の操作または制御を行う機器制御用画面を端末に提示する。機器制御用のタッチパネル画面の例を図8に示す。ユーザはこの画面で機器に対して制御の指示を入力することができる。端末はユーザの入力に応じた制御メッセージを通信アダプタへ送信する。プロトコル制御部105は、この制御メッセージを、通信部101および制御受付部107を介して受信する。プロトコル制御部105は、受信した制御メッセージに基づき、コントローラ部103を介して機器を制御する。
On the other hand, when the device information detected through the
以上の動作により、設定検証部は、現在どの部分の設定(初期設定、コントローラ部の設定、プロトコル制御部の設定、ユーザ承認など)が必要とされているかを検出することで、ユーザに対して現在必要とされている設定項目のみを応答することが可能である。 With the above operation, the setting verification unit detects to the user which part of the setting (initial setting, controller setting, protocol control setting, user approval, etc.) is currently required. It is possible to respond only to the setting items that are currently required.
例えば単にユーザに設定が正しくない旨を通知するのみである場合、コントローラ部およびプロトコル制御部等のうちどの箇所の設定を誤っているのかを判断するのかは難しい。本実施形態ではコントローラ部の設定を検証して、誤っていればその旨を通知するため、ユーザはコントローラ部の設定が誤っていることを正しく把握できる。またコントローラ部の設定が正しければ、次にプロトコル制御部の設定を検証して、誤っていればその旨を通知するため、ユーザはプロトコル制御部の設定が誤っていることを正しく把握できる。このように本実施形態では、通信アダプタの設定を行うユーザの負荷を低減できる。 For example, when only notifying the user that the settings are incorrect, it is difficult to determine which part of the controller unit, the protocol control unit, etc. is erroneously set. In this embodiment, the setting of the controller unit is verified, and if it is incorrect, the fact is notified, so that the user can correctly understand that the setting of the controller unit is incorrect. If the setting of the controller unit is correct, the setting of the protocol control unit is verified next, and if it is incorrect, the fact is notified, so that the user can correctly understand that the setting of the protocol control unit is incorrect. As described above, in the present embodiment, the load on the user who sets the communication adapter can be reduced.
上述した動作フローの例では、ステップ204でコントローラ部103の設定が誤っていると判断された場合に、ユーザに別のコントローラを選択させたが、エラーの内容から、正しいコントローラを自動で推定する方法も可能である。例えば、エラーデータ(壊れた情報)からコントローラを推定する識別モデルを用意しておき、設定検証部106が、当該識別モデルと、エラーデータとから正しいコントローラを推定して、設定受付部108を介してユーザに提案してもよい。または、当該推定した正しいコントローラ設定を、設定検証部106が自動的にコントローラ部103に設定してもよい。モデルの構築方法は機械学習により行えばよい。すなわち、エラーデータと正しいコントローラとの組データを多数用意し、これらを教師データとして機械学習によりモデルを構築する方法はよく知られている。ここでは、正しいコントローラを推定したが、同様の考え方で、正しいプロトコルを推定してもよい。モデルを用いた推定は通信アダプタ内で行わず、通信部101を介して通信可能な外部の推定装置またはサーバで行ってもよい。この場合、設定検証部106は、通信部101を介して当該外部の推定装置またはサーバに上記のエラーデータ等を送信し、当該外部の推定装置またはサーバで推定された正しいコントローラ設定の情報を受信すればよい。
In the example of the operation flow described above, when it is determined in
上述した動作フローの例では、ステップ206でプロトコル制御部の設定が誤っていると判断された場合に、ユーザに別のプロトコルの候補を選択させたが、コントローラ部103の設定情報から、プロトコルの候補を絞り込める場合がある。例えば、一部のプロトコル仕様では、物理層(=コントローラ)の仕様まで規定している場合がある。現在のコントローラ部103の設定が、特定のプロトコル仕様のものとマッチしない場合、その特定のプロトコルは原則として候補から外すことができる。そこで、当該特定のプロトコル以外のプロトコルを候補としてユーザに提示してもよい。例えば、ある家電プロトコル(仮に家電プロトコルAとする)では、物理層の仕様としてUARTをベースにしたものを規定しているとき、「UART −> 家電プロトコルA」という対応関係をコントローラ・プロトコル対応表に設定しておく。コントローラ部103としてUARTが選択された場合、当該コントローラ・プロトコル対応表から、プロトコル制御部105の設定候補として「家電プロトコルA」をユーザに提示する。また、特定した候補をユーザに提示するのではなく、設定検証部106が、当該候補の設定を自動的にプロトコル制御部に対して適用してもよい。候補が複数存在するときは、そのうちの1つの設定を適用し、適用後の設定が正しくなかった場合は、再度別の候補を選択し、選択した候補を適用してもよい。
In the example of the operation flow described above, when it is determined in
図9は、本実施形態に係る通信アダプタのハードウェア構成の一例を示すブロック図である。図9の通信アダプタは、プロセッサ401、メモリ402、ネットワークインタフェース403、外部インタフェース404、ストレージ406を備え、これらがバス405を介して接続されている。各要素の数は1つに限定されず、複数設けられてもよい。ここでは1つのバスを介して各要素が接続されているが、複数のバスがブリッジ回路を介して接続され、これら複数のバスを介して、これらの要素が複数段で接続されていてもよい。
FIG. 9 is a block diagram showing an example of the hardware configuration of the communication adapter according to this embodiment. The communication adapter of FIG. 9 includes a
ネットワークインタフェース403は、無線LAN等の通信インタフェースであり、図1の通信部101に対応する。ネットワークインタフェース403は、MAC層等のデータリンク層および物理層のヘッダ処理、変調および復調等を行うベースバンド集積回路、AD変換回路、DA変換回路、アナログ処理等を行うRF集積回路、およびアンテナ等を備えていてもよい。ネットワークインタフェース403に、CPU等のプロセッサを配置してもよい。TCP/IP等を用いる場合、TCP/IP等の処理を当該ネットワークインタフェース403上のCPUで行ってもよいし、バス405に接続されたプロセッサ401で行ってもよい。ここではネットワークインタフェースを1つのみ示しているが、複数のネットワークインタフェースが搭載されていてもよい。ネットワークインタフェース403が、DMA(ダイレクト・メモリ・アクセス)でメモリ402に直接、アクセスしてもよい。
The
メモリ402は、プロセッサ401が実行する命令、およびプロセッサ401が利用する各種データ等を一時的に記憶する。メモリ402は、SRAM、DRAM等の揮発性メモリでも、NAND、MRAM等の不揮発性メモリでもよい。ストレージ406は、ハードディスク、光ディスク、SSD等のデータを永続的に記憶する記憶装置である。メモリ402およびストレージ406の少なくとも一方により、図1のプログラム保持部104および記憶部110が実現される。
The
プロセッサ401は、メモリ402からプログラムを読み出して、実行するなどすることで、図1のコントローラ部103、プロトコル制御部105、設定検証部106、制御受付部107、設定受付部108の一部または全部の機能が実現される。通信部101の一部の機能がプロセッサ401により実現され、残りの一部がネットワークインタフェース403によって実現されてもよい。
The
外部インタフェース404は、機器に接続するためのインタフェースであり、図1のインタフェース部102に対応する。
The
図10に本実施形態に係るネットワークシステムを示す。本実施形態に係る通信アダプタ301を接続した機器302が、通信アダプタ301の通信機能を利用して、無線でルータ303に接続されている。またユーザの操作する端末304が無線でルータ303に接続されている。端末304および機器302は、例えば同じ家屋内に配置されている。
ルータ303はインターネット306等のネットワークに接続されており、宅外のユーザが保持する端末306が、携帯電話網308を介してインターネット306に接続されている。端末304および端末306は、スマートフォン、携帯電話、タブレット、ノート型PCなどのユーザデバイスである。ここでは端末304および端末306は、無線通信を行うが、これらの少なくとも一方が有線通信を行う構成でもよい。インターネット306にはサーバ307が接続されている。サーバ307には、図1に示した通信アダプタの一部の機能が通信アダプタの代わりに搭載されている。すなわち、図1の通信アダプタの一部の機能をクラウド化している。具体的に、サーバ307には、設定受付部108および制御受付部107の機能が搭載されており、端末304、306は、図3〜図8に示したような各種の設定画面を、サーバ307から受信する。端末304、306でユーザが入力した情報は、サーバ307を介して通信アダプタ301に送られる。また通信アダプタから送信される情報もサーバ307を介して端末304、306に送信される。これにより通信アダプタ301に搭載する機能を低減できる。
FIG. 10 shows a network system according to this embodiment. The
The
なお、この通信アダプタは、例えば、汎用のコンピュータ装置を基本ハードウェアとして用いることでも実現することが可能である。すなわち、通信アダプタが備える各要素は、上記のコンピュータ装置に搭載されたプロセッサにプログラムを実行させることにより実現することができる。このとき、通信アダプタは、上記のプログラムをコンピュータ装置にあらかじめインストールすることで実現してもよいし、CD−ROMなどの記憶媒体に記憶して、あるいはネットワークを介して上記のプログラムを配布して、このプログラムをコンピュータ装置に適宜インストールすることで実現してもよい。また、記憶部およびプログラム保持部は、上記のコンピュータ装置に内蔵あるいは外付けされたメモリ、ハードディスクもしくはCD−R、CD−RW、DVD−RAM、DVD−Rなどの記憶媒体などを適宜利用して実現することができる。 The communication adapter can also be realized by using a general-purpose computer device as basic hardware. That is, each element included in the communication adapter can be realized by causing a processor mounted on the computer device to execute a program. At this time, the communication adapter may be realized by installing the above program in a computer device in advance, or by storing the program in a storage medium such as a CD-ROM or distributing the program through a network. Alternatively, this program may be realized by appropriately installing it in a computer device. In addition, the storage unit and the program storage unit appropriately use a memory, a hard disk or a storage medium such as a CD-R, a CD-RW, a DVD-RAM, a DVD-R, etc., which is built in or attached to the above computer device. Can be realized.
本実施形態で用いられる用語は、広く解釈されるべきである。例えば用語“プロセッサ”は、汎用目的プロセッサ、中央処理装置(CPU)、マイクロプロセッサ、デジタル信号プロセッサ(DSP)、コントローラ、マイクロコントローラ、状態マシンなどを包含してもよい。状況によって、“プロセッサ”は、特定用途向け集積回路、フィールドプログラマブルゲートアレイ(FPGA)、プログラム可能論理回路 (PLD)などを指してもよい。“プロセッサ”は、複数のマイクロプロセッサのような処理装置の組み合わせ、DSPおよびマイクロプロセッサの組み合わせ、DSPコアと協働する1つ以上のマイクロプロセッサを指してもよい。 The terms used in this embodiment should be broadly interpreted. For example, the term "processor" may include general purpose processors, central processing units (CPUs), microprocessors, digital signal processors (DSPs), controllers, microcontrollers, state machines, and the like. In some situations, "processor" may refer to an application specific integrated circuit, field programmable gate array (FPGA), programmable logic circuit (PLD), etc. "Processor" may refer to a combination of processing devices such as multiple microprocessors, a combination of DSP and microprocessor, one or more microprocessors cooperating with a DSP core.
別の例として、用語“メモリ”は、電子情報を格納可能な任意の電子部品を包含してもよい。“メモリ”は、ランダムアクセスメモリ(RAM)、読み出し専用メモリ(ROM)、プログラム可能読み出し専用メモリ(PROM)、消去可能プログラム可能読み出し専用メモリ(EPROM)、電気的消去可能PROM(EEPROM)、不揮発性ランダムアクセスメモリ(NVRAM)、フラッシュメモリ、磁気または光学データストレージを指してもよく、これらはプロセッサによって読み出し可能である。プロセッサがメモリに対して情報を読み出しまたは書き込みまたはこれらの両方を行うならば、メモリはプロセッサと電気的に通信すると言うことができる。メモリは、プロセッサに統合されてもよく、この場合も、メモリは、プロセッサと電気的に通信していると言うことができる。 As another example, the term "memory" may include any electronic component capable of storing electronic information. "Memory" is random access memory (RAM), read only memory (ROM), programmable read only memory (PROM), erasable programmable read only memory (EPROM), electrically erasable PROM (EEPROM), non-volatile It may refer to random access memory (NVRAM), flash memory, magnetic or optical data storage, which are readable by the processor. A memory may be said to be in electrical communication with a processor if the processor reads and/or writes information to the memory. The memory may be integral to the processor and again, the memory may be said to be in electrical communication with the processor.
なお、本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。 It should be noted that the present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying the constituent elements within a range not departing from the gist of the invention in an implementation stage. Further, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the above embodiments. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, the constituent elements of different embodiments may be combined appropriately.
以下に、特許査定時における特許請求の範囲の記載を付記する。
[1]
機器と接続するインタフェース部と、
前記インタフェース部を介して前記機器と通信するコントローラ部と、
前記コントローラ部を介して前記機器を制御するプロトコル制御部と、
前記コントローラ部の動作を検証することにより、前記コントローラ部の設定が前記機器に適合しているかを判断し、前記コントローラ部の設定が前記機器に適合していると判断した場合に、前記プロトコル制御部の動作を検証することにより、前記プロトコル制御部の設定が前記機器に適合しているかを判断する設定検証部と、
前記コントローラ部または前記プロトコル制御部の設定が前記機器に適合していないと判断された場合に、前記コントローラ部または前記プロトコル制御部の設定が前記機器に適合していないことを示す情報を送信する通信部と
を備えた通信アダプタ。
[2]
前記コントローラ部の設定が前記機器に適合していないと判断された場合に、前記通信部を介して前記コントローラ部の設定を受け付け、前記プロトコル制御部の設定が前記機器に適合していないと判断された場合に、前記通信部を介して前記プロトコル制御部の設定を受け付ける設定受付部
をさらに備えた[1]に記載の通信アダプタ。
[3]
前記通信部を介して前記機器に対する制御指示を受け付ける制御受付部を備え、
前記プロトコル制御部は、前記制御指示に基づき前記機器を制御し、
前記設定検証部は、前記コントローラ部および前記プロトコル制御部の設定が前記機器に適合していると判断したとき、前記制御受付部を有効化する
[1]または[2]に記載の通信アダプタ。
[4]
前記設定受付部は、前記コントローラ部の設定が前記機器に適合しており、前記プロトコル制御部の設定が前記機器に適合していないと判断された場合に、前記コントローラ部の設定と前記プロトコル制御部の設定間の可能な組み合わせを示す情報に基づいて、前記機器に適合する前記プロトコル制御部の設定の候補を特定し、特定した候補の情報を、前記通信部を介して送信する
[2]、または[2]を引用する[3]に記載の通信アダプタ。
[5]
前記設定受付部は、前記コントローラ部の設定が前記機器に適合しており、前記プロトコル制御部の設定が前記機器に適合していないと判断された場合に、前記コントローラ部の設定と前記プロトコル制御部の設定間の可能な組み合わせを示す情報に基づいて、前記機器に適合する前記プロトコル制御部の設定の候補を少なくとも1つ特定し、特定した少なくとも1つの候補のうちの1つを前記プロトコル制御部に適用する
[2]、または[2]を引用する[3]に記載の通信アダプタ。
[6]
前記設定検証部は、前記コントローラ部が前記機器から受信したデータに基づき、前記コントローラ部の設定が前記機器に適合しているかを判断し、前記コントローラ部の設定が前記機器に適合していないと判断した場合に、与えられたデータから前記コントローラ部の前記機器に適合する設定を推定するモデルを用いて、前記受信されたデータから、前記コントローラ部の前記機器に適合する設定を推定する
[1]ないし[3]のいずれか一項に記載の通信アダプタ。
[7]
前記設定検証部は、前記コントローラ部が前記機器から受信したデータに基づき、前記コントローラ部の設定を検証し、前記コントローラ部の設定が前記機器に適合していないと判断した場合に、前記受信されたデータを、前記通信部を介して推定装置に送信し、
前記設定受付部は、前記推定装置で推定された前記コントローラ部の前記機器に適合する設定に関する情報を前記推定装置から受信する
[2]、または[2]を引用する[3]に記載の通信アダプタ。
[8]
機器情報を記憶する記憶部を備え、
前記設定検証部は、前記プロトコル制御部の設定が前記機器に適合していると判断された場合に、前記プロトコル制御部を介して前記インタフェース部に接続された前記機器から機器情報を取得し、前記機器情報を前記記憶部に記憶された機器情報と比較することにより前記インタフェース部の接続先の機器が変更されたかを判断し、前記接続先の機器が変更されたと判断したときは、前記通信部を介して、前記接続先の機器が変更されたことを示す情報を送信する
[1]ないし[7]のいずれか一項に記載の通信アダプタ。
[9]
前記通信部を介して前記機器に対する制御指示を受け付ける制御受付部を備え、
前記プロトコル制御部は、前記制御指示に基づき前記機器を制御し、
前記制御受付部は無効化されており、
前記設定検証部は、前記通信部を介して前記接続先の機器が変更されたことに対し承認情報を受信したとき、前記制御受付部を有効化する
[8]に記載の通信アダプタ。
[10]
インタフェース部に接続された機器と通信するコントローラ部の動作を検証することにより、前記コントローラ部の設定が前記機器に適合しているかを判断する設定検証ステップと、
前記コントローラ部の設定が前記機器に適合していると判断された場合に、前記コントローラ部を介して前記機器を制御するプロトコル制御部の動作を検証することにより、前記プロトコル制御部の設定が前記機器に適合しているかを判断するステップと、
前記コントローラ部の設定または前記プロトコル制御部の設定が前記機器に適合していないと判断された場合に、前記コントローラ部または前記プロトコル制御部の設定が前記機器に適合していないことを通知する情報を送信するステップと、
を備えた通信方法。
[11]
インタフェース部に接続された機器と通信するコントローラ部の動作を検証することにより、前記コントローラ部の設定が前記機器に適合しているかを判断する設定検証ステップと、
前記コントローラ部の設定が前記機器に適合していると判断された場合に、前記コントローラ部を介して前記機器を制御するプロトコル制御部の動作を検証することにより、前記プロトコル制御部の設定が前記機器に適合しているかを判断するステップと、
前記コントローラ部の設定または前記プロトコル制御部の設定が前記機器に適合していないと判断された場合に、前記コントローラ部または前記プロトコル制御部の設定が前記機器に適合していないことを通知する情報を送信するステップと、
をコンピュータに実行させるためのプログラム。
The description of the scope of claims at the time of patent grant is additionally described below.
[1]
An interface part that connects to the device,
A controller unit that communicates with the device via the interface unit;
A protocol control unit for controlling the device via the controller unit,
By verifying the operation of the controller unit, it is determined whether the setting of the controller unit is compatible with the device, and when it is determined that the setting of the controller unit is compatible with the device, the protocol control is performed. A setting verification unit that determines whether the settings of the protocol control unit are compatible with the device by verifying the operation of the unit;
When it is determined that the setting of the controller unit or the protocol control unit is not suitable for the device, information indicating that the setting of the controller unit or the protocol control unit is not suitable for the device is transmitted. A communication adapter equipped with a communication unit.
[2]
When it is determined that the setting of the controller unit is not suitable for the device, the setting of the controller unit is accepted via the communication unit, and it is determined that the setting of the protocol control unit is not suitable for the device. The communication adapter according to [1], further including: a setting receiving unit that receives the setting of the protocol control unit via the communication unit.
[3]
A control receiving unit that receives a control instruction for the device via the communication unit,
The protocol control unit controls the device based on the control instruction,
The communication adapter according to [1] or [2], wherein the setting verification unit validates the control reception unit when it is determined that the settings of the controller unit and the protocol control unit are suitable for the device.
[4]
The setting accepting unit, when it is determined that the setting of the controller unit is compatible with the device and the setting of the protocol control unit is not compatible with the device, the setting of the controller unit and the protocol control. Based on the information indicating the possible combinations between the settings of the units, the setting candidates of the protocol control unit that match the device are identified, and the information of the identified candidates is transmitted via the communication unit [2]. Or the communication adapter according to [3], which cites [2].
[5]
The setting accepting unit, when it is determined that the setting of the controller unit is compatible with the device and the setting of the protocol control unit is not compatible with the device, the setting of the controller unit and the protocol control. At least one candidate for setting the protocol control unit that is suitable for the device is specified based on information indicating a possible combination between setting of the units, and one of the specified at least one candidate is used for the protocol control. The communication adapter according to [3], which applies to [2] or [2].
[6]
The setting verification unit determines whether the setting of the controller unit is compatible with the device based on the data received by the controller unit from the device, and determines that the setting of the controller unit is not compatible with the device. When it is determined, a setting of the controller unit suitable for the device is estimated from the received data, and a setting of the controller unit compatible with the device is estimated from the received data. ] Thru|or the communication adapter as described in any one of [3].
[7]
The setting verification unit verifies the setting of the controller unit based on the data received by the controller unit from the device, and if the setting of the controller unit is determined not to be compatible with the device, the received setting is received. Transmitted data to the estimation device via the communication unit,
The setting accepting unit receives, from the estimation device, information regarding the setting of the controller unit that is estimated by the estimation device and is compatible with the device [2], or the communication according to [3] quoting [2]. adapter.
[8]
A storage unit for storing device information is provided,
The setting verification unit acquires device information from the device connected to the interface unit via the protocol control unit when it is determined that the setting of the protocol control unit is suitable for the device, By comparing the device information with the device information stored in the storage unit, it is determined whether the connection destination device of the interface unit has been changed, and when it is determined that the connection destination device has been changed, the communication is performed. The communication adapter according to any one of [1] to [7], which transmits information indicating that the device of the connection destination has been changed via a unit.
[9]
A control receiving unit that receives a control instruction for the device via the communication unit,
The protocol control unit controls the device based on the control instruction,
The control reception unit is disabled,
The communication adapter according to [8], wherein the setting verification unit validates the control reception unit when receiving approval information for the change of the connection destination device via the communication unit.
[10]
A setting verification step of determining whether or not the setting of the controller unit is suitable for the device by verifying the operation of the controller unit communicating with the device connected to the interface unit;
When it is determined that the setting of the controller unit is suitable for the device, the operation of the protocol control unit that controls the device via the controller unit is verified, so that the setting of the protocol control unit is Determining if it is compatible with the device,
Information notifying that the setting of the controller unit or the protocol control unit is not compatible with the device when it is determined that the setting of the controller unit or the protocol control unit is not compatible with the device The step of sending
A communication method provided with.
[11]
A setting verification step of determining whether or not the setting of the controller unit is suitable for the device by verifying the operation of the controller unit communicating with the device connected to the interface unit;
When it is determined that the setting of the controller unit is suitable for the device, the setting of the protocol control unit is verified by verifying the operation of the protocol control unit that controls the device via the controller unit. Determining if it is compatible with the device,
Information notifying that the setting of the controller unit or the protocol control unit is not compatible with the device when it is determined that the setting of the controller unit or the protocol control unit is not compatible with the device The step of sending
A program that causes a computer to execute.
101:通信部
102:インタフェース部
103:コントローラ
104:プログラム保持部
105:プロトコル制御部
106:設定検証部
107:制御受付部
108:設定受付部
110:記憶部
301:通信アダプタ
302:機器
303:ルータ
304:端末
305:端末
306:インターネット
307:サーバ
308:携帯電話網
101: communication unit 102: interface unit 103: controller 104: program holding unit 105: protocol control unit 106: setting verification unit 107: control reception unit 108: setting reception unit 110: storage unit 301: communication adapter 302: device 303: router 304: Terminal 305: Terminal 306: Internet 307: Server 308: Mobile phone network
Claims (6)
前記インタフェース部を介して前記機器と通信するコントローラ部と、
前記コントローラ部を介して前記機器を制御するプロトコル制御部と、
前記プロトコル制御部の動作を検証することにより、前記プロトコル制御部の設定が前記機器に適合しているかを判断する設定検証部と、を備え、
前記プロトコル制御部の設定が前記機器に適合していないと判断された場合に、前記コントローラ部の設定と前記プロトコル制御部の設定間の可能な組み合わせを示す情報に基づいて、前記機器に適合する前記プロトコル制御部の設定の候補を特定する通信アダプタ。 An interface part that connects to the device,
A controller unit that communicates with the device via the interface unit;
A protocol control unit for controlling the device via the controller unit,
By verifying the operation of the protocol control unit, a setting verification unit that determines whether the setting of the protocol control unit is compatible with the device ,
If it is determined that the protocol control unit settings are not suitable for the device, the protocol control unit settings are compatible with the device based on information indicating possible combinations between the controller unit settings and the protocol control unit settings. A communication adapter for identifying a setting candidate of the protocol control unit .
請求項1に記載の通信アダプタ。 The communication adapter according to claim 1 , wherein information on the identified candidate is transmitted to a terminal, or one of the identified candidates is applied to the protocol control unit .
前記プロトコル制御部の設定が前記機器に適合していないと判断された場合に、前記コントローラ部の設定と前記プロトコル制御部の設定間の可能な組み合わせを示す情報に基づいて、前記機器に適合する前記プロトコル制御部の設定の候補を特定する
通信方法。 By verifying the operation of the protocol control unit for controlling the device via a controller unit that communicates with equipment, to determine settings of the protocol control section is adapted to the device,
If it is determined that the protocol control unit settings are not suitable for the device, the protocol control unit settings are compatible with the device based on information indicating possible combinations between the controller unit settings and the protocol control unit settings. Specify the setting candidates of the protocol control unit
Communication method.
請求項3に記載の通信方法。 The communication method according to claim 3 , wherein information on the identified candidate is transmitted to a terminal, or one of the identified candidates is applied to the protocol control unit .
前記プロトコル制御部の設定が前記機器に適合していないと判断された場合に、前記コントローラ部の設定と前記プロトコル制御部の設定間の可能な組み合わせを示す情報に基づいて、前記機器に適合する前記プロトコル制御部の設定の候補を特定するステップと、
をコンピュータに実行させるためのプログラム。 Verifying the operation of a protocol control unit that controls the device via a controller unit that communicates with the device, and determining whether the settings of the protocol control unit are compatible with the device;
If it is determined that the protocol control unit settings are not suitable for the device, the protocol control unit settings are compatible with the device based on information indicating possible combinations between the controller unit settings and the protocol control unit settings. Specifying a candidate for setting the protocol control unit,
A program that causes a computer to execute.
をさらに前記コンピュータに実行させるための請求項5に記載のプログラム。 The program according to claim 5, which further causes the computer to execute the step of transmitting the information of the identified candidate to the terminal or applying one of the identified candidates to the protocol control unit .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019074367A JP6735385B2 (en) | 2019-04-09 | 2019-04-09 | Communication adapter, communication method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019074367A JP6735385B2 (en) | 2019-04-09 | 2019-04-09 | Communication adapter, communication method and program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015179661A Division JP6514075B2 (en) | 2015-09-11 | 2015-09-11 | Communication adapter, communication method and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019117661A JP2019117661A (en) | 2019-07-18 |
JP6735385B2 true JP6735385B2 (en) | 2020-08-05 |
Family
ID=67304582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019074367A Active JP6735385B2 (en) | 2019-04-09 | 2019-04-09 | Communication adapter, communication method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6735385B2 (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3426171B2 (en) * | 1999-11-29 | 2003-07-14 | 三菱電機株式会社 | Communication protocol conversion system, monitor device |
JP4120798B2 (en) * | 2003-02-14 | 2008-07-16 | 三菱電機株式会社 | Home network system and communication adapter and home controller used therefor |
WO2010116488A1 (en) * | 2009-04-07 | 2010-10-14 | 三菱電機株式会社 | Communication adapter device |
-
2019
- 2019-04-09 JP JP2019074367A patent/JP6735385B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019117661A (en) | 2019-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4586089B2 (en) | COMMUNICATION SYSTEM, HOST DEVICE, AND TERMINAL DEVICE | |
JP6527943B2 (en) | Software upgrade method and device | |
JP4966393B2 (en) | Terminal equipment | |
JP2009133549A (en) | Communication adaptor for air conditioner and control program updating system for air conditioner | |
TWI524620B (en) | Radiator control method | |
JP2016504641A (en) | System and method for exchanging support data with a device without a physical user interface | |
JP5496393B1 (en) | Home equipment and remote control system | |
CN105588266B (en) | A kind of tele-control system and its configuration method of central air-conditioning | |
JP6514075B2 (en) | Communication adapter, communication method and program | |
JP6707989B2 (en) | Electrical equipment connection tool, set of electrical equipment connection tool and external control device, and remote monitoring management system | |
EP3669124B1 (en) | Appliances and control method thereof | |
JP6735385B2 (en) | Communication adapter, communication method and program | |
JP5868476B2 (en) | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM | |
JP6320563B2 (en) | Communication device, communication adapter, communication system, communication parameter response method, and program | |
WO2020114099A1 (en) | Device upgrade method, apparatus, and system, storage medium, and terminal | |
JP6776164B2 (en) | Management equipment, management methods and programs | |
TWI556171B (en) | Motherboard and method for booting | |
JP5528603B1 (en) | Communication adapter, control system, communication adapter control method, and program | |
JP6433870B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM | |
JP2007148967A (en) | Computer device batch management system | |
CN106101784B (en) | A kind of repositioning method and device of smart television control Bluetooth chip | |
JP7267505B2 (en) | Equipment, network equipment and command execution method | |
TWI709037B (en) | Bios setting method | |
JP6291902B2 (en) | Power measurement apparatus, power measurement system, communication control method, and communication control program | |
CN109450718B (en) | Remote diagnosis method and device for wireless routing equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190409 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200226 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200306 |
|
A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20200415 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200519 |
|
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: 20200612 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200713 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6735385 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |