[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP7597290B2 - Transmitting Device - Google Patents

Transmitting Device Download PDF

Info

Publication number
JP7597290B2
JP7597290B2 JP2021016242A JP2021016242A JP7597290B2 JP 7597290 B2 JP7597290 B2 JP 7597290B2 JP 2021016242 A JP2021016242 A JP 2021016242A JP 2021016242 A JP2021016242 A JP 2021016242A JP 7597290 B2 JP7597290 B2 JP 7597290B2
Authority
JP
Japan
Prior art keywords
data
block
recording
transmitting device
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2021016242A
Other languages
Japanese (ja)
Other versions
JP2022119261A (en
Inventor
利哉 小山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Component Ltd
Original Assignee
Fujitsu Component Ltd
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 Fujitsu Component Ltd filed Critical Fujitsu Component Ltd
Priority to JP2021016242A priority Critical patent/JP7597290B2/en
Publication of JP2022119261A publication Critical patent/JP2022119261A/en
Application granted granted Critical
Publication of JP7597290B2 publication Critical patent/JP7597290B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Recording Measured Values (AREA)

Description

本発明は、送信装置に関する。 The present invention relates to a transmitting device .

各種のセンサで計測した温度、湿度、気圧、照度、加速度、音量等の計測データを記録する装置が実用化されており、「データロガー」等の名称で市販されている。 Devices that record measurement data such as temperature, humidity, air pressure, illuminance, acceleration, and sound volume measured by various sensors have been put to practical use and are sold commercially under names such as "data loggers."

また、記録データを記録する複数段のリングバッファを有し、リングバッファに所定数の記録データが書き込まれる毎に平均値を算出し、算出した平均値を次段のリングバッファに書き込む記録装置が知られている(特許文献1参照)。 There is also a known recording device that has multiple stages of ring buffers for recording data, calculates an average value each time a predetermined number of pieces of recording data are written to a ring buffer, and writes the calculated average value to the next ring buffer (see Patent Document 1).

特開2010-271190号公報JP 2010-271190 A

測定した計測データをBluetooth(登録商標) Low Energy(以下BLEと呼ぶ)等の低消費電力の無線通信で送信する送信装置も知られている。しかし、このような送信装置には、受信装置が送信装置から過去のデータを取得することができないという問題がある。 Transmitting devices that transmit measured data using low-power wireless communication such as Bluetooth (registered trademark) Low Energy (hereinafter referred to as BLE) are also known. However, such transmitting devices have a problem in that the receiving device cannot obtain past data from the transmitting device.

過去のデータを取得できるように送信装置に計測データを蓄積しておくことも考えられるが、BLEのような低消費電力の無線通信は通信速度が遅いため、蓄積したデータを送信先に送信するためには時間を要する。また、このような送信装置はバッテリからの供給電力で動作するため、消費電力が大きい比較的高速な無線通信を利用することは望ましくない。 It is possible to store measurement data in the transmitting device so that past data can be obtained, but low-power wireless communication such as BLE has a slow communication speed, so it takes time to transmit the stored data to the destination. In addition, such transmitting devices operate on power supplied from a battery, so it is not desirable to use relatively high-speed wireless communication that consumes a lot of power.

このように、取得したデータを記録しつつ送信先に送信する送信装置において、最新の計測データだけではなく過去のデータを取得可能とすることには困難を伴っていた。 As such, in a transmitting device that records acquired data while transmitting it to a destination, it was difficult to make it possible to acquire not only the most recent measurement data but also past data.

本発明の一実施形態は、上記の問題点に鑑みてなされたものであって、取得したデータを記録しつつ送信先に送信する送信装置において、最新の計測データだけではなく、過去のデータも容易に取得できるようにする。 One embodiment of the present invention has been made in consideration of the above problems, and enables a transmitting device that records acquired data while transmitting it to a destination to easily acquire not only the most recent measurement data, but also past data.

上記の課題を解決するため、本発明の一実施形態に係る送信装置は、取得したデータを記録し、送信する送信装置であって、環状バッファで構成されるデータ記録用の複数の記録ブロックと、前記記録ブロックにおける記録が一巡するタイミングで、当該記録ブロックに記録されているデータの代表値を、当該記録ブロックとは異なる他の記録ブロックに記録するデータ管理部と、前記複数の記録ブロックに重み付けし、前記重み付けに基づいて前記複数の記録ブロックに記録されているデータを送信するデータ送信部と、を有し、 前記データ送信部は、前記送信するデータを、前記重み付けに基づいてランダムに決定する。
In order to solve the above problems, a transmitting device according to one embodiment of the present invention is a transmitting device that records and transmits acquired data, and has a plurality of recording blocks for recording data constituted by a circular buffer, a data management unit that records a representative value of the data recorded in a recording block in another recording block different from the recording block when recording in the recording block completes a cycle, and a data transmitting unit that weights the plurality of recording blocks and transmits the data recorded in the plurality of recording blocks based on the weighting, and the data transmitting unit randomly determines the data to be transmitted based on the weighting.

本発明の一実施形態によれば、取得したデータを記録しつつ送信する送信装置において、最新の計測データだけではなく、過去のデータも容易に取得できるようになる。 According to one embodiment of the present invention, a transmitting device that records and transmits acquired data can easily acquire not only the most recent measurement data, but also past data.

一実施形態に係るデータ通信システムのシステム構成を示す図である。1 is a diagram showing a system configuration of a data communication system according to an embodiment; 一実施形態に係る送信装置の処理を説明する図である。FIG. 4 is a diagram illustrating processing of a transmitting device according to an embodiment. 一実施形態に係る送信装置及び受信装置のハードウェア構成を示す図である。FIG. 2 is a diagram illustrating a hardware configuration of a transmitting device and a receiving device according to an embodiment. 一実施形態に係る送信装置の機能構成を示す図である。FIG. 2 is a diagram illustrating a functional configuration of a transmission device according to an embodiment. 一実施形態に係る受信装置の機能構成を示す図である。FIG. 2 is a diagram illustrating a functional configuration of a receiving device according to an embodiment. 一実施形態に係る送信装置の処理を示すフローチャートである。10 is a flowchart illustrating a process of a transmitting device according to an embodiment. 一実施形態に係る計測処理を示すフローチャートである。11 is a flowchart illustrating a measurement process according to an embodiment. 一実施形態に係る送信処理を示すフローチャートである。11 is a flowchart illustrating a transmission process according to an embodiment. 一実施形態に係るブロック選択処理を示すフローチャートである。11 is a flowchart illustrating a block selection process according to an embodiment. 第1の実施形態に係る記録ブロック及びデータの重み付けを示す図である。5A and 5B are diagrams illustrating recording blocks and data weighting according to the first embodiment; 第2の実施形態に係る記録ブロック及びデータの重み付けを示す図である。FIG. 11 is a diagram showing recording blocks and data weighting according to the second embodiment. 第3の実施形態に係る記録ブロック及びデータの重み付けを示す図である。FIG. 13 is a diagram showing recording blocks and data weighting according to the third embodiment. 一実施形態に係る送信データのフォーマットを示す図である。FIG. 2 is a diagram illustrating a format of transmission data according to an embodiment. 第4の実施形態に係る記録ブロック及びデータの重み付けを示す図である。FIG. 13 is a diagram showing recording blocks and data weighting according to the fourth embodiment. 一実施形態に係る受信装置の処理を示すフローチャートである。10 is a flowchart showing a process of a receiving device according to an embodiment.

以下、添付図面を参照しながら実施形態について説明する。説明の理解を容易にするため、各図面において同一の構成要素に対しては可能な限り同一の符号を付して、重複する説明は省略する。 The following describes the embodiments with reference to the attached drawings. To facilitate understanding of the description, the same components in each drawing are denoted by the same reference numerals as much as possible, and duplicate descriptions are omitted.

<システム構成>
図1は、一実施形態に係るデータ通信システムのシステム構成を示す図である。図1(A)に示すデータ通信システム100は、データを送信する送信装置101と、送信装置101が送信したデータを受信する受信装置102とを含む。
<System Configuration>
Fig. 1 is a diagram showing a system configuration of a data communication system according to an embodiment. The data communication system 100 shown in Fig. 1(A) includes a transmitting device 101 that transmits data, and a receiving device 102 that receives the data transmitted by the transmitting device 101.

送信装置101は、温度、湿度、気圧、照度、加速度、音量等の計測データを含む送信データを、例えばBLE通信等の低消費電力の無線通信103で送信する。例えば、送信装置101は、BLE通信のアドバタイズデータ(ビーコン)を用いて、送信データをブロードキャスト送信する。 The transmitting device 101 transmits transmission data including measurement data such as temperature, humidity, atmospheric pressure, illuminance, acceleration, and sound volume, for example, via low-power wireless communication 103 such as BLE communication. For example, the transmitting device 101 broadcasts the transmission data using advertising data (beacons) of BLE communication.

また、送信装置101は、取得した計測データを記憶部等に記憶しておき、最新の計測データだけではなく過去のデータも送信する機能を有している。好ましくは、送信装置101は、過去のデータを、古いほど低頻度で送信する。また、送信装置101は、過去のデータをデータ処理(例えば平均化)して送信する。 The transmitting device 101 also has a function of storing the acquired measurement data in a storage unit or the like, and transmitting not only the latest measurement data but also past data. Preferably, the transmitting device 101 transmits past data less frequently, the older the data, the less frequently the data is transmitted. The transmitting device 101 also processes the past data (e.g., averaging) before transmitting it.

図1(B)は、一実施形態に係るデータ通信システム100のシステム構成の別の一例を示している。図1(B)に示すように、送信装置101は、データを受信装置(受信サーバ)102に転送するゲートウェイ111や情報端末112等を介して、送信データを受信装置102に送信するものであっても良い。 Figure 1 (B) shows another example of the system configuration of a data communication system 100 according to an embodiment. As shown in Figure 1 (B), the transmitting device 101 may transmit transmission data to the receiving device 102 via a gateway 111 that transfers data to the receiving device (receiving server) 102, an information terminal 112, or the like.

ゲートウェイ111は、例えばBLE通信等の低消費電力の無線通信103で、送信装置101が送信した送信データを受信し、通信ネットワーク113を介して受信装置102に転送する中継装置である。 The gateway 111 is a relay device that receives transmission data sent by the transmitting device 101 using low-power wireless communication 103, such as BLE communication, and transfers the data to the receiving device 102 via the communication network 113.

情報端末112は、例えば、PC、タブレット端末、スマートフォン等の情報処理装置であり、BLE通信等の低消費電力の無線通信103で、送信装置101が送信した送信データを受信し、受信装置102に転送する機能を有している。情報端末112は例えば、データ通信システム100に対応するアプリケーションを実行することにより、送信装置101から受信した送信データを、無線WAN(Wide Area Network)等の無線通信114を介して受信装置102に転送する。
受信装置102は、1つ以上の情報処理装置で構成されるデータ受信サーバや、クラウドシステム等であっても良い。
The information terminal 112 is, for example, an information processing device such as a PC, a tablet terminal, or a smartphone, and has a function of receiving transmission data transmitted by the transmitting device 101 through low power consumption wireless communication 103 such as BLE communication, and transferring the data to the receiving device 102. For example, the information terminal 112 executes an application corresponding to the data communication system 100, thereby transferring the transmission data received from the transmitting device 101 to the receiving device 102 through wireless communication 114 such as a wireless WAN (Wide Area Network).
The receiving device 102 may be a data receiving server configured with one or more information processing devices, a cloud system, or the like.

なお、図1に示すデータ通信システムのシステム構成は一例である。送信装置101は、Zigbee(登録商標)、Wirepas(登録商標) Mesh等のBLE以外の無線通信方式で送信データを送信するものであっても良い。また、送信装置101は、PLC(Power Line Communication)等の比較的低速な有線通信方式で送信データを送信するものでも良い。 The system configuration of the data communication system shown in FIG. 1 is an example. The transmitting device 101 may transmit transmission data using a wireless communication method other than BLE, such as Zigbee (registered trademark) or Wirepas (registered trademark) Mesh. The transmitting device 101 may also transmit transmission data using a relatively slow wired communication method, such as PLC (Power Line Communication).

<処理の概要>
図2は、一実施形態に係る送信装置の処理を説明する図である。送信装置101は、図2に示すように、データ記録用の複数の記録ブロック(ブロックA201、ブロックB202、ブロックC203、・・・)を有している。
<Processing Overview>
2 is a diagram illustrating processing by a transmitting device according to an embodiment. As shown in FIG. 2, the transmitting device 101 has a plurality of recording blocks (block A 201, block B 202, block C 203, ...) for recording data.

各記録ブロックは、送信装置101の記録領域に設けられ、論理的な環状バッファとして機能する。なお、各記録ブロックは、記録順序を管理可能であり、古いデータを順次に上書きする制御ができるものであれば良く、物理的な構成は任意である。ブロックA201、ブロックB202、ブロックC203には、それぞれ10個のデータを書き込むことができる。 Each recording block is provided in the recording area of the transmitting device 101 and functions as a logical circular buffer. Note that each recording block can have any physical configuration as long as it is possible to manage the recording order and control the sequential overwriting of old data. 10 pieces of data can be written to each of block A201, block B202, and block C203.

図2において、送信装置101が取得した計測データは、まずブロックA201に順次格納される。送信装置101は、ブロックA201のアドレスA_0に計測データを記録すると、次の書き込み位置を示すポインタをインクリメントしてアドレスA_1に進め、次の計測データをアドレスA_1に記録する。また、送信装置101は、末尾のアドレスA_9に計測データを記録すると、書き込みポインタを先頭のアドレスA_0に戻す。 In FIG. 2, the measurement data acquired by the transmitting device 101 is first stored sequentially in block A201. When the transmitting device 101 records the measurement data at address A_0 in block A201, it increments the pointer indicating the next write position to address A_1, and records the next measurement data at address A_1. In addition, when the transmitting device 101 records the measurement data at the last address A_9, it returns the write pointer to the first address A_0.

送信装置101は、ブロックA201における記録が一巡するタイミングで、ブロックA201に格納されている10データの代表値を算出して、ブロックB202に記録する。例えば、送信装置101は、ブロックA201の書き込みポインタをアドレスA_0に戻すときに、アドレスA_0~A_9に格納されている計測データを平均化した平均値を、代表値としてブロックB202の次の書き込み位置に記録する。次に取得された計測データはブロックA201のアドレスA_0に上書きされる。 When the recording in block A201 is completed, the transmitting device 101 calculates a representative value of the 10 data stored in block A201 and records it in block B202. For example, when the transmitting device 101 returns the write pointer of block A201 to address A_0, it averages the measurement data stored in addresses A_0 to A_9 and records the average value as a representative value in the next write position of block B202. The next acquired measurement data is overwritten at address A_0 in block A201.

同様に、送信装置101は、ブロックB202における記録が一巡するタイミングで、ブロックB202に格納されている10データの代表値を算出して、ブロックC203の次の書き込み位置に記録する。 Similarly, when recording in block B202 is completed, the transmitting device 101 calculates a representative value of the 10 data stored in block B202 and records it in the next write position of block C203.

このように、比較的新しく取得されたデータは加工せずに元データのままブロックA201に蓄積され、古いデータは代表値として次段以降のブロックB202、ブロックC203に蓄積される。このため、送信装置101では、古いデータほど記憶領域を節約して計測データを蓄積することができる。 In this way, relatively recently acquired data is stored in block A201 as original data without processing, while older data is stored as representative values in subsequent blocks B202 and C203. Therefore, the transmitting device 101 can store measurement data while saving storage area for older data.

また、送信装置101は、複数のブロックA201、ブロックB202、ブロックC203に重み付けし、重み付けに基づいて複数の記録ブロックに記録されているデータを選択・送信する。 The transmitting device 101 also weights the multiple blocks A201, B202, and C203, and selects and transmits data recorded in the multiple recording blocks based on the weighting.

例えば、送信装置101は、ブロックB202(第2記録ブロック)の重みがブロックA201(第1記録ブロック)の重みより小さくなるように重み付けする。また、送信装置101は、ブロックC203(第3記録ブロック)の重みがブロックB202の重みより小さくなるように重み付けする。 For example, the transmitting device 101 weights block B202 (second recording block) so that the weight is smaller than the weight of block A201 (first recording block). The transmitting device 101 also weights block C203 (third recording block) so that the weight is smaller than the weight of block B202.

重みづけの大きいブロックに格納されているデータの送信頻度を高くすることにより、送信装置101は、比較的最近のデータを加工なしでより高頻度で送信し、比較的古いデータを、例えば平均化により加工し、より低頻度で送信することができる。 By increasing the transmission frequency of data stored in blocks with high weighting, the transmitting device 101 can transmit relatively recent data more frequently without processing, and transmit relatively old data less frequently after processing it, for example by averaging.

送信装置101は、送信先に送信するデータを、上記の重み付けに基づいてランダムに決定することができる。 The transmitting device 101 can randomly determine the data to be sent to the destination based on the weighting described above.

送信装置101はまた、送信先に、データとともに、当該データの取得時間(時刻等)、データの取得期間などを示す付加情報を送信する。なお、付加情報は送信先に送信するデータに含まれていても良いし、データとは別に送信しても良い。 The transmitting device 101 also transmits to the destination, together with the data, additional information indicating the time (time of day, etc.) when the data was acquired, the period during which the data was acquired, etc. The additional information may be included in the data transmitted to the destination, or may be transmitted separately from the data.

一方、受信装置102は、送信装置101から送信データ(又は送信データと付加情報)を受信すると、送信データ(又は付加情報)に含まれる取得時間、取得期間などに基づいて、送信データに含まれるデータ(計測データ、代表値)を記憶部に記憶する。例えば、受信装置102は、送信装置101が送信した送信データを、付加情報が示す取得時間、又は取得期間に対応する記憶部の記憶領域に記憶する。 On the other hand, when the receiving device 102 receives transmission data (or transmission data and additional information) from the transmitting device 101, the receiving device 102 stores the data (measurement data, representative values) included in the transmission data in a storage unit based on the acquisition time, acquisition period, etc. included in the transmission data (or additional information). For example, the receiving device 102 stores the transmission data transmitted by the transmitting device 101 in a storage area of the storage unit that corresponds to the acquisition time or acquisition period indicated by the additional information.

受信装置102は、記憶部に記憶したデータに基づいて、計測データの推移をグラフ化などにより表示する機能を有している。 The receiving device 102 has the function of displaying the progress of the measurement data in graphs, etc., based on the data stored in the memory unit.

このように、本実施形態に係るデータ通信システム100によれば、送信装置101は、比較的最近のデータをより多いデータ量で記録するとともに、古いデータをより少ないデータ量で記録することができる。従って、送信装置101の限られたメモリ容量で、より長期間のデータを記録することができる。 In this way, according to the data communication system 100 of this embodiment, the transmitting device 101 can record a larger amount of relatively recent data and record a smaller amount of old data. Therefore, data for a longer period can be recorded with the limited memory capacity of the transmitting device 101.

送信装置101は、例えば、モニタリングやデモンストレーション等の用途で比較的重要度が高い「直近」のデータをより高頻度で、比較的重要度が低い過去のデータを低頻度で送信することができる。また、受信装置102は、古いデータをより少ないデータ量で記憶するので、過去から現在に至るまでの、計測データの推移の概要/アウトラインを比較的短時間で、取得し把握することができる。 The transmitting device 101 can transmit relatively important "most recent" data more frequently for applications such as monitoring and demonstrations, and relatively less important past data less frequently. In addition, the receiving device 102 stores a smaller amount of old data, so that an overview of the progress of the measurement data from the past to the present can be obtained and understood in a relatively short time.

<ハードウェア構成>
図3は、一実施形態に係る送信装置及び受信装置のハードウェア構成を示す図である。
<Hardware Configuration>
FIG. 3 is a diagram showing the hardware configuration of a transmitting device and a receiving device according to an embodiment.

(送信装置のハードウェア構成)
図3(A)に示す送信装置101は、CPU(Central Processing Unit)301、メモリ302、ストレージデバイス303、無線通信デバイス304、センサ305、外部接続I/F(Interface)、バス307を有する。
(Hardware configuration of the transmitting device)
The transmission device 101 shown in FIG. 3A includes a CPU (Central Processing Unit) 301 , a memory 302 , a storage device 303 , a wireless communication device 304 , a sensor 305 , an external connection I/F (Interface), and a bus 307 .

CPU301は、ストレージデバイス303、メモリ302等に記憶したプログラムを実行することにより、送信装置101の様々な機能を実現するプロセッサ(演算装置)である。メモリ302には、例えば、CPU301のワークエリアとして用いられるRAM(Random Access Memory)、CPU301の起動用のプログラム等を予め記憶したROM(Read Only memory)が含まれる。ストレージデバイス303は、例えば、OS(Operating System)、アプリケーション等のプログラムや各種のデータを記憶する、大容量の記憶装置である。 The CPU 301 is a processor (computing device) that realizes various functions of the transmitting device 101 by executing programs stored in the storage device 303, memory 302, etc. The memory 302 includes, for example, a RAM (Random Access Memory) used as a work area for the CPU 301, and a ROM (Read Only Memory) that stores in advance programs for starting the CPU 301, etc. The storage device 303 is, for example, a large-capacity storage device that stores programs such as an OS (Operating System) and applications, as well as various types of data.

無線通信デバイス304は、BLE等の無線通信を行うための無線回路、無線モジュール、又は無線IC(Integrated Circuit)である。なお、無線通信デバイス304は、Zigbee、Wirepas Mesh等のBLE以外の無線通信方式を採用しても良い。 The wireless communication device 304 is a wireless circuit, a wireless module, or a wireless IC (Integrated Circuit) for performing wireless communication such as BLE. Note that the wireless communication device 304 may employ a wireless communication method other than BLE, such as Zigbee or Wirepass Mesh.

センサ305は、温度センサ、湿度センサ、気圧センサ、照度センサ、加速度センサ、音量センサ等の各種センサである。外部接続I/F306は、送信装置101に外部装置を接続するためのインタフェースである。送信装置101は、1つ以上のセンサ305、又は外部接続I/F306に接続された外部センサから、計測データを取得する。 The sensors 305 are various sensors such as a temperature sensor, a humidity sensor, an air pressure sensor, an illuminance sensor, an acceleration sensor, and a volume sensor. The external connection I/F 306 is an interface for connecting an external device to the transmitting device 101. The transmitting device 101 acquires measurement data from one or more sensors 305 or an external sensor connected to the external connection I/F 306.

バス307は、上記の各構成要素に共通に接続され、例えば、アドレス信号、データ信号、各種の制御信号等を伝送する。 Bus 307 is commonly connected to each of the above components and transmits, for example, address signals, data signals, various control signals, etc.

(受信装置のハードウェア構成)
図3(B)に示す受信装置102は、CPU311、メモリ312、ストレージデバイス313、ネットワークI/F314、表示装置315、入力装置316、無線通信デバイス317、バス318を有する。
(Hardware configuration of the receiving device)
The receiving device 102 shown in FIG. 3B includes a CPU 311 , a memory 312 , a storage device 313 , a network I/F 314 , a display device 315 , an input device 316 , a wireless communication device 317 , and a bus 318 .

CPU311は、ストレージデバイス313、メモリ312等に記憶したプログラムを実行することにより、受信装置102の様々な機能を実現するプロセッサである。メモリ312には、CPU311のワークエリアとして用いられるRAM、及びCPU311の起動用のプログラム等を予め記憶したROM等が含まれる。ストレージデバイス313は、OS、アプリケーション等のプログラムや、各種データを記憶する大容量の記憶装置である。 The CPU 311 is a processor that realizes various functions of the receiving device 102 by executing programs stored in the storage device 313, memory 312, etc. The memory 312 includes a RAM used as a work area for the CPU 311, and a ROM that prestores programs for starting up the CPU 311, etc. The storage device 313 is a large-capacity storage device that stores programs such as the OS and applications, and various data.

ネットワークI/F314は、受信装置102を通信ネットワークに接続し、例えばゲートウェイ111や情報端末112と通信するための通信インタフェースである。 The network I/F 314 is a communication interface that connects the receiving device 102 to a communication network and communicates with, for example, the gateway 111 and the information terminal 112.

表示装置315は、各種の表示画面を表示する、液晶ディスプレイ、有機ELディスプレイ等の表示デバイスである。入力装置は、ユーザの入力操作を受け付ける、タッチパネル、キーボード、操作ボタン等の入力デバイスである。なお、表示装置315、及び入力装置316は、タッチパネルディスプレイ等の表示入力装置であっても良い。 The display device 315 is a display device such as a liquid crystal display or an organic EL display that displays various display screens. The input device is an input device such as a touch panel, keyboard, or operation buttons that accepts input operations from the user. Note that the display device 315 and the input device 316 may be display input devices such as a touch panel display.

無線通信デバイス317は、無線通信デバイス304と同じ無線通信方式で送信装置101と無線通信を行うための無線回路、無線モジュール、無線IC等である。 The wireless communication device 317 is a wireless circuit, a wireless module, a wireless IC, etc. for wirelessly communicating with the transmitting device 101 using the same wireless communication method as the wireless communication device 304.

バス318は、上記の各構成要素に共通に接続され、例えば、アドレス信号、データ信号、各種の制御信号等を伝送する。 Bus 318 is commonly connected to each of the above components and transmits, for example, address signals, data signals, various control signals, etc.

<機能構成>
続いて、送信装置101、及び受信装置の機能構成について説明する。
<Functional configuration>
Next, the functional configurations of the transmitting device 101 and the receiving device will be described.

(送信装置の機能構成)
図4は、一実施形態に係る送信装置の機能構成を示す図である。送信装置101は、CPU301で所定のプログラムを実行することにより、データ取得部401、データ管理部402、データ送信部403、記憶部404等の機能を実現している。なお、上記の各機能のうち、少なくとも一部はハードウェアによって実現されるものであっても良い。
(Functional configuration of the transmitting device)
4 is a diagram showing the functional configuration of a transmission device according to an embodiment. The transmission device 101 realizes functions such as a data acquisition unit 401, a data management unit 402, a data transmission unit 403, and a storage unit 404 by executing a predetermined program in a CPU 301. At least a part of the above functions may be realized by hardware.

データ取得部401は、センサ305等から計測データを取得する。好ましくは、データ取得部401は、センサ305等から所定の間隔(例えば、数秒から数十分程度)で計測データを取得する。なお、データ取得部401は、外部接続I/F306に接続された外部センサから計測データを取得しても良い。 The data acquisition unit 401 acquires measurement data from the sensor 305, etc. Preferably, the data acquisition unit 401 acquires measurement data from the sensor 305, etc. at a predetermined interval (e.g., several seconds to several tens of minutes). The data acquisition unit 401 may also acquire measurement data from an external sensor connected to the external connection I/F 306.

データ管理部402は、図2で説明したように、ブロックA201における記録が一巡するタイミングで、ブロックA201に記録されているデータの代表値(例えば平均値)を算出し、ブロックB202に記録する。また、データ管理部402は、ブロックB202における記録が一巡するタイミングで、ブロックB202に記録されているデータの代表値を算出し、ブロックC203に記録する。 As described in FIG. 2, when recording in block A201 completes a cycle, data management unit 402 calculates a representative value (e.g., average value) of the data recorded in block A201 and records it in block B202. In addition, when recording in block B202 completes a cycle, data management unit 402 calculates a representative value of the data recorded in block B202 and records it in block C203.

データ送信部403は、複数の記録ブロック(ブロックA201~ブロックC203)に重み付けし、重み付けに基づいて記録ブロックに記録されているデータを送信する。例えば、データ送信部403は、図3(A)の無線通信デバイスを用いて、データを送信する。データ送信部403は、ブロードキャストにデータを送信しても良いし、受信装置102にデータを送信しても良い。或いは、データ送信部403は、ゲートウェイ111、又は情報端末112を介して受信装置102にデータを送信しても良い。 The data transmission unit 403 weights multiple recording blocks (block A201 to block C203) and transmits the data recorded in the recording blocks based on the weighting. For example, the data transmission unit 403 transmits data using the wireless communication device of FIG. 3(A). The data transmission unit 403 may transmit data by broadcast, or may transmit data to the receiving device 102. Alternatively, the data transmission unit 403 may transmit data to the receiving device 102 via the gateway 111 or the information terminal 112.

複数の記録ブロックの重み付けの方法、及び送信するデータの選択方法のバリエーションは、複数の実施形態を例示して後述する。 Variations in the method of weighting multiple recording blocks and the method of selecting data to transmit will be described later using multiple examples.

記憶部404の機能は、CPU301で実行されるプログラム、及びストレージデバイス303、メモリ302等によって実現され、ブロックA201~ブロックC203等の機能を実現している。 The functions of the memory unit 404 are realized by the program executed by the CPU 301, the storage device 303, the memory 302, etc., and realize the functions of blocks A201 to C203, etc.

(受信装置の機能構成)
図5は、一実施形態に係る受信装置の機能構成を示す図である。受信装置102は、CPU311で所定のプログラムを実行することにより、データ受信部501、データ処理部502、表示制御部503、操作受付部504、及び記憶部505の機能を実現する。なお、上記の各機能構成のうち一部は、ハードウェアによって実現されても良い。
(Functional configuration of the receiving device)
5 is a diagram showing the functional configuration of a receiving device according to an embodiment. The receiving device 102 realizes the functions of a data receiving unit 501, a data processing unit 502, a display control unit 503, an operation receiving unit 504, and a storage unit 505 by executing a predetermined program in a CPU 311. Note that some of the above functional configurations may be realized by hardware.

データ受信部501は、送信装置101から、計測データや代表値のようなデータと、当該データの取得時間又は取得期間を示す付加情報とを含む送信データを受信する。データ受信部501はまた、無線通信デバイス317を用いて、送信装置101が送信した送信データを受信する。或いは、データ受信部501は、ネットワークI/F314を用いて、送信装置101が送信した送信データをゲートウェイ111、情報端末112等を介して受信する。 The data receiving unit 501 receives transmission data from the transmitting device 101, including data such as measurement data and representative values, and additional information indicating the acquisition time or acquisition period of the data. The data receiving unit 501 also receives the transmission data transmitted by the transmitting device 101 using the wireless communication device 317. Alternatively, the data receiving unit 501 receives the transmission data transmitted by the transmitting device 101 via the gateway 111, the information terminal 112, etc., using the network I/F 314.

データ処理部502は、データ受信部501が受信した送信データに含まれるデータを記憶部505等に記憶する。図5に示すデータ処理部502は、第1処理部502a及び第2処理部502bを含む。 The data processing unit 502 stores data included in the transmission data received by the data receiving unit 501 in the storage unit 505 or the like. The data processing unit 502 shown in FIG. 5 includes a first processing unit 502a and a second processing unit 502b.

第1処理部502aは、データ受信部501が受信した送信データに、データと、当該データを取得した取得時間(例えばタイムスタンプ)とが含まれる場合、当該データを計測データとして取得時間と対応付けて記憶部505に記憶する。 When the transmission data received by the data receiving unit 501 includes data and the acquisition time (e.g., a timestamp) at which the data was acquired, the first processing unit 502a stores the data as measurement data in the storage unit 505 in association with the acquisition time.

第2処理部502bは、データ受信部501が受信した送信データに、データと、当該データの取得期間が含まれる場合、送信データに含まれるデータを当該取得期間の代表値として、当該取得期間に含まれる取得時間と対応付けて、記憶部505等に記憶する。なお、第1処理部502a及び第2処理部502bの処理は、1つのデータ処理部502で実行するものであっても良い。 When the transmission data received by the data receiving unit 501 includes data and an acquisition period for the data, the second processing unit 502b stores the data included in the transmission data as a representative value for the acquisition period in the storage unit 505 or the like in association with the acquisition time included in the acquisition period. Note that the processing of the first processing unit 502a and the second processing unit 502b may be executed by a single data processing unit 502.

表示制御部503は、データ処理部502が記憶部505等に記憶した計測データとその取得時間に基づいて、例えば、過去から現在までの計測データの推移をグラフ化して、表示装置315等に表示する。例えば、表示制御部503は、横軸を取得時間とし、縦軸を計測データの値とした折れ線グラフ、又は棒グラフ等を表示装置315に表示する。 The display control unit 503, based on the measurement data and its acquisition time stored in the storage unit 505 or the like by the data processing unit 502, for example, graphs the progress of the measurement data from the past to the present, and displays it on the display device 315 or the like. For example, the display control unit 503 displays on the display device 315 a line graph or a bar graph in which the horizontal axis represents the acquisition time and the vertical axis represents the value of the measurement data.

操作受付部504は、入力装置316等を用いてユーザによる入力操作を受け付ける。 The operation reception unit 504 receives input operations by the user using the input device 316, etc.

記憶部505の機能は、CPU311で実行されるプログラム、及びストレージデバイス313、メモリ312等によって実現され、データ処理部502が記憶する計測データ、取得日時の情報等の様々な情報やデータを記憶する。 The function of the storage unit 505 is realized by the program executed by the CPU 311, the storage device 313, the memory 312, etc., and stores various information and data such as the measurement data stored by the data processing unit 502 and information on the acquisition date and time.

<処理の流れ>
続いて、本実施形態に係るデータ通信方法の処理の流れについて説明する。
<Processing flow>
Next, the process flow of the data communication method according to this embodiment will be described.

(送信装置の処理)
図6は、一実施形態に係る送信装置の処理を示すフローチャートである。図6は、送信装置101が計測データを取得し送信先に送信する処理の全体の流れを示している。
(Transmitter Processing)
6 is a flowchart showing the process of the transmitting device according to an embodiment of the present invention, which illustrates the overall flow of the process in which the transmitting device 101 acquires measurement data and transmits it to a destination.

S601において、データ管理部402は、例えば、図2に示すように、格納可能なデータ数がそれぞれ10の3つの記録ブロック(ブロックA201、ブロックB202、ブロックC203)を定義して、各ブロックの次の記録位置を示すポインタを初期化する。 In S601, the data management unit 402 defines, for example, three recording blocks (block A 201, block B 202, block C 203), each capable of storing 10 pieces of data, as shown in FIG. 2, and initializes a pointer indicating the next recording position of each block.

なお、図2に示す記録ブロックの数「3」、及び各記録ブロック内のデータの数「10」は一例である。記録ブロックの数は2つ以上の他の数であっても良い。各記録ブロック内に記録可能なデータの数は、2以上の他の数であっても良いし、記録ブロック毎に異なる数であっても良い。 Note that the number of recording blocks "3" and the number of data in each recording block "10" shown in FIG. 2 are merely examples. The number of recording blocks may be another number greater than or equal to two. The number of data that can be recorded in each recording block may be another number greater than or equal to two, or may be a different number for each recording block.

S602において、データ管理部402は、記憶部404内に、図2に示すような3つのブロックA201、ブロックB202、及びブロックC203の記憶領域を確保する。 In S602, the data management unit 402 reserves storage areas for three blocks A201, B202, and C203 as shown in FIG. 2 in the storage unit 404.

S603において、データ管理部402は、記憶部404内に、3つの各記録ブロックに対応する3つの付加情報の記憶領域を確保する。なお、付加情報の記憶領域は、3つの記録ブロックに含まれていても良い。 In S603, the data management unit 402 secures three storage areas for additional information corresponding to each of the three recording blocks in the storage unit 404. Note that the storage areas for the additional information may be included in the three recording blocks.

S604において、送信装置101は現在の時刻を取得する。 In S604, the transmitting device 101 obtains the current time.

S605において、送信装置101は、取得した現在の時刻に基づいて、計測タイミングであるか否かを判断する。例えば、送信装置101は、前回の計測データの取得から予め設定された第1の時間を経過している場合、計測タイミングであると判断する。 In S605, the transmitting device 101 determines whether it is time to measure based on the acquired current time. For example, the transmitting device 101 determines that it is time to measure if a preset first time has elapsed since the previous acquisition of measurement data.

計測タイミングである場合、送信装置101は、S606において、図7で後述する計測処理を実行する。一方、計測タイミングでない場合、送信装置101は、計測処理を行わず処理をS607に移行させる。 If it is measurement timing, the transmitting device 101 executes the measurement process described later in FIG. 7 in S606. On the other hand, if it is not measurement timing, the transmitting device 101 does not execute the measurement process and transitions to S607.

S607に移行すると、送信装置101は、取得した現在の時刻に基づいて、送信タイミングであるか否かを判断する。送信装置101は例えば、前回のデータ送信から予め設定された第2の時間を経過している場合、記録ブロックに格納されているデータを送信するタイミングであると判断する。 When the process proceeds to S607, the transmitting device 101 determines whether it is time to transmit based on the acquired current time. For example, if a preset second time has elapsed since the last data transmission, the transmitting device 101 determines that it is time to transmit the data stored in the recording block.

送信タイミングである場合、送信装置101は、S608において図8で後述する送信処理を実行する。一方、送信タイミングでない場合、送信装置101は送信処理を行わずに処理をS609に移行させる。 If it is time to transmit, the transmitting device 101 executes the transmission process described later in FIG. 8 in S608. On the other hand, if it is not time to transmit, the transmitting device 101 does not execute the transmission process and shifts the process to S609.

S609において、送信装置101は、処理を終了するか否かを判断する。送信装置101は、予め設定された処理終了時刻になった場合、又はユーザによる終了操作を受け付けた場合等に、処理を終了すると判断し、図6の処理を終了する。 In S609, the transmitting device 101 determines whether or not to end the process. When a preset processing end time is reached, or when an end operation is received from the user, the transmitting device 101 determines to end the process and ends the process in FIG. 6.

処理を終了しないと判断した場合、送信装置101は処理をS604に戻して、S604以降の処理を再び実行する。 If it is determined that the processing should not be terminated, the transmitting device 101 returns the processing to S604 and executes the processing from S604 onwards again.

(計測処理)
図7は、一実施形態に係る計測処理を示すフローチャートである。この処理は、S606において送信装置101が実行する計測処理の例を示している。計測処理では、センサからの計測データ取得と、取得した計測データの記録ブロックへの格納の処理が行われる。
(Measurement processing)
7 is a flowchart showing a measurement process according to an embodiment. This process shows an example of the measurement process executed by the transmission device 101 in S606. In the measurement process, measurement data is acquired from a sensor, and the acquired measurement data is stored in a recording block.

S701において、データ管理部402は、記録ブロック用のカウンタであるblock_countに「0」を設定し、ブロックA201を選択する。 In S701, the data management unit 402 sets block_count, which is a counter for recording blocks, to "0" and selects block A201.

S702において、データ取得部401は、計測データを取得して、最新データを格納する領域current_dataに格納する。 In S702, the data acquisition unit 401 acquires the measurement data and stores it in the area current_data for storing the latest data.

S703において、データ管理部402は、block_countで示される記録ブロックの次の書き込み位置であるdata_count[bloclk_count]に、current_dataに格納された計測データを記録する。 In S703, the data management unit 402 records the measurement data stored in current_data in data_count[block_count], which is the next write position of the recording block indicated by block_count.

この処理により、block_countが「0」である場合、block_count=0に対応するブロックA201の次の書き込み位置data_count[bloclk_count]に計測データが記録される。 When block_count is "0", this process records the measurement data in the next write position data_count[block_count] of block A201 corresponding to block_count = 0.

S704において、データ管理部402は、S703で記録した計測データの取得時間を取得し、取得時間を含む付加情報を、当該計測データに対応するブロックA201の付加情報の記憶領域に記録する。 In S704, the data management unit 402 acquires the acquisition time of the measurement data recorded in S703, and records additional information including the acquisition time in the additional information storage area of block A201 corresponding to the measurement data.

S705において、data_count[block_count]の値をインクリメントする。 At S705, the value of data_count[block_count] is incremented.

S706において、データ管理部402は、data_count[bloc_count]の値が当該記録ブロックの最大データ数(N_MAX_DATA)より小さいか否かを判断する。 At S706, the data management unit 402 determines whether the value of data_count[bloc_count] is smaller than the maximum number of data in the recording block (N_MAX_DATA).

data_count[bloc_count]の値がN_MAX_DATAより小さい場合(S706YES)、データ管理部402は図7の処理を終了する。一方、data_count[bloc_count]の値がN_MAX_DATA以上である場合(S706NO)、データ管理部402は環状バッファである記録ブロックの末尾までデータを記録したと判断し、処理をS707に移行させる。 If the value of data_count[bloc_count] is smaller than N_MAX_DATA (S706 YES), the data management unit 402 ends the process in FIG. 7. On the other hand, if the value of data_count[bloc_count] is equal to or greater than N_MAX_DATA (S706 NO), the data management unit 402 determines that data has been recorded up to the end of the recording block, which is a circular buffer, and transitions to the process in S707.

S707に移行すると、データ管理部402は、data_count[block_count]の値を「0」に戻す。 When proceeding to S707, the data management unit 402 resets the value of data_count[block_count] to "0".

S708において、データ管理部402は、block_countで示される記録ブロックに記録されているデータの平均値を算出し、current_dataに格納する。なお、平均値は代表値の一例であり、代表値は最大値、最小値、中央値、標準偏差等の他の値であっても良い。 In S708, the data management unit 402 calculates the average value of the data recorded in the recording block indicated by block_count, and stores the average value in current_data. Note that the average value is an example of a representative value, and the representative value may be other values such as a maximum value, a minimum value, a median value, or a standard deviation.

S709において、block_countの値が記録ブロックの最大値(N_MAX_BLOCK)より小さいか否かを判断する。この処理により、データ管理部402は、次の記録ブロックの有無を判断することができる。 In S709, it is determined whether the value of block_count is smaller than the maximum value of the recording block (N_MAX_BLOCK). This process allows the data management unit 402 to determine whether or not there is a next recording block.

block_countの値がN_MAX_BLOCKより小さい場合(S709YES)、データ管理部402は、block_countの値をインクリメントして、処理をS703に戻す。一方、block_countの値がN_MAX_BLOCK以上である場合(S709NO)、データ管理部402は図7の処理を終了させる。 If the value of block_count is smaller than N_MAX_BLOCK (S709 YES), the data management unit 402 increments the value of block_count and returns the process to S703. On the other hand, if the value of block_count is equal to or greater than N_MAX_BLOCK (S709 NO), the data management unit 402 ends the process in FIG. 7.

S703に戻ると、block_countを「1」とし、ブロックB202を選択した状態でS703以降の処理を再び実行する。 When the process returns to S703, block_count is set to "1" and block B202 is selected, and the process from S703 onwards is executed again.

S703において、データ管理部402は、block_countで示される記録ブロックの次の書き込み位置であるdata_count[bloclk_count]に、current_dataに格納されているデータを記録する。ここではblock_countが「1」であるため、対応するブロックB202の次の書き込み位置に、current_dataに格納されている、ブロックA201に格納されたデータの平均値が記録される。 In S703, the data management unit 402 records the data stored in current_data in data_count [block_count], which is the next write position of the recording block indicated by block_count. Here, since block_count is "1", the average value of the data stored in block A201, which is stored in current_data, is recorded in the next write position of the corresponding block B202.

S704において、データ管理部402は、S703で記録した計測データに対応する付加情報を、当該計測データに対応する付加情報の記憶領域に記録する。ここではblock_countが「1」であるため、ブロックB202に記録した平均値に対応するブロックB202の付加情報の記憶領域に、平均値に対応する取得期間を含む付加情報が記録される。例えば、データ管理部402は、ブロックA201に記録されている複数の計測データの取得時間を、付加情報を参照して取得する。また、データ管理部402は、一例として、ブロックA201のアドレスA_0~A_9に記録されている計測データの取得時間、計測データの取得間隔、及び計測データのデータ数等を、平均値に対応する取得期間として付加情報に記録する。 In S704, the data management unit 402 records the additional information corresponding to the measurement data recorded in S703 in the storage area of the additional information corresponding to the measurement data. Here, since block_count is "1", additional information including the acquisition period corresponding to the average value is recorded in the storage area of the additional information of block B202 corresponding to the average value recorded in block B202. For example, the data management unit 402 acquires the acquisition time of the multiple measurement data recorded in block A201 by referring to the additional information. Also, as an example, the data management unit 402 records the acquisition time, acquisition interval of the measurement data, and number of pieces of measurement data recorded in addresses A_0 to A_9 of block A201 as the acquisition period corresponding to the average value in the additional information.

S705において、data_count[block_count]の値をインクリメントする。 At S705, the value of data_count[block_count] is incremented.

S706において、データ管理部402は、data_count[bloc_count]の値が、当該記録ブロックのN_MAX_DATAより小さいか否かを判断する。data_count[bloc_count]の値がN_MAX_DATAより小さい場合(S706YES)、データ管理部402は図7の処理を終了させる。一方、data_count[bloc_count]の値がN_MAX_DATAより小さくない場合(S706NO)、データ管理部402は処理をS707に移行させる。 In S706, the data management unit 402 determines whether the value of data_count[bloc_count] is smaller than N_MAX_DATA for the recording block. If the value of data_count[bloc_count] is smaller than N_MAX_DATA (S706 YES), the data management unit 402 ends the processing in FIG. 7. On the other hand, if the value of data_count[bloc_count] is not smaller than N_MAX_DATA (S706 NO), the data management unit 402 transitions the processing to S707.

S707に移行すると、データ管理部402は、data_count[block_count]の値を「0」に戻す。 When proceeding to S707, the data management unit 402 resets the value of data_count[block_count] to "0".

S708において、データ管理部402は、block_countで示される記録ブロックに記録されているデータの平均値を算出する。 In S708, the data management unit 402 calculates the average value of the data recorded in the recording block indicated by block_count.

S709において、データ管理部402は、block_countの値が記録ブロックの最大値(N_MAX_BLOCK)より小さいか否かを判断する。block_countの値がN_MAX_BLOCKより小さい場合(S709YES)、データ管理部402は、block_countの値をインクリメントして、処理をS703に戻す。これによりblock_count=2となり、ブロックC203においてS703以降の処理が実行される。 In S709, the data management unit 402 determines whether the value of block_count is smaller than the maximum value of the recording block (N_MAX_BLOCK). If the value of block_count is smaller than N_MAX_BLOCK (S709 YES), the data management unit 402 increments the value of block_count and returns the process to S703. This makes block_count=2, and the process from S703 onwards is executed in block C203.

一方、block_countの値がN_MAX_BLOCK以上である場合、データ管理部402は図7の処理を終了させる。 On the other hand, if the value of block_count is greater than or equal to N_MAX_BLOCK, the data management unit 402 terminates the processing of FIG. 7.

上記の処理により、送信装置101は、取得した計測データをブロックA201に順次に格納し、末尾のアドレスA_9に計測データを記録したときに、次の書き込みポインタを先頭のアドレスA_0に戻す。また、送信装置101は、ブロックA201における記録が一巡するタイミングで、ブロックA201に格納されているデータの平均値(代表値)を算出して、ブロックB202に記録することができる。 By the above process, the transmitting device 101 sequentially stores the acquired measurement data in block A201, and when the measurement data is recorded in the last address A_9, the transmitting device 101 returns the next write pointer to the first address A_0. In addition, when the recording in block A201 is completed, the transmitting device 101 can calculate the average value (representative value) of the data stored in block A201 and record it in block B202.

同様に、送信装置101は、ブロックB202における記録が一巡するタイミングで、ブロックB202に格納されているデータの代表値を算出してブロックC203に記録する。このように、送信装置101は、古いデータほど、記憶領域を節約して計測データを蓄積するとともに、比較的新しいデータを加工せずに元データのまま蓄積する。 Similarly, when recording in block B202 is completed, the transmitting device 101 calculates a representative value of the data stored in block B202 and records it in block C203. In this way, the transmitting device 101 accumulates measurement data while saving storage area for older data, and accumulates relatively new data in its original form without processing it.

(送信処理)
図8は、一実施形態に係る送信処理を示すフローチャートである。この処理は、S608において送信装置101が実行する送信処理の例を示している。
(Transmission process)
8 is a flowchart showing a transmission process according to an embodiment of the present invention, which illustrates an example of the transmission process executed by the transmitting device 101 in S608.

S801において、データ送信部403は、複数の記録ブロックを重み付けし、重み付けに基づいて、複数の記録ブロックのうち送信するデータを格納している記録ブロックを選択し、選択する記録ブロックを示す変数をblock_selectに設定する。例えば、データ送信部403は、図9に示すブロック選択処理を実行して、データを送信する記録ブロックを選択する。 In S801, the data transmission unit 403 weights a plurality of recording blocks, selects a recording block that stores data to be transmitted from among the plurality of recording blocks based on the weighting, and sets a variable indicating the selected recording block to block_select. For example, the data transmission unit 403 executes the block selection process shown in FIG. 9 to select a recording block to transmit data.

S802において、データ送信部403は、選択された記録ブロックに記録されている複数のデータの中から送信するデータを選択し、data_selectに設定する。例えば、データ送信部403は、選択された記録ブロックに記録されている複数のデータの中から送信するデータをランダムに選択する。或いは、データ送信部403は、選択された記録ブロックに記録されている複数のデータを重み付けして、重み付けに基づいて送信するデータをランダムに選択する。 In S802, the data transmission unit 403 selects data to be transmitted from the multiple pieces of data recorded in the selected recording block, and sets the data to data_select. For example, the data transmission unit 403 randomly selects data to be transmitted from the multiple pieces of data recorded in the selected recording block. Alternatively, the data transmission unit 403 weights the multiple pieces of data recorded in the selected recording block, and randomly selects data to be transmitted based on the weighting.

S803において、データ送信部403は、S802で選択されたデータを送信データのデータ領域であるsend_dataに設定する。 In S803, the data transmission unit 403 sets the data selected in S802 to send_data, which is the data area of the transmission data.

S804において、データ送信部403は、S802で選択されたデータの付加情報を、送信データの付加情報領域であるsend_infoに設定する。なお、選択されたデータが計測データである場合、この付加情報には当該計測データを取得した取得時間の情報が含まれる。また、選択されたデータが平均値(代表値)である場合、この付加情報には平均したデータを取得した期間を示す取得期間の情報が含まれる。 In S804, the data transmission unit 403 sets the additional information of the data selected in S802 to send_info, which is the additional information area of the transmission data. If the selected data is measurement data, this additional information includes information on the acquisition time when the measurement data was acquired. If the selected data is an average value (representative value), this additional information includes information on the acquisition period that indicates the period when the averaged data was acquired.

S805において、データ送信部403は、送信するデータ(send_Data)と、当該データに対応する付加情報(send_info)とを含む送信データを、受信装置102などの送信先に無線通信で送信する。 In S805, the data transmission unit 403 transmits the transmission data, which includes the data to be transmitted (send_Data) and additional information (send_info) corresponding to the data, to a destination such as the receiving device 102 via wireless communication.

(ブロック選択処理)
図9は、一実施形態に係るブロック選択処理を示すフローチャートである。この処理は、S801で送信装置101が実行するブロック選択処理の一例を示している。
(Block selection process)
9 is a flowchart showing a block selection process according to an embodiment of the present invention, which illustrates an example of the block selection process executed by the transmitting device 101 in S801.

S901において、データ送信部403は、一例として、0~99の範囲で乱数を発生して、発生した乱数をrand領域に格納する。 In S901, the data transmission unit 403 generates a random number in the range of 0 to 99, for example, and stores the generated random number in the rand area.

S902において、データ送信部403は、ブロック数が2であるか否かを判断する。ここで、ブロック数は記録ブロックの数を表しており、ブロック数=2は、記録ブロックの数が2つであることを表すものとする。 In S902, the data transmission unit 403 determines whether the number of blocks is 2. Here, the number of blocks represents the number of recording blocks, and the number of blocks = 2 represents that the number of recording blocks is two.

ブロック数=2であるとき、ブロックA201とブロックB202の2つの記録ブロックがあるため、データ送信部403は処理をS903に移行させる。一方、ブロック数=2でない場合、データ送信部403は処理をS906に移行させる。 When the number of blocks is 2, there are two recording blocks, block A201 and block B202, so the data transmission unit 403 transitions the process to S903. On the other hand, if the number of blocks is not 2, the data transmission unit 403 transitions the process to S906.

S903に移行すると、データ送信部403は、発生した乱数randの値が70より小さいか否かを判断する。randの値が70より小さい場合、データ送信部403は処理をS904に移行させる。一方、randの値が70以上である場合、データ送信部403は処理をS905に移行させる。 When the process proceeds to S903, the data transmission unit 403 determines whether the value of the generated random number rand is smaller than 70. If the value of rand is smaller than 70, the data transmission unit 403 proceeds to S904. On the other hand, if the value of rand is 70 or greater, the data transmission unit 403 proceeds to S905.

S904に移行すると、データ送信部403は、block_selectの値を「0」として、ブロックA201を選択する。 When the process proceeds to S904, the data transmission unit 403 sets the value of block_select to "0" and selects block A201.

一方、S905に移行すると、データ送信部403は、block_selectの値を「1」として、ブロックB202を選択する。 On the other hand, when the process proceeds to S905, the data transmission unit 403 sets the value of block_select to "1" and selects block B202.

上記の処理により、データ送信部403は、記録ブロックの数が2つである場合、乱数を用いて、ブロックA201を70%の確率で選択し、ブロックB202を30%の確率で選択することができる。
なお、上記の確率は一例であり、他の値であっても良い。この場合、発生させる乱数の数を変える、S903の判断での乱数の閾値を変える、などの対応を取ればよい。
By the above process, when the number of recording blocks is two, the data transmission unit 403 can use random numbers to select block A 201 with a probability of 70% and block B 202 with a probability of 30%.
The above probability is merely an example, and other values may be used. In this case, measures may be taken such as changing the number of random numbers to be generated or changing the threshold value of the random numbers used in the determination in S903.

一方、S902からS906に移行すると、データ送信部403はブロック数=3であるか否かを判断する。なお、ブロック数=3は記録ブロックの数が3つであることを表すものとする。 On the other hand, when the process moves from S902 to S906, the data transmission unit 403 determines whether the number of blocks is 3. Note that the number of blocks is 3, which indicates that the number of recording blocks is three.

ブロック数=3である場合、記録ブロックがブロックA201~ブロックC203の3つあるので、データ送信部403は処理をS907に移行させる。一方、ブロック数=3でない場合、データ送信部403は処理をS913に移行させる。なお、S906の処理はS902の前に実行しても良い。 If the number of blocks is 3, there are three recording blocks, block A201 to block C203, and so the data transmission unit 403 transitions the process to S907. On the other hand, if the number of blocks is not 3, the data transmission unit 403 transitions the process to S913. Note that the process of S906 may be executed before S902.

S907に移行すると、データ送信部403は、発生した乱数randの値が50より小さいか否かを判断する。randの値が50より小さい場合、データ送信部403は処理をS908に移行させる。一方、randの値が50以上である場合、データ送信部403は処理をS909に移行させる。 When the process proceeds to S907, the data transmission unit 403 determines whether the value of the generated random number rand is smaller than 50. If the value of rand is smaller than 50, the data transmission unit 403 proceeds to S908. On the other hand, if the value of rand is 50 or greater, the data transmission unit 403 proceeds to S909.

S908に移行すると、データ送信部403は、block_selectの値を「0」として、ブロックA201を選択する。 When the process proceeds to S908, the data transmission unit 403 sets the value of block_select to "0" and selects block A201.

一方、S909に移行すると、データ送信部は、発生した乱数randの値が75より小さいか否かを判断する。randの値が75より小さい場合、データ送信部403は処理をS911に移行させる。一方、randの値が75以上である場合、データ送信部403は処理をS912に移行させる。 On the other hand, when the process proceeds to S909, the data transmission unit 403 determines whether the value of the generated random number rand is smaller than 75. If the value of rand is smaller than 75, the data transmission unit 403 proceeds to S911. On the other hand, if the value of rand is 75 or greater, the data transmission unit 403 proceeds to S912.

S911に移行すると、データ送信部403は、block_selectの値を「1」として、ブロックB202を選択する。 When the process proceeds to S911, the data transmission unit 403 sets the value of block_select to "1" and selects block B202.

一方、S912に移行すると、データ送信部403は、block_selectの値を「2」として、ブロックC203を選択する。 On the other hand, when the process proceeds to S912, the data transmission unit 403 sets the value of block_select to "2" and selects block C203.

上記の処理により、データ送信部403は、記録ブロックの数が3つである場合、乱数を用いて、ブロックA201を50%の確率で選択し、ブロックB202、及びブロックC203をそれぞれ25%の確率選択することができる。なお、上記の確率は一例であり、他の値であっても良い。 By the above process, when the number of recording blocks is three, the data transmission unit 403 can use random numbers to select block A201 with a 50% probability, and block B202 and block C203 with a 25% probability each. Note that the above probabilities are just examples, and other values may be used.

一方、S906からS913に移行すると、データ送信部403は、ブロック数=1であるか否かを判断する。なお、ブロック数=1は記録ブロックの数が1つであることを表すものとする。 On the other hand, when the process moves from S906 to S913, the data transmission unit 403 determines whether the number of blocks is 1. Note that the number of blocks is 1, which indicates that there is one recording block.

ブロック数=1である場合、記録ブロックがブロックA201のみであるので、データ送信部403は処理をS914に移行させる。一方、ブロック数=1でない場合、データ送信部403は処理をS915に移行させる。 If the number of blocks is 1, the only recorded block is block A201, so the data transmission unit 403 transitions the process to S914. On the other hand, if the number of blocks is not 1, the data transmission unit 403 transitions the process to S915.

S914に移行すると、データ送信部403は、block_selectの値を「0」として、ブロックA201を選択する。 When the process proceeds to S914, the data transmission unit 403 sets the value of block_select to "0" and selects block A201.

S915において、データ送信部403は、S902~S914で設定されたblock_selectの値をS801に返す。 In S915, the data transmission unit 403 returns the value of block_select set in S902 to S914 to S801.

このように、本実施形態に係るデータ送信部403は、図2に示すように3つの記録ブロックがある場合、例えば、randの値によってブロックB202の重みをブロックA201の重みより小さく設定し、ブロックC203の重みをブロックB202の重みより小さく設定する。これにより、データ送信部403は、送信先に、直近の計測データを優先的に送信しつつ、過去のデータも送信することができる。
続いて、データ送信部403が選択する記録ブロック、及びデータの重み付けについて、複数の実施形態を例示して説明する。
2, the data transmission unit 403 according to this embodiment sets the weight of block B202 to be smaller than the weight of block A201, and sets the weight of block C203 to be smaller than the weight of block B202, for example, according to the value of rand. This allows the data transmission unit 403 to transmit the most recent measurement data to the destination with priority, while also transmitting past data.
Next, the recording blocks selected by the data transmission unit 403 and the weighting of data will be described by taking a number of exemplary embodiments as examples.

[第1の実施形態]
図10は、第1の実施形態に係る記録ブロック及びデータの重み付けを示す図である。図9のフローチャートでは記録ブロックの数が1~3の場合について説明したが、記録ブロックの数は4つ以上であっても良い。
[First embodiment]
Fig. 10 is a diagram showing the weighting of recording blocks and data according to the first embodiment. In the flowchart of Fig. 9, the case where the number of recording blocks is 1 to 3 has been described, but the number of recording blocks may be 4 or more.

図10の例では、ブロックAの重みを1/2とし、残りの重み1/2をブロックB、C、D、・・・に割り当てている。また、ブロックBの重みを1/4(=1/2×1/2)とし、残りの重み1/4をブロックC、D、・・・に割り当てている。さらに、ブロックCの重みを1/8(=1/4×1/2)とし、残りの重み1/8をブロックD、・・・に割り当てている。 In the example of Figure 10, the weight of block A is set to 1/2, and the remaining weight 1/2 is assigned to blocks B, C, D, .... The weight of block B is set to 1/4 (= 1/2 x 1/2), and the remaining weight 1/4 is assigned to blocks C, D, .... The weight of block C is set to 1/8 (= 1/4 x 1/2), and the remaining weight 1/8 is assigned to blocks D, ....

つまり、Nを1以上の整数、Xを1未満の有理数とした場合、第(N+1)の記録ブロックの重みが、第Nの記録ブロックの重みのX倍となるように設定されている。この方法により、例えば記録ブロックの数が4つ以上の場合でも、各記録ブロックの重みを容易に決定することができる。 In other words, if N is an integer equal to or greater than 1 and X is a rational number less than 1, the weight of the (N+1)th recording block is set to be X times the weight of the Nth recording block. With this method, the weight of each recording block can be easily determined even when there are four or more recording blocks.

図10の例では、各記録ブロック内のデータは平等に重み付けされ、重み付けに応じた確率で送信するデータが選択される。これにより、ブロックA内の各データは1/2*1/10=1/20の確率で送信される。同様に、ブロックB内の各データは、1/4*1/10=1/40の確率で送信され、ブロックC内の各データは1/8*1/10=1/80の確率で送信され、ブロックD内の各データは1/16*1/10=1/160の確率で送信される。 In the example of Figure 10, the data in each recording block is weighted equally, and data to be transmitted is selected with a probability according to the weighting. As a result, each piece of data in block A is transmitted with a probability of 1/2 * 1/10 = 1/20. Similarly, each piece of data in block B is transmitted with a probability of 1/4 * 1/10 = 1/40, each piece of data in block C with a probability of 1/8 * 1/10 = 1/80, and each piece of data in block D with a probability of 1/16 * 1/10 = 1/160.

[第2の実施形態]
図11は、第2の実施形態に係る記録ブロック及びデータの重み付けを示す図である。図11では、ブロックA内の各データ(アドレスA_0~A_9)と、ブロックB+ブロックCに均等に重みを与えた場合の重み付けの例を示している。図11の例では各記録ブロックは10個のデータを格納可能であり、ブロックAの各データに1/11の重みづけを与えており、ブロックBとブロックCとに合わせて1/11の重みづけを与えている。
Second Embodiment
Fig. 11 is a diagram showing recording blocks and weighting of data according to the second embodiment. Fig. 11 shows an example of weighting when equal weights are given to each data (addresses A_0 to A_9) in block A and to block B+block C. In the example of Fig. 11, each recording block can store 10 data, and a weighting of 1/11 is given to each data in block A, and a weighting of 1/11 is given to blocks B and C together.

図11では、ブロックA内の各データは、1/11の確率で送信先に送信される。また、ブロックB+ブロックCが選択される確率も1/11となる。 In FIG. 11, each data in block A has a probability of 1/11 being sent to the destination. Also, the probability that block B + block C are selected is also 1/11.

また、図11では、ブロックB内の各データ(アドレスB_0~B_9)と、ブロックCに均等に1/11の重みを与えている。ブロックB内の各データは1/11*1/11=1/121の確率で送信される。また、ブロックCが選択される確率も1/121となる。さらに、ブロックC内の各データには1/11の重みづけが与えられており、ブロックCのデータは1/121*1/11=1/1331の確率で送信される。 In addition, in FIG. 11, each data in block B (addresses B_0 to B_9) and block C are equally weighted at 1/11. Each data in block B is transmitted with a probability of 1/11*1/11=1/121. The probability that block C is selected is also 1/121. Furthermore, each data in block C is weighted at 1/11, and the data in block C is transmitted with a probability of 1/121*1/11=1/1331.

[第3の実施形態]
図12は、第3の実施形態に係る記録ブロック及びデータの重み付けを示す図である。第2の実施形態では、各記録ブロック内のデータには均等に重みが与えられていたが、図12に示す例では、直近に取得したデータ(<現在>)の重みを大きく設定している。
[Third embodiment]
Fig. 12 is a diagram showing the weighting of recording blocks and data according to the third embodiment. In the second embodiment, the data in each recording block is weighted equally, but in the example shown in Fig. 12, the most recently acquired data (<present>) is weighted heavily.

図12のブロックAにおいて、現在のデータがアドレスA_9に記録されているものとする。<現在>のデータに1/2の重みを設定することにより、1/2の確率でアドレスA_9に格納されているデータが選択されるようにする。 In block A of FIG. 12, assume that the current data is stored at address A_9. By setting a weight of 1/2 for the <current> data, the data stored at address A_9 is selected with a 1/2 probability.

また、残りの1/2の重みを、ブロックA内の残りの9データ(アドレスA0~A8)と、ブロックB+Cとに均等に割り当てる。つまり、ブロックA内の<現在>のデータ以外が選択される確率を1/2とする。そのため、ブロックA内のアドレスA0~A8のデータの重みは1/2*1/10=1/20となる。また、ブロックBおよびブロックCの重みも1/20とする。 The remaining 1/2 of the weight is then evenly allocated to the remaining 9 data in block A (addresses A0 to A8) and blocks B+C. In other words, the probability that data other than the <current> data in block A will be selected is set to 1/2. Therefore, the weight of the data at addresses A0 to A8 in block A is 1/2 * 1/10 = 1/20. The weights of blocks B and C are also set to 1/20.

この場合、ブロックB内の各データ及びブロックCの重みは1/20*1/11=1/220となり、ブロックC内の各データの重みは1/220*1/11=1/2420となる。 In this case, the weight of each data in block B and block C is 1/20 * 1/11 = 1/220, and the weight of each data in block C is 1/220 * 1/11 = 1/2420.

データ送信部403は、上記の各実施形態で説明した重み付けに基づいて送信するデータを選択する。これにより、重みづけに基づいてランダムに選択されたデータが送信される。
また、データ送信部403は、例えば、図13(A)に示すように、選択したデータ1311と対応する付加情報1312とを含む送信データ1310を、受信装置102などの送信先に送信する。
The data transmission unit 403 selects data to be transmitted based on the weighting described in each of the above embodiments, whereby data randomly selected based on the weighting is transmitted.
Furthermore, the data transmitting unit 403 transmits, for example, as shown in FIG. 13A, transmission data 1310 including selected data 1311 and corresponding additional information 1312 to a destination such as the receiving device 102 .

別の一例として、データ送信部403は、図13(B)に示すように、選択したデータ1311と対応する付加情報1312に加えて、最新データ1321と、最新データ1321のタイムスタンプ1322を送信しても良い。 As another example, the data transmission unit 403 may transmit the latest data 1321 and a timestamp 1322 of the latest data 1321 in addition to the selected data 1311 and the corresponding additional information 1312, as shown in FIG. 13 (B).

[第4の実施形態]
図14は、第4の実施形態に係る記録ブロック及びデータの重み付けを示す図である。図14の例では、ブロックA~Cとは別の記憶領域(例えば、アドレスX_0)にデータ取得部401が取得した最新データを一時的に記憶し、その重みを「1」としている。また、ブロックAの各アドレスのデータの重みを「1/11」とし、ブロックBの各アドレスのデータの重みを「1/11*1/11=1/121」としている。さらに、ブロックCの各アドレスのデータの重みを「1/121*1/11」としている。
[Fourth embodiment]
Fig. 14 is a diagram showing recording blocks and data weighting according to the fourth embodiment. In the example of Fig. 14, the latest data acquired by the data acquisition unit 401 is temporarily stored in a storage area (for example, address X_0) separate from blocks A to C, and the weight is set to "1". Furthermore, the weight of data at each address in block A is set to "1/11", and the weight of data at each address in block B is set to "1/11 * 1/11 = 1/121". Furthermore, the weight of data at each address in block C is set to "1/121 * 1/11".

これにより、データ送信部403は、例えば図13(B)に示すように、アドレスX_0に格納された最新データ1321、最新データのタイムスタンプ1322、ブロックA~ブロックCから選択したデータ1311、及びデータ1311に対応する付加情報1312を含む送信データ1320を送信する。これにより、データ送信部403は、最新の計測データを毎回送信しつつ、重み付けに基づいて選択した過去のデータを送信することができる。この場合、データ送信部403は、最新データ1321を送信した後に、当該最新データ1321をブロックAの次の書き込み先に記録する。 As a result, the data transmission unit 403 transmits transmission data 1320 including the latest data 1321 stored in address X_0, a timestamp 1322 of the latest data, data 1311 selected from blocks A to C, and additional information 1312 corresponding to the data 1311, as shown in FIG. 13(B), for example. This allows the data transmission unit 403 to transmit the latest measurement data every time, while also transmitting past data selected based on the weighting. In this case, after transmitting the latest data 1321, the data transmission unit 403 records the latest data 1321 in the next write destination of block A.

さらに、データ送信部403は、図13(C)に示すように、最新データ1321と最新データ1321のタイムスタンプ1322とともに、複数のデータ及び付加情報1331を含む送信データ1330を送信しても良い。 Furthermore, the data transmission unit 403 may transmit transmission data 1330 including multiple data and additional information 1331 together with the latest data 1321 and a timestamp 1322 of the latest data 1321, as shown in FIG. 13(C).

なお、上記の各実施形態では、例えば、ブロックBの各データ、ブロックC内の各データの重みがそれぞれ均等になっているが、ブロックB、ブロックCにおいても最新のデータの重みを高く設定しても良い。例えば、ブロックBにおいても、ブロックAと同様に最新データを別の記憶領域に格納し、当該記憶領域の重みをブロックBより高く設定しても良い。これにより、データ送信部403は、ブロックAの代表値が更新され、ブロックBに記録されたときに、更新された代表値を優先的に送信することができる。同様に、ブロックCにおいても、最新データを別の記憶領域に格納し、当該記憶領域の重みをブロックCより高く設定しても良い。 In the above embodiments, for example, the weights of each data in block B and each data in block C are equal, but the weights of the most recent data in blocks B and C may also be set higher. For example, the most recent data in block B may be stored in a separate memory area, as in block A, and the weight of that memory area may be set higher than that of block B. This allows the data transmission unit 403 to preferentially transmit the updated representative value when the representative value of block A is updated and recorded in block B. Similarly, the most recent data in block C may be stored in a separate memory area, and the weight of that memory area may be set higher than that of block C.

<受信装置の処理>
図15は、一実施形態に係るデータ受信処理を示すフローチャートである。この処理は、受信装置102が、送信装置101が送信した送信データを受信したときに実行する処理の一例を示している。
<Processing of Receiving Device>
15 is a flowchart showing a data reception process according to an embodiment. This process shows an example of a process that the receiving device 102 executes when receiving transmission data transmitted by the transmitting device 101.

S1501において、データ受信部501は、図13(A)に示すように、データ1311と、データ1311に対応する付加情報1312とを含む送信データ1310を受信するものとする。 In S1501, the data receiving unit 501 receives transmission data 1310 including data 1311 and additional information 1312 corresponding to the data 1311, as shown in FIG. 13(A).

なお、データ1311がブロックA201に記録された計測データである場合、付加情報1312には、データ1311を取得した日時を示す取得時間(タイムスタンプ)の情報が含まれる。また、データ1311が、ブロックB202等に記録された平均値である場合、付加情報1312には、平均化した複数の計測データを取得した期間を示す取得期間の情報が含まれる。 When the data 1311 is measurement data recorded in block A201, the additional information 1312 includes information on the acquisition time (timestamp) indicating the date and time when the data 1311 was acquired. When the data 1311 is an average value recorded in block B202 or the like, the additional information 1312 includes information on the acquisition period indicating the period during which the multiple averaged measurement data were acquired.

S1502において、データ処理部502は、受信した送信データ1310に含まれるデータ1311が、平均値であるか、計測データであるかを判断する。データ処理部502は、送信データ1310に含まれる付加情報1312に取得期間が含まれる場合、データ1311が平均値であると判断する。一方、データ処理部502は、付加情報1312に取得時間が含まれる場合、データ1311が計測データであると判断する。 In S1502, the data processing unit 502 determines whether the data 1311 included in the received transmission data 1310 is an average value or measurement data. If the additional information 1312 included in the transmission data 1310 includes an acquisition period, the data processing unit 502 determines that the data 1311 is an average value. On the other hand, if the additional information 1312 includes an acquisition time, the data processing unit 502 determines that the data 1311 is measurement data.

データ1311が平均値でない場合(計測データである場合)、データ処理部502は処理をS1503に移行させる。一方、データ1311が平均値である場合、データ処理部502は処理をS1505に移行させる。 If the data 1311 is not an average value (if it is measurement data), the data processing unit 502 shifts the process to S1503. On the other hand, if the data 1311 is an average value, the data processing unit 502 shifts the process to S1505.

S1503に移行すると、第1処理部502aは、ログデータを記憶する記憶領域(data_log)内の取得時間に対応するインデックス(書き込み位置)に、データ1311(rcv_data)を記憶する。これにより、ログデータを記憶する記憶領域に、データ1311が当該データ1311を取得した取得時間と対応付けて記憶される。 When the process proceeds to S1503, the first processing unit 502a stores the data 1311 (rcv_data) in an index (write position) corresponding to the acquisition time in the storage area (data_log) that stores the log data. As a result, the data 1311 is stored in the storage area that stores the log data in association with the acquisition time at which the data 1311 was acquired.

S1504において、表示制御部503は、一例として、最も古いデータから現在のデータまでの計測データの推移を示すグラフを作成し、表示装置315に表示する。 In S1504, the display control unit 503, as an example, creates a graph showing the progress of the measurement data from the oldest data to the current data, and displays it on the display device 315.

一方、S1502からS1505に移行すると、ログデータを記憶する記憶領域内の書き込み位置をカウントするカウンタiを0に初期化して、S1506以降の処理を実行する。 On the other hand, when the process moves from S1502 to S1505, the counter i that counts the write positions in the memory area that stores the log data is initialized to 0, and the process from S1506 onwards is executed.

S1506において、第2処理部502bは、data_log[平均期間内の最も古いインデックス+i]に、より低レベルブロックのデータが記憶されているか否かを判断する。例えば、データ受信部501が受信した送信データ1310に含まれるデータ1311が、取得時間t0、t1、t2、・・・、t9に測定した10個の計測データの平均値であるものとする。この場合、送信データ1310に含まれる付加情報1312には、取得期間として、例えば開始日時t0、データ取得間隔Δt、及びデータ数n等の情報が含まれる。従って、ステップS1501で受信した送信データを平均した平均期間は、「t0」~「t0+Δt×n」で表すことができる。 In S1506, the second processing unit 502b determines whether data of a lower level block is stored in data_log [oldest index in the averaging period + i]. For example, it is assumed that the data 1311 included in the transmission data 1310 received by the data receiving unit 501 is the average value of 10 pieces of measurement data measured at acquisition times t0, t1, t2, ..., t9. In this case, the additional information 1312 included in the transmission data 1310 includes information such as the start date and time t0, the data acquisition interval Δt, and the number of pieces of data n as the acquisition period. Therefore, the averaging period obtained by averaging the transmission data received in step S1501 can be expressed as "t0" to "t0 + Δt x n".

ここで、「平均期間内の最も古いインデックス+i」は、ログデータを記憶するdata_log内の取得時間「t0+Δt×i」に対応するインデックスを示す。また、低レベルブロックのデータとは、平均化していない計測データ、又はステップS1501で受信した送信データを平均した平均期間より短い平均期間で平均化されたデータを表す。 Here, "oldest index in the averaging period + i" indicates the index corresponding to the acquisition time "t0 + Δt × i" in data_log that stores the log data. Also, the data in the low-level block represents measurement data that has not been averaged, or data that has been averaged over an averaging period that is shorter than the averaging period for averaging the transmission data received in step S1501.

第2処理部502bは、S1506において、ログデータを記憶するdata_log内の取得時間「t0+Δt×i」に対応するインデックスに、計測データ(低レベルブロックのデータ)が記憶されているか否かを判断する。 In S1506, the second processing unit 502b determines whether measurement data (data of a low-level block) is stored in the index corresponding to the acquisition time "t0 + Δt × i" in data_log, which stores the log data.

低レベルブロックのデータがない場合(S1506NO)、第2処理部502bは処理をS1507に移行させる。一方、低レベルブロックのデータがある場合(S1506YES)、第2処理部502bは処理をS1508に移行させる。 If there is no low-level block data (S1506 NO), the second processing unit 502b transitions the process to S1507. On the other hand, if there is low-level block data (S1506 YES), the second processing unit 502b transitions the process to S1508.

S1507において、第2処理部502bは、data_log[平均期間内の最も古いインデックス+i]に、データ受信部501が受信した送信データ1310に含まれるデータ1311(rcv_data)を記憶する。 In S1507, the second processing unit 502b stores data 1311 (rcv_data) contained in the transmission data 1310 received by the data receiving unit 501 in data_log [oldest index within the averaging period + i].

上記の処理によりdata_log内の取得時間「t0+Δt×i」に対応するインデックスに計測データが記憶されていない場合、平均値であるデータ1311が記憶される。一方、data_log内の取得時間「t0+Δt×i」に対応するインデックスに計測データが記憶されている場合、平均値であるデータ1311を記憶せず、記憶されている計測データを維持する。 When no measurement data is stored in the index corresponding to the acquisition time "t0+Δt×i" in data_log by the above process, the average data 1311 is stored. On the other hand, when measurement data is stored in the index corresponding to the acquisition time "t0+Δt×i" in data_log, the average data 1311 is not stored and the stored measurement data is maintained.

S1508において、第2処理部502bは、iの値が平均化したデータの数(ある取得期間に含まれるデータ数)より小さいか否かを判断する。iの値が平均化したデータの数より小さい場合、第2処理部502bは、処理をS1509に移行させる。一方、iの値が平均化したデータの数以上である場合、第2処理部502bは、処理をS1504に移行させる。 In S1508, the second processing unit 502b determines whether the value of i is smaller than the number of averaged data (the number of data included in a certain acquisition period). If the value of i is smaller than the number of averaged data, the second processing unit 502b transitions the process to S1509. On the other hand, if the value of i is equal to or greater than the number of averaged data, the second processing unit 502b transitions the process to S1504.

S1509に移行すると、第2処理部502bは、iをインクリメントして、処理をS1506に戻す。 When processing proceeds to S1509, the second processing unit 502b increments i and returns processing to S1506.

上記の処理により、受信装置102は、データ受信部501が受信した送信データ1310に計測データが含まれている場合、当該計測データを、付加情報1312に含まれる取得時間に基づいてログデータを記憶する記憶領域に記憶する。 By the above processing, when measurement data is included in the transmission data 1310 received by the data receiving unit 501, the receiving device 102 stores the measurement data in a memory area that stores log data based on the acquisition time included in the additional information 1312.

また、受信装置102は、データ受信部501が受信した送信データに平均値が含まれており、付加情報1312に含まれる取得期間に計測データが記憶されていない場合、ステップS1505~S1609の処理により、当該平均値を用いて、ログデータが補完される。 In addition, if the transmission data received by the data receiving unit 501 includes an average value and no measurement data is stored during the acquisition period included in the additional information 1312, the receiving device 102 uses the average value to complement the log data by processing steps S1505 to S1609.

なお、図15に示す処理は一例である。例えば、受信装置102は、データ受信部501が受信した送信データ1310に平均値が含まれている場合、当該平均値と、当該平均値の取得期間の情報とを対応付けて、記憶部505に記憶しても良い。 The process shown in FIG. 15 is an example. For example, when an average value is included in the transmission data 1310 received by the data receiving unit 501, the receiving device 102 may store the average value in the storage unit 505 in association with information on the period during which the average value was obtained.

この場合、受信装置102の表示制御部503に直近の計測データの推移と、過去の平均値とを表示画面に表示しても良いし、平均値を展開して、過去からの計測データの推移を表示画面に表示しても良い。 In this case, the display control unit 503 of the receiving device 102 may display the most recent measurement data trends and past average values on the display screen, or the average values may be expanded and the measurement data trends from the past may be displayed on the display screen.

以上、本発明の各実施形態によれば、取得した複数データを記録しつつ、送信先に送信する送信装置101において、最新の計測データだけではなく、過去のデータも容易に取得できるようになる。 As described above, according to each embodiment of the present invention, the transmitting device 101, which records the multiple acquired data and transmits them to the destination, can easily acquire not only the latest measurement data but also past data.

また、本実施形態に係る送信装置101によれば、比較的最近のデータをより多いデータ量で記録し、古いデータをより少ないデータ量で記録することができるので、記録効率を向上させることができる。 In addition, according to the transmitting device 101 of this embodiment, relatively recent data can be recorded in a larger amount of data, and older data can be recorded in a smaller amount of data, thereby improving recording efficiency.

また、送信時においても、モニタリングやデモンストレーション等の用途で比較的重要度の高い直近のデータを高頻度で、比較的注目度や緊急度が低いものの一定の需要のある古いデータを低頻度で受信装置102に送信することができる。 In addition, when transmitting, the most recent data that is relatively important for applications such as monitoring and demonstrations can be transmitted frequently to the receiving device 102, while older data that is less important or urgent but still in demand can be transmitted less frequently.

従って、受信装置102は、比較的遠い過去から現在に至るまでの計測データの推移、アウトライン等を比較的短期間で取得可能となり、しかも計測データ取得におけるリアルタイム性もさほど損なわないという効果が期待できる。 Therefore, the receiving device 102 can acquire the trends and outlines of measurement data from the relatively distant past to the present in a relatively short period of time, without significantly impairing the real-time nature of measurement data acquisition.

以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。 The configurations shown in the above embodiments are merely examples of the contents of the present invention, and it is possible to omit or modify parts of the configurations without departing from the gist of the present invention.

100 データ通信システム、101 送信装置、102 受信装置、
111 ゲートウェイ、112 情報端末、201 ブロックA、202 ブロックB、203 ブロックC、402 データ管理部、403 データ送信部、
501 データ受信部、502a 第1処理部、502b 第2処理部、
505 記憶部、1312 付加情報
100 Data communication system, 101 Transmitting device, 102 Receiving device,
111 Gateway, 112 Information terminal, 201 Block A, 202 Block B, 203 Block C, 402 Data management unit, 403 Data transmission unit,
501 data receiving unit, 502a first processing unit, 502b second processing unit,
505 storage unit, 1312 additional information

Claims (4)

取得したデータを記録し、送信する送信装置であって、
環状バッファで構成されるデータ記録用の複数の記録ブロックと、
前記記録ブロックにおける記録が一巡するタイミングで、当該記録ブロックに記録されているデータの代表値を、当該記録ブロックとは異なる他の記録ブロックに記録するデータ管理部と、
前記複数の記録ブロックに重み付けし、前記重み付けに基づいて前記複数の記録ブロックに記録されているデータを送信するデータ送信部と、
を有し、
前記データ送信部は、前記送信するデータを、前記重み付けに基づいてランダムに決定する、送信装置。
A transmitting device that records and transmits acquired data,
a plurality of recording blocks for recording data, each of which is formed of a circular buffer;
a data management unit that records a representative value of data recorded in the recording block in another recording block different from the recording block when recording in the recording block is completed;
a data transmission unit that weights the plurality of recording blocks and transmits data recorded in the plurality of recording blocks based on the weighting;
having
A transmitting device , wherein the data transmitting unit randomly determines the data to be transmitted based on the weighting .
前記データ送信部は、前記データとともに、当該データの取得時間又は取得期間を示す付加情報を送信する、請求項に記載の送信装置。 The transmitting device according to claim 1 , wherein the data transmitting unit transmits additional information indicating an acquisition time or an acquisition period of the data together with the data. 前記複数の記録ブロックは、第(N+1)の記録ブロックの重みが、第Nの記録ブロックの重みのX倍となるように設定されており、
Nは1以上の整数であり、Xは1未満の有理数である、請求項1又は2に記載の送信装置。
The plurality of recording blocks are set such that a weight of an (N+1)th recording block is X times a weight of an Nth recording block,
3. The transmitting device according to claim 1, wherein N is an integer equal to or greater than 1, and X is a rational number less than 1.
前記データ送信部は、前記複数の記録ブロックに記録されているデータを、無線通信で受信装置、又は前記受信装置に前記データを転送する中継装置に送信する、請求項1乃至のいずれか一項に記載の送信装置。 The transmitting device according to claim 1 , wherein the data transmitting unit transmits the data recorded in the plurality of recording blocks to a receiving device or a relay device that transfers the data to the receiving device by wireless communication.
JP2021016242A 2021-02-04 2021-02-04 Transmitting Device Active JP7597290B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021016242A JP7597290B2 (en) 2021-02-04 2021-02-04 Transmitting Device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021016242A JP7597290B2 (en) 2021-02-04 2021-02-04 Transmitting Device

Publications (2)

Publication Number Publication Date
JP2022119261A JP2022119261A (en) 2022-08-17
JP7597290B2 true JP7597290B2 (en) 2024-12-10

Family

ID=82848436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021016242A Active JP7597290B2 (en) 2021-02-04 2021-02-04 Transmitting Device

Country Status (1)

Country Link
JP (1) JP7597290B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7503166B1 (en) 2023-03-16 2024-06-19 新コスモス電機株式会社 COMMUNICATION DEVICE, GAS DETECTION SYSTEM, GAS DETECTOR, COMMUNICATION METHOD, AND CONTROL METHOD

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006323440A (en) 2005-05-17 2006-11-30 Mitsubishi Electric Corp Information collection system
JP2010271190A (en) 2009-05-21 2010-12-02 Mitsubishi Electric Corp Recording device
JP7128084B2 (en) 2018-10-24 2022-08-30 積水化学工業株式会社 roof unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006323440A (en) 2005-05-17 2006-11-30 Mitsubishi Electric Corp Information collection system
JP2010271190A (en) 2009-05-21 2010-12-02 Mitsubishi Electric Corp Recording device
JP7128084B2 (en) 2018-10-24 2022-08-30 積水化学工業株式会社 roof unit

Also Published As

Publication number Publication date
JP2022119261A (en) 2022-08-17

Similar Documents

Publication Publication Date Title
CN107102936B (en) Fluency evaluation method, mobile terminal and storage medium
CN106161628B (en) Shooting file uploading method and device
CN108073437B (en) Application recommendation method and mobile terminal
CN109189300B (en) View circulation display method and device
JP6701622B2 (en) Synchronous measurement system
WO2017152355A1 (en) Display method and terminal device
CN108984066B (en) Application icon display method and mobile terminal
CN104112156B (en) System and method for updating electronic shelf label and updating device and method thereof
JP6020092B2 (en) Data processing apparatus, data processing method, and program
CN110874128B (en) Visualized data processing method and electronic equipment
CN110377235B (en) Data processing method and device, mobile terminal and computer readable storage medium
JP7597290B2 (en) Transmitting Device
US20190243411A1 (en) Methods for data synchronization between a sensor hub and an application processor and apparatuses using the same
CN107196980B (en) Method, system and device for controlling page display flow
CN115017003A (en) Load prediction method and load prediction device
CN105392170A (en) Information processing method and electronic device
US20150301618A1 (en) Sub-frame accumulation method and apparatus for keeping reporting errors of an optical navigation sensor consistent across all frame rates
WO2019072179A1 (en) Application running control method and apparatus
CN110378798B (en) Heterogeneous social network construction method, group recommendation method, device and equipment
CN110753914A (en) Information processing method, storage medium and mobile terminal
CN109765850B (en) Control system
CN113784197B (en) Video display method, video frame caching method and device
JP2020052441A (en) Master device, control method, information processing program, and recording medium of master device
WO2017088180A1 (en) Method, apparatus and device for storing data in queue
CN112418631A (en) Resource allocation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240109

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240611

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240813

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241114

R150 Certificate of patent or registration of utility model

Ref document number: 7597290

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150