JP7084191B2 - Environmental measurement system - Google Patents

Environmental measurement system Download PDF

Info

Publication number
JP7084191B2
JP7084191B2 JP2018072864A JP2018072864A JP7084191B2 JP 7084191 B2 JP7084191 B2 JP 7084191B2 JP 2018072864 A JP2018072864 A JP 2018072864A JP 2018072864 A JP2018072864 A JP 2018072864A JP 7084191 B2 JP7084191 B2 JP 7084191B2
Authority
JP
Japan
Prior art keywords
environment measuring
measuring device
mobile terminal
cpu
communication
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
JP2018072864A
Other languages
Japanese (ja)
Other versions
JP2019185233A (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.)
Yazaki Energy System Corp
Original Assignee
Yazaki Energy System Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yazaki Energy System Corp filed Critical Yazaki Energy System Corp
Priority to JP2018072864A priority Critical patent/JP7084191B2/en
Publication of JP2019185233A publication Critical patent/JP2019185233A/en
Application granted granted Critical
Publication of JP7084191B2 publication Critical patent/JP7084191B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Description

本開示は、環境測定システムに関する。 The present disclosure relates to an environmental measurement system.

従来、環境測定装置と、環境測定装置と通信可能な携帯端末との通信方式の一つとして、IrDA(Infrared Data Association)の規格に準拠する赤外線通信が採用されている(例えば、特許文献1参照)。よって、環境測定装置と、携帯端末を携帯する作業者との距離が離れている状態であっても、環境測定装置と、携帯端末との通信が可能である。 Conventionally, infrared communication conforming to the IrDA (Infrared Data Association) standard has been adopted as one of the communication methods between the environment measuring device and the mobile terminal capable of communicating with the environment measuring device (see, for example, Patent Document 1). ). Therefore, even when the environment measuring device and the worker carrying the mobile terminal are separated from each other, the environment measuring device and the mobile terminal can communicate with each other.

特開2001-116742号公報Japanese Unexamined Patent Publication No. 2001-116742

しかし、赤外線通信は指向性がある。よって、特許文献1に記載のような従来技術で赤外線通信を行う場合、赤外線送信側及び赤外線受信側のそれぞれのポートに入射する入射光の光軸の角度によっては、環境測定装置と、携帯端末との通信ができなくなる恐れがある。つまり、従来技術では、環境測定装置と、携帯端末との位置関係に相対的な角度の制限が要求される。また、赤外線通信は通信媒体に近赤外線を利用しているため、赤外線送信側と赤外線受信側との間に障害物のある測定環境下において、特許文献1に記載のような従来技術で赤外線通信を行う場合、環境測定装置と、携帯端末との通信ができなくなる恐れがある。 However, infrared communication is directional. Therefore, when infrared communication is performed by the conventional technique as described in Patent Document 1, an environment measuring device and a portable terminal may be used depending on the angle of the optical axis of the incident light incident on each port of the infrared transmitting side and the infrared receiving side. There is a risk that you will not be able to communicate with. That is, in the prior art, the relative angle limitation is required for the positional relationship between the environment measuring device and the mobile terminal. Further, since infrared communication uses near infrared rays as a communication medium, infrared communication is performed by the conventional technique as described in Patent Document 1 in a measurement environment where there is an obstacle between the infrared transmitting side and the infrared receiving side. If this is done, there is a risk that communication between the environment measuring device and the mobile terminal will not be possible.

本開示はこのような状況に鑑みてなされたものであり、環境測定装置と、携帯端末との位置関係に相対的な角度の制限が要求されず、且つ環境測定装置と携帯端末との間に障害物のある測定環境下であっても、環境測定装置と携帯端末との通信を行うことができるようにするものである。 This disclosure has been made in view of such a situation, and is not required to limit the relative angle in the positional relationship between the environmental measuring device and the mobile terminal, and is between the environmental measuring device and the mobile terminal. It enables communication between the environment measuring device and the mobile terminal even in a measuring environment with obstacles.

本開示の一側面である環境測定システムは、環境測定装置と、前記環境測定装置と通信可能な携帯端末とを含む環境測定システムであって、前記携帯端末は、前記環境測定装置との通信の関連付け情報に有線接続及び無線接続のそれぞれの通信設定が含まれる場合、前記有線接続及び前記無線接続の何れか一方で前記環境測定装置と通信可能であり、前記無線接続は、赤外線より低い周波数である電波が通信媒体に使用され、前記環境測定装置の制御部は、前記無線接続が継続中であって特定の動作が継続中ではないと判定すると前記無線接続を解除し、前記有線接続に切り替える
The environment measurement system which is one aspect of the present disclosure is an environment measurement system including an environment measurement device and a mobile terminal capable of communicating with the environment measurement device, and the mobile terminal is a communication with the environment measurement device. When the association information includes the communication settings of the wired connection and the wireless connection, either one of the wired connection and the wireless connection can communicate with the environment measuring device, and the wireless connection has a frequency lower than that of infrared rays. When a certain radio wave is used as a communication medium and the control unit of the environment measuring device determines that the wireless connection is ongoing and a specific operation is not continuing, the wireless connection is canceled and the wired connection is established. Switch .

また、前記携帯端末は、自機の周囲に前記環境測定装置が複数存在し、且つ前記環境測定装置のそれぞれとの通信の関連付け情報に接続順序の優先順位が含まれる場合、前記優先順位の高いものから順に前記無線接続を試みる、ことが好ましい。 Further, in the mobile terminal, when a plurality of the environment measuring devices are present around the own device and the communication association information with each of the environment measuring devices includes the priority of the connection order, the priority is high. It is preferable to try the wireless connection in order from the one.

また、前記携帯端末は、前記環境測定装置が待機状態であり、且つ自機の周囲に前記環境測定装置が複数存在する場合、前記環境測定装置のそれぞれに前記無線接続が可能であるか否かを問い合わせる、ことが好ましい。 Further, in the mobile terminal, when the environment measuring device is in the standby state and there are a plurality of the environment measuring devices around the own device, whether or not the wireless connection is possible to each of the environment measuring devices. It is preferable to inquire.

また、前記携帯端末は、前記関連付け情報に基づき関連付け処理を行う場合、設定された条件に従い、前記関連付け処理の対象となる前記環境測定装置の候補を絞り込む、ことが好ましい。 Further, when the mobile terminal performs the association processing based on the association information, it is preferable to narrow down the candidates of the environment measuring device to be the target of the association processing according to the set conditions.

また、前記環境測定装置は、前記携帯端末との接続状態が前記有線接続及び前記無線接続の何れであるかを報知する報知部、をさらに備える、ことが好ましい。 Further, it is preferable that the environment measuring device further includes a notification unit for notifying whether the connection state with the mobile terminal is the wired connection or the wireless connection.

本開示の一側面によれば、環境測定装置と、携帯端末との位置関係に相対的な角度の制限が要求されず、且つ環境測定装置と携帯端末との間に障害物のある測定環境下であっても、環境測定装置と携帯端末との通信を行うことができる。 According to one aspect of the present disclosure, a measurement environment in which a relative angle limitation is not required for the positional relationship between the environmental measuring device and the mobile terminal and there is an obstacle between the environmental measuring device and the mobile terminal. Even so, it is possible to communicate between the environment measuring device and the mobile terminal.

本開示を適用した実施形態に係る環境測定システム1のシステム構成例を示す図である。It is a figure which shows the system configuration example of the environmental measurement system 1 which concerns on embodiment to which this disclosure is applied. 本開示を適用した実施形態に係る環境測定システム1の機能構成例を示すブロック図である。It is a block diagram which shows the functional structure example of the environment measurement system 1 which concerns on embodiment to which this disclosure is applied. 本開示を適用した実施形態に係るBluetoothの接続方式の一例について説明する図である。It is a figure explaining an example of the connection method of Bluetooth which concerns on embodiment to which this disclosure is applied. 本開示を適用した実施形態に係るBluetooth接続における携帯端末5及び環境測定装置3の状態遷移の一例を示す図である。It is a figure which shows an example of the state transition of the mobile terminal 5 and the environment measuring apparatus 3 in the Bluetooth connection which concerns on embodiment to which this disclosure is applied. 本開示を適用した実施形態に係る携帯端末5と環境測定装置3との接続構成における環境測定装置3の状態遷移の一例を示す図である。It is a figure which shows an example of the state transition of the environment measuring apparatus 3 in the connection configuration of the mobile terminal 5 and the environment measuring apparatus 3 which concerns on embodiment to which this disclosure is applied. 本開示を適用した実施形態に係る携帯端末5と環境測定装置3_1~3_3との接続構成の一例を示す図である。It is a figure which shows an example of the connection structure of the mobile terminal 5 which concerns on embodiment to which this disclosure is applied, and the environment measuring apparatus 3_1-3_3. 本開示を適用した実施形態に係る通信設定処理の一例を説明するフローチャートである。It is a flowchart explaining an example of the communication setting processing which concerns on embodiment to which this disclosure is applied. 本開示を適用した実施形態に係るポート確認処理の一例を説明するフローチャートである。It is a flowchart explaining an example of the port confirmation process which concerns on embodiment to which this disclosure is applied. 本開示を適用した実施形態に係る無線接続から有線接続に切り替える切替処理の一例を説明するフローチャートである。It is a flowchart explaining an example of the switching process which switches from a wireless connection to a wired connection which concerns on embodiment to which this disclosure is applied. 本開示を適用した実施形態に係る各種設定画面の一例を説明する図である。It is a figure explaining an example of various setting screens which concerns on embodiment to which this disclosure is applied. 本開示を適用した実施形態に係る通信設定画面の一例を説明する図である。It is a figure explaining an example of the communication setting screen which concerns on embodiment to which this disclosure is applied.

以下、図面に基づいて本開示の実施形態を説明するが、本開示は以下の実施形態に限られるものではない。 Hereinafter, embodiments of the present disclosure will be described with reference to the drawings, but the present disclosure is not limited to the following embodiments.

図1は、本開示を適用した実施形態に係る環境測定システム1のシステム構成例を示す図である。図2は、本開示を適用した実施形態に係る環境測定システム1の機能構成例を示すブロック図である。図1に示すように、環境測定システム1は、環境測定装置3と、携帯端末5とを含む。携帯端末5は、有線接続及び無線接続の何れかにより、環境測定装置3と通信可能なものである。環境測定装置3は、測定対象となる建築物に配置される。例えば、環境測定装置3は、ビル内の空気環境を測定すべき場所に配置される。環境測定装置3は、ビル衛生管理法に基づき、ビル内の空気環境測定項目を測定する。ビル内の空気環境測定項目は、具体的には、浮遊粉塵、一酸化炭素、二酸化炭素、温度、相対湿度、及び気流等のような空気環境の物理量である。なお、ビル衛生管理法が改正され、新たな空気環境の物理量が測定すべき空気環境測定項目に追加される場合、環境測定装置3は追加される空気環境測定項目を測定するセンサーがさらに実装可能である。また、携帯端末5から環境測定装置3に空気環境の物理量の測定指令がされれば、環境測定装置3は、作業者の呼気の影響を受けずに空気環境の物理量の測定を行うことができる。つまり、環境測定システム1は、環境測定装置3と、携帯端末5とを含むことにより、呼気の影響を受けずに測定可能な測定環境を構築している。 FIG. 1 is a diagram showing a system configuration example of the environmental measurement system 1 according to the embodiment to which the present disclosure is applied. FIG. 2 is a block diagram showing a functional configuration example of the environmental measurement system 1 according to the embodiment to which the present disclosure is applied. As shown in FIG. 1, the environment measurement system 1 includes an environment measurement device 3 and a mobile terminal 5. The mobile terminal 5 can communicate with the environment measuring device 3 by either a wired connection or a wireless connection. The environment measuring device 3 is arranged in the building to be measured. For example, the environment measuring device 3 is arranged at a place in the building where the air environment should be measured. The environment measuring device 3 measures the air environment measurement items in the building based on the Building Sanitation Management Law. The air environment measurement items in the building are specifically physical quantities of the air environment such as suspended dust, carbon monoxide, carbon dioxide, temperature, relative humidity, and air flow. If the Building Sanitation Management Law is revised and a new physical quantity of the air environment is added to the air environment measurement items to be measured, the environment measurement device 3 can further mount a sensor for measuring the added air environment measurement items. Is. Further, if the mobile terminal 5 gives a command to measure the physical quantity of the air environment to the environment measuring device 3, the environment measuring device 3 can measure the physical quantity of the air environment without being affected by the exhaled breath of the worker. .. That is, the environment measurement system 1 includes the environment measurement device 3 and the mobile terminal 5 to construct a measurement environment that can be measured without being affected by exhaled breath.

環境測定装置3は、筐体31の側面に端子部32が設けられている。端子部32は、各種端子を備え、例えば、DCジャック、COMポート、及びUSBポート等が設けられている。DCジャックは、電源部43と導通状態であって、DCプラグが挿入されたときには、DCプラグと導通状態にあるACアダプターから供給される電力を電源部43に供給する。電源部43は、外部から供給される電力をバッテリ44に充電する。COMポートは、シリアルケーブルが接続されたときには、シリアル通信により、データロガー部41に各種指令及びデータを供給する。USBポートは、データ転送用のUSBケーブルが接続されたときには、データロガー部41に各種データを供給する。 The environment measuring device 3 is provided with a terminal portion 32 on the side surface of the housing 31. The terminal portion 32 includes various terminals, and is provided with, for example, a DC jack, a COM port, a USB port, and the like. The DC jack is in a conductive state with the power supply unit 43, and when the DC plug is inserted, the power supplied from the AC adapter in a conductive state with the DC plug is supplied to the power supply unit 43. The power supply unit 43 charges the battery 44 with electric power supplied from the outside. When the serial cable is connected, the COM port supplies various commands and data to the data logger unit 41 by serial communication. The USB port supplies various data to the data logger unit 41 when a USB cable for data transfer is connected.

環境測定装置3は、筐体31の上部には、電源ボタン33、報知部34a~34e、温湿度計35a、CO計35b、CO計35c、風速計35d、粉塵計35e、及び操作部37が設けられている。環境測定装置3は、データロガー部41及び通信部45を備える。なお、報知部34a~34eを総称する場合、報知部34と称する。温湿度計35a、CO計35b、CO計35c、風速計35d、及び粉塵計35eを総称する場合、センサ部35と称する。電源ボタン33は、作業者に操作されることにより、電源部43に供給される電力又はバッテリ44に充電された電力が、報知部34、センサ部35、操作部37、及びデータロガー部41に供給される。 The environment measuring device 3 has a power button 33, a notification unit 34a to 34e, a temperature / humidity meter 35a, a CO total 35b, a CO 2 total 35c, an anemometer 35d, a dust meter 35e, and an operation unit 37 on the upper part of the housing 31. Is provided. The environment measuring device 3 includes a data logger unit 41 and a communication unit 45. When the notification units 34a to 34e are collectively referred to, they are referred to as the notification unit 34. When the thermo-hygrometer 35a, the CO total 35b, the CO 2 total 35c, the anemometer 35d, and the dust meter 35e are collectively referred to, they are referred to as the sensor unit 35. When the power button 33 is operated by an operator, the electric power supplied to the power supply unit 43 or the electric power charged in the battery 44 is transmitted to the notification unit 34, the sensor unit 35, the operation unit 37, and the data logger unit 41. Will be supplied.

報知部34aは、電源部43に電力が供給されている状態と、バッテリ44が充電されている状態とを、識別可能に報知する。例えば、報知部34aは、第1の色のLEDと、第2の色のLEDとからなる2種類の色のLEDを備え、2種類の色の何れか一方に点灯制御される。報知部34bは、センサ部35によりビル内の空気環境測定項目が測定されている状態と、携帯端末5と通信されている状態とを、識別可能に報知する。例えば、報知部34bは、報知部34aと同様の構成で、同様に点灯制御される。報知部34cは、エラーである旨を報知する。例えば、報知部34cは、LEDを備え、エラーである旨を報知する場合、点灯制御される。報知部34dは、無線接続されている旨を報知する。具体的には、報知部34dは、LEDを備え、Bluetooth(登録商標)通信である旨を報知する場合、点灯制御される。報知部34eは、有線接続されている旨を報知する。具体的には、報知部34eは、LEDを備え、USB通信である旨を報知する場合、点灯制御される。つまり、環境測定装置3は、報知部34により、携帯端末5との接続状態が有線接続及び無線接続の何れであるかを報知する。 The notification unit 34a separately notifies the state in which power is supplied to the power supply unit 43 and the state in which the battery 44 is charged. For example, the notification unit 34a includes LEDs of two types of colors, one is an LED of the first color and the other is an LED of the second color, and the lighting is controlled to one of the two types of colors. The notification unit 34b separately notifies the state in which the air environment measurement item in the building is being measured by the sensor unit 35 and the state in which communication is performed with the mobile terminal 5. For example, the notification unit 34b has the same configuration as the notification unit 34a, and is similarly lighting-controlled. The notification unit 34c notifies that an error has occurred. For example, the notification unit 34c is provided with an LED, and is controlled to be lit when notifying that an error has occurred. The notification unit 34d notifies that the wireless connection is established. Specifically, the notification unit 34d is provided with an LED, and is controlled to be lit when notifying that Bluetooth (registered trademark) communication is performed. The notification unit 34e notifies that the connection is wired. Specifically, the notification unit 34e is provided with an LED, and is controlled to be lit when notifying that USB communication is performed. That is, the environment measuring device 3 notifies by the notification unit 34 whether the connection state with the mobile terminal 5 is a wired connection or a wireless connection.

温湿度計35aは、周囲の温度及び空気中の相対湿度を測定する。CO計35bは、空気中の一酸化炭素濃度を測定する。CO計35cは、空気中の二酸化炭素濃度を測定する。風速計35dは、空気中の風速を測定する。粉塵計35eは、空気中の塵埃の濃度を測定する。温湿度計35a、CO計35b、CO計35c、風速計35d、及び粉塵計35eの測定結果は、データロガー部41に出力される。データロガー部41は、CPU41aと、メモリ41bとを備える。CPU41aは、メモリ41bに記憶されている制御プログラムに従い、環境測定装置3の全体動作を制御し、センサ部35の測定結果を演算処理し、測定データを生成する。つまり、CPU41aは、温湿度計35a、CO計35b、CO計35c、風速計35d、及び粉塵計35eごとのルックアップテーブル又は換算式をメモリ41bに予め記憶し、必要に応じて、メモリ41bから呼び出すことにより、各測定結果を各物理量の測定データに換算する演算処理を実行する。各物理量の測定データは、携帯端末5の表示部52にて表示可能である。 The thermo-hygrometer 35a measures the ambient temperature and the relative humidity in the air. The CO total 35b measures the carbon monoxide concentration in the air. The CO 2 total 35c measures the carbon dioxide concentration in the air. The anemometer 35d measures the wind speed in the air. The dust meter 35e measures the concentration of dust in the air. The measurement results of the thermo-hygrometer 35a, CO total 35b, CO 2 total 35c, anemometer 35d, and dust meter 35e are output to the data logger unit 41. The data logger unit 41 includes a CPU 41a and a memory 41b. The CPU 41a controls the overall operation of the environment measuring device 3 according to the control program stored in the memory 41b, calculates and processes the measurement result of the sensor unit 35, and generates the measurement data. That is, the CPU 41a stores in advance the look-up table or conversion formula for each of the thermo-hygrometer 35a, the CO total 35b, the CO 2 total 35c, the anemometer 35d, and the dust meter 35e in the memory 41b, and if necessary, the memory 41b. By calling from, the arithmetic processing for converting each measurement result into the measurement data of each physical quantity is executed. The measurement data of each physical quantity can be displayed on the display unit 52 of the mobile terminal 5.

通信部45は、ベースバンドプロセッサ、受信部、送信部、及びアンテナ等を備え、無線接続による通信方式を実現する。無線接続による通信方式は、例えば、Wi-Fi(登録商標)、Bluetooth、NFC(Near Field Communication)、LTE(Long Term Evolution)、ZigBee(登録商標)、専用ドングルを使用した2.4GHz通信、及び赤外線通信等である。赤外線通信は、接続する一方の機器と他方の機器との間に障害物があった場合、通信を行うことができない。よって、無線接続は、Wi-Fi、Bluetooth、NFC、LTE、ZigBee、及び専用ドングルを使用した2.4GHz通信のように、赤外線より低い周波数である電波が通信媒体に使用されるのが好ましい。 The communication unit 45 includes a baseband processor, a reception unit, a transmission unit, an antenna, and the like, and realizes a communication method by wireless connection. Communication methods by wireless connection include, for example, Wi-Fi (registered trademark), Bluetooth, NFC (Near Field Communication), LTE (Long Term Evolution), ZigBee (registered trademark), 2.4 GHz communication using a dedicated dongle, and Infrared communication, etc. Infrared communication cannot communicate when there is an obstacle between one device to be connected and the other device. Therefore, for wireless connection, it is preferable that a radio wave having a frequency lower than infrared rays is used as a communication medium, such as 2.4 GHz communication using Wi-Fi, Bluetooth, NFC, LTE, ZigBee, and a dedicated dongle.

携帯端末5は、表示部52、操作部53、端子部54、電源ボタン56が筐体51に設けられている。携帯端末5は、通信部55、CPU61、メモリ62、電源部63、及びバッテリ64を備える。表示部52は、例えば液晶ディスプレイから構成され、環境測定装置3の操作に関するものが表示される。表示部52の表示内容の一例は後述する。操作部53は、各種キーから構成され、表示部52の表示内容に基づく操作が可能である。なお、表示部52と、操作部53とが一体的に構成されてもよい。例えば、操作部53をタッチパネルから構成し、タッチパネルと、液晶ディスプレイとを重ね合わせて液晶型タッチパネルディスプレイが構成されてもよい。端子部54は、USBポートが設けられている。USBポートは、データ転送用のUSBケーブルの一方が端子部54に接続され、他方が環境測定装置3の端子部32に接続されたときには、環境測定装置3と、携帯端末5との間でUSB通信が可能となる。電源ボタン56は、作業者に操作されることにより、電源部63に供給される電力又はバッテリ64に充電された電力が、表示部52、操作部53、通信部55、CPU61、及びメモリ62に供給される。 The mobile terminal 5 is provided with a display unit 52, an operation unit 53, a terminal unit 54, and a power button 56 in the housing 51. The mobile terminal 5 includes a communication unit 55, a CPU 61, a memory 62, a power supply unit 63, and a battery 64. The display unit 52 is composed of, for example, a liquid crystal display, and displays items related to the operation of the environment measuring device 3. An example of the display content of the display unit 52 will be described later. The operation unit 53 is composed of various keys, and can be operated based on the display contents of the display unit 52. The display unit 52 and the operation unit 53 may be integrally configured. For example, the operation unit 53 may be composed of a touch panel, and the touch panel and the liquid crystal display may be superposed to form a liquid crystal type touch panel display. The terminal portion 54 is provided with a USB port. When one of the USB cables for data transfer is connected to the terminal portion 54 and the other is connected to the terminal portion 32 of the environment measuring device 3, the USB port is USB between the environment measuring device 3 and the mobile terminal 5. Communication is possible. When the power button 56 is operated by an operator, the electric power supplied to the power supply unit 63 or the electric power charged in the battery 64 is transmitted to the display unit 52, the operation unit 53, the communication unit 55, the CPU 61, and the memory 62. Will be supplied.

