JP7264274B2 - Sensor system, sensor device and host device used therein, and information transmission method in sensor system - Google Patents
Sensor system, sensor device and host device used therein, and information transmission method in sensor system Download PDFInfo
- Publication number
- JP7264274B2 JP7264274B2 JP2021556054A JP2021556054A JP7264274B2 JP 7264274 B2 JP7264274 B2 JP 7264274B2 JP 2021556054 A JP2021556054 A JP 2021556054A JP 2021556054 A JP2021556054 A JP 2021556054A JP 7264274 B2 JP7264274 B2 JP 7264274B2
- Authority
- JP
- Japan
- Prior art keywords
- sensor
- host device
- data format
- information
- command
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C15/00—Arrangements characterised by the use of multiplexing for the transmission of a plurality of signals over a common path
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
- Information Transfer Systems (AREA)
Description
本開示は、センサシステム、それに用いられるセンサデバイスおよびホスト装置、ならびに、センサシステムにおける情報伝達方法に関する。 The present disclosure relates to a sensor system, a sensor device and host apparatus used therein, and an information transmission method in the sensor system.
パソコンあるいはサーバなどのホスト装置と、各種デバイス(周辺機器)とを接続するための汎用インターフェースとして、USB(Universal Serial Bus)規格のコネクタが用いられる場合がある。USB接続は、ホスト装置を停止することなくデバイスの接続および取り外しが可能なプラグアンドプレイに対応している。 As a general-purpose interface for connecting a host device such as a personal computer or a server and various devices (peripherals), a USB (Universal Serial Bus) standard connector may be used. The USB connection supports plug-and-play, which allows devices to be connected and removed without stopping the host device.
USBを用いた情報伝達において、デバイスとホスト装置との間のデータ形式は、一般的にはデバイス毎に異なる。このようなシステムにおいては、デバイスとホスト装置との間でデータを正しく伝達するために、デバイスおよび/またはホスト装置の制御装置に専用のファームウェアをインストールし、データ形式を所定のフォーマットに変換する処理が行なわれる。上記のように、デバイスとホスト装置との間のデータ形式はデバイス毎に異なるため、新しいデバイスがホスト装置に接続された場合には、その度に、対応するファームウェアを、デバイス側あるいはホスト装置側にインストールすることが必要となる。 In information transmission using USB, the data format between a device and a host device generally differs for each device. In such a system, in order to correctly transmit data between the device and the host device, a process of installing dedicated firmware in the control device of the device and/or the host device and converting the data format into a predetermined format. is performed. As described above, the data format between the device and the host device differs for each device. Therefore, each time a new device is connected to the host device, the corresponding firmware is installed on the device side or the host device side. need to be installed on.
特開2006-323612号公報(特許文献1)においては、情報処理装置(ホスト装置)へのデバイスの接続時に、ホスト装置からデバイスにファームウェアファイルを自動的に書き込む構成が開示されている。 Japanese Patent Laying-Open No. 2006-323612 (Patent Document 1) discloses a configuration in which a host device automatically writes a firmware file to a device when the device is connected to an information processing device (host device).
近年、温度あるいは湿度などの環境状態を検出するためのセンサとして、USB接続が可能なセンサデバイスが開発されている。このようなセンサデバイスにおいては、センサの種類あるいはセンサデバイスのメーカ毎に、伝達されるデータ形式が異なる場合がある。この場合、新たなセンサデバイスをホスト装置に接続する度に、ファームウェアの設定が必要となる。 In recent years, as sensors for detecting environmental conditions such as temperature and humidity, sensor devices capable of USB connection have been developed. In such sensor devices, the data format to be transmitted may differ depending on the type of sensor or the manufacturer of the sensor device. In this case, the firmware needs to be set every time a new sensor device is connected to the host device.
本開示は、上記のような課題を解決するためになされたものであって、その目的は、ホスト装置にセンサデバイスが接続されたセンサシステムにおいて、センサデバイスの追加時に、ファームウェアを設定することなくセンサデバイスとホスト装置との間の情報の伝達を可能とすることである。 The present disclosure has been made to solve the problems described above, and an object of the present disclosure is to provide a sensor system in which a sensor device is connected to a host device, when a sensor device is added, without setting firmware. It is to enable transmission of information between the sensor device and the host device.
本開示のある局面に係るセンサシステムは、ホスト装置と、少なくとも1つのセンサデバイスとを備える。ホスト装置には、複数のセンサデバイスが接続可能である。ホスト装置とセンサデバイスとは、所定のデータ形式で情報の伝達を行なう。当該所定のデータ形式は、ホスト装置に接続されるセンサデバイスに含まれるセンサの種類にかかわらず共通のデータ形式に設定される。 A sensor system according to one aspect of the present disclosure includes a host device and at least one sensor device. A plurality of sensor devices can be connected to the host device. Information is transmitted between the host device and the sensor device in a predetermined data format. The predetermined data format is set to a common data format regardless of the type of sensor included in the sensor device connected to the host device.
本開示の他の局面に係るセンサデバイスは、ホスト装置に接続可能である。センサデバイスは、少なくとも1つのセンサと、当該少なくとも1つのセンサからの情報を処理する処理装置とを備える。処理装置は、少なくとも1つのセンサからの情報を所定のデータ形式に変換してホスト装置に送信する。当該所定のデータ形式は、上記少なくとも1つのセンサの種類にかかわらず共通のデータ形式に設定される。 A sensor device according to another aspect of the present disclosure is connectable to a host device. A sensor device comprises at least one sensor and a processor for processing information from the at least one sensor. The processing device converts information from at least one sensor into a predetermined data format and transmits the data to the host device. The predetermined data format is set to a common data format regardless of the type of the at least one sensor.
本開示のさらに他の局面に係るホスト装置は、複数のセンサデバイスが接続可能である。ホスト装置は、接続されたセンサデバイスからの情報を所定のデータ形式で取得する制御装置を備える。当該所定のデータ形式は、ホスト装置に接続されるセンサデバイスに含まれるセンサの種類にかかわらず共通のデータ形式に設定される。 A host device according to still another aspect of the present disclosure is connectable to a plurality of sensor devices. The host device has a control device that acquires information in a predetermined data format from the connected sensor device. The predetermined data format is set to a common data format regardless of the type of sensor included in the sensor device connected to the host device.
本開示のさらに他の局面に係る方法は、複数のセンサデバイスが接続可能なホスト装置と、ホスト装置に接続されたセンサデバイスとを含むセンサシステムにおいて情報を伝達する方法に関する。センサデバイスは、少なくとも1つのセンサと、処理装置とを含む。当該方法は、上記少なくとも1つのセンサからの情報を取得するステップと、取得された情報を処理装置において所定のデータ形式に変換するステップと、所定のデータ形式に変換された情報を処理装置からホスト装置に送信するステップとを含む。所定のデータ形式は、ホスト装置に接続されるセンサデバイスに含まれるセンサの種類にかかわらず共通のデータ形式に設定される。 A method according to still another aspect of the present disclosure relates to a method of transmitting information in a sensor system including a host device to which a plurality of sensor devices can be connected, and sensor devices connected to the host device. A sensor device includes at least one sensor and a processor. The method includes the steps of acquiring information from the at least one sensor, converting the acquired information into a predetermined data format in a processing device, and sending the information converted into the predetermined data format from the processing device to a host. and sending to the device. The predetermined data format is set to a common data format regardless of the type of sensor included in the sensor device connected to the host device.
本開示に従うセンサシステムにおいては、センサデバイスとホスト装置との間のデータ形式が、センサデバイスの種類にかかわらず共通の形式に設定される。これにより、異なる種類のセンサデバイスがホスト装置に接続された場合であっても、ホスト装置、あるいはセンサデバイス内のファームウェアを書き換える必要がなくなる。したがって、センサデバイスの追加時に、新たにファームウェアを設定することなくセンサデバイスとホスト装置との間の情報の伝達を可能とすることができる。 In the sensor system according to the present disclosure, the data format between the sensor device and the host device is set to a common format regardless of the type of sensor device. This eliminates the need to rewrite the firmware in the host device or the sensor device even when different types of sensor devices are connected to the host device. Therefore, when adding a sensor device, it is possible to transmit information between the sensor device and the host device without newly setting the firmware.
以下、本開示の実施の形態について、図面を参照しながら詳細に説明する。なお、図中同一または相当部分には同一符号を付してその説明は繰り返さない。 Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. The same or corresponding parts in the drawings are denoted by the same reference numerals, and the description thereof will not be repeated.
[センサステムの全体構成]
図1は、本実施の形態に従うセンサシステム10の全体構成図である。センサシステム10は、センサユニット20,20A(以下、包括的に「センサユニット20」とも称する。)と、サーバ40とを備える。センサユニット20およびサーバ40は、インターネットあるいはLAN(Local Area Network)のようなネットワーク30に無線あるいは有線で接続されており、当該ネットワーク30を介して互いに情報の授受が可能に構成されている。[Overall Configuration of Sensor Stem]
FIG. 1 is an overall configuration diagram of a
センサシステム10においては、概略的には、センサユニット20に含まれるセンサで検出された温度等の検出値がネットワーク30を介してサーバ40に送信される。サーバ40は、センサユニット20から受けたセンサの検出値を記憶するとともに、必要に応じて記憶された検出値を処理する。また、サーバ40は、記憶された検出値を図示しない他の制御装置へ送信する。
Schematically, in the
センサユニット20は、センサデバイス100と、ホスト装置200とを含む。センサデバイス100は、USB規格に準拠したコネクタを用いてホスト装置200に接続することが可能である。センサデバイス100は、図2で詳述するように、少なくとも1つのセンサを含んでいる。センサデバイス100は、内蔵されたセンサの検出値をホスト装置200へ送信する。
ホスト装置200は、センサデバイス100からのセンサの検出値を受ける。ホスト装置200は、たとえばWi-Fiのような無線通信が可能に構成されており、受信したセンサの検出値を当該無線通信を用いて、ネットワーク30に接続された基地局に送信する。
The
センサユニット20Aは、ネットワーク30と有線で接続される場合の例である。また、センサユニット20Aにおいては、複数のセンサデバイス100A,100Bがホスト装置200Aに接続されている。以降の説明において、センサデバイス100,100A,100Bを包括して「センサデバイス100」とも称する。また、ホスト装置200,200Aを包括して「ホスト装置200」とも称する。
The
なお、ホスト装置は必ずしも外部との通信機能を有している必要はなく、たとえば、通信機能のない単独の機器であってもよい。また、センサデバイス100がサーバ40に直接接続される場合には、サーバ40がホスト装置200の機能を兼用する。
Note that the host device does not necessarily have to have a communication function with the outside, and may be, for example, a single device without a communication function. Also, when the
[センサユニットの構成]
(1)センサユニット20
図2は、センサユニット20の詳細を説明するための機能ブロック図である。図2を参照して、上述のように、センサユニット20は、センサデバイス100と、ホスト装置200とを含む。[Configuration of sensor unit]
(1)
FIG. 2 is a functional block diagram for explaining details of the
(センサデバイス)
センサデバイス100は、2つのセンサ110,115と、処理装置120と、USBコネクタ130とを含む。(sensor device)
センサデバイス100に含まれるセンサの種類としては、たとえば、温度、湿度、気圧、加速度、角速度、照度、あるいは環境音などが含まれる。センサ110,115の各々は、検出した物理量に対応する信号を処理装置120に出力する。なお、本実施の形態のセンサデバイス100においては、2つのセンサ110,115が設けられる場合を例として説明するが、センサデバイス100に含まれるセンサの数はこれに限られず、1つあるいは3つ以上のセンサが設けられる場合であってもよい。センサ110の種類とセンサ115の種類は同じであってもよいし、異なっていてもよい。
Types of sensors included in the
処理装置120は、たとえばCPU(Central Processing Unit)を含んで構成されており、予め記憶されたプログラムに従って処理を実行する。処理装置120は、ホスト装置200からの指令に従って、センサ110,115で検出された検出値を取得し、当該検出値を処理してホスト装置200へ出力する。
The
処理装置120は、センサ用ファームウェア121,122、および共通ファームウェア125を含む。センサ用ファームウェア121,122は、それぞれセンサ110,115からの情報を取得するためのソフトウェアである。センサ用ファームウェアは、対応するセンサからの信号を、測定対象の物理量に変換する。たとえば、センサが温度センサである場合、センサ用ファームウェアは、センサから出力される電圧信号に対応した温度の値に変換する。したがって、基本的には、センサ用ファームウェアは対応するセンサ毎に異なる。
共通ファームウェア125は、各センサ用ファームウェアによって変換されたセンサ情報を、所定のデータ形式に変換するためのソフトウェアである。共通ファームウェア125から出力される情報のデータ形式は、センサデバイス間で共通となるように規定されている。したがって、センサデバイスに含まれるセンサの種類が異なっていても、共通のデータ形式でホスト装置200との間で情報を伝達することができる。共通ファームウェア125におけるデータ形式については、図7を用いて後述する。
The
なお、センサデバイス100の処理装置120においては、センサ単体で検出される物理量だけでなく、当該物理量から算出可能な推測量を演算してもよい。物理量から算出可能な推測量の例は、温度と湿度とから演算される不快指数、あるいは、加速度から推測される機器の故障予測などである。
Note that the
USBコネクタ130は、ホスト装置200に設けられたUSBコネクタ210に接続することができる。USBコネクタ130を用いて、センサデバイス100をホスト装置200に接続することによって、センサデバイス100とホスト装置200との間の情報の伝達が可能になる。USBコネクタを用いてホスト装置200とセンサデバイス100とを接続することによって、ホスト装置200を停止することなく、ホスト装置200へのセンサデバイス100の接続および取り外しが可能となる。
The
(ホスト装置)
ホスト装置200は、複数のUSBコネクタ210と、USBハブ220と、処理装置230と、通信回路240とを含む。USBコネクタ210は、USBハブ220に接続されている。USBハブ220は、複数のUSBコネクタ210の各接続ポート(以下、「USBポート」とも称する。)を個別に制御して、各USBコネクタに接続されたセンサデバイスと処理装置230との間で情報を伝達する。(host device)
処理装置230は、通信回路240を介してネットワーク30と接続され、サーバ40との間で情報を伝達する。処理装置230は、サーバ40からの指令に従って、指定されたUSBポートに接続されたセンサデバイス100から、センサの情報を取得する。処理装置230は、センサデバイス100の共通ファームウェア125に対応した共通ファームウェア235を含んでいる。これにより、処理装置230は、各センサデバイスにおいて変換された所定のデータ形式の情報に含まれるセンサ情報を取得することができる。
(2)センサユニット20A
図3を用いて、ホスト装置の異なるUSBポートの各々にセンサデバイスが接続されるセンサユニット20Aの例について説明する。図3を参照して、センサユニット20Aは、2つのセンサデバイス100A,100Bと、ホスト装置200Aとを含む。なお、ホスト装置200Aは、図2におけるホスト装置200と同じ構成を有しているため、詳細な説明は繰り返さない。(2)
An example of a
センサデバイス100Aは、センサ110と、処理装置120Aと、USBコネクタ130とを含む。また、センサデバイス100Bは、センサ115と、処理装置120Bと、USBコネクタ130とを含む。
センサデバイス100Aの処理装置120Aは、センサ110に対応したセンサ用ファームウェア121と、共通ファームウェア125とを含む。処理装置120Aは、センサ110Aからの信号を、センサ用ファームウェア121および共通ファームウェア125により第1データ形式に変換して、ホスト装置200Aに情報を伝達する。
The
センサデバイス100Bの処理装置120Bは、センサ115に対応したセンサ用ファームウェア122と、共通ファームウェア125とを含む。処理装置120Bは、センサ110Bからの信号を、センサ用ファームウェア122および共通ファームウェア125により第2データ形式に変換して、ホスト装置200Aに情報を伝達する。
The
上述のように、共通ファームウェア125は、各センサ用ファームウェアからのセンサ情報を共通のデータ形式に変換するソフトウェアである。すなわち、センサデバイス100Aから出力される第1データ形式と、センサデバイス100Bから出力される第2データ形式とは、共通のデータ形式である。
As described above, the
このように、本実施の形態のセンサユニットにおいては、センサデバイスに含まれるセンサの種類にかかわらず共通のデータ形式を用いて、センサデバイスとホスト装置との間で通信が行なわれる。これにより、ホスト装置側にセンサ用ファームウェアを有していなくても、異なる種類のセンサの情報を正しく取得することができる。 Thus, in the sensor unit of the present embodiment, communication is performed between the sensor device and the host device using a common data format regardless of the type of sensor included in the sensor device. Thus, even if the host device does not have firmware for sensors, it is possible to correctly acquire information on sensors of different types.
なお、ホスト装置200とサーバ40との間についても、共通ファームウェアで用いられるデータ形式で情報が伝達される。
Information is also transmitted between the
(比較例との対比)
図4は、比較例におけるセンサユニット20#の機能ブロック図である。比較例のセンサユニット20#のセンサデバイス100#1,100#2においては、実施の形態のセンサユニット20のような処理装置120が含まれておらず、センサ110,115の各々がUSBコネクタ130に直接接続されている。そのため、各センサに対応するセンサ用ファームウェア231,232は、ホスト装置200#の処理装置230#に含まれている。(Comparison with Comparative Example)
FIG. 4 is a functional block diagram of
比較例のセンサユニット20#においては、各センサデバイス100#1,100#2で検出された信号は、ホスト装置200#の処理装置230#で測定対象の物理量に変換される。そのため、新たな種類のセンサが内蔵されたセンサデバイスをホスト装置200#に接続して使用する場合には、追加されるセンサに対応するセンサ用ファームウェアを、ホスト装置200#の処理装置230#に追加的にインストールする作業が必要となる。
In
一方で、本実施の形態のセンサユニット20においては、各センサに対応したセンサ用ファームウェアは、センサデバイス100の処理装置120に含まれており、センサデバイス100とホスト装置200との間は、センサの種類に依存しない共通のデータ形式を用いて情報が伝達される。そのため、新たな種類のセンサを含むセンサデバイスがホスト装置200に接続された場合であっても、追加されるセンサに対応したセンサ用ファームウェアをホスト装置200側にインストールすることなく、センサデバイスからセンサ情報を取得することができる。
On the other hand, in the
[通信プロトコル]
次に、図5~図7を用いて、共通ファームウェアを用いたデータ形式による通信プロトコルについて説明する。[Communication protocol]
Next, a communication protocol based on a data format using common firmware will be described with reference to FIGS. 5 to 7. FIG.
(センサID)
図5は、センサデバイス100に含まれるセンサを定義するためのセンサID定義リストの一例を示す図である。上述のように、センサデバイス100には、1つ以上のセンサが含まれている。そのため、ホスト装置200においては、接続されたセンサデバイス100に含まれるセンサの種類を知る必要がある。(Sensor ID)
FIG. 5 is a diagram showing an example of a sensor ID definition list for defining sensors included in the
図5の例においては、センサデバイス100に含まれるセンサタイプに応じたセンサIDが定義されている。たとえば、図5の例では、温度センサのIDは「AA」、湿度センサのIDは「BB」、照度センサのIDは「CC」、加速度センサのIDは「DD」のように定義される。センサタイプに対応するIDは、予め定められており、サーバ40、およびセンサデバイス100間で共有されている。
In the example of FIG. 5, sensor IDs are defined according to sensor types included in the
また、センサデバイス100に複数のセンサが含まれる場合には、上記のIDの組み合わせとしてセンサIDが定義される。たとえば、2つの温度センサを含むセンサデバイスの場合には、センサIDは「AAAA」と定義される。温度センサと湿度センサとを含むセンサデバイスの場合には、センサIDは「AABB」と定義される。さらに、温度センサと湿度センサと照度センサの3つのセンサを含むセンサデバイスの場合には、センサIDは「AABBCC」と定義される。
Moreover, when the
このセンサIDは、センサデバイス100がホスト装置200に接続された際に、センサデバイス100からホスト装置200およびサーバ40に伝達される。サーバ40およびホスト装置200は、ホスト装置200の各ポートと、それに接続されているセンサデバイス100のセンサIDとを関連付けた「センサIDリスト」(接続情報)を記憶する。この「センサIDリスト」によって、サーバ40およびホスト装置200は、当該ホスト装置200の各USBポートに接続されたセンサデバイス100に含まれるセンサの種類を把握することができる。サーバ40は、当該「センサIDリスト」に基づいて、データを取得すべきセンサを特定し、対応するホスト装置200に指令を出力することによって、所望のセンサの検出値を取得する。
This sensor ID is transmitted from the
センサデバイス100がホスト装置200に新たに接続された場合、および、センサデバイスがホスト装置200から取り外された場合には、サーバ40およびホスト装置200において「センサIDリスト」が更新される。
When the
なお、図5で示したセンサIDは一例であり、個々のセンサを識別できれば、上記以外の形式でセンサIDを定義してもよい。 Note that the sensor ID shown in FIG. 5 is an example, and the sensor ID may be defined in a format other than the above as long as each sensor can be identified.
(コマンド)
図6は、ホスト装置200とセンサデバイス100との間の情報伝達で用いられる指令(コマンド)の一例である。本実施の形態においては、コマンドとして、「dev」コマンド、「read」コマンド、「write」コマンド、「observe」コマンド、および「cancel」コマンドが含まれる。(command)
FIG. 6 shows an example of instructions (commands) used in information transmission between the
「dev」コマンドは、センサデバイス100のセンサIDを取得するためのコマンドである。ホスト装置200において、USBポートにセンサデバイス100が接続されたことが検出されると、ホスト装置200は当該センサデバイス100に対して「dev」コマンドを送信する。センサデバイス100は、ホスト装置200からの「dev」コマンドを受信すると、自身のセンサIDをホスト装置200へ返信する。ホスト装置200は、受信したセンサIDに基づいてセンサIDリストを更新して記憶するとともに、更新したセンサIDリストをサーバ40へ送信する。
A “dev” command is a command for acquiring the sensor ID of the
「read」コマンドは、センサデバイス100における各センサの検出値を取得するためのコマンドである。ホスト装置200は、センサIDリストに基づいて、サーバ40から指定されたポートのセンサデバイス100に対して「read」コマンドを送信する。「read」コマンドには、センサIDが含まれている。センサデバイス100は、ホスト装置200からの「read」コマンドに含まれるセンサIDが自身のセンサIDと一致した場合には、各センサの検出値をホスト装置200へ返信する。たとえば、図5のようにセンサIDが定義される場合、センサIDが「AABB」のときには、センサデバイス100は、温度、湿度の順で検出値を記述したデータをホスト装置200へ返信する。
A “read” command is a command for acquiring the detection value of each sensor in the
「write」コマンドは、指定されたセンサデバイス100に所定の値を設定する(書き込む)ためのコマンドである。センサデバイス100においては、設定された値に応じてセンサデバイス100の状態を変化させる。たとえば、センサデバイス100におけるLEDの点灯/消灯を制御するような場合に、ホスト装置200は、対象のセンサデバイス100に対して「write」コマンドを送信する。センサデバイス100においては、「write」コマンドに設定された値に対応するLEDを点灯(あるいは消灯)させる。
The “write” command is a command for setting (writing) a predetermined value in the designated
「observe」コマンドは、指定されたポートのセンサデバイス100に対して、定期的に検出値を通知させるためのコマンドである。また、「cancel」コマンドは、「observe」コマンドで設定した定期的な検出値の通知を停止させるためのコマンドである。センサデバイス100は、ホスト装置200から「observe」コマンドを受信すると、「cancel」コマンドを受信するまで、予め定められたインターバル時間毎に、センサデバイス100に含まれるセンサの検出値をホスト装置200へ送信する。センサデバイス100は、「cancel」コマンドを受信すると、センサの検出値の定期的な通知を停止する。
The "observe" command is a command for periodically notifying the
(データフォーマット)
図7は、センサデバイス100とホスト装置200との間の情報伝達で用いられるデータフォーマットを説明するための図である。図7(a)は、本実施の形態の共通ファームウェアで用いられるデータフォーマットを示しており、図7(b)は比較例で用いられるデータフォーマットを示している。(data format)
FIG. 7 is a diagram for explaining a data format used for information transmission between the
図7(a)を参照して、共通ファームウェアで用いられるデータフォーマットには、コマンドID(id)、コマンド名(cmd)、受信側の状態(sts)、センサID(req/res)、および、センサ検出値(val)が含まれる。 Referring to FIG. 7(a), the data format used in the common firmware includes command ID (id), command name (cmd), receiver status (sts), sensor ID (req/res), and A sensor detection value (val) is included.
コマンドID(id)は、コマンドを特定するための情報であり、たとえば、「0001」,「abcd」などの任意の文字列で表現される。コマンドIDは各コマンドに対してユニークに設定され、ホスト装置200からセンサデバイス100に出力されるコマンドと、それに対するセンサデバイス100からの応答が、当該コマンドIDにより紐付けられる。
A command ID (id) is information for specifying a command, and is represented by an arbitrary character string such as "0001" or "abcd". A command ID is uniquely set for each command, and a command output from the
コマンド名(cmd)は、ホスト装置200からセンサデバイス100に対する指示を示す情報であり、具体的には図6で示したコマンドが設定される。
The command name (cmd) is information indicating an instruction from the
受信側の状態(sts)は、ホスト装置200からの指令に対するセンサデバイス100の応答に含まれる情報であり、センサデバイス100の状態を示す情報である。たとえば、「dev」コマンドまたは「read」コマンドに対する応答においては、ホスト装置200からの指令が正しく受信できたことを示す情報(たとえば、「ok」の文字列)が設定される。なお、ホスト装置200からの指令に誤りがあるような場合(たとえば、センサIDの不一致)には、「ng」の文字列が設定される。また、「observe」コマンドに対して、センサデバイス100からホスト装置200へ定期的にセンサ検出値を通知する場合には、通知情報であることを示す「notify」の文字列が設定される。
The state of the receiving side (sts) is information included in the response of the
センサID(req/res)は、対象となるセンサを特定するための情報であり、具体的には、図5で示したセンサIDの情報が設定される。また、センサデバイス100に同一のセンサIDを有する複数のセンサが含まれる場合には、センサIDに加えて、対象となるセンサのチャンネル番号が設定されてもよい。たとえば、センサデバイス100に温度センサ(チャンネル1)と温度センサ(チャンネル2)が含まれる場合に、チャンネル2の温度センサの値を取得したいときには、センサIDの「AA」とチャンネル番号「2」を組み合わせた「AA2」のような文字列が設定される。なお、「req」はホスト装置200からセンサデバイス100に対する要求の際に使用され、「res」はセンサデバイス100からホスト装置200への応答の際に使用される。
The sensor ID (req/res) is information for specifying the target sensor, and specifically, the sensor ID information shown in FIG. 5 is set. Further, when the
別の例として、「read」コマンドにおいて、「AA1CC」の文字列が設定された場合には、2つの温度センサ(チャンネル1,チャンネル2)と照度センサの3つのセンサが含まれるセンサデバイスにおいて、チャンネル1の温度センサおよび照度センサのデータを要求していることを示している。チャンネル番号が設定されていない場合には、すべてのチャンネルのセンサのデータを取得することを意味する。
As another example, when the character string "AA1CC" is set in the "read" command, a sensor device including three sensors, two temperature sensors (
センサ検出値(val)には、センサID(res)で指定されたセンサに対応する検出値のデータを示す文字列が設定される。センサ検出値(val)の情報は、検出値(数値)を表わす文字列の羅列で示されるが、上記のセンサID(res)の情報と組み合わせることによって、当該文字列が、どのセンサの検出値を示しているかを特定することができる。たとえば、センサ検出値(val)に「20.1,60.3」が設定され、センサID(res)に「AABBCC12」が設定されている場合には、温度センサの検出値が20.1℃であり、湿度センサの検出値が60.3%であると特定することができる。 The sensor detection value (val) is set with a character string indicating the data of the detection value corresponding to the sensor specified by the sensor ID (res). The information of the sensor detection value (val) is indicated by a list of character strings representing the detection value (numerical value). can be identified. For example, if the sensor detection value (val) is set to "20.1, 60.3" and the sensor ID (res) is set to "AABBCC12", the temperature sensor detection value is 20.1°C. and the detected value of the humidity sensor can be identified as 60.3%.
一方、図7(b)の比較例におけるデータフォーマットにおいては、コマンドID(id)、コマンド名(cmd)、および受信側の状態(sts)の情報に加えて、センサ検出値を格納する領域として(val1)~(val4)が設定されている。すなわち、比較例のデータフォーマットにおいては、伝達可能なセンサ検出値の数が限定されている。そのため、たとえば、5つのセンサを含むセンサデバイス100が接続された場合には、すべてのセンサの検出値を伝達することができない。
On the other hand, in the data format in the comparative example of FIG. (val1) to (val4) are set. That is, in the data format of the comparative example, the number of transmittable sensor detection values is limited. Therefore, for example, when a
これに対して、実施の形態のデータフォーマットにおいては、センサ検出値を格納する領域(val)は1つであり、当該領域に含まれる検出値とセンサとの対応はセンサIDの情報で指定される。これにより、センサ検出値を格納する領域を超えない文字列の範囲であれば、センサデバイス100に含まれるセンサの数が5以上であっても、検出値を伝達することが可能となる。
On the other hand, in the data format of the embodiment, there is one area (val) for storing sensor detection values, and the correspondence between detection values and sensors included in the area is specified by sensor ID information. be. As a result, even if the number of sensors included in the
以下に、ホスト装置200からの「read」コマンドと、それに対するセンサデバイス100の応答の例を示す。なお、各行の「セミコロン(;)」よりも右側の記載は、各行の内容の説明である。
An example of the "read" command from the
<ホスト装置からの指令>
{
”id”:”0001”, ;コマンドID「0001」
”cmd”:”read”, ;コマンド名「read」(読出し)
”req”:”AABB” ;センサID「AABB」(温度+湿度)
}<Command from host device>
{
”id”:”0001”, ; Command ID “0001”
”cmd”:”read”, ; command name “read” (reading)
”req”:”AABB” ; Sensor ID “AABB” (Temperature + Humidity)
}
<センサデバイスからの応答>
{
”id”:”0001”, ;コマンドID「0001」
”sts”:”ok”, ;受信側情報「ok」(正常受信)
”res”:”AABB”, ;センサID「AABB」(温度+湿度)
”val”:”20.1, 60.3” ;検出値「20.1℃,60.3%」
}<Response from sensor device>
{
”id”:”0001”, ; Command ID “0001”
”sts”:”ok”, ; Receiver information “ok” (normal reception)
”res”:”AABB”, ; Sensor ID “AABB” (Temperature + Humidity)
``val'': ``20.1, 60.3''; detected value ``20.1°C, 60.3%''
}
また、以下に、ホスト装置200からの「observe」コマンドに対する、センサデバイス100からの定期的な検出値の通知の例を示す。
An example of periodic detection value notification from the
<センサデバイスからの通知>
{
”sts”:”notify”, ;受信側状態「notify」(通知)
”res”:”AABB1”, ;センサID「AABB1」(温度+湿度,温度のみ)
”val”:”27.2” ;検出値「27.2℃」
}<Notification from sensor device>
{
”sts”:”notify”, ; receiver state “notify” (notify)
”res”:”AABB1”, ; Sensor ID “AABB1” (temperature + humidity, temperature only)
”val”:”27.2”; Detected value “27.2°C”
}
[各コマンドにおける処理]
図8~図11を用いて、各コマンドにおいて、サーバ40、センサデバイス100、およびホスト装置200で実行される処理の詳細について説明する。[Processing in each command]
Details of the processing executed by the
(devコマンド)
図8は、「dev」コマンドの場合のフローチャートである。図8を参照して、ホスト装置200は、ステップ(以下、ステップを「S」と略す。)20にて、USBポートにセンサデバイス100が接続されたことを検出すると、S22にて、接続されたセンサデバイス100に対して「dev]コマンドを送信する。センサデバイス100は、ホスト装置200から「dev」コマンドを受信すると(S30)、それに応答して、当該センサデバイス100のセンサIDをホスト装置200へ返信する(S32)。(dev command)
FIG. 8 is a flow chart for the "dev" command. Referring to FIG. 8, when
ホスト装置200は、センサデバイス100からセンサIDを取得すると(S24)、S26にて、取得したセンサIDに基づいて、センサIDリストを作成する。センサIDリストにおいては、センサデバイス100が接続されたUSBポートとセンサIDとが関連付けられる。なお、センサIDリストには、ホスト装置200の他のUSBポートに接続されたセンサデバイスについての情報も含まれ得る。
After acquiring the sensor ID from the sensor device 100 (S24), the
その後、ホスト装置200は、S28にて、作成したセンサIDリストと接続されたUSBポートの情報とをサーバ40へ送信する。サーバ40においては、ホスト装置200からセンサIDリストを受信すると、既存のセンサIDリストを更新する。なお、サーバ40におけるセンサIDリストには、サーバ40と通信可能なホスト装置200以外のホスト装置の情報も含まれ得る。
After that, the
なお、図8には示されていないが、ホスト装置からセンサデバイスが取り外された場合には、ホスト装置に記憶されているセンサIDリストから、該当するUSBポートについてのセンサIDが削除されて、サーバ40へ送信される。
Although not shown in FIG. 8, when the sensor device is removed from the host device, the sensor ID for the corresponding USB port is deleted from the sensor ID list stored in the host device. It is sent to the
以上のような処理に従って、サーバ、ホスト装置、およびセンサデバイスが制御されることによって、ホスト装置にセンサデバイスが新たに接続された場合に、「dev」コマンドを用いてセンサデバイスの情報を取得することができる。これにより、ホスト装置およびサーバにおいて、接続されたセンサデバイスに含まれるセンサを認識することができる。 By controlling the server, the host device, and the sensor device according to the processing described above, when a sensor device is newly connected to the host device, information on the sensor device is acquired using the "dev" command. be able to. This allows the host device and the server to recognize the sensors included in the connected sensor devices.
(readコマンド)
図9は、「read」コマンドの場合のフローチャートである。図9を参照して、サーバ40は、センサデバイス100に含まれるセンサの検出値を読出す場合、サーバ40に記憶されたセンサIDリストに従って、対象となるホスト装置200に対して、対象のUSBポートを指定して「read」コマンドを送信する(S40)。(read command)
FIG. 9 is a flow chart for the "read" command. Referring to FIG. 9 , when reading the detection value of the sensor included in
ホスト装置200は、サーバ40から送信された「read」コマンドを受信すると(S50)、指定されたUSBポートに接続されたセンサデバイス100に対して、受信した「read」コマンドを転送する(S52)。
When the
センサデバイス100は、ホスト装置200から転送された「read」コマンドを受信すると(S60)、コマンドに記載されているセンサIDに従って、対象のセンサの検出値を取得する(S62)。そして、センサデバイス100は、S64にて、共通ファームウェア125において、図7で説明した共通のデータフォーマットに従って、返信すべき情報を編集する(S64)。その後、編集されたデータをホスト装置200へ送信する(S66)。
When the
ホスト装置200は、センサデバイス100から送信された、センサの検出値を含むデータを受信し、さらに当該データにUSBポートの情報を付加して、サーバ40へ送信する(S54)。サーバ40は、S42にて、センサデバイス100から送信されたデータを受信する。サーバ40は、受信されたデータから所望のセンサの検出値を抽出して記憶する。サーバ40は、記憶された検出値を、図示しない表示装置に表示したり、他の制御装置へさらに伝達したりする。
The
以上のような処理に従って制御が行なわれることによって、サーバは、所望のセンサの検出値を取得することができる。 By performing control according to the processing as described above, the server can acquire the detection value of the desired sensor.
(writeコマンド)
図10は、「write」コマンドの場合のフローチャートである。図10を参照して、サーバ40は、特定のセンサデバイス100に対して、LEDを点灯させたり、特定のデータを書き込んだりする場合に、センサIDリストに従って、ホスト装置200に対して「write」コマンドを送信する(S70)。このとき、サーバ40は、ホスト装置200において対象となるUSBポートを指定する。(write command)
FIG. 10 is a flow chart for the "write" command. Referring to FIG. 10 , when
ホスト装置200は、サーバ40から「write」コマンドを受信すると(S80)、指定されたUSBポートに接続されたセンサデバイス100に対して、受信した「write」コマンドを転送する(S82)。
When the
センサデバイス100は、ホスト装置200から転送された「write」コマンドを受信すると(S90)、コマンドに記載されているセンサIDに従って、対象のセンサに対して指定されたデータを書き込む(S92)。
When the
以上のような処理に従って制御が行なわれることによって、所望のセンサに対してサーバからデータを書き込むことができる。 Data can be written from the server to a desired sensor by performing control according to the above processing.
(observe/cancelコマンド)
図11は「observe」コマンドおよび「cancel」コマンドの場合のフローチャートである。図11を参照して、サーバ40は、特定のセンサの検出値を定期的に取得する場合、サーバ40に記憶されたセンサIDリストに従って、対象となるホスト装置200に対して「observe」コマンドを送信する(S100)。このとき、サーバ40は、ホスト装置200において対象となるUSBポートを指定する。(observe/cancel command)
FIG. 11 is a flow chart for the "observe" command and the "cancel" command. Referring to FIG. 11,
ホスト装置200は、サーバ40から「observe」コマンドを受信すると(S200)、指定されたUSBポートに接続されたセンサデバイス100に対して、受信した「observe」コマンドを転送する(S210)。
When the
センサデバイス100は、ホスト装置200から転送された「observe」コマンドを受信すると(S300)、コマンドに記載されているセンサIDに従って、対象のセンサの検出値を取得する(S310)。そして、センサデバイス100は、S320にて、共通ファームウェア125において、共通のデータフォーマットに従って、返信すべき情報を編集する(S320)。その後、編集されたデータをホスト装置200へ送信する(S330)。
When the
ホスト装置200は、センサデバイス100から送信された、センサ情報を受信し、さらに当該データにUSBポートの情報を付加して、サーバ40へ送信する(S220)。サーバ40は、センサデバイス100から送信されたデータを受信して記憶する(S110)。
The
サーバ40は、S120において、ユーザから、該当するセンサに対して、センサ検出値の定期的な読出しの停止が指示されたか否か(すなわち、キャンセル指示の有無)を判定する。ユーザからのキャンセル指示がない場合(S120にてNO)は、処理がS110に戻されて、サーバ40は、ホスト装置200から定期的に通知されるセンサ情報の受信/記憶を継続する。
In S<b>120 , the
センサデバイス100は、ホスト装置200へのデータ送信が完了すると、S340に処理を進めて、ホスト装置200を経由してサーバ40から「cancel」コマンドを受信したか否かを判定する。サーバ40から送信された「cancel」コマンドを受信していない場合(S340にてNO)は、処理がS350に進められて、センサデバイス100は、次に、所定のインターバル時間が経過したか否かを判定する。
When the data transmission to the
所定のインターバル時間が経過していない場合(S350にてNO)は、処理がS340に戻されて、「cancel」コマンドの受信の有無を判定するとともに、所定のインターバル時間が経過するのを待つ。そして、所定のインターバル時間が経過すると(S350にてYES)、処理がS310に戻されて、センサデバイス100は、指定されたセンサの検出値を取得し、共通のデータフォーマットに編集して(S320)、センサ情報をホスト装置200へ送信する(S330)。すなわち、「cancel」コマンドが受信されていない状態では、センサデバイス100は、所定のインターバル時間が経過する毎に、指定されたセンサの検出値を取得して、取得したセンサ情報を共通のデータフォーマットでホスト装置200へ送信する。
If the predetermined interval time has not elapsed (NO at S350), the process returns to S340 to determine whether or not the "cancel" command has been received, and waits for the predetermined interval time to elapse. Then, when the predetermined interval time elapses (YES in S350), the process returns to S310, and the
一方、ユーザからのキャンセル指示があった場合(S120にてYES)は、サーバ40において処理がS130に進められて、サーバ40は、対象のセンサのUSBポートを指定しつつ、ホスト装置200に「cancel」コマンドを送信する。
On the other hand, if there is a cancel instruction from the user (YES in S120), the process proceeds to S130 in
ホスト装置200は、サーバ40から「cancel」コマンドを受信すると(S230)、指定されたUSBポートのセンサデバイスに対して、受信した「cancel」コマンドを転送する(S240)。
When the
センサデバイス100においては、サーバ40から送信された「cancel」コマンドを受信した場合(S340にてYES)は、ステップS350をスキップして処理を終了する。これによって、センサデバイス100からの定期的なセンサ情報の通知が停止される。
When
以上のような処理に従って、サーバ、ホスト装置、およびセンサデバイスが制御されることによって、サーバおよびホスト装置は、所望のセンサからのセンサ情報を定期的に取得することが可能となる。 By controlling the server, the host device, and the sensor device according to the processing described above, the server and the host device can periodically acquire sensor information from desired sensors.
なお、上記の説明においては、センサデバイスとホスト装置との間の接続に、USB規格に準拠したコネクタを用いる場合、特にUSB type-Aのコネクタを使用する場合を例として説明したが、使用するコネクタはこれに限られず、他のタイプ(type-B,C、あるいは、mini/micro)のUSBコネクタを用いてもよいし、USBコネクタ以外のコネクタを用いてもよい。 In the above explanation, the case where a connector conforming to the USB standard is used for connection between the sensor device and the host device, and in particular the case where a connector of USB type-A is used is explained as an example. The connector is not limited to this, and a USB connector of another type (type-B, C, or mini/micro) may be used, or a connector other than the USB connector may be used.
今回開示された実施の形態は、すべての点で例示であって制限的なものではないと考えられるべきである。本開示の範囲は、上記した実施の形態の説明ではなくて請求の範囲によって示され、請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 The embodiments disclosed this time should be considered as examples and not restrictive in all respects. The scope of the present disclosure is indicated by the scope of the claims rather than the description of the above-described embodiments, and is intended to include all modifications within the meaning and scope equivalent to the scope of the claims.
10 センサシステム、20,20A センサユニット、30 ネットワーク、40 サーバ、100,100A,100B センサデバイス、110,115 センサ、120,230 処理装置、121,122,231,232 センサ用ファームウェア、125,235 共通ファームウェア、130,210 USBコネクタ、200,200A ホスト装置、220 USBハブ、240 通信回路。 10 sensor system, 20, 20A sensor unit, 30 network, 40 server, 100, 100A, 100B sensor device, 110, 115 sensor, 120, 230 processor, 121, 122, 231, 232 firmware for sensor, 125, 235 common Firmware, 130, 210 USB connector, 200, 200A host device, 220 USB hub, 240 communication circuit.
Claims (13)
前記ホスト装置に接続された少なくとも1つのセンサデバイスとを備え、
前記ホスト装置と前記少なくとも1つのセンサデバイスとは、所定のデータ形式で情報の伝達を行ない、
前記所定のデータ形式は、前記ホスト装置に接続されるセンサデバイスに含まれるセンサの種類にかかわらず共通のデータ形式に設定され、
前記共通のデータ形式は、コマンドID、コマンド名、受信側の状態、センサID、および、センサ検出値を含み、
前記ホスト装置と前記少なくとも1つのセンサデバイスとは、USB(Universal Serial Bus)規格のコネクタを用いて接続される、センサシステム。 a host device to which multiple sensor devices can be connected;
at least one sensor device connected to the host device;
the host device and the at least one sensor device communicate information in a predetermined data format,
the predetermined data format is set to a common data format regardless of the type of sensor included in the sensor device connected to the host device;
The common data format includes a command ID, command name, receiver status, sensor ID, and sensor detection value;
The sensor system, wherein the host device and the at least one sensor device are connected using a USB (Universal Serial Bus) standard connector.
第1センサを有し、前記ホスト装置と第1データ形式で情報の伝達を行なう第1センサデバイスと、
前記第1センサとは異なる種類の第2センサを有し、前記ホスト装置と第2データ形式で情報の伝達を行なう第2センサデバイスとを含み、
前記第1データ形式および前記第2データ形式は前記共通のデータ形式である、請求項1に記載のセンサシステム。 the at least one sensor device comprising:
a first sensor device having a first sensor and communicating with the host device in a first data format;
a second sensor device having a second sensor of a type different from the first sensor and communicating information in a second data format with the host device;
2. The sensor system of claim 1, wherein said first data format and said second data format are said common data format.
少なくとも1つのセンサと、
前記少なくとも1つのセンサからの情報を処理する処理装置とを含み、
前記処理装置は、
前記少なくとも1つのセンサから取得した情報を取得するためのセンサ用ファームウェアと、
前記センサ用ファームウェアから取得した情報を前記所定のデータ形式に変換するための共通ファームウェアとを有する、請求項1または2に記載のセンサシステム。 the at least one sensor device comprising:
at least one sensor;
a processor for processing information from the at least one sensor;
The processing device is
sensor firmware for obtaining information obtained from the at least one sensor;
3. The sensor system according to claim 1, further comprising common firmware for converting information acquired from said sensor firmware into said predetermined data format.
前記ホスト装置は、前記サーバから指定された接続ポートに接続されたセンサデバイスから情報を取得して、前記サーバに送信する、請求項1~3のいずれか1項に記載のセンサシステム。 further comprising a server configured to communicate with the host device,
4. The sensor system according to any one of claims 1 to 3, wherein said host device acquires information from a sensor device connected to a connection port specified by said server and transmits the information to said server.
前記共通のデータ形式に含まれる前記センサIDには、前記チャンネル番号の情報が含まれる、請求項1~5のいずれか1項に記載のセンサシステム。The sensor system according to any one of claims 1 to 5, wherein said sensor ID included in said common data format includes said channel number information.
少なくとも1つのセンサと、
前記少なくとも1つのセンサからの情報を処理する処理装置と、
前記ホスト装置と接続するためのUSB規格のコネクタとを備え、
前記処理装置は、前記少なくとも1つのセンサからの情報を所定のデータ形式に変換して前記ホスト装置に送信し、
前記所定のデータ形式は、前記少なくとも1つのセンサの種類にかかわらず共通のデータ形式に設定され、
前記共通のデータ形式は、コマンドID、コマンド名、受信側の状態、センサID、および、センサ検出値を含む、センサデバイス。 A sensor device connectable to a host device,
at least one sensor;
a processor for processing information from the at least one sensor;
A USB standard connector for connecting with the host device,
The processing device converts information from the at least one sensor into a predetermined data format and transmits the information to the host device;
the predetermined data format is set to a common data format regardless of the type of the at least one sensor ;
The sensor device, wherein the common data format includes command ID, command name, receiver status, sensor ID, and sensor detection value .
各センサデバイスと接続するためのUSB規格のコネクタと、
接続されたセンサデバイスからの情報を所定のデータ形式で取得する制御装置とを備え、
前記所定のデータ形式は、前記ホスト装置に接続されるセンサデバイスに含まれるセンサの種類にかかわらず共通のデータ形式に設定され、
前記共通のデータ形式は、コマンドID、コマンド名、受信側の状態、センサID、および、センサ検出値を含む、ホスト装置。 A host device to which a plurality of sensor devices can be connected,
a USB standard connector for connecting with each sensor device;
a control device that acquires information from the connected sensor device in a predetermined data format,
the predetermined data format is set to a common data format regardless of the type of sensor included in the sensor device connected to the host device ;
The host device , wherein the common data format includes command ID, command name, receiver status, sensor ID, and sensor detection value .
第1センサを有し、前記ホスト装置と第1データ形式で情報の伝達を行なう第1センサデバイスと、
前記第1センサとは異なる種類の第2センサを有し、前記ホスト装置と第2データ形式で情報の伝達を行なう第2センサデバイスとを含み、
前記第1データ形式および前記第2データ形式は前記共通のデータ形式である、請求項8に記載のホスト装置。 The plurality of sensor devices are
a first sensor device having a first sensor and communicating with the host device in a first data format;
a second sensor device having a second sensor of a type different from the first sensor and communicating information in a second data format with the host device;
9. The host device of claim 8 , wherein said first data format and said second data format are said common data format.
前記センサデバイスは、少なくとも1つのセンサと、処理装置とを含み、
前記ホスト装置と各センサデバイスとは、USB規格のコネクタにより接続され、
前記方法は、
前記少なくとも1つのセンサからの情報を取得するステップと、
前記取得された情報を、前記処理装置において所定のデータ形式に変換するステップと、
前記所定のデータ形式に変換された情報を、前記処理装置から前記ホスト装置に送信するステップとを含み、
前記所定のデータ形式は、前記ホスト装置に接続されるセンサデバイスに含まれるセンサの種類にかかわらず共通のデータ形式に設定され、
前記共通のデータ形式は、コマンドID、コマンド名、受信側の状態、センサID、および、センサ検出値を含む、方法。 A method for transmitting information in a sensor system including a host device to which a plurality of sensor devices can be connected and the sensor devices connected to the host device,
the sensor device includes at least one sensor and a processor;
The host device and each sensor device are connected by a USB standard connector,
The method includes:
obtaining information from the at least one sensor;
a step of converting the acquired information into a predetermined data format in the processing device;
transmitting the information converted into the predetermined data format from the processing device to the host device;
the predetermined data format is set to a common data format regardless of the type of sensor included in the sensor device connected to the host device ;
The method , wherein the common data format includes command ID, command name, receiver status, sensor ID, and sensor detection value .
前記指令に応答して、前記センサ情報を前記ホスト装置に送信するステップとをさらに含む、請求項10に記載の方法。 a step of, when a sensor device is connected to a connection port of the host device, sending a command from the host device to the sensor device to send sensor information relating to the type of sensor included in the sensor device; ,
11. The method of claim 10 , further comprising transmitting said sensor information to said host device in response to said command.
前記方法は、
前記接続ポートにセンサデバイスが接続された場合および前記接続ポートからセンサデバイス取り外された場合に、前記ホスト装置における各接続ポートの接続状態を示す接続情報を更新するステップと、
前記接続情報を、前記ホスト装置から前記サーバに送信するステップとをさらに含む、請求項11に記載の方法。 The host device is configured to be able to communicate with a server,
The method includes:
updating connection information indicating the connection status of each connection port in the host device when a sensor device is connected to the connection port and when the sensor device is removed from the connection port;
12. The method of claim 11 , further comprising transmitting said connection information from said host device to said server.
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019206011 | 2019-11-14 | ||
| JP2019206011 | 2019-11-14 | ||
| PCT/JP2020/041342 WO2021095632A1 (en) | 2019-11-14 | 2020-11-05 | Sensor system, sensor device and host device used for same, and information delivery method in sensor system |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JPWO2021095632A1 JPWO2021095632A1 (en) | 2021-05-20 |
| JPWO2021095632A5 JPWO2021095632A5 (en) | 2022-05-09 |
| JP7264274B2 true JP7264274B2 (en) | 2023-04-25 |
Family
ID=75912900
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021556054A Active JP7264274B2 (en) | 2019-11-14 | 2020-11-05 | Sensor system, sensor device and host device used therein, and information transmission method in sensor system |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP7264274B2 (en) |
| WO (1) | WO2021095632A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102547524B1 (en) * | 2021-08-17 | 2023-06-27 | (주)자스텍엠 | Seamless positioning calculation device for data safety and data reliability |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005309744A (en) | 2004-04-21 | 2005-11-04 | Yokohama Tlo Co Ltd | Sensor control system and general input/output controller |
| JP2008041086A (en) | 2006-07-14 | 2008-02-21 | Katsuya Honda | Interface device, interface method, program, storage medium and information collection system |
| JP2009294814A (en) | 2008-06-04 | 2009-12-17 | Junya Hori | Sensor information collection system |
| JP2013186552A (en) | 2012-03-06 | 2013-09-19 | Seiko Epson Corp | Signal converter, and signal transmission system |
-
2020
- 2020-11-05 WO PCT/JP2020/041342 patent/WO2021095632A1/en not_active Ceased
- 2020-11-05 JP JP2021556054A patent/JP7264274B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005309744A (en) | 2004-04-21 | 2005-11-04 | Yokohama Tlo Co Ltd | Sensor control system and general input/output controller |
| JP2008041086A (en) | 2006-07-14 | 2008-02-21 | Katsuya Honda | Interface device, interface method, program, storage medium and information collection system |
| JP2009294814A (en) | 2008-06-04 | 2009-12-17 | Junya Hori | Sensor information collection system |
| JP2013186552A (en) | 2012-03-06 | 2013-09-19 | Seiko Epson Corp | Signal converter, and signal transmission system |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2021095632A1 (en) | 2021-05-20 |
| JPWO2021095632A1 (en) | 2021-05-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4035235B2 (en) | Electronics | |
| EP1134937A1 (en) | Information communication system, information communication method, information signal processing device and information signal processing method, and storage medium | |
| JP2006302250A (en) | PCI-Express communication system | |
| JPWO2010116488A1 (en) | Communication adapter device | |
| JP7264274B2 (en) | Sensor system, sensor device and host device used therein, and information transmission method in sensor system | |
| JP4027189B2 (en) | Information processing system, information processing apparatus, information processing method, program, and storage medium | |
| JP6299260B2 (en) | Information processing apparatus and information processing apparatus control method | |
| US7941230B1 (en) | Control apparatus and control method, network system, program for control apparatus, and information recording medium | |
| JP4961997B2 (en) | Storage device, storage device control method, and storage device control program | |
| EP2398190B1 (en) | Field communication system | |
| US20150350014A1 (en) | Networking implementation using a converged high speed input/output fabric technology | |
| JP2003044179A (en) | Power supply device, power reception device, power supply method, and power reception method | |
| CN110247993A (en) | System containing multiple functional modules and its functional module addressing method | |
| EP3023879B1 (en) | Communication system, communication device, communication adapter, communication method, and program | |
| US20100205334A1 (en) | Device wire adapter and communication control method to perform data transfer between wireless USB host and wired USB device | |
| KR101100296B1 (en) | Other electronic devices with O. B. signaling self-test | |
| JP6762546B1 (en) | Serial communication method and serial communication system | |
| CN113812120B (en) | Sensor hub, sensor system, method for transmitting sensor signals, and computer-readable storage medium | |
| WO2014083707A1 (en) | I2c communication method and i2c communication device | |
| CN112703535B (en) | Hazard detector socket | |
| JP4873220B2 (en) | Field communication system | |
| KR20210067409A (en) | Multi-sensor system for monitoring the environment inside the stable | |
| WO2021255889A1 (en) | Communication management device, communication system, communication management method, and computer-readable medium | |
| US7167940B2 (en) | Data processing method, data processing apparatus, communications device, communications method, communications protocol and program | |
| TWI876483B (en) | Bluetooth network system and Bluetooth network system control method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220218 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220218 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20221220 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230127 |
|
| 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: 20230314 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230327 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7264274 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |