JP2022083604A - Wireless communication relay device, retry control method of wireless communication relay device, and retry control program - Google Patents

Wireless communication relay device, retry control method of wireless communication relay device, and retry control program Download PDF

Info

Publication number
JP2022083604A
JP2022083604A JP2020195025A JP2020195025A JP2022083604A JP 2022083604 A JP2022083604 A JP 2022083604A JP 2020195025 A JP2020195025 A JP 2020195025A JP 2020195025 A JP2020195025 A JP 2020195025A JP 2022083604 A JP2022083604 A JP 2022083604A
Authority
JP
Japan
Prior art keywords
unit
communication
determination
failure
packet
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.)
Pending
Application number
JP2020195025A
Other languages
Japanese (ja)
Inventor
和紀 大塚
Kazunori Otsuka
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.)
NEC Platforms Ltd
Original Assignee
NEC Platforms 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 NEC Platforms Ltd filed Critical NEC Platforms Ltd
Priority to JP2020195025A priority Critical patent/JP2022083604A/en
Publication of JP2022083604A publication Critical patent/JP2022083604A/en
Pending legal-status Critical Current

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

Landscapes

  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

To reduce the power consumption of a repeater.SOLUTION: A repeater 13 includes: an arithmetic unit 22 including an operation mode setting unit 31 for setting any of a plurality of operation modes associated with the number of retries, a packet communication control unit 32 for controlling packet communication and detecting the success or failure of communication establishment according to the reception state of packets from a slave unit 12, a failure number comparison determination unit 33 that makes a first determination according to whether or not the number of failures of communication establishment is equal to or more than a prescribed number, and a state detection determination unit 34 for making a second determination by calculating the probability of success or failure of communication establishment with the slave unit 12 during a predetermined period; a transmitting/receiving unit 21 for transmitting and receiving packets to/from a master unit 11 and the slave unit 12; and a power supply unit 23 for supplying power. The operation mode setting unit 31 sets the operation mode according to at least one of the first determination and the second determination. The packet communication control unit 32 performs control to change the number of retries to establish communication to the slave unit 12 according to the operation mode.SELECTED DRAWING: Figure 2

Description

本発明は、無線通信の中継装置、無線通信の中継装置のリトライ制御方法、及びリトライ制御プログラムに関する。 The present invention relates to a wireless communication relay device, a retry control method for the wireless communication relay device, and a retry control program.

近年、充電方法が太陽光発電である鉛蓄電池を電源として稼働する装置が用いられている。例えば、無線通信における子機や、親機と子機の間を中継する中継装置には、充電方法が太陽光発電である鉛蓄電池を用いた機器が利用されることがある。 In recent years, a device that operates using a lead storage battery whose charging method is solar power generation has been used. For example, a device using a lead storage battery whose charging method is solar power generation may be used as a slave unit in wireless communication or a relay device that relays between the master unit and the slave unit.

ここで夫々の機器における充電方法が太陽光発電である場合、悪天候や積雪等の日照条件で発電が停止することが考えられる。このように発電の停止等により、中継装置と子機との通信の確立に失敗した場合、中継装置は、子機に対して通信の確立を試みる動作を行う。典型的には、中継装置は、子機に対してあらかじめ定めたリトライ回数だけリトライを行う。 Here, when the charging method of each device is solar power generation, it is conceivable that the power generation will stop due to sunshine conditions such as bad weather and snow cover. When the establishment of communication between the relay device and the slave unit fails due to the stop of power generation or the like, the relay device performs an operation of trying to establish communication with the slave unit. Typically, the relay device retries the slave unit a predetermined number of retries.

特許文献1には、通信システムネットワークに対する通信失敗の度合いを、捕捉失敗の回数や安定待受時間ST未満となった連続待受時間に応じて求める構成が記載されている。 Patent Document 1 describes a configuration in which the degree of communication failure for a communication system network is obtained according to the number of acquisition failures and the continuous standby time that is less than the stable standby time ST.

特許文献2には、点検対象の計測データに失敗原因が対応付けられている場合に、対応付けられた失敗原因に応じてデータ取得をリトライすることが記載されている。 Patent Document 2 describes that when a failure cause is associated with the measurement data to be inspected, data acquisition is retried according to the associated failure cause.

特開2007-202073号公報Japanese Unexamined Patent Publication No. 2007-202073 特開2018-055512号公報Japanese Unexamined Patent Publication No. 2018-055512

しかしながら、ある子機が故障などにより復旧不可能な状況に陥ってしまった場合であっても中継装置から子機にリトライ処理を繰り返すと、電力を余分に消費してしまう。このようにして中継装置の電力を余分に消費することで、中継装置の電力が切れてしまった場合には、中継装置が中継している他の子機への通信まで不可能となる可能性がある。 However, even if a certain handset falls into an unrecoverable situation due to a failure or the like, if the retry process is repeated from the relay device to the handset, extra power is consumed. By consuming extra power of the relay device in this way, if the power of the relay device is cut off, it may not be possible to communicate with other slave units relayed by the relay device. There is.

本開示の目的は、上述した課題を解決する無線通信の中継装置、無線通信の中継装置のリトライ制御方法、及びリトライ制御プログラムを提供することにある。 An object of the present disclosure is to provide a wireless communication relay device, a retry control method for the wireless communication relay device, and a retry control program for solving the above-mentioned problems.

本発明にかかる無線通信の中継装置は、親機と、1つ以上の子機と、の間で確立される無線パケット通信を中継する無線通信の中継装置であって、前記子機との通信の確立を試みるリトライ回数をパラメータとして有する複数の動作モードのうち、いずれかの動作モードを設定する動作モード設定部と、前記親機及び前記子機とのパケット通信を制御するとともに、前記子機からのパケットの受信状態に応じて前記子機との通信の確立の成否を検知するパケット通信制御部と、前記パケット通信制御部で通信の確立の失敗が検知された場合に、通信の確立の失敗回数が規定の回数以上か否かによる第1の判定を行う失敗回数比較判定部と、所定の期間における前記子機との通信確立の成否の確率を算出し、前記算出された確率が規定の確率より高いか否かによる第2の判定を行う状態検出判定部と、を有する演算部と、前記親機と、前記子機と、に対してパケットの送受信を行う送受信部と、前記演算部と、前記送受信部と、に電力の供給を行う電源部と、を備え、前記動作モード設定部は、前記第1の判定と、前記第2の判定と、の少なくとも一方に応じて、前記動作モードを設定し、前記パケット通信制御部は、前記動作モードに応じて前記子機への通信の確立を試みるリトライ回数を変更する制御を行う。 The wireless communication relay device according to the present invention is a wireless communication relay device that relays wireless packet communication established between a master unit and one or more slave units, and is a communication with the slave unit. Of the plurality of operation modes having the number of retries to try to establish as a parameter, the operation mode setting unit for setting one of the operation modes controls the packet communication between the master unit and the slave unit, and the slave unit. When the packet communication control unit that detects the success or failure of the establishment of communication with the slave unit according to the reception status of the packet from the packet communication control unit and the packet communication control unit detects the failure of the communication establishment, the communication is established. The failure count comparison determination unit that makes the first determination based on whether or not the number of failures is equal to or greater than the specified number calculates the probability of success or failure of communication establishment with the slave unit in a predetermined period, and the calculated probability is specified. A calculation unit having a state detection determination unit that makes a second determination based on whether or not the probability is higher than the probability of The operation mode setting unit includes a unit, a power supply unit that supplies power to the transmission / reception unit, and the operation mode setting unit according to at least one of the first determination and the second determination. The operation mode is set, and the packet communication control unit controls to change the number of retries to try to establish communication to the slave unit according to the operation mode.

また、無線通信の中継装置のリトライ制御方法は、親機と、1つ以上の子機と、の間で確立されるパケット通信による無線通信を中継する無線通信の中継装置のリトライ制御方法であって、パケット通信制御部が、前記子機からのパケットの受信状態に応じて、前記子機との通信の確立の成否を検知し、前記パケット通信制御部で通信の確立の失敗が検知された場合に、通信の確立の失敗回数が規定の回数以上か否かによる第1の判定を行い、
所定の期間における前記子機との通信確立の成否の確率を計算し、前記計算された確率が規定の確率より高いか否かによる第2の判定を行い、前記第1の判定と、前記第2の判定と、の少なくとも一方に応じて、前記子機との通信の確立を試みるリトライ回数を規定した複数の動作モードのうち、いずれの動作モードに設定するかを決定する。
Further, the retry control method of the wireless communication relay device is a retry control method of the wireless communication relay device that relays wireless communication by packet communication established between the master unit and one or more slave units. The packet communication control unit detects the success or failure of the establishment of communication with the slave unit according to the reception status of the packet from the slave unit, and the packet communication control unit detects the failure of the establishment of communication. In that case, the first determination is made based on whether or not the number of failures in establishing communication is equal to or greater than the specified number.
The probability of success or failure of establishing communication with the slave unit in a predetermined period is calculated, the second determination is made based on whether or not the calculated probability is higher than the specified probability, and the first determination and the first determination are made. Depending on at least one of the determinations in 2, it is determined which operation mode is to be set among the plurality of operation modes in which the number of retries attempting to establish communication with the slave unit is specified.

また、リトライ制御プログラムは、親機と、1つ以上の子機と、の間で確立されるパケット通信による無線通信を中継する無線通信の中継装置のリトライ制御プログラムであって、パケット通信制御部が、前記子機からのパケットの受信状態に応じて、前記子機との通信の確立の成否を検知し、前記パケット通信制御部で通信の確立の失敗が検知された場合に、通信の確立の失敗回数が規定の回数以上か否かによる第1の判定を行い、所定の期間における前記子機との通信確立の成否の確率を計算し、前記計算された確率が規定の確率より高いか否かによる第2の判定を行い、前記第1の判定と、前記第2の判定と、の少なくとも一方に応じて、前記子機との通信の確立を試みるリトライ回数を規定した複数の動作モードのうち、いずれの動作モードに設定するかを決定する。 Further, the retry control program is a retry control program of a wireless communication relay device that relays wireless communication by packet communication established between a master unit and one or more slave units, and is a packet communication control unit. However, depending on the reception status of the packet from the slave unit, the success or failure of the establishment of communication with the slave unit is detected, and when the packet communication control unit detects the failure of the establishment of communication, the establishment of communication is established. The first determination is made based on whether or not the number of failures is equal to or greater than the specified number of times, the probability of success or failure of establishing communication with the slave unit in a predetermined period is calculated, and whether the calculated probability is higher than the specified probability. A plurality of operation modes in which a second determination is made depending on whether or not, and the number of retries attempting to establish communication with the slave unit is specified according to at least one of the first determination and the second determination. Of these, determine which operation mode to set.

これにより、中継装置と子機との通信状態に応じてリトライ回数を変更し、中継装置にかかる電力消費を低減させることができる。 As a result, the number of retries can be changed according to the communication state between the relay device and the slave unit, and the power consumption of the relay device can be reduced.

実施の形態1にかかる無線パケット通信システムの構成の一例を示す図である。It is a figure which shows an example of the structure of the wireless packet communication system which concerns on Embodiment 1. FIG. 実施の形態1にかかる中継装置の機能ブロックの一例を示した図である。It is a figure which showed an example of the functional block of the relay device which concerns on Embodiment 1. FIG. 実施の形態1にかかる中継装置の機能ブロックの他の例を示した図である。It is a figure which showed the other example of the functional block of the relay device which concerns on Embodiment 1. FIG. 実施の形態1にかかる中継装置の動作モードの遷移の例を示す図である。It is a figure which shows the example of the transition of the operation mode of the relay device which concerns on Embodiment 1. FIG. 関連する無線パケット通信システムの動作のタイムラインの一例を示す図である。It is a figure which shows an example of the operation timeline of the related wireless packet communication system. 実施の形態1にかかるヘルスチェック信号に対して子機から中継装置に応答がない場合の無線パケット通信システムの動作の一例を示す図である。It is a figure which shows an example of the operation of the wireless packet communication system when there is no response from a slave unit to a relay device with respect to the health check signal which concerns on Embodiment 1. FIG. 実施の形態1にかかるヘルスチェック信号により子機の故障が判明している場合の無線パケット通信システムの動作の一例を示す図である。It is a figure which shows an example of the operation of the wireless packet communication system when the failure of a slave unit is found by the health check signal which concerns on Embodiment 1. FIG. 実施の形態2にかかる中継装置の機能ブロックを示した図である。It is a figure which showed the functional block of the relay device which concerns on Embodiment 2. FIG. 実施の形態2にかかる中継装置の動作モードの遷移の例を示す図である。It is a figure which shows the example of the transition of the operation mode of the relay device which concerns on Embodiment 2. FIG.

以下、図面を参照して本発明の実施の形態について説明する。図1は、無線パケット通信システム1の構成の一例を示している。ここでは図1に示すように、1台の親機11と、複数台の子機12と、親機11と子機12の間を中継する中継装置(以下、中継機)13と、を備える。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows an example of the configuration of the wireless packet communication system 1. Here, as shown in FIG. 1, one master unit 11, a plurality of slave units 12, and a relay device (hereinafter, repeater) 13 that relays between the master unit 11 and the slave unit 12 are provided. ..

親機11は、中継機13を介して、子機12とのパケット通信による情報の送受信を行う装置である。典型的には、親機11は子機12から取得した情報を、サーバー(図示せず)に送信するアクセスポイントである。なお親機11は、この機能を有するものに限定されず、中継機13を介して、子機12とパケット通信を行うものであればよい。 The master unit 11 is a device that transmits / receives information by packet communication with the slave unit 12 via the repeater 13. Typically, the master unit 11 is an access point that transmits information acquired from the slave unit 12 to a server (not shown). The master unit 11 is not limited to the one having this function, and may be any one that performs packet communication with the slave unit 12 via the repeater 13.

子機12は、中継機13を介した、親機11とのパケット通信による情報の送受信を行う端末である。 The slave unit 12 is a terminal that transmits / receives information by packet communication with the master unit 11 via the repeater 13.

中継機13は、中継機13の本体に設けられた電池により供給される電力で動作する装置である。例えば、この電池は、太陽光発電により充電される。また中継機13は、複数の子機12のそれぞれと通信接続が確立され、あるいは通信接続が確立できない場合には通信リトライを行う。 The repeater 13 is a device that operates with electric power supplied by a battery provided in the main body of the repeater 13. For example, this battery is charged by solar power generation. Further, the repeater 13 performs a communication retry when a communication connection is established with each of the plurality of slave units 12 or the communication connection cannot be established.

中継機13では、後述する動作モード設定部31により、「通常モード」「通信優先モード」「省電力モード」のいずれの動作モードで動作するかが設定される。中継機13では動作モードに応じて、子機12への通信の確立を試みる回数を変更する。 In the repeater 13, the operation mode setting unit 31 described later sets which of the "normal mode", "communication priority mode", and "power saving mode" the operation mode is to operate. The repeater 13 changes the number of attempts to establish communication with the slave unit 12 according to the operation mode.

さらに中継機13では、動作状態を「アクティブ状態」と「スリープ状態」で切り替えることができる。すなわち中継機13では、通信の中継等を頻繁に行う場合には動作状態を「アクティブ状態」とすることができ、又は、通信の中継などを行わない場合には「スリープ状態」とすることができる。なお例えば、アクティブ状態はスリープ状態に比べて消費電力が大きいが、通常の通信の中継を遅滞なく実行する状態であり、スリープ状態はアクティブ状態に比べて消費電力が小さく、通信の開始などを待つための待機状態である。 Further, in the repeater 13, the operating state can be switched between the "active state" and the "sleep state". That is, in the repeater 13, the operating state can be set to the "active state" when the communication is relayed frequently, or the "sleep state" can be set when the communication is not relayed. can. For example, the active state consumes more power than the sleep state, but the relay of normal communication is executed without delay. The sleep state consumes less power than the active state and waits for the start of communication. It is in a waiting state for.

したがって例えば中継機13では、動作モードが省電力モードであり、かつ、動作状態がスリープ状態という状況になり得る。他の動作モード、他の動作状態についても同様である。 Therefore, for example, in the repeater 13, the operation mode may be the power saving mode and the operation state may be the sleep state. The same applies to other operating modes and other operating states.

ここで中継機13の構成の一例について説明する。図2に示すように、中継機13は、送受信部21と、演算部22と、電池が格納されている電源部23と、を備える。 Here, an example of the configuration of the repeater 13 will be described. As shown in FIG. 2, the repeater 13 includes a transmission / reception unit 21, a calculation unit 22, and a power supply unit 23 in which a battery is stored.

送受信部21は、親機11や子機12とのパケット通信によるパケットの送受信を行う。なお以下では、送受信部21と親機11とのパケット通信は無線パケット通信であり、同様に、送受信部21と子機12とのパケット通信は無線パケット通信であるものとして説明する。 The transmission / reception unit 21 transmits / receives packets by packet communication with the master unit 11 and the slave unit 12. In the following, packet communication between the transmission / reception unit 21 and the master unit 11 will be described as wireless packet communication, and similarly, packet communication between the transmission / reception unit 21 and the slave unit 12 will be described as wireless packet communication.

送受信部21では、親機11からの受信パケットを演算部22へ入力や、演算部22からの送信パケットを親機11に対して出力する。また、送受信部21は、後述する演算部22のパケット通信制御部32の指示に従ってパケットの送受信を行う。 The transmission / reception unit 21 inputs the received packet from the master unit 11 to the calculation unit 22, and outputs the transmission packet from the calculation unit 22 to the master unit 11. Further, the transmission / reception unit 21 transmits / receives packets according to the instructions of the packet communication control unit 32 of the calculation unit 22 described later.

演算部22は、動作モード設定部31と、パケット通信制御部32と、失敗回数比較判定部33と、状態検出判定部34と、記憶部35と、を備える。なお演算部22は、CPU(Central Processing Unit)や主記憶装置、補助記憶装置などの組み合わせにより実現することができる。 The calculation unit 22 includes an operation mode setting unit 31, a packet communication control unit 32, a failure count comparison determination unit 33, a state detection determination unit 34, and a storage unit 35. The arithmetic unit 22 can be realized by a combination of a CPU (Central Processing Unit), a main storage device, an auxiliary storage device, and the like.

以下では図3に示すように、演算部22には、さらに電源電圧監視部36を有しているものとして説明する。 Hereinafter, as shown in FIG. 3, the calculation unit 22 will be described as having a power supply voltage monitoring unit 36.

動作モード設定部31は、複数の動作モードのうち、いずれの動作モードで中継機13を動作させるかの設定を行う。ここで複数の動作モードは、「通常モード」「通信優先モード」「省電力モード」の3種類である。なお、それぞれの動作モードには、通信の確立を試みるリトライ回数の情報を、パラメータとして有している。なお以下では、通信の確立を試みることを「リトライ」とし、通信の確立を試みるリトライ回数のことを単に「リトライ回数」と記載することがある。 The operation mode setting unit 31 sets which of the plurality of operation modes the repeater 13 is to be operated. Here, the plurality of operation modes are three types, "normal mode", "communication priority mode", and "power saving mode". It should be noted that each operation mode has information on the number of retries attempting to establish communication as a parameter. In the following, attempting to establish communication may be referred to as "retry", and the number of retries attempting to establish communication may be simply referred to as "number of retries".

また、動作モード設定部31は、失敗回数比較判定部33と、状態検出判定部34と、の少なくとも一方による判定に応じて、動作モードを設定することができる。 Further, the operation mode setting unit 31 can set the operation mode according to the determination by at least one of the failure count comparison determination unit 33 and the state detection determination unit 34.

なお以下では、動作モード設定部31は、パケット通信制御部32と、失敗回数比較判定部33と、状態検出判定部34と、電源電圧監視部36からの情報に応じて、動作モードを設定することについて記載する。 In the following, the operation mode setting unit 31 sets the operation mode according to the information from the packet communication control unit 32, the failure count comparison determination unit 33, the state detection determination unit 34, and the power supply voltage monitoring unit 36. Describe that.

ここで通常モードでは、リトライ回数のパラメータはデフォルト値を設定するものとする。このデフォルト値であるリトライ回数は10回とする。同様に、通信優先モードでは、通信自体は可能である場合に設定されるモードである。この通信優先モードでは、リトライ回数は5回とする。同様に、省電力モードでは、中継機13の省電力化を優先する。省電力モードでは、リトライ回数を2回とする。 Here, in the normal mode, the default value is set for the parameter of the number of retries. The number of retries, which is the default value, is 10. Similarly, in the communication priority mode, the communication itself is a mode set when it is possible. In this communication priority mode, the number of retries is five. Similarly, in the power saving mode, priority is given to power saving of the repeater 13. In the power saving mode, the number of retries is set to 2.

動作モード設定部31が、失敗回数比較判定部33による判定(第1の判定)や、状態検出判定部34による判定(第2の判定)等を利用して、いずれの動作モードを設定するかを決定する方法については、後に詳述する。 Which operation mode is set by the operation mode setting unit 31 by using the determination by the failure count comparison determination unit 33 (first determination), the determination by the state detection determination unit 34 (second determination), or the like. The method for determining the above will be described in detail later.

なお、これらのリトライ回数は一例であり、状況に応じて最適な回数を設定することができる。例えば、あまり省電力にならなくても通信できることを重視した場合、通信優先モードのリトライ回数を8回とすることができる。また、省電力モードでは、少しでも消費電力を減らすためにリトライ回数を1回とすることができる。 The number of these retries is an example, and the optimum number of retries can be set according to the situation. For example, if it is important to be able to communicate without saving much power, the number of retries in the communication priority mode can be set to eight. Further, in the power saving mode, the number of retries can be set to one in order to reduce the power consumption as much as possible.

さらに省電力モードでは、子機12の故障が判明しているか否か、または、電源部23として用いられている電池の残量に応じて、リトライ回数を変更することができる。具体的には、省電力モードにおけるリトライ回数は、0~2回のいずれかとすることができる。 Further, in the power saving mode, the number of retries can be changed according to whether or not a failure of the slave unit 12 is known or the remaining amount of the battery used as the power supply unit 23. Specifically, the number of retries in the power saving mode can be any of 0 to 2.

特に、電源電圧監視部36による監視により、電源部23の電池残量に余裕があると判定された場合には、リトライ回数は多くなるように設定することができる。一方、電源部23の電池残量が少なければ、電力を節約するために、リトライ回数は少なくなるように設定することができる。 In particular, when it is determined by the monitoring by the power supply voltage monitoring unit 36 that the battery level of the power supply unit 23 has a margin, the number of retries can be set to be large. On the other hand, if the battery level of the power supply unit 23 is low, the number of retries can be set to be small in order to save power.

なお、動作モード設定部31では、いずれの動作モードが設定されているかの状態の情報を、パケット通信制御部32に出力することができる。 The operation mode setting unit 31 can output information on which operation mode is set to the packet communication control unit 32.

パケット通信制御部32は、送受信部21との間でやり取りするパケットのヘッダの付け外しや、送受信部21への送受信の指示や通信のリトライ指示を行う。言い換えると、パケット通信制御部32では、親機11及び子機12とのパケット通信を制御することができる。 The packet communication control unit 32 attaches / detaches a header of a packet exchanged with the transmission / reception unit 21, gives an instruction to send / receive to / from the transmission / reception unit 21, and gives an instruction to retry communication. In other words, the packet communication control unit 32 can control packet communication with the master unit 11 and the slave unit 12.

またパケット通信制御部32では、演算部22内の各機能部との間でパケット通信制御に必要な情報の送受の制御を行うことができる。例えば、失敗回数比較判定部33や状態検出判定部34、電源電圧監視部36が、後述するように記憶部35に記憶されている情報を利用して判定を行う場合に、各部による記憶部35からの情報の取得の制御を行うことや、記憶部35への情報の書き込みの制御を行うことができる。 Further, the packet communication control unit 32 can control the transmission / reception of information necessary for packet communication control with each functional unit in the calculation unit 22. For example, when the failure count comparison determination unit 33, the state detection determination unit 34, and the power supply voltage monitoring unit 36 make a determination using the information stored in the storage unit 35 as described later, the storage unit 35 by each unit is used. It is possible to control the acquisition of information from the storage unit 35 and control the writing of information to the storage unit 35.

さらに、パケット通信制御部32では、子機12からのパケットの受信状態に応じて、子機12との通信の確立の成否を検知することができる。 Further, the packet communication control unit 32 can detect the success or failure of establishment of communication with the slave unit 12 according to the reception state of the packet from the slave unit 12.

また例えば、パケット通信制御部32では、動作モードに応じたリトライ回数だけ子機12との通信の確立を試みるように、親機11に対して通知を行うための制御を実行できる。特に、パケット通信制御部32では、子機12との通信の確立に失敗した場合(以下、通信NGと記載することがある)に、所定の時間内に応答が無かった旨のTimeOut通知と、設定されている動作モードに応じたリトライ回数の情報を親機11送信するように、送受信部21の動作を制御する。 Further, for example, the packet communication control unit 32 can execute control for notifying the master unit 11 so as to try to establish communication with the slave unit 12 as many times as the number of retries according to the operation mode. In particular, when the packet communication control unit 32 fails to establish communication with the slave unit 12 (hereinafter, may be referred to as communication NG), a Time Out notification indicating that there is no response within a predetermined time and a Time Out notification. The operation of the transmission / reception unit 21 is controlled so that the information on the number of retries according to the set operation mode is transmitted to the master unit 11.

失敗回数比較判定部33は、パケット通信制御部32で、子機12との通信の確立を試みて失敗した回数を取得する。特に、失敗回数比較判定部33は、パケット通信制御部32において子機12との通信の確立を試みて失敗した際に、それまでに連続して通信の確立の試みた結果、連続して失敗となったリトライ回数を取得し、そのリトライ回数が規定の回数(第1の閾値)を超えているか否かを判定する。言い換えると、失敗回数比較判定部33は、子機12との通信の確立を直近で連続して試みて接続NGであった回数が、規定の回数を超えているか否かを判定する。この失敗回数比較判定部33による第1の閾値との比較判定を、第1の判定とする。 The failure count comparison determination unit 33 is the packet communication control unit 32, and acquires the number of failures in an attempt to establish communication with the slave unit 12. In particular, when the packet communication control unit 32 attempts to establish communication with the slave unit 12 and fails, the failure count comparison determination unit 33 continuously fails as a result of continuously attempting to establish communication. The number of retries is acquired, and it is determined whether or not the number of retries exceeds a predetermined number of times (first threshold value). In other words, the failure count comparison determination unit 33 determines whether or not the number of times the connection is NG in the most recent continuous attempt to establish communication with the slave unit 12 exceeds the specified number of times. The comparison determination with the first threshold value by the failure number comparison determination unit 33 is referred to as the first determination.

失敗回数比較判定部33の判定において、第1の閾値として用いる規定のリトライの回数の情報は、記憶部35に記憶されているものとする。例えば、失敗回数比較判定部33は、記憶部35からリトライの規定の回数の情報を取得して、実際のリトライ回数と比較することにより、第1の判定を行う。また、失敗回数比較判定部33は、第1の判定の結果を動作モード設定部31に出力する。 It is assumed that the information on the specified number of retries used as the first threshold value in the determination of the failure count comparison determination unit 33 is stored in the storage unit 35. For example, the failure count comparison determination unit 33 obtains information on the specified number of retries from the storage unit 35 and compares it with the actual retry count to make the first determination. Further, the failure count comparison determination unit 33 outputs the result of the first determination to the operation mode setting unit 31.

なお、失敗回数比較判定部33の第1判定にかかる、子機12との通信の確立を試みるために送受信を行うパケットを、実通信のパケットとする。 In addition, the packet to be transmitted / received in order to try to establish the communication with the slave unit 12 related to the first determination of the failure count comparison determination unit 33 is referred to as an actual communication packet.

状態検出判定部34は、子機12とのパケットの送受信状態を取得して状態の判定を行う。より具体的には、状態検出判定部34では、送受信部21を介して子機12との間で送受信したヘルスチェックパケットについて、子機12からのヘルスチェックパケットの受信の成否の情報を取得する。 The state detection determination unit 34 acquires the transmission / reception status of the packet with the slave unit 12 and determines the status. More specifically, the state detection determination unit 34 acquires information on the success or failure of receiving the health check packet from the slave unit 12 for the health check packet transmitted / received to / from the slave unit 12 via the transmission / reception unit 21. ..

さらに状態検出判定部34では、任意に設定したある一定の期間において、子機12からのヘルスチェックパケットの受信の成否の確率を算出する。そして状態検出判定部34では、この確率が、規定の確率(第2の閾値)を超えているか否かを判定する。この状態検出判定部34による第2の閾値との比較判定を、第2の判定とする。 Further, the state detection determination unit 34 calculates the probability of success or failure of receiving the health check packet from the slave unit 12 in a certain period set arbitrarily. Then, the state detection determination unit 34 determines whether or not this probability exceeds a predetermined probability (second threshold value). The comparison determination with the second threshold value by the state detection determination unit 34 is referred to as the second determination.

ここで状態検出判定部34の判定において、第2の閾値として用いる規定の確率の情報は、記憶部35に記憶されているものとする。例えば、状態検出判定部34は、算出された確率と、記憶部35に記憶された第2の閾値とする確率を比較することにより、第2の判定を行うことができる。状態検出判定部34は、第2の判定の結果を、動作モード設定部31に出力する。 Here, it is assumed that the information of the predetermined probability used as the second threshold value in the determination of the state detection determination unit 34 is stored in the storage unit 35. For example, the state detection determination unit 34 can make a second determination by comparing the calculated probability with the probability of using the second threshold value stored in the storage unit 35. The state detection determination unit 34 outputs the result of the second determination to the operation mode setting unit 31.

なお、状態検出判定部34では、ヘルスチェックパケットを用いて中継機13と子機12との通信の確立を試みた際の成否の情報を記憶部35に記憶させることができる。さらに、状態検出判定部34では、一定期間における通信の確立の成否の確率を算出した結果を、記憶部35に記憶させることができる。さらに、状態検出判定部34では、ヘルスチェックパケットに子機12の故障を示すエラーコードが含まれていた場合に、その旨を記憶部35に記憶させることができる。 The state detection determination unit 34 can store the success / failure information when an attempt is made to establish communication between the repeater 13 and the slave unit 12 in the storage unit 35 using the health check packet. Further, the state detection determination unit 34 can store the result of calculating the probability of success / failure of establishment of communication in a certain period in the storage unit 35. Further, the state detection determination unit 34 can store the error code indicating the failure of the slave unit 12 in the storage unit 35 when the health check packet contains the error code.

ここでヘルスチェックパケットとは、中継機13が接続の確立を試みている子機12が故障している場合に、子機12が故障していることを示す情報を含めることができるパケットである。 Here, the health check packet is a packet that can include information indicating that the slave unit 12 has failed when the slave unit 12 for which the repeater 13 is trying to establish a connection has failed. ..

ここで、状態検出判定部34が第2の判定を行うために用いたヘルスチェックパケットは、失敗回数比較判定部33が第1の判定を行うために用いた実信号のパケットとは、異なるパケットであるものとする。 Here, the health check packet used by the state detection determination unit 34 to make the second determination is different from the actual signal packet used by the failure count comparison determination unit 33 to make the first determination. It shall be.

記憶部35は、失敗回数比較判定部33の第1の判定で用いる第1の閾値の情報や、状態検出判定部34の第2の判定で用いる第2の閾値の情報や、ヘルスチェックパケットを用いて中継機13と子機12との通信の確立を試みた際の成否の情報や、ヘルスチェックパケットにエラーコードが含まれていた場合にはその旨の情報などを記憶する。 The storage unit 35 stores information on the first threshold value used in the first determination of the failure count comparison determination unit 33, information on the second threshold value used in the second determination of the state detection determination unit 34, and a health check packet. It stores information on success or failure when an attempt is made to establish communication between the repeater 13 and the slave unit 12, and information to that effect if an error code is included in the health check packet.

記憶部35で記憶される情報はこれらに限られず、記憶部35では中継機13に用いられる各種のパラメータを記憶及び更新を行うことができる。また記憶部35では、中継機13の各部から、必要に応じてこれらのパラメータが参照される。 The information stored in the storage unit 35 is not limited to these, and the storage unit 35 can store and update various parameters used in the repeater 13. Further, in the storage unit 35, these parameters are referred to as necessary from each unit of the repeater 13.

電源電圧監視部36は、電源部23に用いられている電池の残量を電圧レベルによってモニタする。また電源電圧監視部36は、モニタされた電圧レベルの情報を、動作モード設定部31に通知する。 The power supply voltage monitoring unit 36 monitors the remaining amount of the battery used in the power supply unit 23 according to the voltage level. Further, the power supply voltage monitoring unit 36 notifies the operation mode setting unit 31 of the monitored voltage level information.

次に図4~図6を参照して、動作モード設定部31の動作モードの変更の手順について説明する。 Next, the procedure for changing the operation mode of the operation mode setting unit 31 will be described with reference to FIGS. 4 to 6.

最初に、中継機13の動作モードが通常モードであるものとし、動作モード設定部31が、通常モードから他の動作モードに設定変更を行う条件(1)~(3)について、図4を参照して説明する。 First, it is assumed that the operation mode of the repeater 13 is the normal mode, and the operation mode setting unit 31 changes the setting from the normal mode to another operation mode. Refer to FIG. 4 for the conditions (1) to (3). I will explain.

(1)動作モード設定部31は、パケット通信制御部32で通信の確立の失敗を検知して、失敗回数比較判定部33において第1の判定が行われ、その第1の判定の結果として直近の連続する通信の確立の失敗回数が第1の閾値より多く、かつ、パケット通信制御部32で通信の確立の失敗が検知される前の一定期間に、状態検出判定部34の第2の判定による子機12との通信確立が成功した確率が第2の閾値より高ければ、省電力モードに変更して設定する。 (1) The operation mode setting unit 31 detects a failure in establishing communication in the packet communication control unit 32, makes a first determination in the failure count comparison determination unit 33, and is the latest as a result of the first determination. The second determination of the state detection determination unit 34 during a certain period before the failure of establishment of continuous communication is more than the first threshold value and the failure of establishment of communication is detected by the packet communication control unit 32. If the probability of successful establishment of communication with the slave unit 12 is higher than the second threshold value, the power saving mode is changed and set.

これは、通信成否確率が良好な値、すなわち通信が成功する確率が高ければ、直前まで電波状況が良かったが急に通信を失敗するようになったのは、子機12の故障や、電波の干渉による影響と考えらえるためである。そして、この状態でリトライを続けても電力を余計に消費してしまうため、中継機13では、リトライ回数が少ない省電力モードとする。 This is because if the communication success / failure probability is a good value, that is, if the communication success probability is high, the radio wave condition was good until just before, but the communication failed suddenly due to the failure of the handset 12 or the radio wave. This is because it can be considered to be the effect of the interference of. Further, even if the retries are continued in this state, the power is consumed excessively. Therefore, the repeater 13 is set to the power saving mode in which the number of retries is small.

(2)動作モード設定部31は、パケット通信制御部32で通信の確立の失敗を検知して、失敗回数比較判定部33において第1の判定が行われ、その第1の判定の結果として直近の連続する通信の確立の失敗回数が第1の閾値より多く、かつ、パケット通信制御部32で通信の確立の失敗が検知される前の一定期間に、状態検出判定部34の第2の判定による、子機12との通信確立が成功した確率が第2の閾値より低ければ、通信優先モードに変更して設定する。 (2) The operation mode setting unit 31 detects a failure in establishing communication in the packet communication control unit 32, makes a first determination in the failure count comparison determination unit 33, and is the latest as a result of the first determination. The second determination of the state detection determination unit 34 during a certain period before the failure of establishment of continuous communication is more than the first threshold value and the failure of establishment of communication is detected by the packet communication control unit 32. If the probability of successful establishment of communication with the slave unit 12 is lower than the second threshold value, the mode is changed to the communication priority mode and set.

これは、第2の判定における通信成否の確率が不良、すなわち通信が成功する確率が低ければ、子機12の故障ではなく、もともと悪かった電波状況が外乱などでさらに悪化して通信を失敗していると考えることができる。したがって中継機13では、リトライにより通信が確立される可能性があるため、リトライ回数が中程度である通信優先モードとする。 This is because if the probability of success or failure of communication in the second determination is poor, that is, if the probability of successful communication is low, it is not a failure of the handset 12, but the originally bad radio wave condition worsens due to disturbance or the like, and communication fails. Can be thought of as. Therefore, in the repeater 13, communication may be established by retries, so the communication priority mode in which the number of retries is medium is set.

(3)動作モード設定部31は、第2の判定において、子機12から受信したヘルスチェックパケットに子機12の故障を示すエラーコードが含まれる場合には、省電力モードに変更して設定する。 (3) In the second determination, if the health check packet received from the slave unit 12 contains an error code indicating a failure of the slave unit 12, the operation mode setting unit 31 changes to the power saving mode and sets the operation mode setting unit 31. do.

これは、子機12の故障が明らかとなっている状態において、通信の確立を試みるリトライ回数を少なくすることが望ましいと考えられるためである。したがって中継機13は、リトライ回数が少ない省電力モードとして、電力の消費を抑える。 This is because it is considered desirable to reduce the number of retries attempting to establish communication in a state where the failure of the slave unit 12 is known. Therefore, the repeater 13 suppresses power consumption as a power saving mode in which the number of retries is small.

次に、中継機13の動作モードが通信優先モードであるものとし、動作モード設定部31が、通信優先モードから他の動作モードに設定変更を行う条件(4)~(6)について、図4を参照して説明する。 Next, it is assumed that the operation mode of the repeater 13 is the communication priority mode, and the conditions (4) to (6) in which the operation mode setting unit 31 changes the setting from the communication priority mode to another operation mode are shown in FIG. Will be described with reference to.

(4)動作モード設定部31は、パケット通信制御部32で通信の確立の成功を検知して、かつ、状態検出判定部34の第2の判定による、子機12との通信確立が成功した確率が第2の閾値より高ければ、通常モードに変更して設定する。 (4) The operation mode setting unit 31 detects the success of communication establishment in the packet communication control unit 32, and succeeds in establishing communication with the slave unit 12 by the second determination of the state detection determination unit 34. If the probability is higher than the second threshold value, change to the normal mode and set.

例えば、この状態検出判定部34における第2の判定は、パケット通信制御部32で通信の確立の成功を検知するより前であり、かつ、直近の通信確立の成否の確率を用いることができる。 For example, the second determination in the state detection determination unit 34 is before the packet communication control unit 32 detects the success of the communication establishment, and the probability of success or failure of the latest communication establishment can be used.

これは、子機12に発生していた問題の解消や、干渉の問題が改善されるなどの理由により、通信状態が良化したものと考えて、通常モードとするものである。 It is considered that the communication state has been improved due to the solution of the problem occurring in the handset 12 and the improvement of the problem of interference, and the normal mode is set.

(5)動作モード設定部31は、パケット通信制御部32で通信の確立の失敗を検知して、失敗回数比較判定部33において第1の判定が行われ、その第1の判定の結果として直近の連続する通信の確立の失敗回数が第1の閾値より多い場合、省電力モードに変更して設定する。 (5) The operation mode setting unit 31 detects a failure in establishing communication in the packet communication control unit 32, makes a first determination in the failure count comparison determination unit 33, and is the latest as a result of the first determination. If the number of failures in establishing continuous communication is greater than the first threshold value, the power saving mode is changed and set.

これは、子機12の故障や電波の干渉の影響により、通信の確立に失敗しているものと考えて、省電力モードとするものである。 It is considered that the establishment of communication has failed due to the failure of the slave unit 12 or the influence of radio wave interference, and the power saving mode is set.

(6)動作モード設定部31は、第2の判定において、子機12から受信したヘルスチェックパケットに子機12の故障を示すエラーコードが含まれる場合には、省電力モードに変更して設定する。これは、上記の(3)と理由と同様である。 (6) In the second determination, if the health check packet received from the slave unit 12 contains an error code indicating a failure of the slave unit 12, the operation mode setting unit 31 changes to the power saving mode and sets the operation mode setting unit 31. do. This is the same as the reason (3) above.

次に、中継機13の動作モードが省電力モードであるものとし、動作モード設定部31が、省電力モードから他の動作モードに設定変更を行う条件について説明する。 Next, it is assumed that the operation mode of the repeater 13 is the power saving mode, and the condition for the operation mode setting unit 31 to change the setting from the power saving mode to another operation mode will be described.

(7)省電力モードである場合に、動作モード設定部31は、パケット通信制御部32で通信の確立の成功を検知した場合に、通常モードに移行する。なお、この動作モードの変更の際には、状態検出判定部34の所定の時間内における通信成否確率(第2の判定結果)によらずに、通常モードへの移行を行うことができる。 (7) In the power saving mode, the operation mode setting unit 31 shifts to the normal mode when the packet communication control unit 32 detects success in establishing communication. When this operation mode is changed, it is possible to shift to the normal mode regardless of the communication success / failure probability (second determination result) within a predetermined time of the state detection determination unit 34.

これは例えば、子機12が障害により通信に失敗する状態から復旧したと考えた場合には、復旧以前の通信成否確率は、重要ではないと考えられるためである。 This is because, for example, when it is considered that the slave unit 12 has recovered from the state in which communication fails due to a failure, the communication success / failure probability before the recovery is considered to be insignificant.

次に、図5~図7を参照して、無線パケット通信システム1の各部の動作を、タイムラインに沿って説明する。ここでは上記(1)、(2)、(3)、(5)及び(6)に記載した、通常モードから省電力モードに移行、及び、通常モード又は通信優先モードから省電力モードに移行する場合の各部の動作について説明する。 Next, with reference to FIGS. 5 to 7, the operation of each part of the wireless packet communication system 1 will be described along the timeline. Here, the transition from the normal mode to the power saving mode and the transition from the normal mode or the communication priority mode to the power saving mode described in (1), (2), (3), (5) and (6) above are performed. The operation of each part of the case will be described.

なお図5は、関連する無線パケット通信システムの動作のタイムラインを示した図であって、子機の状態に応じたリトライ制御を行わない例を示している。 Note that FIG. 5 is a diagram showing a timeline of the operation of the related wireless packet communication system, and shows an example in which retry control is not performed according to the state of the slave unit.

具体的には図5では、親機から子機に対し、中継機を介してコマンドを送信したときに子機からの応答が無かった状態を表している。さらにこのとき、親機、中継機はともに、子機の状態がわからない状態であるものとする。 Specifically, FIG. 5 shows a state in which there is no response from the slave unit when a command is transmitted from the master unit to the slave unit via the repeater. Further, at this time, it is assumed that the state of the slave unit is unknown for both the master unit and the repeater.

この親機では、仕様に従い通信のリトライを行う。このとき中継機では、その間はsleep制御ができず、ずっと起動し続けてしまうため電力が消費されてしまう。 This master unit retries communication according to the specifications. At this time, the repeater cannot control sleep during that period and keeps starting up all the time, which consumes power.

次に図6では、無線パケット通信システム1において、実通信のパケットを用いた通信を試みる前に、ヘルスチェック信号を利用した中継機13と子機12の事前の通信状態の確認を行い、その後に実通信のパケットを用いた通信を行い、省電力モードに移行する場合の動作の流れを、タイムラインで示している。 Next, in FIG. 6, in the wireless packet communication system 1, before attempting communication using a packet of actual communication, the communication status of the repeater 13 and the slave unit 12 using the health check signal is confirmed in advance, and then. The timeline shows the flow of operations when communicating using actual communication packets and shifting to the power saving mode.

言い換えると、図6では、中継機13では子機12との通信状態をヘルスチェック信号の送受信を利用した第2の判定を行うとともに、失敗回数比較判定部33が子機12に対して実通信のパケットを用いた第1の判定することにより、動作モード設定部31が動作モードを設定する例を示している。さらに図6では、中継機13がこれらの判定結果に基づき、スリープ状態となって電力消費を低減することができることを示している。 In other words, in FIG. 6, in FIG. 6, the repeater 13 makes a second determination of the communication status with the slave unit 12 by using the transmission / reception of the health check signal, and the failure count comparison determination unit 33 actually communicates with the slave unit 12. An example is shown in which the operation mode setting unit 31 sets the operation mode by the first determination using the packet of. Further, FIG. 6 shows that the repeater 13 can enter a sleep state and reduce power consumption based on these determination results.

具体的には、中継機13では、送受信部21を利用して子機12とのヘルスチェック信号にかかるパケットを送信する(S1)とともに、その応答の受信を試みる。これにより中継機13では、子機12との通信の確立の成否を確認する。ここでは中継機13には、ヘルスチェック信号の応答がなかったものとする(S2)。なお中継機13では、子機12からのヘルスチェック信号の応答がなかったことを、記憶部35に記憶する。 Specifically, the repeater 13 uses the transmission / reception unit 21 to transmit a packet related to the health check signal with the slave unit 12 (S1), and attempts to receive the response. As a result, the repeater 13 confirms the success or failure of the establishment of communication with the slave unit 12. Here, it is assumed that the repeater 13 has not responded to the health check signal (S2). The repeater 13 stores in the storage unit 35 that there is no response from the health check signal from the slave unit 12.

ここで中継機13の状態検出判定部34では、所定の期間における複数回のヘルスチェック信号の応答から、接続の確立が成功したか否かにかかる確率の算出を行うことができる。さらに状態検出判定部34では、第2の判定として、算出された確率が、記憶部35に記憶された第2の閾値より高いか否かを判定することができる。中継機13では、算出された確率や、第2の判定結果を記憶部35に記憶することができる(S3)。 Here, the state detection determination unit 34 of the repeater 13 can calculate the probability of whether or not the connection has been successfully established from the responses of the health check signals a plurality of times in a predetermined period. Further, the state detection determination unit 34 can determine, as the second determination, whether or not the calculated probability is higher than the second threshold value stored in the storage unit 35. In the repeater 13, the calculated probability and the second determination result can be stored in the storage unit 35 (S3).

その後、親機11は、子機12に向けて、中継機13を介してコマンドを送信する(S4-1)。すなわち、中継機13では、親機11から送信されたコマンドを含むパケット(実通信のパケット)を中継して子機12に送信し(S4-2)、これに対する子機12の応答の有無を確認する(S5)。 After that, the master unit 11 transmits a command to the slave unit 12 via the repeater 13 (S4-1). That is, the repeater 13 relays the packet (actual communication packet) including the command transmitted from the master unit 11 and transmits it to the slave unit 12 (S4-2), and determines whether or not the slave unit 12 responds to this. Confirm (S5).

ここで、一定時間経過しても子機12からの応答が無いTimeOut状態であり、中継機13と子機12との間の通信の接続の確立に失敗していることを、中継機13で認識したものとして説明する。言い換えると、パケット通信制御部32が、子機12に対する通信NGを検知した状態である。なお中継機13では、子機12に対する通信NGを検知したことを、記憶部35に記憶する。 Here, the repeater 13 indicates that there is no response from the slave unit 12 even after a certain period of time has elapsed, and that the establishment of the communication connection between the repeater 13 and the slave unit 12 has failed. Explain as recognized. In other words, the packet communication control unit 32 has detected a communication NG with respect to the slave unit 12. The repeater 13 stores in the storage unit 35 that the communication NG with respect to the slave unit 12 is detected.

ここで中継機13では、少なくとも親機11から実通信のパケットを受信したとき以後は、動作をアクティブ状態とする。 Here, the repeater 13 activates the operation at least after receiving the actual communication packet from the master unit 11.

またこのとき中継機13では、親機11に対して、子機12との通信がTimeOut状態である旨の通知(TimeOut通知)と、中継機13において、動作モード設定部31で設定された動作モードに応じたリトライ回数に関する通知を送信する(S6)。例えば、中継機13では、状態検出判定部34による第2の判定と、第1の閾値である規定の失敗回数を1回として第1の判定を行う失敗回数比較判定部33と、によって動作モードを設定する。 At this time, the repeater 13 notifies the master unit 11 that the communication with the slave unit 12 is in the TimeOut state (TimeOut notification), and the repeater 13 performs the operation set by the operation mode setting unit 31. A notification regarding the number of retries according to the mode is transmitted (S6). For example, in the repeater 13, the operation mode is determined by the second determination by the state detection determination unit 34 and the failure number comparison determination unit 33 that makes the first determination with the specified number of failures, which is the first threshold value, as one. To set.

ここでは、中継機13で設定されている動作モードは省電力モードであり、省電力モードとしてリトライ回数は1回に設定されていることとする。このとき中継機13から親機11には、TimeOut通知とともに、リトライ回数が1回である旨の情報が送信される。 Here, it is assumed that the operation mode set in the repeater 13 is the power saving mode, and the number of retries is set to one as the power saving mode. At this time, information indicating that the number of retries is one is transmitted from the repeater 13 to the master unit 11 together with the TimeOut notification.

その後、親機11では、中継機13から受信したリトライ回数に応じて、コマンドの再送信を行う(S7-1)。 After that, the master unit 11 retransmits the command according to the number of retries received from the repeater 13 (S7-1).

親機11は、中継機13からリトライ回数が1回である旨の通知の受信により、この通知後の受信後に1回、中継機13を介した子機12へのコマンドの再送信を行う。 Upon receiving the notification from the repeater 13 that the number of retries is one, the master unit 11 retransmits the command to the slave unit 12 via the repeater 13 once after the notification is received.

これにより、中継機13では、親機11から実通信によるコマンド送信を、子機12に向けて送信するように中継する(S7-2)。そして中継機13では、子機12からの応答がないことを検知する(S8)。 As a result, the repeater 13 relays the command transmission by the actual communication from the master unit 11 so as to be transmitted to the slave unit 12 (S7-2). Then, the repeater 13 detects that there is no response from the slave unit 12 (S8).

中継機13では、S6と同様に親機11に対して、子機12との通信がTimeOut状態である旨の通知(TimeOut通知)を送信する(S9)。 Similar to S6, the repeater 13 transmits a notification (TimeOut notification) to the master unit 11 that the communication with the slave unit 12 is in the TimeOut state (S9).

さらにこのとき、中継機13では、親機11に通知したリトライ回数だけ子機12へのリトライが終了したため、その後の再送制御が必要ないものとして、スリープ状態に移行する(S10)。 Further, at this time, since the retry to the slave unit 12 is completed by the number of retries notified to the master unit 11, the repeater 13 shifts to the sleep state assuming that the subsequent retransmission control is not required (S10).

言い換えると、中継機13では、パケット通信制御部32の制御により、中継機13自身がスリープ状態となるように移行するとともに、親機11に対してリトライを制御する制御信号を、送受信部21を介して送信することができる。これにより中継機13は、スリープ状態となって電力を節約できるとともに、スリープ状態の中継機13に対して親機11からコマンドが送られないように、親機11の動作を制御できる。 In other words, in the repeater 13, under the control of the packet communication control unit 32, the repeater 13 itself shifts to the sleep state, and the transmission / reception unit 21 sends a control signal for controlling the retry to the master unit 11. Can be sent via. As a result, the repeater 13 can be put into a sleep state to save power, and the operation of the master unit 11 can be controlled so that a command is not sent from the master unit 11 to the repeater 13 in the sleep state.

ここで図6では、実通信のパケットを用いた通信のリトライ回数が1回であるものとしているが、2回以上の複数回であってもよい。この場合には、中継機13では、失敗回数比較判定部33において、第1の判定として、記憶部35に予め設定した第1の閾値の回数以上の通信の失敗が連続したか否かの情報を利用して、動作モードを変更することができる。 Here, in FIG. 6, it is assumed that the number of retries of communication using the actual communication packet is one, but it may be two or more times. In this case, in the repeater 13, in the failure count comparison determination unit 33, as the first determination, information on whether or not the communication failure of the number of times of the first threshold value or more preset in the storage unit 35 is continuous or not. The operation mode can be changed by using.

なお図4に示したように、所定の時間の経過後に中継機13と子機12との通信状態の回復が認められる場合には、中継機13は動作モードを通常モードに移行させることができる。この場合、典型的には、中継機13ではスリープ状態からアクティブ状態に変更して、再送制御の実行に適した状態となる。 As shown in FIG. 4, when the recovery of the communication state between the repeater 13 and the slave unit 12 is recognized after the lapse of a predetermined time, the repeater 13 can shift the operation mode to the normal mode. .. In this case, typically, the repeater 13 changes from the sleep state to the active state to be in a state suitable for executing retransmission control.

次に図7では、無線パケット通信システム1において、実通信のパケットによる通信を試みる前に、中継機13では子機12との通信状態をヘルスチェック信号の送受信を利用して判定した際に、子機12が故障している旨の情報を受けて、リトライ回数を0回に設定する例を示している。 Next, in FIG. 7, in the wireless packet communication system 1, before attempting communication by a packet of actual communication, the repeater 13 determines the communication state with the slave unit 12 by using the transmission / reception of the health check signal. An example is shown in which the number of retries is set to 0 in response to the information that the slave unit 12 is out of order.

具体的には、中継機13では、送受信部21を利用して子機12とのヘルスチェック信号にかかるパケットを送信する(S21)とともに、その応答の受信を試みる。これにより中継機13では、子機12との通信の確立の成否を確認する。ここでは中継機13には、ヘルスチェック信号の応答として、子機12が故障した旨の内容が含まれていたものとする(S22)。なお中継機13では、子機12が故障している旨の情報を、記憶部35に記憶させることができる。 Specifically, the repeater 13 uses the transmission / reception unit 21 to transmit a packet related to the health check signal with the slave unit 12 (S21), and attempts to receive the response. As a result, the repeater 13 confirms the success or failure of the establishment of communication with the slave unit 12. Here, it is assumed that the repeater 13 includes the content that the slave unit 12 has failed as a response to the health check signal (S22). In the repeater 13, information to the effect that the slave unit 12 is out of order can be stored in the storage unit 35.

その後、親機11は、子機12に向けて、中継機13を介してコマンドを送信する(S23)。 After that, the master unit 11 transmits a command to the slave unit 12 via the repeater 13 (S23).

ここで中継機13では、子機12が故障している旨を記憶しているため、親機11からのコマンドを受信した中継機13は、親機11に対して、子機12が故障している旨の通知を返すとともに、リトライ回数を0回とする旨を通知する(S24)。 Here, since the repeater 13 remembers that the slave unit 12 has failed, the repeater 13 that has received the command from the master unit 11 has failed the slave unit 12 with respect to the master unit 11. It returns a notification to that effect and notifies that the number of retries is 0 (S24).

さらに中継機13では、再送制御が必要ないものとして、スリープ状態に移行する(S25)。これにより中継機13は、電力を節約することができる。 Further, the repeater 13 shifts to the sleep state because the retransmission control is not required (S25). As a result, the repeater 13 can save electric power.

なおこの場合も、所定の時間の経過後に中継機13と子機12との通信状態の回復が認められる場合には、中継機13は動作モードを通常モードに移行させることができる。 Also in this case, if the recovery of the communication state between the repeater 13 and the slave unit 12 is recognized after the lapse of a predetermined time, the repeater 13 can shift the operation mode to the normal mode.

なお、図4に示したように、所定の時間の経過後に中継機13と子機12との通信状態の回復が認められる場合には、中継機13は動作モードを通常モードに移行させることができる。 As shown in FIG. 4, when the recovery of the communication state between the repeater 13 and the slave unit 12 is recognized after the lapse of a predetermined time, the repeater 13 may shift the operation mode to the normal mode. can.

このように、中継機13では、実通信のパケットを用いた通信を試みる前に、ヘルスチェック信号を利用した子機12との通信状態が良好であるか否かのチェック、及び、子機12に故障が発生しているか否かを検知しておくことができる。そして、子機12に故障が発生している場合には、親機11からの実信号による子機12への通信の中継をせず、動作モードを省電力モードとして、親機11にリトライを行わないように通知するとともに、スリープ状態に移行する。これにより中継機13では電力消費を抑えることができる。 In this way, the repeater 13 checks whether or not the communication state with the slave unit 12 using the health check signal is good before attempting communication using the actual communication packet, and the slave unit 12 It is possible to detect whether or not a failure has occurred. Then, when a failure has occurred in the slave unit 12, the communication from the master unit 11 to the slave unit 12 is not relayed by the actual signal, the operation mode is set to the power saving mode, and the master unit 11 is retried. Notify you not to do it and put it to sleep. As a result, the repeater 13 can reduce power consumption.

また中継機13では、ヘルスチェック信号に子機12の故障を示す信号がない場合には、ヘルスチェック信号を利用した通信の成功確率による第2の判定を行うことができる。その後、中継機13では、子機12に対して実通信のパケットを用いた通信の接続を試み、接続に失敗した際に連続する失敗回数が、あらかじめ定めた第1の閾値以上であるか否かの第1の判定を行うことができる。さらに中継機13では、第1の判定と第2の判定との判定結果を用いて、動作モードを通常モード、通信優先モード、省電力モードのいずれかに設定することができる。 Further, in the repeater 13, when the health check signal does not include a signal indicating the failure of the slave unit 12, the second determination can be made based on the success probability of communication using the health check signal. After that, the repeater 13 tries to connect the communication using the actual communication packet to the slave unit 12, and when the connection fails, whether or not the number of consecutive failures is equal to or more than the predetermined first threshold value. The first determination can be made. Further, in the repeater 13, the operation mode can be set to any one of the normal mode, the communication priority mode, and the power saving mode by using the determination results of the first determination and the second determination.

このようにして設定された動作モードに応じたリトライ回数となるように、中継機13では、親機11からの通信のリトライ回数を設定できる。さらに中継機13では、この設定されたリトライ回数に応じて、中継が必要ないときに適切にスリープ状態とすることができる。 In the repeater 13, the number of retries for communication from the master unit 11 can be set so that the number of retries is set according to the operation mode set in this way. Further, the repeater 13 can appropriately put the sleep state into the sleep state when the relay is not required according to the set number of retries.

実施の形態2
次に、実施の形態1に示したヘルスチェック信号を利用する状態検出判定部34に代えて、電界強度検出部44を利用する無線パケット通信システム2について説明する。
Embodiment 2
Next, a wireless packet communication system 2 that uses the electric field strength detection unit 44 instead of the state detection determination unit 34 that uses the health check signal shown in the first embodiment will be described.

すなわち、無線パケット通信システム2は、親機11と、子機12と、親機11と子機12の間を中継する中継装置(以下、中継機)14と、を備える。以下では、実施の形態1に示した無線パケット通信システム1に用いられた構成物品と同様の機能を奏する箇所については、同様の符号を付し、説明を省略する。 That is, the wireless packet communication system 2 includes a master unit 11, a slave unit 12, and a relay device (hereinafter referred to as a repeater) 14 that relays between the master unit 11 and the slave unit 12. In the following, the parts that perform the same functions as the components used in the wireless packet communication system 1 shown in the first embodiment are designated by the same reference numerals, and the description thereof will be omitted.

中継機14は、送受信部21と、演算部24と、電池が格納されている電源部23と、を備える。 The repeater 14 includes a transmission / reception unit 21, a calculation unit 24, and a power supply unit 23 in which a battery is stored.

演算部24は、動作モード設定部31と、パケット通信制御部32と、失敗回数比較判定部33と、電界強度検出部44と、記憶部35と、電源電圧監視部36と、を備える。なお演算部24は、CPU(Central Processing Unit)や主記憶装置、補助記憶装置などの組み合わせにより実現することができる。 The calculation unit 24 includes an operation mode setting unit 31, a packet communication control unit 32, a failure count comparison determination unit 33, an electric field strength detection unit 44, a storage unit 35, and a power supply voltage monitoring unit 36. The arithmetic unit 24 can be realized by a combination of a CPU (Central Processing Unit), a main storage device, an auxiliary storage device, and the like.

電界強度検出部44は、パケット通信制御部32によって受信されたパケットのうち、パケットのヘッダ情報におけるRSSI(Received Signal Strength Indicator)フィールドに格納された電界強度情報を抽出する。また、電界強度検出部44では、通信が成功している場合における電界強度情報を、記憶部35に記憶することができる。 The electric field strength detecting unit 44 extracts the electric field strength information stored in the RSSI (Received Signal Strength Indicator) field in the header information of the packet from the packets received by the packet communication control unit 32. Further, the electric field strength detecting unit 44 can store the electric field strength information in the case where the communication is successful in the storage unit 35.

さらに電界強度検出部44では、受信成功時から遡って、任意に定めた所定の期間のRSSIの平均値についても算出し、算出した値を記憶部35に記憶することができる。 Further, the electric field strength detecting unit 44 can also calculate the average value of RSSI in an arbitrarily determined period retroactively from the time of successful reception, and store the calculated value in the storage unit 35.

無線パケット通信システム2では、電界強度検出部44により検出された所定の期間におけるRSSIの平均値と、予め記憶部に記憶させた閾値(第3の閾値)とを比較した判定結果を、実施の形態1に示したヘルスチェック信号を利用した第2の判定に代えて利用することができる。 In the wireless packet communication system 2, the determination result of comparing the average value of RSSI detected by the electric field strength detecting unit 44 in a predetermined period with the threshold value (third threshold value) stored in the storage unit in advance is carried out. It can be used in place of the second determination using the health check signal shown in the first embodiment.

ここで、ヘルスチェック信号を利用する方法に代えて、電界強度情報を用いて動作モードを変更する手順について説明する。 Here, a procedure for changing the operation mode by using the electric field strength information instead of the method using the health check signal will be described.

最初に、中継機14の動作モードが通常モードであるものとし、動作モード設定部31が、通常モードから他の動作モードに設定変更を行う条件(8)~(10)について、図8を参照して説明する。 First, it is assumed that the operation mode of the repeater 14 is the normal mode, and the conditions (8) to (10) in which the operation mode setting unit 31 changes the setting from the normal mode to another operation mode are referred to FIG. I will explain.

(8)動作モード設定部31は、パケット通信制御部32で通信の確立の失敗を検知して、失敗回数比較判定部33において第1の判定が行われ、その第1の判定の結果として直近の連続する通信の確立の失敗回数が第1の閾値より多く、かつ、パケット通信制御部32で通信の確立の失敗が検知される前の一定期間に、電界強度検出部44により検出された電界強度の平均値が第3の閾値より高ければ、省電力モードに変更して設定する。 (8) The operation mode setting unit 31 detects a failure in establishing communication in the packet communication control unit 32, makes a first determination in the failure count comparison determination unit 33, and is the latest as a result of the first determination. The number of failures in establishing continuous communication is greater than the first threshold value, and the electric field detected by the electric field strength detection unit 44 during a certain period before the failure in establishing communication is detected by the packet communication control unit 32. If the average value of the intensity is higher than the third threshold value, the power saving mode is changed and set.

これは、直前まで電波状況が良かったが急に通信を失敗するようになったのは、子機12の故障や、電波の干渉による影響と考えらえるためである。そして、この状態でリトライを続けても電力を余計に消費してしまうため、中継機14では、リトライ回数が少ない省電力モードとする。 This is because the radio wave condition was good until just before, but the communication suddenly failed because it is considered to be the influence of the failure of the handset 12 or the interference of the radio wave. Further, even if the retries are continued in this state, the power is consumed excessively. Therefore, the repeater 14 is set to the power saving mode in which the number of retries is small.

(9)動作モード設定部31は、パケット通信制御部32で通信の確立の失敗を検知して、失敗回数比較判定部33において第1の判定が行われ、その第1の判定の結果として直近の連続する通信の確立の失敗回数が第1の閾値より多く、かつ、パケット通信制御部32で通信の確立の失敗が検知される前の一定期間に、電界強度検出部44により検出された電界強度の平均値が第3の閾値より低ければ、通信優先モードに変更して設定する。 (9) The operation mode setting unit 31 detects a failure in establishing communication in the packet communication control unit 32, makes a first determination in the failure count comparison determination unit 33, and is the latest as a result of the first determination. The number of failures in establishing continuous communication is greater than the first threshold value, and the electric field detected by the electric field strength detection unit 44 during a certain period before the failure in establishing communication is detected by the packet communication control unit 32. If the average value of the intensity is lower than the third threshold value, the mode is changed to the communication priority mode and set.

これは、第2の判定における通信成否の確率が不良、すなわち通信が成功する確率が低ければ、子機12の故障ではなく、もともと悪かった電波状況が外乱などでさらに悪化して通信を失敗していると考えることができる。したがって中継機14では、リトライにより通信が確立される可能性があるため、リトライ回数が中程度である通信優先モードとする。 This is because if the probability of success or failure of communication in the second determination is poor, that is, if the probability of successful communication is low, it is not a failure of the handset 12, but the originally bad radio wave condition worsens due to disturbance or the like, and communication fails. Can be thought of as. Therefore, in the repeater 14, since communication may be established by retries, the communication priority mode in which the number of retries is medium is set.

次に、中継機14の動作モードが通信優先モードであるものとし、動作モード設定部31が、通信優先モードから他の動作モードに設定変更を行う条件(10)~(12)について、図9を参照して説明する。 Next, it is assumed that the operation mode of the repeater 14 is the communication priority mode, and the conditions (10) to (12) for the operation mode setting unit 31 to change the setting from the communication priority mode to another operation mode are shown in FIG. Will be described with reference to.

(10)動作モード設定部31は、パケット通信制御部32で通信の確立の成功を検知して、かつ電界強度検出部44により検出された電界強度の平均値が第3の閾値より高ければ、通常モードに変更して設定する。 (10) If the operation mode setting unit 31 detects the success of communication establishment by the packet communication control unit 32 and the average value of the electric field strength detected by the electric field strength detection unit 44 is higher than the third threshold value, Change to normal mode and set.

これは、子機12に発生していた問題の解消や、干渉の問題が改善されるなどの理由により、通信状態が良化したものと考えて、通常モードとするものである。 It is considered that the communication state has been improved due to the solution of the problem occurring in the handset 12 and the improvement of the problem of interference, and the normal mode is set.

(11)動作モード設定部31は、パケット通信制御部32で通信の確立の失敗を検知して、失敗回数比較判定部33において第1の判定が行われ、その第1の判定の結果として直近の連続する通信の確立の失敗回数が第1の閾値より多い場合、省電力モードに変更して設定する。 (11) The operation mode setting unit 31 detects a failure in establishing communication in the packet communication control unit 32, makes a first determination in the failure count comparison determination unit 33, and is the latest result of the first determination. If the number of failures in establishing continuous communication is greater than the first threshold value, the power saving mode is changed and set.

これは、子機12の故障や電波の干渉の影響により、通信の確立に失敗しているものと考えて、省電力モードとするものである。 It is considered that the establishment of communication has failed due to the failure of the slave unit 12 or the influence of radio wave interference, and the power saving mode is set.

次に、中継機14の動作モードが省電力モードであるものとし、動作モード設定部31が、省電力モードから他の動作モードに設定変更を行う条件について説明する。 Next, it is assumed that the operation mode of the repeater 14 is the power saving mode, and the condition for the operation mode setting unit 31 to change the setting from the power saving mode to another operation mode will be described.

(12)省電力モードである場合に、動作モード設定部31は、パケット通信制御部32で通信の確立の成功を検知した場合に、通常モードに移行する。なお、この動作モードの変更の際には、電界強度検出部44により検出された電界強度の平均値によらずに、通常モードへの移行を行うことができる。 (12) In the power saving mode, the operation mode setting unit 31 shifts to the normal mode when the packet communication control unit 32 detects success in establishing communication. When this operation mode is changed, the transition to the normal mode can be performed regardless of the average value of the electric field strength detected by the electric field strength detecting unit 44.

なお、この中継機14ではRSSIで判断を行うため、新たな電波強度測定のためのアンテナを追加する必要が無く、低コストで実行することができる。 Since the repeater 14 makes a determination by RSSI, it is not necessary to add a new antenna for measuring the radio field strength, and the repeater 14 can be executed at low cost.

本発明にかかる各部における処理は、コンピュータなどにプログラムを実行させることによって実現できる。より具体的には、プログラムメモリに格納された、危険回避装置の各部における処理を実行させるためのプログラムを主記憶装置にロードし、CPUの制御によって当該プログラムを実行して実現する。ここで、プログラムは、様々なタイプの非一時的なコンピュータ可読媒体(non-transitory computer readable medium)を用いて格納され、コンピュータに供給することができる。非一時的なコンピュータ可読媒体は、様々なタイプの実体のある記録媒体(tangible storage medium)を含む。非一時的なコンピュータ可読媒体の例は、磁気記録媒体(例えばフレキシブルディスク、磁気テープ、ハードディスクドライブ)、光磁気記録媒体(例えば光磁気ディスク)、CD-ROM(Read Only Memory)、CD-R、CD-R/W、半導体メモリ(例えば、マスクROM、PROM(Programmable ROM)、EPROM(Erasable PROM)、フラッシュROM、RAM(Random Access Memory))を含む。また、プログラムは、様々なタイプの一時的なコンピュータ可読媒体(transitory computer readable medium)によってコンピュータに供給されてもよい。一時的なコンピュータ可読媒体の例は、電気信号、光信号、及び電磁波を含む。一時的なコンピュータ可読媒体は、電線及び光ファイバ等の有線通信路、又は無線通信路を介して、プログラムをコンピュータに供給できる。また、ナビゲーション装置の各部における処理は、プログラムによるソフトウェアで実現することに限ることなく、ハードウェア、ファームウェア、及びソフトウェアのうちのいずれかの組み合わせ等により実現しても良い。 The processing in each part according to the present invention can be realized by causing a computer or the like to execute a program. More specifically, a program stored in the program memory for executing processing in each part of the danger avoidance device is loaded into the main storage device, and the program is executed and realized under the control of the CPU. Here, the program can be stored and supplied to the computer using various types of non-transitory computer readable media. Non-temporary computer-readable media include various types of tangible storage media. Examples of non-temporary computer readable media include magnetic recording media (eg flexible disks, magnetic tapes, hard disk drives), optomagnetic recording media (eg optomagnetic disks), CD-ROMs (Read Only Memory), CD-Rs, Includes CD-R / W, semiconductor memory (eg, mask ROM, PROM (Programmable ROM), EPROM (Erasable PROM), flash ROM, RAM (Random Access Memory)). The program may also be supplied to the computer by various types of temporary computer readable media. Examples of temporary computer readable media include electrical, optical, and electromagnetic waves. The temporary computer-readable medium can supply the program to the computer via a wired communication path such as an electric wire and an optical fiber, or a wireless communication path. Further, the processing in each part of the navigation device is not limited to being realized by software by a program, and may be realized by any combination of hardware, firmware, and software.

なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。 The present invention is not limited to the above embodiment, and can be appropriately modified without departing from the spirit.

例えば、実施の形態1に示した中継機13では、親機11への応答の際にリトライ回数の情報を送信することとして説明したが、これに限られず、その他の任意のタイミングでリトライ回数の情報を送信することを妨げない。 For example, in the repeater 13 shown in the first embodiment, the information on the number of retries is transmitted when the response to the master unit 11 is performed, but the present invention is not limited to this, and the number of retries is determined at any other timing. Does not prevent you from sending information.

また、失敗回数比較判定部33では、パケット通信制御部32で通信NGを検知した場合に、直近の連続する接続NGの回数をカウントするものとして記載したが、これに限定されない。例えば、パケット通信制御部32で検知した現在の通信NGと、直近の過去1回の接続NGを除外して、それ以前の連続する接続NGをカウントする等のように、任意に変更可能である。これは、実施の形態1に示した状態検出判定部34の確率の算出や、実施の形態2に示した電界強度検出部44によるRSSIの平均値の算出についても同様である。 Further, the failure count comparison determination unit 33 describes that when the packet communication control unit 32 detects a communication NG, the number of the most recent continuous connection NG is counted, but the present invention is not limited to this. For example, the current communication NG detected by the packet communication control unit 32 and the latest one connection NG in the past are excluded, and the continuous connection NG before that is counted, and the like can be arbitrarily changed. .. This also applies to the calculation of the probability of the state detection determination unit 34 shown in the first embodiment and the calculation of the average value of RSSI by the electric field strength detection unit 44 shown in the second embodiment.

また、実施の形態1に示したヘルスチェック信号を用いた方法と、実施の形態2に示したRSSIフィールドを用いた方法の両方を同時に用いることも可能である。 It is also possible to simultaneously use both the method using the health check signal shown in the first embodiment and the method using the RSSI field shown in the second embodiment.

1 無線パケット通信システム
2 無線パケット通信システム
11 親機
12 子機
13 中継機
14 中継機
21 送受信部
22 演算部
23 電源部
24 演算部
31 動作モード設定部
32 パケット通信制御部
33 失敗回数比較判定部
34 状態検出判定部
35 記憶部
36 電源電圧監視部
44 電界強度検出部
1 Wireless packet communication system 2 Wireless packet communication system 11 Master unit 12 Slave unit 13 Relay unit 14 Relay unit 21 Transmission / reception unit 22 Calculation unit 23 Power supply unit 24 Calculation unit 31 Operation mode setting unit 32 Packet communication control unit 33 Failure count comparison judgment unit 34 State detection judgment unit 35 Storage unit 36 Power supply voltage monitoring unit 44 Electric field strength detection unit

Claims (10)

親機と、1つ以上の子機と、の間で確立される無線パケット通信を中継する無線通信の中継装置であって、
前記子機との通信の確立を試みるリトライ回数をパラメータとして有する複数の動作モードのうち、いずれかの動作モードを設定する動作モード設定部と、
前記親機及び前記子機とのパケット通信を制御するとともに、前記子機からのパケットの受信状態に応じて前記子機との通信の確立の成否を検知するパケット通信制御部と、
前記パケット通信制御部で通信の確立の失敗が検知された場合に、通信の確立の失敗回数が規定の回数以上か否かによる第1の判定を行う失敗回数比較判定部と、
所定の期間における前記子機との通信確立の成否の確率を算出し、前記算出された確率が規定の確率より高いか否かによる第2の判定を行う状態検出判定部と、を有する演算部と、
前記親機と、前記子機と、に対してパケットの送受信を行う送受信部と、
前記演算部と、前記送受信部と、に電力の供給を行う電源部と、を備え、
前記動作モード設定部は、
前記第1の判定と、前記第2の判定と、の少なくとも一方に応じて、前記動作モードを設定し、
前記パケット通信制御部は、前記動作モードに応じて前記子機への通信の確立を試みるリトライ回数を変更する制御を行う、
無線通信の中継装置。
A wireless communication relay device that relays wireless packet communication established between a master unit and one or more slave units.
An operation mode setting unit for setting one of a plurality of operation modes having the number of retries for establishing communication with the slave unit as a parameter, and an operation mode setting unit.
A packet communication control unit that controls packet communication with the master unit and the slave unit and detects the success or failure of establishment of communication with the slave unit according to the reception status of the packet from the slave unit.
When the packet communication control unit detects a failure in establishing communication, a failure count comparison determination unit that makes a first determination based on whether or not the number of communication establishment failures is equal to or greater than a specified number of times, and a failure count comparison determination unit.
A calculation unit having a state detection determination unit that calculates the probability of success or failure of communication establishment with the slave unit in a predetermined period and makes a second determination based on whether or not the calculated probability is higher than the specified probability. When,
A transmission / reception unit that transmits / receives packets to / from the master unit and the slave unit.
The arithmetic unit, the transmission / reception unit, and a power supply unit that supplies electric power to the transmission / reception unit are provided.
The operation mode setting unit is
The operation mode is set according to at least one of the first determination and the second determination.
The packet communication control unit controls to change the number of retries attempting to establish communication to the slave unit according to the operation mode.
Wireless communication relay device.
前記状態検出判定部は、
前記第2の判定を行う際に、前記パケット通信制御部が前記子機との通信の確立の失敗が検知されるより前の期間の通信確立の成否の結果を用いて確率の算出を行う、
請求項1に記載の無線通信の中継装置。
The state detection determination unit is
When making the second determination, the packet communication control unit calculates the probability using the result of the success or failure of the communication establishment in the period before the failure of the establishment of the communication with the slave unit is detected.
The wireless communication relay device according to claim 1.
前記送受信部は、前記子機に対するパケットの送受信として、実通信パケットと、前記子機の故障に関する情報を有するヘルスチェックパケットの送受信を行い、
前記パケット通信制御部は、前記子機からの前記実通信パケットの受信状態に応じて、前記子機との通信の確立の成否を検知し、
前記状態検出判定部は、前記子機からの前記ヘルスチェックパケットの受信状態から前記子機との通信確立の成否の確率を算出し、前記算出された確率が規定の確率より高いか否かにより前記第2の判定を行う、
請求項2に記載の無線通信の中継装置。
The transmission / reception unit transmits / receives an actual communication packet and a health check packet having information on a failure of the slave unit as transmission / reception of a packet to the slave unit.
The packet communication control unit detects the success or failure of establishment of communication with the slave unit according to the reception state of the actual communication packet from the slave unit.
The state detection determination unit calculates the probability of success or failure of establishing communication with the handset from the reception state of the health check packet from the handset, and determines whether the calculated probability is higher than the specified probability. The second determination is made.
The wireless communication relay device according to claim 2.
前記動作モード設定部は、
動作モードとして、前記リトライ回数を所定の回数に設定した通信優先モードと、前記通信優先モードより多いリトライ回数を設定した通常モードと、前記通信優先モードより少ないリトライ回数を設定した省電力モードと、を設定する
請求項1乃至請求項3のいずれか1項に記載の無線通信の中継装置。
The operation mode setting unit is
The operation modes include a communication priority mode in which the number of retries is set to a predetermined number, a normal mode in which the number of retries is set to be larger than the communication priority mode, and a power saving mode in which the number of retries is set to be smaller than the communication priority mode. The wireless communication relay device according to any one of claims 1 to 3.
前記動作モード設定部は、
前記通常モードから他の動作モードへの移行は、
(1)前記第1の判定が行われ、前記通信の確立の失敗回数が規定の回数より多く、かつ、前記第2の判定による前記子機との通信確立が成功した確率があらかじめ規定した値より高ければ、前記省電力モードに移行、
(2)前記第1の判定が行われ、前記通信の確立の失敗回数が規定の回数より多く、かつ、前記第2の判定による前記子機との通信確立が成功した確率があらかじめ規定した値より低ければ、前記通信優先モードに移行、
(3)前記第2の判定において、前記子機から受信したヘルスチェックパケットに前記子機の故障を示すエラーコードが含まれる場合には、前記省電力モードに移行、
のいずれかにより行い、
前記通信優先モードから他の動作モードへの移行は、
(4)前記パケット通信制御部で通信の確立の成功を検知し、かつ、前記第2の判定による前記子機との通信確立が成功した確率があらかじめ規定した値より高ければ、前記通常モードに移行、
(5)前記第1の判定が行われ、前記通信の確立の失敗回数が規定の回数を超えていれば前記省電力モードに移行、
(6)前記第2の判定において、前記子機から受信したヘルスチェックパケットに前記子機の故障を示すエラーコードが含まれる場合には、前記省電力モードに移行、
のいずれかにより行い、
前記省電力モードから他の動作モードへの移行は、
(7)前記パケット通信制御部で通信の確立の成功を検知した場合に、通常モードに移行、
を行う、請求項4に記載の無線通信の中継装置。
The operation mode setting unit is
The transition from the normal mode to another operation mode is
(1) The probability that the first determination is made, the number of failures in establishing the communication is larger than the specified number of times, and the establishment of communication with the slave unit by the second determination is successful is a predetermined value. If it is higher, it shifts to the power saving mode,
(2) The probability that the first determination is made, the number of failures in establishing the communication is greater than the specified number of times, and the probability of success in establishing communication with the slave unit by the second determination is a predetermined value. If it is lower, the mode shifts to the communication priority mode.
(3) In the second determination, if the health check packet received from the slave unit contains an error code indicating a failure of the slave unit, the mode shifts to the power saving mode.
Do it by either
The transition from the communication priority mode to another operation mode is
(4) If the packet communication control unit detects the success of the communication establishment and the probability of the success of the communication establishment with the slave unit by the second determination is higher than the predetermined value, the normal mode is set. Migration,
(5) If the first determination is made and the number of failures in establishing the communication exceeds the specified number, the mode shifts to the power saving mode.
(6) In the second determination, if the health check packet received from the slave unit contains an error code indicating a failure of the slave unit, the mode shifts to the power saving mode.
Do it by either
The transition from the power saving mode to another operation mode is
(7) When the packet communication control unit detects success in establishing communication, the mode shifts to the normal mode.
The wireless communication relay device according to claim 4.
前記演算部は、電源監視部をさらに備え、
前記電源監視部は、前記電源部として用いられる電池の残量を電圧レベルによって監視し、
前記動作モード設定部は、
前記動作モードが省電力モードである場合に、前記第2の判定において前記子機から受信したヘルスチェックパケットに前記子機の故障を示すエラーコードが含まれるか否か、及び、前記電源監視部により取得された前記電池の残量があらかじめ定めた値より大きいか否かの少なくとも一方により、前記リトライ回数を変更する、
請求項4又は請求項5に記載の無線通信の中継装置。
The calculation unit further includes a power supply monitoring unit.
The power supply monitoring unit monitors the remaining amount of the battery used as the power supply unit according to the voltage level.
The operation mode setting unit is
When the operation mode is the power saving mode, whether or not the health check packet received from the slave unit in the second determination includes an error code indicating the failure of the slave unit, and the power supply monitoring unit. The number of retries is changed depending on at least one of whether or not the remaining amount of the battery acquired by the above is larger than a predetermined value.
The wireless communication relay device according to claim 4 or 5.
前記状態検出判定部は、所定の期間ごとに複数回、前記子機との通信確立の成否の確率を計算し、
前記演算部は、
少なくとも、前記失敗回数比較判定部の前記第1の判定に用いられる前記規定の回数の情報と、前記状態検出判定部の前記第2の判定において用いられる前記規定の確率の情報と、前記複数回計算された前記子機との通信確立の成否の確率と、を記憶する記憶部と、をさらに備える、
請求項2乃至6のいずれか1項に記載の無線通信の中継装置。
The state detection determination unit calculates the probability of success or failure of communication establishment with the slave unit a plurality of times at predetermined periods, and then calculates the probability of success or failure of communication establishment with the slave unit.
The arithmetic unit
At least, the information of the specified number of times used for the first determination of the failure number comparison determination unit, the information of the specified probability used in the second determination of the state detection determination unit, and the plurality of times. A storage unit for storing the calculated probability of success or failure of communication establishment with the slave unit is further provided.
The wireless communication relay device according to any one of claims 2 to 6.
前記状態検出判定部は、
所定の期間における前記子機との通信確立の成否の確率を算出し、前記算出された確率が規定の確率より高いか否かにより第2の判定を行うことに代えて、
前記送受信部で受信したパケットから電波強度の情報を取得し、前記取得された電波強度が規定の強度より強いか否かによる判定を行う、
請求項1乃至7のいずれか1項に記載の無線通信の中継装置。
The state detection determination unit is
Instead of calculating the probability of success or failure of establishing communication with the slave unit in a predetermined period and making a second determination based on whether or not the calculated probability is higher than the specified probability.
Information on the radio wave strength is acquired from the packet received by the transmission / reception unit, and a determination is made based on whether or not the acquired radio wave strength is stronger than the specified strength.
The wireless communication relay device according to any one of claims 1 to 7.
親機と、1つ以上の子機と、の間で確立されるパケット通信による無線通信を中継する無線通信の中継装置のリトライ制御方法であって、
パケット通信制御部が、前記子機からのパケットの受信状態に応じて、前記子機との通信の確立の成否を検知し、
前記パケット通信制御部で通信の確立の失敗が検知された場合に、通信の確立の失敗回数が規定の回数以上か否かによる第1の判定を行い、
所定の期間における前記子機との通信確立の成否の確率を計算し、前記計算された確率が規定の確率より高いか否かによる第2の判定を行い、
前記第1の判定と、前記第2の判定と、の少なくとも一方に応じて、前記子機との通信の確立を試みるリトライ回数を規定した複数の動作モードのうち、いずれの動作モードに設定するかを決定する
無線通信の中継装置のリトライ制御方法。
It is a retry control method of a wireless communication relay device that relays wireless communication by packet communication established between a master unit and one or more slave units.
The packet communication control unit detects the success or failure of establishment of communication with the slave unit according to the reception status of the packet from the slave unit.
When the packet communication control unit detects a failure in establishing communication, the first determination is made based on whether or not the number of failures in establishing communication is equal to or greater than the specified number.
The probability of success or failure of establishing communication with the slave unit in a predetermined period is calculated, and a second determination is made based on whether or not the calculated probability is higher than the specified probability.
Depending on at least one of the first determination and the second determination, the operation mode is set to any of the plurality of operation modes in which the number of retries attempting to establish communication with the slave unit is specified. A retry control method for a wireless communication relay device to determine whether or not.
親機と、1つ以上の子機と、の間で確立されるパケット通信による無線通信を中継する無線通信の中継装置のリトライ制御プログラムであって、
パケット通信制御部が、前記子機からのパケットの受信状態に応じて、前記子機との通信の確立の成否を検知し、
前記パケット通信制御部で通信の確立の失敗が検知された場合に、通信の確立の失敗回数が規定の回数以上か否かによる第1の判定を行い、
所定の期間における前記子機との通信確立の成否の確率を計算し、前記計算された確率が規定の確率より高いか否かによる第2の判定を行い、
前記第1の判定と、前記第2の判定と、の少なくとも一方に応じて、前記子機との通信の確立を試みるリトライ回数を規定した複数の動作モードのうち、いずれの動作モードに設定するかを決定する
リトライ制御プログラム。
It is a retry control program of a wireless communication relay device that relays wireless communication by packet communication established between a master unit and one or more slave units.
The packet communication control unit detects the success or failure of establishment of communication with the slave unit according to the reception status of the packet from the slave unit.
When the packet communication control unit detects a failure in establishing communication, the first determination is made based on whether or not the number of failures in establishing communication is equal to or greater than the specified number.
The probability of success or failure of establishing communication with the slave unit in a predetermined period is calculated, and a second determination is made based on whether or not the calculated probability is higher than the specified probability.
Depending on at least one of the first determination and the second determination, the operation mode is set to any of the plurality of operation modes in which the number of retries attempting to establish communication with the slave unit is specified. A retry control program that determines whether or not.
JP2020195025A 2020-11-25 2020-11-25 Wireless communication relay device, retry control method of wireless communication relay device, and retry control program Pending JP2022083604A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020195025A JP2022083604A (en) 2020-11-25 2020-11-25 Wireless communication relay device, retry control method of wireless communication relay device, and retry control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020195025A JP2022083604A (en) 2020-11-25 2020-11-25 Wireless communication relay device, retry control method of wireless communication relay device, and retry control program

Publications (1)

Publication Number Publication Date
JP2022083604A true JP2022083604A (en) 2022-06-06

Family

ID=81855463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020195025A Pending JP2022083604A (en) 2020-11-25 2020-11-25 Wireless communication relay device, retry control method of wireless communication relay device, and retry control program

Country Status (1)

Country Link
JP (1) JP2022083604A (en)

Similar Documents

Publication Publication Date Title
US8379608B2 (en) Radio communication method, radio communication system and wireless terminal
US9288837B2 (en) Wireless device and wireless system
JP6342915B2 (en) Intelligent network operation
CN103220695A (en) Processing method and processing device for network element states
KR20140046045A (en) Power control method, base station and terminal equipment
US10880945B2 (en) System for controlling mobile device, control device, and control method
US10938628B2 (en) Battery management system and communication method thereof
JPH1098427A (en) Portable mobile radio terminal equipment
US8964558B2 (en) Transmission control method and communication apparatus
CN103118387B (en) A kind of thin AP redundancy connection control method of active-standby mode
CN112367107B (en) Method and system for autonomously processing satellite measurement and control equipment fault on satellite
CN112367643A (en) Wireless sensor connection and remote upgrading method and monitoring system thereof
CN114337796B (en) Redundancy backup method and system for digital optical fiber repeater
KR20190078677A (en) Remote meter reading system, remote meter reading device and remote meter reading method
JP2022083604A (en) Wireless communication relay device, retry control method of wireless communication relay device, and retry control program
JP2007312066A (en) Guard system, guard terminal, and guard method
CN110740491B (en) Communication processing method and device of wireless network and household appliance
JP2012182512A (en) Ring type network system
JP5056204B2 (en) Wireless communication network system, wireless terminal, wireless communication method, wireless communication program
JP5056205B2 (en) Wireless communication network system, wireless terminal, wireless communication method, wireless communication program
CN107682600B (en) Camera and gateway
JP6822702B1 (en) Wireless communication equipment, wireless collection equipment, wireless communication systems, control methods and control programs
JP4670727B2 (en) Low power microwave radio communication system
US10764810B1 (en) Systems and methods for adaptively joining a wireless communication network
JP2021190855A (en) Wireless sensor terminal, wireless sensor system, and control method of wireless sensor terminal

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20231002