通信部55は、通信部45と同様の構成及び機能であるため、その説明については省略する。Bluetooth通信による無線接続の詳細については後述する。CPU61は、メモリ62に記憶されている制御プログラムに従い、携帯端末5の全体動作を制御する。制御例の詳細についてはフローチャートを用いて後述する。図3は、本開示を適用した実施形態に係るBluetoothの接続方式の一例について説明する図である。Bluetoohは、ISM(Industrial Science and Medical)帯の周波数帯を用い、半径10m~100m程度の範囲で通信を行うための無線通信方式である。Bluetoothでは、ピコネットとスキャッタネットと呼ばれる2種類の接続方式により、複数の機器を接続する。 Since the communication unit 55 has the same configuration and function as the communication unit 45, the description thereof will be omitted. The details of the wireless connection by Bluetooth communication will be described later. The CPU 61 controls the overall operation of the mobile terminal 5 according to the control program stored in the memory 62. Details of the control example will be described later using a flowchart. FIG. 3 is a diagram illustrating an example of a Bluetooth connection method according to an embodiment to which the present disclosure is applied. Bluetooh is a wireless communication system for communicating within a radius of about 10 m to 100 m using a frequency band of the ISM (Industrial Science and Medical) band. In Bluetooth, a plurality of devices are connected by two kinds of connection methods called piconet and scatter net.

ピコネットは、図3(A)に示すように、1台のマスター機器Mの周囲約10m以内の距離に、スレーブ機器Sを最大7台まで同時接続する接続方式である。ピコネットでは、マスター機器Mに対して複数のスレーブ機器Sが接続されるため、スレーブ機器S間でのデータ等のやりとりは、マスター機器Mを介して行われる。スキャッタネットは、図3(B)に示すように、図3(A)で説明したようなピコネット同士を連結して構成される接続方式であり、約100m程度の範囲で連結した無線接続を実現できる。 As shown in FIG. 3A, the piconet is a connection method in which up to seven slave devices S are simultaneously connected within a distance of about 10 m around one master device M. In the piconet, since a plurality of slave devices S are connected to the master device M, data and the like are exchanged between the slave devices S via the master device M. As shown in FIG. 3 (B), the scatter net is a connection method configured by connecting piconets as described in FIG. 3 (A), and realizes a wireless connection connected within a range of about 100 m. can.

次に、上記で説明したマスター機器Mとスレーブ機器SとをBluetooth接続する場合における各機器の状態遷移につき、図4を用いて説明する。図4は、本開示を適用した実施形態に係るBluetooth接続における携帯端末5及び環境測定装置3の状態遷移の一例を示す図である。マスター機器Mとスレーブ機器SとをBluetooth接続する場合、マスター機器M及びスレーブ機器Sの状態は、待ち受けフェーズ、接続確立フェーズ、接続フェーズ、及び低消費電力モードに分けることができる。携帯端末5及び環境測定装置3の電源投入直後又は通信リンクを切断した場合、携帯端末5及び環境測定装置3は待ち受け状態に入る。待ち受け状態では、データの送受信は行わない。 Next, the state transition of each device in the case of Bluetooth connection between the master device M and the slave device S described above will be described with reference to FIG. FIG. 4 is a diagram showing an example of state transitions of the mobile terminal 5 and the environment measuring device 3 in the Bluetooth connection according to the embodiment to which the present disclosure is applied. When the master device M and the slave device S are connected via Bluetooth, the states of the master device M and the slave device S can be divided into a standby phase, a connection establishment phase, a connection phase, and a low power consumption mode. Immediately after the power of the mobile terminal 5 and the environment measuring device 3 is turned on, or when the communication link is disconnected, the mobile terminal 5 and the environment measuring device 3 enter the standby state. In the standby state, data is not sent or received.

接続確立フェーズは、問い合わせ状態及び呼び出し状態の2つの状態から構成されている。問い合わせ状態は、マスター機器Mが予め設定された範囲内に存在するスレーブ機器Sを認識するための状態である。問い合わせ状態は、マスター機器Mがスレーブ機器Sとの接続の可能性を問い合わせている状態である。次に、携帯端末5をマスター機器Mとし、環境測定装置3をスレーブ機器Sとし、携帯端末5及び環境測定装置3を総称して機器と称することとした場合に、携帯端末5が、自機の周囲に存在する環境測定装置3に接続の可能性を問い合わせる状況について説明する。 The connection establishment phase consists of two states, an inquiry state and a call state. The inquiry state is a state for the master device M to recognize the slave device S existing within the preset range. The inquiry state is a state in which the master device M inquires about the possibility of connection with the slave device S. Next, when the mobile terminal 5 is referred to as a master device M, the environment measuring device 3 is referred to as a slave device S, and the mobile terminal 5 and the environment measuring device 3 are collectively referred to as a device, the mobile terminal 5 is a self-device. The situation of inquiring about the possibility of connection to the environment measuring device 3 existing around the device 3 will be described.

具体的には、携帯端末5の周囲に環境測定装置3が複数存在する場合を想定する。携帯端末5は、全ての環境測定装置3に対して、IQ(InQuiry)パケットを連続的に送信する。IQパケットは、携帯端末5及び環境測定装置3の全ての機器で共有するコードで構成されている。環境測定装置3は、IQパケットを受信すると、予め設定された時間の経過後、同じIQパケットが送信されるのを待ってから、FHS(Frequency Hop Synchronization)パケットを携帯端末5に対して送信する。FHSパケットは、Bluetooth通信対応可能な機器又は機器固有のアドレスであるBD(Bluetooth Device)アドレス等を通知するためのパケットである。 Specifically, it is assumed that a plurality of environment measuring devices 3 exist around the mobile terminal 5. The mobile terminal 5 continuously transmits IQ (Inquiry) packets to all the environment measuring devices 3. The IQ packet is composed of a code shared by all the devices of the mobile terminal 5 and the environment measuring device 3. Upon receiving the IQ packet, the environment measuring device 3 waits for the same IQ packet to be transmitted after the lapse of a preset time, and then transmits the FHS (Frequency Hop Synchronization) packet to the mobile terminal 5. .. The FHS packet is a packet for notifying a device compatible with Bluetooth communication, a BD (Bluetooth Device) address, which is an address unique to the device, and the like.

なお、環境測定装置3がFHSパケットをすぐに送信しないのは、他の環境測定装置3から同時に送信されたFHSパケットとの衝突を回避するためである。このように、環境測定装置3からのFHSパケットの送信タイミングをずらすことにより、携帯端末5は、予め設定された範囲内に存在する全ての環境測定装置3を認識することができる。 The reason why the environment measuring device 3 does not immediately transmit the FHS packet is to avoid a collision with an FHS packet simultaneously transmitted from another environment measuring device 3. By shifting the transmission timing of the FHS packet from the environment measuring device 3 in this way, the mobile terminal 5 can recognize all the environment measuring devices 3 existing within the preset range.

呼び出し状態は、携帯端末5と、環境測定装置3とを接続するときの状態である。具体的には、携帯端末5は、呼び出したい環境測定装置3に対して、ID(IDentification)パケットを送信する。IDパケットは、各機器のBDアドレスに基づき生成されたコードで構成されている。環境測定装置3は、IDパケットを受信すると、受信応答として、携帯端末5に対して、IDパケットを送信する。携帯端末5は、受信応答を確認すると、環境測定装置3に対してFHSパケットを送信する。環境測定装置3は、FHSパケットを受信すると、受信応答として、携帯端末5に対して、IDパケットを送信する。このようにして、携帯端末5と、環境測定装置3との接続が確立される。 The calling state is a state when the mobile terminal 5 and the environment measuring device 3 are connected. Specifically, the mobile terminal 5 transmits an ID (IDentification) packet to the environment measuring device 3 to be called. The ID packet is composed of a code generated based on the BD address of each device. When the environment measuring device 3 receives the ID packet, the environment measuring device 3 transmits the ID packet to the mobile terminal 5 as a reception response. Upon confirming the reception response, the mobile terminal 5 transmits an FHS packet to the environment measuring device 3. When the environment measuring device 3 receives the FHS packet, it transmits an ID packet to the mobile terminal 5 as a reception response. In this way, the connection between the mobile terminal 5 and the environment measuring device 3 is established.

接続フェーズは、接続状態及びデータ転送状態の2つの状態から構成されている。接続状態は、携帯端末5と、環境測定装置3との接続が確立され、制御パケットの送受信が可能な状態である。データ転送状態は、データパケットの送受信が可能な状態である。データパケットの送受信が完了して通信リンクが切断されると、機器は待ち受け状態に戻る。 The connection phase consists of two states, a connection state and a data transfer state. The connection state is a state in which the connection between the mobile terminal 5 and the environment measuring device 3 is established and control packets can be transmitted and received. The data transfer state is a state in which data packets can be sent and received. When the transmission / reception of the data packet is completed and the communication link is disconnected, the device returns to the standby state.

低消費電力モードは、パーク状態、ホールド状態、及びスニフ状態の3つの状態から構成されている。パーク状態は、環境測定装置3のみが遷移することができる状態である。パーク状態では、パーク周期と呼ばれる予め設定された時間の周期が設定され、パーク周期で携帯端末5からのパケットの受信を行うことにより、ピコネットへの同期を保持している。環境測定装置3は、パーク状態において、携帯端末5からのパケットの受信が可能であるが、携帯端末5に対するパケットの送信ができない。 The low power consumption mode is composed of three states: a park state, a hold state, and a sniff state. The park state is a state in which only the environment measuring device 3 can make a transition. In the park state, a preset time cycle called a park cycle is set, and by receiving a packet from the mobile terminal 5 in the park cycle, synchronization with the piconet is maintained. The environment measuring device 3 can receive the packet from the mobile terminal 5 in the park state, but cannot transmit the packet to the mobile terminal 5.

ホールド状態は、携帯端末5及び環境測定装置3が遷移することができる状態である。ホールド状態では、ホールド周期と呼ばれる予め設定された時間の周期が設定され、ホールド周期中、機器は送受信を行わず、ほとんど通信電力を消費しない低電力のスリープ状態となる。ホールド周期後、通信が再開される。なお、ホールド状態中の携帯端末5及び環境測定装置3は、他のピコネットに参加することもできる。 The hold state is a state in which the mobile terminal 5 and the environment measuring device 3 can transition. In the hold state, a preset time cycle called a hold cycle is set, and during the hold cycle, the device does not transmit or receive, and is in a low power sleep state in which almost no communication power is consumed. After the hold cycle, communication is resumed. The mobile terminal 5 and the environment measuring device 3 in the hold state can also participate in other piconets.

スニフ状態は、環境測定装置3のみが遷移することができる状態である。スニフ状態では、スニフ周期と呼ばれる予め設定された時間の周期で送受信が行われ、送受信が行われない時間は、電力消費を抑制することができる。スニフ状態は、環境測定装置3ごとに指定されるので、ある環境測定装置3がスニフ状態に指定されている場合、携帯端末5は、他の環境測定装置3と通常の接続が可能である。 The sniff state is a state in which only the environment measuring device 3 can make a transition. In the sniff state, transmission / reception is performed in a cycle of a preset time called a sniff cycle, and power consumption can be suppressed during the time when transmission / reception is not performed. Since the sniff state is specified for each environment measuring device 3, when a certain environment measuring device 3 is designated as the sniff state, the mobile terminal 5 can be normally connected to another environment measuring device 3.

上記の説明において、携帯端末5と環境測定装置3との接続が確立された場合には、携帯端末5は、環境測定装置3との通信の関連付け情報を記憶し、以降の通信において関連付け情報を利用することにより、携帯端末5と環境測定装置3との接続を確立させる関連付け処理を行ってもよい。関連付け情報は、有線接続及び無線接続の何れが含まれていてもよい。携帯端末5は、関連付け情報に有線接続及び無線接続のそれぞれの通信設定が含まれる場合、有線接続及び無線接続の何れか一方で環境測定装置3と通信可能である。 In the above description, when the connection between the mobile terminal 5 and the environment measuring device 3 is established, the mobile terminal 5 stores the association information of the communication with the environment measuring device 3, and the association information is stored in the subsequent communication. By using it, an association process for establishing a connection between the mobile terminal 5 and the environment measuring device 3 may be performed. The association information may include either a wired connection or a wireless connection. When the association information includes the communication settings of the wired connection and the wireless connection, the mobile terminal 5 can communicate with the environment measuring device 3 in either the wired connection or the wireless connection.

なお、Bluetoothは、プロファイルと呼ばれるプロトコルが策定されている。例えば、GAP(Generic Access Profile;汎用アクセスプロファイル)は、様々な機器を接続する際に必要な機器の認識やセキュリティを確立する手順の設定等を行うものであり、Bluetooth通信を行うために搭載されるプロファイルの一つである。GAPが搭載された機器は、例えばペアリングが可能である。ペアリングは、主に鍵交換プロトコルを実行するものである。ペアリングは、例えば、PINコードが使用される場合には最大16桁の暗証コードが要求されるものであるが、4桁コードとしてPINコードが要求されるものであってもよい。具体的には、ペアリングが実装されていれば、作業者は、携帯端末5により検索された環境測定装置3の中から通信相手を選択し、必要に応じて認証用のPINコードを入力することにより、携帯端末5と環境測定装置3とを1対1で結びつける、すなわちペアリングすることができ、以降はペアリングされた通信相手との間で自動的に無線通信が行われるようになる。つまり、ペアリングされた通信相手を上記で説明した関連付け情報として記憶しておくことにより、以降のペアリング処理では、記憶された関連付け情報を利用してもよい。また、携帯端末5は、関連付け情報に基づき関連付け処理を行う場合、設定された条件に従い、関連付け処理の対象となる環境測定装置3の候補を絞り込んでもよい。設定された条件は、例えば、製造番号である。具体的には、製造番号の上位8桁を設定された条件として予め又は検索時に登録し、設定された条件が一致する環境測定装置3を関連付け処理の対象として絞り込んでもよい。 In Bluetooth, a protocol called a profile has been established. For example, GAP (Generic Access Profile) is installed to perform Bluetooth communication, such as setting the procedure for recognizing devices and establishing security necessary for connecting various devices. It is one of the profiles. Devices equipped with GAP can be paired, for example. Pairing is primarily the execution of a key exchange protocol. For pairing, for example, when a PIN code is used, a password code of up to 16 digits is required, but a PIN code may be required as a 4-digit code. Specifically, if pairing is implemented, the operator selects a communication partner from the environment measuring devices 3 searched by the mobile terminal 5, and inputs a PIN code for authentication as necessary. As a result, the mobile terminal 5 and the environment measuring device 3 can be connected one-to-one, that is, paired, and thereafter, wireless communication is automatically performed with the paired communication partner. .. That is, by storing the paired communication partner as the association information described above, the stored association information may be used in the subsequent pairing process. Further, when the mobile terminal 5 performs the association processing based on the association information, the candidate of the environment measuring device 3 to be the target of the association processing may be narrowed down according to the set conditions. The set condition is, for example, a serial number. Specifically, the upper 8 digits of the serial number may be registered in advance as a set condition or at the time of search, and the environment measuring device 3 that matches the set condition may be narrowed down as the target of the association processing.

次に、携帯端末5及び環境測定装置3における特有の状態遷移及び接続構成についてそれぞれ図5及び図6を用いて具体的に説明する。図5は、本開示を適用した実施形態に係る携帯端末5と環境測定装置3との接続構成における環境測定装置3の状態遷移の一例を示す図である。図5に示すように、環境測定装置3は、携帯端末5との通信により、待機状態、測定状態、及び校正状態の3つの状態に状態遷移される。環境測定装置3は、待機状態であるときに、携帯端末5から測定指示があれば、測定状態に遷移する。環境測定装置3は、測定終了したときには、測定状態から待機状態に遷移する。環境測定装置3は、待機状態であるときに、携帯端末5から校正指示があれば、校正状態に遷移する。環境測定装置3は、校正終了したときには、校正状態から待機状態に遷移する。 Next, the state transitions and connection configurations peculiar to the mobile terminal 5 and the environment measuring device 3 will be specifically described with reference to FIGS. 5 and 6, respectively. FIG. 5 is a diagram showing an example of a state transition of the environment measuring device 3 in the connection configuration between the mobile terminal 5 and the environment measuring device 3 according to the embodiment to which the present disclosure is applied. As shown in FIG. 5, the environment measuring device 3 undergoes a state transition to three states of a standby state, a measurement state, and a calibration state by communication with the mobile terminal 5. When the environment measuring device 3 is in the standby state, if there is a measurement instruction from the mobile terminal 5, the environment measuring device 3 transitions to the measuring state. When the measurement is completed, the environment measuring device 3 transitions from the measurement state to the standby state. When the environment measuring device 3 is in the standby state, if there is a calibration instruction from the mobile terminal 5, the environment measuring device 3 transitions to the calibration state. When the calibration is completed, the environment measuring device 3 transitions from the calibration state to the standby state.

図6は、本開示を適用した実施形態に係る携帯端末5と環境測定装置3_1~3_3との接続構成の一例を示す図である。なお、環境測定装置3_1~3_3の何れかを特に限定しない場合、環境測定装置3と称する。携帯端末5は、環境測定装置3に測定指示を出したときには、他の環境測定装置3にポートが正常に使用できるか否かの確認を行わない。携帯端末5は、環境測定装置3_1~3_3が待機状態であるときには、環境測定装置3_1~3_3のそれぞれに、ポートが正常に使用できるか否かの確認を行う。具体的には、携帯端末5は、ポートがオープンされた後、環境測定装置3_1~3_3のそれぞれと一定間隔で通信を行うことにより、ポートが正常に使用できるか否かの確認を行う。通信により送受信されるものは、例えば、環境測定装置3の電池残量情報であるが、携帯端末5と環境測定装置3とで実現されている通信方式の通信情報であってもよい。通信により送受信されたものは、携帯端末5の表示部52に表示されてもよい。つまり、携帯端末5は、環境測定装置3が待機状態であり、且つ自機の周囲に環境測定装置3が複数存在する場合、環境測定装置3のそれぞれに無線接続が可能であるか否かを問い合わせる。 FIG. 6 is a diagram showing an example of a connection configuration between the mobile terminal 5 and the environment measuring devices 3_1 to 3_3 according to the embodiment to which the present disclosure is applied. When any one of the environmental measuring devices 3_1 to 3_3 is not particularly limited, it is referred to as an environmental measuring device 3. When the mobile terminal 5 issues a measurement instruction to the environment measuring device 3, the mobile terminal 5 does not confirm whether or not the port can be normally used by another environment measuring device 3. When the environment measuring devices 3_1 to 3_3 are in the standby state, the mobile terminal 5 confirms with each of the environment measuring devices 3_1 to 3_3 whether or not the port can be used normally. Specifically, after the port is opened, the mobile terminal 5 communicates with each of the environment measuring devices 3_1 to 3_3 at regular intervals to confirm whether or not the port can be used normally. What is transmitted and received by communication is, for example, the battery remaining amount information of the environment measuring device 3, but may be the communication information of the communication method realized by the mobile terminal 5 and the environment measuring device 3. What is transmitted and received by communication may be displayed on the display unit 52 of the mobile terminal 5. That is, when the environment measuring device 3 is in the standby state and there are a plurality of environment measuring devices 3 around the mobile terminal 5, the mobile terminal 5 determines whether or not wireless connection is possible to each of the environment measuring devices 3. Contact us.

次に、事前に行う通信設定についてより具体的に図7を用いて説明する。図7は、本開示を適用した実施形態に係る通信設定処理の一例を説明するフローチャートである。なお、ポートは、携帯端末5と、環境測定装置3とでシリアル通信を行う仮想COMポートを想定しているが、特にこれに限定されるものではない。また、ステップS11~ステップS29の処理は、通信設定処理であって、携帯端末5側で実行される。ステップS41の処理はペアリング処理であり、ステップS51~ステップS57の処理はポート処理であって、それぞれ環境測定装置3側で実行される。 Next, the communication settings to be performed in advance will be described more specifically with reference to FIG. 7. FIG. 7 is a flowchart illustrating an example of the communication setting process according to the embodiment to which the present disclosure is applied. The port is assumed to be a virtual COM port for serial communication between the mobile terminal 5 and the environment measuring device 3, but the port is not particularly limited to this. Further, the processes of steps S11 to S29 are communication setting processes and are executed on the mobile terminal 5 side. The process of step S41 is a pairing process, and the processes of steps S51 to S57 are port processes, which are executed on the environment measuring device 3 side, respectively.

ステップS11において、CPU61は、Bluetooth通信を行う環境測定装置3を検索する。ステップS12において、CPU61は、設定された条件があるか否かを判定する。CPU61は、設定された条件があると判定する場合(ステップS12;Y)、ステップS13の処理に移行する。CPU61は、設定された条件がないと判定する場合(ステップS12;N)、ステップS14の処理に移行する。ステップS13において、CPU61は、設定された条件に従い、Bluetooth通信を行う環境測定装置3を絞り込む。ステップS14において、CPU61は、環境測定装置3が選択されたか否かを判定する。CPU61は、環境測定装置3が選択されたと判定する場合(ステップS14;Y)、ステップS15の処理に移行する。CPU61は、環境測定装置3が選択されていないと判定する場合(ステップS14;N)、ステップS14の処理を継続する。ステップS15において、CPU61は、選択された環境測定装置3とペアリングを行う。ステップS16において、CPU61は、ペアリング処理が完了したか否かを判定する。CPU61は、ペアリング処理が完了したと判定する場合(ステップS16;Y)、ステップS17の処理に移行する。CPU61は、ペアリング処理が完了していないと判定する場合(ステップS16;N)、ステップS16の処理を継続する。具体的には、ステップS15の処理により、ステップS41において、環境測定装置3のCPU41aは、ペアリング処理を実行し、ペアリング処理が完了した場合、その旨を携帯端末5のCPU61に報知するので、ステップS16の処理は、ステップS41の処理が完了してその旨が報知されるまで継続される。 In step S11, the CPU 61 searches for an environment measuring device 3 that performs Bluetooth communication. In step S12, the CPU 61 determines whether or not there is a set condition. When the CPU 61 determines that there is a set condition (step S12; Y), the CPU 61 shifts to the process of step S13. When the CPU 61 determines that there is no set condition (step S12; N), the CPU 61 shifts to the process of step S14. In step S13, the CPU 61 narrows down the environment measuring device 3 that performs Bluetooth communication according to the set conditions. In step S14, the CPU 61 determines whether or not the environment measuring device 3 has been selected. When the CPU 61 determines that the environment measuring device 3 has been selected (step S14; Y), the CPU 61 shifts to the process of step S15. When the CPU 61 determines that the environment measuring device 3 is not selected (step S14; N), the CPU 61 continues the process of step S14. In step S15, the CPU 61 pairs with the selected environment measuring device 3. In step S16, the CPU 61 determines whether or not the pairing process is completed. When the CPU 61 determines that the pairing process is completed (step S16; Y), the CPU 61 shifts to the process of step S17. When it is determined that the pairing process is not completed (step S16; N), the CPU 61 continues the process of step S16. Specifically, by the process of step S15, in step S41, the CPU 41a of the environment measuring device 3 executes the pairing process, and when the pairing process is completed, the CPU 61 of the mobile terminal 5 is notified to that effect. , The process of step S16 is continued until the process of step S41 is completed and the notification to that effect is given.

ステップS17において、CPU61は、未登録且つ使用用途未定のポートを検出する。未登録のポートは、ペアリングにより使用されることになっていないポートが該当する。使用用途未定のポートも条件とする理由は、使用用途がわかっているポートを除外するためである。ステップS18において、CPU61は、ポートオープン処理を指令する。ステップS18の処理により、環境測定装置3のCPU41aは、ポート処理を開始する。ステップS51において、CPU41aは、ポートオープン処理を実行し、ポートオープン処理が完了した場合又はポートオープン処理が不可である場合、その何れかである旨を携帯端末5のCPU61に報知し、ステップS52~ステップS55の処理に移行する。ステップS52において、CPU41aは、オープンされたポートの種類が何れであるかを判定する。CPU41aは、オープンされたポートの種類がBluetoothであると判定する場合(ステップS52;Bluetooth)、ステップS53の処理に移行する。CPU41aは、オープンされたポートの種類がUSBであると判定する場合(ステップS52;USB)、ステップS54の処理に移行する。ステップS53において、CPU41aは、Bluetooth通信である旨を報知する。ステップS54において、CPU41aは、USB通信である旨を報知する。ステップS55において、CPU41aは、Bluetooth通信を解除する。 In step S17, the CPU 61 detects a port that has not been registered and whose intended use is undecided. The unregistered port corresponds to the port that is not supposed to be used by pairing. The reason why the port whose intended use is undecided is also a condition is to exclude the port whose intended use is known. In step S18, the CPU 61 commands the port open process. By the process of step S18, the CPU 41a of the environment measuring device 3 starts the port process. In step S51, the CPU 41a executes the port open process, notifies the CPU 61 of the mobile terminal 5 that either the port open process is completed or the port open process is not possible, and steps S52 to S52 to The process proceeds to step S55. In step S52, the CPU 41a determines which type of port is opened. When the CPU 41a determines that the type of the opened port is Bluetooth (step S52; Bluetooth), the CPU 41a proceeds to the process of step S53. When the CPU 41a determines that the type of the opened port is USB (step S52; USB), the CPU 41a shifts to the process of step S54. In step S53, the CPU 41a notifies that it is Bluetooth communication. In step S54, the CPU 41a notifies that the USB communication is performed. In step S55, the CPU 41a cancels the Bluetooth communication.

ステップS19において、CPU61は、ポートの状態が何れかであるかを判定する。CPU61は、ポートの状態がオープン完了であると判定する場合(ステップS19;オープン完了)、ステップS20の処理に移行する。CPU61は、ポートの状態がオープン不可であると判定する場合(ステップS19;オープン不可)、ステップS26の処理に移行する。ステップS20において、CPU61は、通信方式を問い合わせる。環境測定装置3のCPU41aは、ステップS20の処理が実行された場合、ステップS56において、通信方式の通信情報を送信する。ステップS21において、CPU61は、通信方式がBluetoothであるか否かを判定する。CPU61は、通信方式がBluetoothであると判定する場合(ステップS21;Y)、ステップS22の処理に移行する。CPU61は、通信方式がBluetoothでないと判定する場合(ステップS21;N)、ステップS24の処理に移行する。ステップS22において、CPU61は、ペアリングした環境測定装置3の機器名称とポート番号とを関連付けて保存する。ステップS23において、CPU61は、保存した機器名称を表示する。ステップS24において、CPU61は、現在オープンしているポートに対しポートクローズ処理を指令する。環境測定装置3のCPU41aは、ステップS24の処理が実行された場合、ステップS57において、ポートクローズ処理を実行し、ポートクローズ処理が完了した場合、その旨を携帯端末5のCPU61に報知し、ポート処理を終了する。 In step S19, the CPU 61 determines which is the state of the port. When the CPU 61 determines that the state of the port is open completed (step S19; open completed), the CPU 61 proceeds to the process of step S20. When the CPU 61 determines that the state of the port cannot be opened (step S19; cannot be opened), the CPU 61 proceeds to the process of step S26. In step S20, the CPU 61 inquires about the communication method. When the process of step S20 is executed, the CPU 41a of the environment measuring device 3 transmits the communication information of the communication method in step S56. In step S21, the CPU 61 determines whether or not the communication method is Bluetooth. When the CPU 61 determines that the communication method is Bluetooth (step S21; Y), the CPU 61 shifts to the process of step S22. When the CPU 61 determines that the communication method is not Bluetooth (step S21; N), the CPU 61 shifts to the process of step S24. In step S22, the CPU 61 stores the device name and the port number of the paired environment measuring device 3 in association with each other. In step S23, the CPU 61 displays the saved device name. In step S24, the CPU 61 instructs the currently open port to perform port closing processing. When the process of step S24 is executed, the CPU 41a of the environment measuring device 3 executes the port close process, and when the port close process is completed, notifies the CPU 61 of the mobile terminal 5 to that effect and ports. End the process.

ステップS25において、CPU61は、USB通信に使用されるポートがクローズされたか否かを判定する。CPU61は、USB通信に使用されるポートがクローズされたと判定する場合(ステップS25;Y)、ステップS27の処理に移行する。CPU61は、USB通信に使用されるポートがクローズされていない場合(ステップS25;N)、すなわち、Bluetooth通信に使用されるポートがクローズされたと判定する場合、通信設定処理を終了する。 In step S25, the CPU 61 determines whether or not the port used for USB communication is closed. When the CPU 61 determines that the port used for USB communication is closed (step S25; Y), the CPU 61 proceeds to the process of step S27. When the port used for USB communication is not closed (step S25; N), that is, when it is determined that the port used for Bluetooth communication is closed, the CPU 61 ends the communication setting process.

ステップS26において、CPU61は、全てのポートのポートオープン処理が実行されたか否かを判定する。CPU61は、全てのポートのポートオープン処理が実行されたと判定する場合(ステップS26;Y)、ステップS29の処理に移行し、ステップS29において、エラーである旨を報知し、通信設定処理を終了する。エラーである旨の報知は、環境測定装置3であれば、報知部34cを点灯制御すればよいが、携帯端末5の表示部52にエラーコード等を表示させてもよい。一方、エラーである旨の報知は、携帯端末5であれば、表示部52にその旨を表示させればよいが、環境測定装置3の電池残量表示が0%である旨を表示部52に表示させてもよい。CPU61は、全てのポートのポートオープン処理が実行されていないと判定する場合(ステップS26;N)、ステップS27の処理に移行する。なお、全てのポートのポートオープン処理が実行されていないという意味は、一部のポートのポートオープン処理は実行されているが、少なくとも他の一部のポートのポートオープン処理は実行されていないという状態である。ステップS27において、CPU61は、変更可能なポートがあるか否かを判定する。CPU61は、変更可能なポートがあると判定する場合(ステップS27;Y)、ステップS28の処理に移行する。CPU61は、変更可能なポートがないと判定する場合(ステップS27;N)、ステップS29の処理に移行する。ステップS28において、CPU61は、別のポートに変更し、ステップS18の処理に戻る。つまり、ポートオープンが不可であったとしても、別のポートで再度ポートオープン処理を試みる。 In step S26, the CPU 61 determines whether or not the port open processing of all the ports has been executed. When it is determined that the port open processing of all the ports has been executed (step S26; Y), the CPU 61 proceeds to the processing of step S29, notifies that an error has occurred in step S29, and ends the communication setting processing. .. In the case of the environment measuring device 3, the notification to the effect that an error has occurred may be controlled by lighting the notification unit 34c, but an error code or the like may be displayed on the display unit 52 of the mobile terminal 5. On the other hand, in the case of the mobile terminal 5, the notification to the effect of an error may be displayed on the display unit 52, but the display unit 52 indicates that the battery level display of the environment measuring device 3 is 0%. It may be displayed in. When the CPU 61 determines that the port open processing of all the ports has not been executed (step S26; N), the CPU 61 proceeds to the processing of step S27. Note that the port open processing of all ports is not executed, which means that the port open processing of some ports is executed, but the port open processing of at least some other ports is not executed. It is in a state. In step S27, the CPU 61 determines whether or not there is a changeable port. When the CPU 61 determines that there is a changeable port (step S27; Y), the CPU 61 proceeds to the process of step S28. When the CPU 61 determines that there is no changeable port (step S27; N), the CPU 61 proceeds to the process of step S29. In step S28, the CPU 61 changes to another port and returns to the process of step S18. That is, even if the port cannot be opened, the port open process is tried again on another port.

次に、上記で説明したポートが正常に使用できるか否かを確認する処理についてより具体的に図8を用いて説明する。図8は、本開示を適用した実施形態に係るポート確認処理の一例を説明するフローチャートである。ステップS71~ステップS84の処理は、ポート確認処理であって、携帯端末5側で実行される。ステップS91~ステップS97の処理は、ポート処理であって、環境測定装置3側で実行される。ステップS91~ステップS95及びステップS97の処理は、上記で説明したステップS51~ステップS55及びステップS57の処理と同様であるため、その説明については省略する。なお、携帯端末5は、自機の周囲に環境測定装置3が複数存在し、且つ環境測定装置3のそれぞれとの通信の関連付け情報に接続順序の優先順位が含まれる場合、優先順位の高いものから順に無線接続を試みる。優先順位は特に限定されるものではない。例えば、作業者が最も使用する環境測定装置3を最も高い優先順位に設定してもよい。 Next, the process of confirming whether or not the port described above can be used normally will be described more specifically with reference to FIG. FIG. 8 is a flowchart illustrating an example of the port confirmation process according to the embodiment to which the present disclosure is applied. The processes of steps S71 to S84 are port confirmation processes and are executed on the mobile terminal 5 side. The processing of steps S91 to S97 is a port processing and is executed on the environment measuring device 3 side. Since the processes of steps S91 to S95 and steps S97 are the same as the processes of steps S51 to S55 and step S57 described above, the description thereof will be omitted. The mobile terminal 5 has a high priority when a plurality of environment measuring devices 3 exist around the own device and the connection order priority is included in the communication association information with each of the environment measuring devices 3. Try wireless connection in order from. The priority is not particularly limited. For example, the environment measuring device 3 most used by the worker may be set to the highest priority.

ステップS71において、CPU61は、環境測定装置3が待機状態であるか否かを判定する。CPU61は、環境測定装置3が待機状態であると判定する場合(ステップS71;Y)、ステップS72の処理に移行する。CPU61は、環境測定装置3が待機状態でないと判定する場合(ステップS71;N)、ポート確認処理を終了する。ステップS72において、CPU61は、nに1を設定する。なお、nは優先順位を特定するための変数として利用する。ステップS73において、CPU61は、優先順位がn番目の環境測定装置3に対応するポートを選択する。ステップS74において、CPU61は、選択したポートに対しポートオープン処理を指令する。ステップS75において、CPU61は、ポートの状態が何れであるかを判定する。CPU61は、ポートの状態がオープン完了であると判定する場合(ステップS75;オープン完了)、ステップS76の処理に移行する。CPU61は、ポートの状態がオープン不可であると判定する場合(ステップS75;オープン不可)、ステップS81の処理に移行する。 In step S71, the CPU 61 determines whether or not the environment measuring device 3 is in the standby state. When the CPU 61 determines that the environment measuring device 3 is in the standby state (step S71; Y), the CPU 61 shifts to the process of step S72. When the CPU 61 determines that the environment measuring device 3 is not in the standby state (step S71; N), the CPU 61 ends the port confirmation process. In step S72, the CPU 61 sets n to 1. Note that n is used as a variable for specifying the priority. In step S73, the CPU 61 selects the port corresponding to the environment measuring device 3 having the nth priority. In step S74, the CPU 61 commands the selected port to perform port open processing. In step S75, the CPU 61 determines which is the state of the port. When the CPU 61 determines that the state of the port is open completion (step S75; open completion), the CPU 61 proceeds to the process of step S76. When the CPU 61 determines that the state of the port cannot be opened (step S75; cannot be opened), the CPU 61 proceeds to the process of step S81.

ステップS76において、CPU61は、電池残量情報を要求する。環境測定装置3のCPU41aは、ステップS76の処理が実行された場合、ステップS96において、要求に応答し、携帯端末5のCPU61に電池残量情報を応答する。ステップS77において、CPU61は、電池残量情報の応答があるか否かを判定する。CPU61は、電池残量情報の応答があると判定する場合(ステップS77;Y)、ステップS78の処理に移行する。CPU61は、電池残量情報の応答がないと判定する場合(ステップS77;N)、ステップS83の処理に移行し、ステップS83において、応答許容時間を超過したか否かを判定する。応答許容時間は、電池残量情報を要求してから応答があるまでの待ち時間の上限値が設定されればよい。CPU61は、応答許容時間を超過したと判定する場合(ステップS83;Y)、ステップS84の処理に移行し、ステップS84において、エラーである旨を報知し、ステップS80の処理に移行する。なお、ステップS84の処理は、ステップS29の処理と同様にすればよい。CPU61は、応答許容時間を超過していないと判定する場合(ステップS83;N)、ステップS77の処理に戻る。 In step S76, the CPU 61 requests battery level information. When the process of step S76 is executed, the CPU 41a of the environment measuring device 3 responds to the request in step S96, and responds the battery remaining amount information to the CPU 61 of the mobile terminal 5. In step S77, the CPU 61 determines whether or not there is a response of the battery remaining amount information. When the CPU 61 determines that there is a response of the battery remaining amount information (step S77; Y), the CPU 61 proceeds to the process of step S78. When the CPU 61 determines that there is no response of the battery remaining amount information (step S77; N), the process proceeds to the process of step S83, and in step S83, it is determined whether or not the response allowable time has been exceeded. For the allowable response time, the upper limit of the waiting time from the request for the remaining battery level information to the response may be set. When it is determined that the response allowable time has been exceeded (step S83; Y), the CPU 61 proceeds to the process of step S84, notifies that an error has occurred in step S84, and proceeds to the process of step S80. The process of step S84 may be the same as the process of step S29. When the CPU 61 determines that the response allowable time has not been exceeded (step S83; N), the CPU 61 returns to the process of step S77.

ステップS78において、CPU61は、電池残量情報を報知する。ステップS79において、CPU61は、切替周期が到来したか否かを判定する。CPU61は、切替周期が到来したと判定する場合(ステップS79;Y)、ステップS80の処理に移行する。CPU61は、切替周期が到来しないと判定する場合(ステップS79;N)、ステップS79の処理を継続する。ステップS80において、CPU61は、現在オープンしているポートに対しポートクローズ処理を指令する。ステップS81において、CPU61は、nに1を追加する。ステップS82において、CPU61は、nが最大値に到達したか否かを判定する。CPU61は、nが最大値に到達したと判定する場合(ステップS82;Y)、ステップS71の処理に戻る。CPU61は、nが最大値に到達していないと判定する場合(ステップS82;N)、ステップS73の処理に戻る。なお、nの最大値は、優先順位が設定されている環境測定装置3の台数であればよいが、特にこれに限定されるものではなく、環境測定装置3の使用状況に応じて適宜設定されればよい。 In step S78, the CPU 61 notifies the battery remaining amount information. In step S79, the CPU 61 determines whether or not the switching cycle has arrived. When the CPU 61 determines that the switching cycle has arrived (step S79; Y), the CPU 61 shifts to the process of step S80. When the CPU 61 determines that the switching cycle has not arrived (step S79; N), the CPU 61 continues the process of step S79. In step S80, the CPU 61 instructs the currently open port to perform port closing processing. In step S81, the CPU 61 adds 1 to n. In step S82, the CPU 61 determines whether or not n has reached the maximum value. When it is determined that n has reached the maximum value (step S82; Y), the CPU 61 returns to the process of step S71. When it is determined that n has not reached the maximum value (step S82; N), the CPU 61 returns to the process of step S73. The maximum value of n may be any number of environment measuring devices 3 for which priority is set, but is not particularly limited to this, and is appropriately set according to the usage status of the environment measuring device 3. Just do it.

次に、電波障害又は第三者からの不正接続等によりBluetooth通信が正常に行えない場合であっても、有線接続により携帯端末5と環境測定装置3とのポートを確保することで、測定作業を継続させる処理について図9を用いて説明する。図9は、本開示を適用した実施形態に係る無線接続から有線接続に切り替える切替処理の一例を説明するフローチャートである。ステップS111及びステップS112の処理は、有線接続指令処理であって、携帯端末5側で実行される。ステップS121~ステップS127の処理は、切替処理であって、環境測定装置3側で実行される。 Next, even if Bluetooth communication cannot be performed normally due to radio wave interference or unauthorized connection from a third party, measurement work is performed by securing a port between the mobile terminal 5 and the environment measuring device 3 by a wired connection. The process of continuing the above will be described with reference to FIG. FIG. 9 is a flowchart illustrating an example of a switching process for switching from a wireless connection to a wired connection according to an embodiment to which the present disclosure is applied. The processes of steps S111 and S112 are wired connection command processes and are executed on the mobile terminal 5 side. The processes of steps S121 to S127 are switching processes and are executed on the environment measuring device 3 side.

ステップS111において、CPU61は、USB通信に対応するポートを選択する。ステップS112において、CPU61は、選択したポートに対しポートオープン処理を指令し、有線接続指令処理を終了する。環境測定装置3のCPU41aは、ステップS112の処理が実行される場合、ステップS121~ステップS127の処理を実行する。ステップS121において、CPU41aは、Bluetooth通信が継続中であるか否かを判定する。CPU41aは、Bluetooth通信が継続中であると判定する場合(ステップS121;Y)、ステップS122の処理に移行する。CPU41aは、Bluetooth通信が継続中でないと判定する場合(ステップS121;N)、ステップS126の処理に移行する。ステップS122において、CPU41aは、特定の動作が継続中であるか否かを判定する。CPU41aは、特定の動作が継続中であると判定する場合(ステップS122;Y)、ステップS122の処理を継続する。つまり、特定の動作が継続中であれば、特定の動作が完了するまで待機する。特定の動作は、環境測定装置3に特有の動作であって、例えば、ビル内の空気環境測定項目の測定動作である。CPU41aは、特定の動作が継続中でないと判定する場合(ステップS122;N)、ステップS123の処理に移行する。ステップS123において、CPU41aは、Bluetooth通信に対応するポートのポートクローズ処理を実行する。ステップS124において、CPU41aは、Bluetooth通信である旨の報知を止める。例えば、報知部34dの点灯制御を終了し、報知部34dを消灯させる。ステップS125において、CPU41aは、Bluetooth通信を解除する。つまり、特定の動作が継続中である場合以外であって、且つUSB通信に対応するポートが選択された場合、Bluetooth通信を強制的に解除する。Bluetooth通信が解除されることにより、Bluetooth通信は終了する。ステップS126において、CPU41aは、USB通信に対応するポートのポートオープン処理を実行する。ステップS127において、CPU41aは、USB通信である旨を報知し、切替処理は終了する。USB通信である旨の報知は、報知部34eを点灯制御すればよいが、携帯端末5の表示部52にその旨を表示させてもよい。 In step S111, the CPU 61 selects a port corresponding to USB communication. In step S112, the CPU 61 commands the selected port to open the port, and ends the wired connection command process. When the process of step S112 is executed, the CPU 41a of the environment measuring device 3 executes the process of steps S121 to S127. In step S121, the CPU 41a determines whether or not Bluetooth communication is continuing. When the CPU 41a determines that Bluetooth communication is continuing (step S121; Y), the CPU 41a shifts to the process of step S122. When the CPU 41a determines that Bluetooth communication is not continuing (step S121; N), the CPU 41a shifts to the process of step S126. In step S122, the CPU 41a determines whether or not a specific operation is ongoing. When the CPU 41a determines that a specific operation is continuing (step S122; Y), the CPU 41a continues the process of step S122. That is, if a specific operation is ongoing, it waits until the specific operation is completed. The specific operation is an operation peculiar to the environment measuring device 3, and is, for example, a measurement operation of an air environment measurement item in a building. When the CPU 41a determines that the specific operation is not continuing (step S122; N), the CPU 41a shifts to the process of step S123. In step S123, the CPU 41a executes a port closing process for the port corresponding to Bluetooth communication. In step S124, the CPU 41a stops the notification that it is Bluetooth communication. For example, the lighting control of the notification unit 34d is terminated, and the notification unit 34d is turned off. In step S125, the CPU 41a cancels the Bluetooth communication. That is, when a specific operation is not ongoing and a port corresponding to USB communication is selected, Bluetooth communication is forcibly canceled. When the Bluetooth communication is canceled, the Bluetooth communication is terminated. In step S126, the CPU 41a executes a port opening process of the port corresponding to the USB communication. In step S127, the CPU 41a notifies that the USB communication is performed, and the switching process ends. The notification to the effect of USB communication may be controlled by lighting the notification unit 34e, but the display unit 52 of the mobile terminal 5 may display the notification to that effect.

次に、上記で説明した各種処理を前提として、携帯端末5の表示部52で表示されるGUI(Graphical User Interface)について図10及び図11を用いて説明する。図10は、本開示を適用した実施形態に係る各種設定画面の一例を説明する図である。図10に示すように、表示部52は、アイコン要素101a~104a及びラベル要素101b~104bが形成される。ステータス領域201,202には各種ステータスが表示される。アイコン要素101a及びラベル要素101b、アイコン要素102a及びラベル要素102b、アイコン要素103a及びラベル要素103b、並びにアイコン要素104a及びラベル要素104bは、それぞれ同一の操作内容に関するものである。図10の一例では、アイコン要素101aの下にラベル要素101bが形成されるが、特にこれに限定されず、アイコン要素101aの表面上にラベル要素101bが重ねて表示されてもよい。アイコン要素102a~104a及びラベル要素102b~104bについても同様である。 Next, on the premise of the various processes described above, the GUI (Graphical User Interface) displayed on the display unit 52 of the mobile terminal 5 will be described with reference to FIGS. 10 and 11. FIG. 10 is a diagram illustrating an example of various setting screens according to an embodiment to which the present disclosure is applied. As shown in FIG. 10, the display unit 52 is formed with icon elements 101a to 104a and label elements 101b to 104b. Various statuses are displayed in the status areas 201 and 202. The icon element 101a and the label element 101b, the icon element 102a and the label element 102b, the icon element 103a and the label element 103b, and the icon element 104a and the label element 104b are related to the same operation content, respectively. In one example of FIG. 10, the label element 101b is formed under the icon element 101a, but the present invention is not particularly limited to this, and the label element 101b may be superimposed and displayed on the surface of the icon element 101a. The same applies to the icon elements 102a to 104a and the label elements 102b to 104b.

表示部52は、液晶型タッチパネルディスプレイから構成されるものであれば、アイコン要素101a~104aに触れることで、触れられた操作内容を実行させることができる。表示部52は、液晶ディスプレイから構成されるものであれば、操作部53の操作によりアイコン要素101a~104aの何れかが選択されることで、選択された操作内容を実行させることができる。例えば、アイコン要素101aは、操作内容が、携帯端末5と、環境測定装置3とのデータ送受信を行わせることである。アイコン要素102aは、操作内容が、環境測定装置3による空気環境測定項目を測定させることである。アイコン要素103aは、操作内容が、環境測定装置3による各測定結果を各物理量の測定データに換算する演算処理を実行させることである。アイコン要素104aは、操作内容が、環境測定装置3のセンサ部35を校正させることである。なお、ステータス領域201には、携帯端末5とBluetooth通信を行っている環境測定装置3の製造番号及び電池残量情報が表示される。一方、ステータス領域202には、携帯端末5の電池残量情報が表示される。つまり、ステータス領域201,202には、機器の電池残量情報が報知されている。 If the display unit 52 is composed of a liquid crystal touch panel display, the touched operation content can be executed by touching the icon elements 101a to 104a. If the display unit 52 is composed of a liquid crystal display, the selected operation content can be executed by selecting any of the icon elements 101a to 104a by the operation of the operation unit 53. For example, the icon element 101a has an operation content of transmitting and receiving data between the mobile terminal 5 and the environment measuring device 3. The operation content of the icon element 102a is to measure the air environment measurement item by the environment measuring device 3. The icon element 103a causes the operation content to execute an arithmetic process for converting each measurement result by the environment measuring device 3 into measurement data of each physical quantity. The operation content of the icon element 104a is to calibrate the sensor unit 35 of the environment measuring device 3. In the status area 201, the serial number and the battery remaining amount information of the environment measuring device 3 performing Bluetooth communication with the mobile terminal 5 are displayed. On the other hand, in the status area 202, the battery remaining amount information of the mobile terminal 5 is displayed. That is, the status areas 201 and 202 are notified of the battery remaining amount information of the device.

図11は、本開示を適用した実施形態に係る通信設定画面の一例を説明する図である。図11に示すように、表示部52は、アイコン要素111a~114a,121a、ラベル要素111b~114b,121b、ラジオボタン要素115,116、スクロールバー要素117,118、ドロップダウンリスト要素119、リストボックス要素211~213が形成される。ステータス領域202には上記と同様に携帯端末5の電池残量情報が表示される。アイコン要素111a及びラベル要素111b、アイコン要素112a及びラベル要素112b、アイコン要素113a及びラベル要素113b、アイコン要素114a及びラベル要素114b、並びにアイコン要素121a及びラベル要素121bは、それぞれ同一の操作内容に関するものである。図11の一例では、アイコン要素111aの表面上にラベル要素111bが重ねて表示されているが、特にこれに限定されず、アイコン要素111aの下にラベル要素101bが形成されてもよい。アイコン要素112a~114a,121a及びラベル要素112b~114b,121bについても同様である。 FIG. 11 is a diagram illustrating an example of a communication setting screen according to an embodiment to which the present disclosure is applied. As shown in FIG. 11, the display unit 52 includes icon elements 111a to 114a, 121a, label elements 111b to 114b, 121b, radio button elements 115, 116, scroll bar elements 117, 118, drop-down list elements 119, and a list box. Elements 211 to 213 are formed. Similar to the above, the battery remaining amount information of the mobile terminal 5 is displayed in the status area 202. The icon element 111a and the label element 111b, the icon element 112a and the label element 112b, the icon element 113a and the label element 113b, the icon element 114a and the label element 114b, and the icon element 121a and the label element 121b are related to the same operation content, respectively. be. In one example of FIG. 11, the label element 111b is superimposed and displayed on the surface of the icon element 111a, but the present invention is not particularly limited to this, and the label element 101b may be formed under the icon element 111a. The same applies to the icon elements 112a to 114a and 121a and the label elements 112b to 114b and 121b.

アイコン要素111aが操作されると、環境測定装置3の検索が開始され、リストボックス要素211に検索結果が表示される。リストボックス要素211に表示しきれない環境測定装置3があれば、スクロールバー要素117が操作されることにより表示可能となる。作業者は、リストボックス要素211に表示される環境測定装置3の何れかを選択することができる。アイコン要素112aが操作されると、リストボックス要素211の中から選択された環境測定装置3とのペアリング処理が実行される。ペアリング済となった環境測定装置3は、リストボックス要素212に表示される。リストボックス要素212に表示しきれない環境測定装置3があれば、スクロールバー要素118が操作されることにより表示可能となる。なお、作業者は、リストボックス要素212に表示される環境測定装置3の何れかを選択してからアイコン要素113aを操作することにより、ペアリング済の環境測定装置3のペアリングが削除されるので、選択された環境測定装置3と携帯端末5との関連付け情報を削除することができる。アイコン要素114aが操作されると、携帯端末5と有線接続された環境測定装置3とのUSB通信テストが実行される。具体的には、ラジオボタン要素115が選択されたときには、COMポートのポート番号が自動的に選択されるので、その選択結果がリストボックス要素213に表示された後、アイコン要素114aが操作されればよい。一方、ラジオボタン要素116が選択されたときには、COMポートのポート番号を作業者に指定させることができるので、ドロップダウンリスト要素119を作業者に操作させれば、リストボックス要素213にCOMポートのポート番号が一覧表示される。よって、リストボックス要素213に一覧表示される中から作業者にCOMポートのポート番号を指定させてから、アイコン要素114aが操作されればよい。これにより、USB通信で利用するCOMポートのポート番号が設定され、USB通信が可能となる。 When the icon element 111a is operated, the search of the environment measuring device 3 is started, and the search result is displayed in the list box element 211. If there is an environment measuring device 3 that cannot be displayed in the list box element 211, it can be displayed by operating the scroll bar element 117. The operator can select any of the environmental measuring devices 3 displayed on the list box element 211. When the icon element 112a is operated, the pairing process with the environment measuring device 3 selected from the list box element 211 is executed. The paired environment measuring device 3 is displayed on the list box element 212. If there is an environment measuring device 3 that cannot be displayed in the list box element 212, it can be displayed by operating the scroll bar element 118. The operator selects any of the environment measuring devices 3 displayed on the list box element 212 and then operates the icon element 113a to delete the pairing of the paired environment measuring device 3. Therefore, the association information between the selected environment measuring device 3 and the mobile terminal 5 can be deleted. When the icon element 114a is operated, a USB communication test between the mobile terminal 5 and the environment measuring device 3 connected by wire is executed. Specifically, when the radio button element 115 is selected, the port number of the COM port is automatically selected, so that the icon element 114a is operated after the selection result is displayed in the list box element 213. Just do it. On the other hand, when the radio button element 116 is selected, the port number of the COM port can be specified by the worker. Therefore, if the worker operates the drop-down list element 119, the list box element 213 of the COM port can be used. The port numbers are listed. Therefore, the icon element 114a may be operated after having the worker specify the port number of the COM port from the list displayed in the list box element 213. As a result, the port number of the COM port used for USB communication is set, and USB communication becomes possible.

以上の説明から、本実施形態においては、携帯端末5は、環境測定装置3との通信の関連付け情報に有線接続及び無線接続のそれぞれの通信設定が含まれる場合、有線接続及び無線接続の何れか一方で環境測定装置3と通信可能であり、無線接続は、赤外線より低い周波数である電波が通信媒体に使用される。よって、無線接続である場合、通信媒体は電波であるため、赤外線通信のように角度の制限が要求されることもなく、且つ障害物があったとしても障害物で通信が途絶えることがない。したがって、環境測定装置3と、携帯端末5との位置関係に相対的な角度の制限が要求されず、且つ環境測定装置3と携帯端末5との間に障害物のある測定環境下であっても、環境測定装置3と携帯端末5との通信を行うことができる。 From the above description, in the present embodiment, the mobile terminal 5 is either a wired connection or a wireless connection when the communication setting of the communication with the environment measuring device 3 includes the communication settings of the wired connection and the wireless connection. On the other hand, it is possible to communicate with the environment measuring device 3, and in the wireless connection, a radio wave having a frequency lower than that of infrared rays is used as a communication medium. Therefore, in the case of wireless connection, since the communication medium is a radio wave, the angle limitation is not required unlike infrared communication, and even if there is an obstacle, the communication is not interrupted by the obstacle. Therefore, the relative angle limitation is not required for the positional relationship between the environment measuring device 3 and the mobile terminal 5, and the measurement environment has an obstacle between the environment measuring device 3 and the mobile terminal 5. Also, it is possible to communicate between the environment measuring device 3 and the mobile terminal 5.

また、本実施形態においては、携帯端末5の周囲に環境測定装置3が複数存在し、且つ携帯端末5と、環境測定装置3のそれぞれとの通信の関連付け情報に接続順序の優先順位が含まれる場合、優先順位の高いものから順に無線接続が試みられる。よって、携帯端末5を携帯する作業者が特に操作をしなくても、携帯端末5と環境測定装置3との接続が自動的に行われる。したがって、作業者は、環境測定場所まで、手元にある携帯端末5と環境測定装置3とを運べば、そのまま環境測定を開始できるため、設定コスト及び測定コストを低減することができる。 Further, in the present embodiment, a plurality of environment measuring devices 3 exist around the mobile terminal 5, and the connection order priority is included in the communication association information between the mobile terminal 5 and each of the environment measuring devices 3. In that case, the wireless connection is tried in order from the one with the highest priority. Therefore, the connection between the mobile terminal 5 and the environment measuring device 3 is automatically performed even if the operator carrying the mobile terminal 5 does not perform any particular operation. Therefore, the operator can start the environmental measurement as it is by carrying the portable terminal 5 and the environmental measurement device 3 at hand to the environmental measurement place, so that the setting cost and the measurement cost can be reduced.

また、本実施形態においては、環境測定装置3が待機状態であり、且つ携帯端末5の周囲に環境測定装置3が複数存在する場合、環境測定装置3のそれぞれに無線接続が可能であるか否かの問い合わせが実行される。よって、作業者が特に操作をすることなく、携帯端末5に無線接続が可能な環境測定装置3が探索される。したがって、携帯端末5及び環境測定装置3の利便性を向上させることができる。 Further, in the present embodiment, when the environment measuring device 3 is in the standby state and there are a plurality of environment measuring devices 3 around the mobile terminal 5, whether or not wireless connection is possible to each of the environment measuring devices 3. Is executed. Therefore, an environment measuring device 3 that can be wirelessly connected to the mobile terminal 5 is searched for without any particular operation by the operator. Therefore, the convenience of the mobile terminal 5 and the environment measuring device 3 can be improved.

また、本実施形態においては、関連付け情報に基づき関連付け処理が行われる場合、設定された条件に従い、関連付け処理の対象となる環境測定装置3の候補が抽出される。よって、携帯端末5に無線接続可能な環境測定装置3が多数存在したとしても、設定された条件に従い絞り込まれる。したがって、携帯端末5の周囲に存在し、且つ携帯端末5に無関係な環境測定装置3を除外することができるため、作業者による作業エラーを未然に防ぐことができる。 Further, in the present embodiment, when the association processing is performed based on the association information, candidates for the environment measuring device 3 to be the target of the association processing are extracted according to the set conditions. Therefore, even if there are a large number of environment measuring devices 3 that can be wirelessly connected to the mobile terminal 5, they are narrowed down according to the set conditions. Therefore, since the environment measuring device 3 existing around the mobile terminal 5 and unrelated to the mobile terminal 5 can be excluded, it is possible to prevent work errors by the operator.

また、本実施形態においては、環境測定装置3において、携帯端末5との接続状態が有線接続及び無線接続の何れであるかが報知される。よって、作業者は、直感的に接続状態が有線接続及び無線接続の何れであるかを知ることができる。したがって、測定項目に異常値が含まれる場合、測定項目に異常値が含まれるときの接続状態が有線接続及び無線接続の何れであるかが特定できるため、障害要因を切り分けることができる。 Further, in the present embodiment, the environment measuring device 3 is notified whether the connection state with the mobile terminal 5 is a wired connection or a wireless connection. Therefore, the operator can intuitively know whether the connection state is a wired connection or a wireless connection. Therefore, when the measurement item includes an abnormal value, it is possible to identify whether the connection state when the measurement item includes the abnormal value is a wired connection or a wireless connection, so that the cause of the failure can be isolated.

以上、本開示を適用した環境測定システム1を実施形態に基づいて説明したが、本開示はこれに限定されるものではなく、本開示の趣旨を逸脱しない範囲で、変更を加えてもよい。 Although the environmental measurement system 1 to which the present disclosure is applied has been described above based on the embodiment, the present disclosure is not limited to this, and changes may be made without departing from the gist of the present disclosure.

例えば、本実施形態においては、報知部34a~34eがLEDを備える一例について説明したが、特にこれに限定されない。例えば、報知部34a~34eは、音声生成部と、音声出力部とを備え、音声により上記各種報知が行われてもよい。また、報知部34a~34eのLEDが点灯制御されることにより上記各種報知が行われる一例について説明したが、特にこれに限定されない。例えば、報知部34a~34eは、点灯と消灯とを一定のタイミングで行う点滅制御により、上記各種報知が行われてもよい。また、報知部34a~34eが液晶パネル又は有機EL等のディスプレイを備え、ディスプレイに画像又は文字等を表示させることにより、上記各種報知が行われてもよい。また、報知部34a~34eが備えるLEDが7セグメントディスプレイを構成し、7セグメントディスプレイにより、上記各種報知が行われてもよい。 For example, in the present embodiment, an example in which the notification units 34a to 34e are provided with LEDs has been described, but the present invention is not particularly limited thereto. For example, the notification units 34a to 34e include a voice generation unit and a voice output unit, and the above-mentioned various notifications may be performed by voice. Further, an example in which the above-mentioned various notifications are performed by controlling the lighting of the LEDs of the notification units 34a to 34e has been described, but the present invention is not particularly limited thereto. For example, the notification units 34a to 34e may perform the above-mentioned various notifications by blinking control that turns on and off at a fixed timing. Further, the notification units 34a to 34e may be provided with a display such as a liquid crystal panel or an organic EL, and the above-mentioned various notifications may be performed by displaying an image, characters, or the like on the display. Further, the LEDs included in the notification units 34a to 34e may form a 7-segment display, and the 7-segment display may perform the above-mentioned various notifications.

また、本実施形態においては、環境測定装置3を絞り込むために設定された条件として製造番号が設定される一例について説明したが、特にこれに限定されない。例えば、環境測定装置3に割り当てられるBDアドレスで絞り込んでもよい。 Further, in the present embodiment, an example in which the serial number is set as a condition set for narrowing down the environment measuring device 3 has been described, but the present invention is not particularly limited to this. For example, the BD address assigned to the environment measuring device 3 may be used for narrowing down.

1 環境測定システム、3,3_1~3_3 環境測定装置
31 筐体、32 端子部、33 電源ボタン、34,34a~34e 報知部
35 センサ部、35a 温湿度計、35b CO計、35c CO
35d 風速計、35e 粉塵計、37 操作部
41 データロガー部、41a CPU、41b メモリ
43 電源部、44 バッテリ
5 携帯端末、51 筐体、52 表示部、53 操作部、54 端子部
55 通信部、56 電源ボタン、61 CPU、62 メモリ
63 電源部、64 バッテリ
101a~104a,111a~114a,121a アイコン要素
101b~104b,111b~114b,121b ラベル要素
115,116 ラジオボタン要素、117,118 スクロールバー要素
119 ドロップダウンリスト要素
201,202 ステータス領域、211~213 リストボックス要素
M マスター機器、S スレーブ機器
1 Environmental measurement system, 3,3_1 to 3_3 Environmental measurement device 31 Housing, 32 terminals, 33 Power button, 34, 34a to 34e Notification unit 35 Sensor unit, 35a temperature and humidity meter, 35b CO meter, 35c CO 2 total 35d Wind speed meter, 35e dust meter, 37 operation unit 41 data logger unit, 41a CPU, 41b memory 43 power supply unit, 44 battery 5 mobile terminal, 51 housing, 52 display unit, 53 operation unit, 54 terminal unit 55 communication unit, 56 Power button, 61 CPU, 62 Memory 63 Power supply unit, 64 Battery 101a-104a, 111a-114a, 121a Icon element 101b-104b, 111b-114b, 121b Label element 115,116 Radio button element 117, 118 Scroll bar element 119 Drop-down list element 201,202 status area, 211-213 list box element M master device, S slave device

Claims (5)

環境測定装置と、前記環境測定装置と通信可能な携帯端末とを含む環境測定システムであって、
前記携帯端末は、
前記環境測定装置との通信の関連付け情報に有線接続及び無線接続のそれぞれの通信設定が含まれる場合、前記有線接続及び前記無線接続の何れか一方で前記環境測定装置と通信可能であり、
前記無線接続は、
赤外線より低い周波数である電波が通信媒体に使用され、
前記環境測定装置の制御部は、前記無線接続が継続中であって特定の動作が継続中ではないと判定すると前記無線接続を解除し、前記有線接続に切り替える、
ことを特徴とする環境測定システム。
An environmental measurement system including an environmental measurement device and a mobile terminal capable of communicating with the environmental measurement device.
The mobile terminal is
When the communication association information with the environment measuring device includes the communication settings of the wired connection and the wireless connection, it is possible to communicate with the environment measuring device by either the wired connection or the wireless connection.
The wireless connection is
Radio waves with a frequency lower than infrared rays are used as communication media ,
When the control unit of the environment measuring device determines that the wireless connection is ongoing and a specific operation is not continuing, the control unit cancels the wireless connection and switches to the wired connection.
An environmental measurement system characterized by that.
前記携帯端末は、
自機の周囲に前記環境測定装置が複数存在し、且つ前記環境測定装置のそれぞれとの通信の関連付け情報に接続順序の優先順位が含まれる場合、前記優先順位の高いものから順に前記無線接続を試みる、
ことを特徴とする請求項1に記載の環境測定システム。
The mobile terminal is
When a plurality of the environment measuring devices exist around the own machine and the connection order priority is included in the communication association information with each of the environment measuring devices, the wireless connection is made in order from the one with the highest priority. Try,
The environmental measurement system according to claim 1.
前記携帯端末は、
前記環境測定装置が待機状態であり、且つ自機の周囲に前記環境測定装置が複数存在する場合、前記環境測定装置のそれぞれに前記無線接続が可能であるか否かを問い合わせる、
ことを特徴とする請求項1又は2に記載の環境測定システム。
The mobile terminal is
When the environment measuring device is in the standby state and there are a plurality of the environment measuring devices around the own machine, each of the environment measuring devices is inquired as to whether or not the wireless connection is possible.
The environmental measurement system according to claim 1 or 2.
前記携帯端末は、
前記関連付け情報に基づき関連付け処理を行う場合、設定された条件に従い、前記関連付け処理の対象となる前記環境測定装置の候補を絞り込む、
ことを特徴とする請求項1~3の何れか一項に記載の環境測定システム。
The mobile terminal is
When performing the association processing based on the association information, the candidates of the environment measuring device to be the target of the association processing are narrowed down according to the set conditions.
The environmental measurement system according to any one of claims 1 to 3, wherein the environmental measurement system is characterized by the above.
前記環境測定装置は、
前記携帯端末との接続状態が前記有線接続及び前記無線接続の何れであるかを報知する報知部、
をさらに備える、
ことを特徴とする請求項1~4の何れか一項に記載の環境測定システム。
The environment measuring device is
A notification unit that notifies whether the connection state with the mobile terminal is the wired connection or the wireless connection.
Further prepare,
The environmental measurement system according to any one of claims 1 to 4, wherein the environmental measurement system is characterized by the above.
JP2018072864A 2018-04-05 2018-04-05 Environmental measurement system Active JP7084191B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018072864A JP7084191B2 (en) 2018-04-05 2018-04-05 Environmental measurement system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018072864A JP7084191B2 (en) 2018-04-05 2018-04-05 Environmental measurement system

Publications (2)

Publication Number Publication Date
JP2019185233A JP2019185233A (en) 2019-10-24
JP7084191B2 true JP7084191B2 (en) 2022-06-14

Family

ID=68341186

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018072864A Active JP7084191B2 (en) 2018-04-05 2018-04-05 Environmental measurement system

Country Status (1)

Country Link
JP (1) JP7084191B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001111750A (en) 1999-10-13 2001-04-20 Fuji Photo Film Co Ltd Image processor
US20070185646A1 (en) 2006-02-09 2007-08-09 Mario Neugebauer Transmission of sensor data based on geographical navigation data
JP2009520262A (en) 2005-12-19 2009-05-21 ローレンス ケーツ Mobile monitoring device
JP2012029066A (en) 2010-07-23 2012-02-09 Advanced Telecommunication Research Institute International Portable telephone
JP2015099457A (en) 2013-11-19 2015-05-28 パナソニック株式会社 Farm environment observation system
JP2017212641A (en) 2016-05-26 2017-11-30 株式会社東芝 Sensor, communication method, and communication program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001111750A (en) 1999-10-13 2001-04-20 Fuji Photo Film Co Ltd Image processor
JP2009520262A (en) 2005-12-19 2009-05-21 ローレンス ケーツ Mobile monitoring device
US20070185646A1 (en) 2006-02-09 2007-08-09 Mario Neugebauer Transmission of sensor data based on geographical navigation data
JP2012029066A (en) 2010-07-23 2012-02-09 Advanced Telecommunication Research Institute International Portable telephone
JP2015099457A (en) 2013-11-19 2015-05-28 パナソニック株式会社 Farm environment observation system
JP2017212641A (en) 2016-05-26 2017-11-30 株式会社東芝 Sensor, communication method, and communication program

Also Published As

Publication number Publication date
JP2019185233A (en) 2019-10-24

Similar Documents

Publication Publication Date Title
US20220117013A1 (en) Network system of home appliance and network setup method of the same
JP6219370B2 (en) Module radio power, lighting and automatic operation control
EP1592172B1 (en) Information transmission system, information transmission method, electric device communication device, information communication device, communication control program
CN105451412A (en) Light Control Apparatus and Method of Controlling Light Thereof
CN105389020B (en) A kind of method and system executed by input equipment
JP2017511966A (en) Wireless and power line lighting pairing, dimming, and control
KR101795025B1 (en) A network system and a control method the same
US11140734B2 (en) Electronic device and method for controlling electronic device
KR20210026834A (en) Home appliance and mobile terminal having application for registering the home appliance to server
KR20130115611A (en) Lighting apparatus and method of controlling the lighting apparatus using a device
JP2014229362A (en) Wireless apparatus control system, and wireless apparatus pairing method
US10568190B2 (en) Remote control, lighting system, and luminaire
JP6751853B2 (en) Non-contact power supply equipment and non-contact power receiving equipment, and a non-contact power transmission system equipped with these.
JP2017504982A (en) Adaptive multi-mode wireless power, lights, and automation
JP7084191B2 (en) Environmental measurement system
KR20140145306A (en) Lighting system
JP6830208B2 (en) Lighting systems, luminaires, and how to pair lighting systems
EP3939339B1 (en) Controlling or commissioning a plurality of nodes using a mobile device
JP2006129150A (en) Device controller and remote control system using the same
JP6884773B2 (en) Communication system and control method of communication system
JP7394378B2 (en) lighting system
WO2023024823A1 (en) Communication system, method and apparatus applied to electric tool, and electric tool
JP2005286964A (en) Communication repeater
KR200453390Y1 (en) WLAN access point device
TWI473470B (en) Sensing network deployment system and sensing network deployment method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210318

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220215

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220404

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220602

R150 Certificate of patent or registration of utility model

Ref document number: 7084191

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350