JP2015179990A - address setting method and system - Google Patents

address setting method and system Download PDF

Info

Publication number
JP2015179990A
JP2015179990A JP2014056938A JP2014056938A JP2015179990A JP 2015179990 A JP2015179990 A JP 2015179990A JP 2014056938 A JP2014056938 A JP 2014056938A JP 2014056938 A JP2014056938 A JP 2014056938A JP 2015179990 A JP2015179990 A JP 2015179990A
Authority
JP
Japan
Prior art keywords
slave
address setting
unit
signal
call
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
JP2014056938A
Other languages
Japanese (ja)
Inventor
康一郎 黒木
Koichiro Kuroki
康一郎 黒木
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.)
Marelli Corp
Original Assignee
Calsonic Kansei 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 Calsonic Kansei Corp filed Critical Calsonic Kansei Corp
Priority to JP2014056938A priority Critical patent/JP2015179990A/en
Publication of JP2015179990A publication Critical patent/JP2015179990A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an address setting method and a system that can avoid duplication of addresses at a master unit and a plurality of slave units that perform master-slave communication.SOLUTION: An address setting method includes the steps of: transmitting, by a master unit 11, an address setting start signal to a plurality of slave units 13; transmitting, by each slave unit 13, a roll-call response signal to the master unit 11 in a response time zone corresponding to a random number generated by the slave unit when receiving the address setting start signal; counting, by the master unit 11, reception times of receiving a roll-call response signal, and transmitting an address setting completion signal to the plurality of slave units 13 if the master unit has determined that the number of reception times is equal to the total number (P) of the slave units stored in advance; determining, by each slave unit 13, that the random number is an address of itself when receiving the address setting completion signal; and re-setting, by the master unit 11, the number of reception times, and re-transmitting the address setting start signal if the master unit has determined that the number of reception times is not equal to the total number of the slave units.

Description

本発明は、アドレス設定方法及びシステムに関する。   The present invention relates to an address setting method and system.

従来、親機と複数の子機を備える通信システムにおいて、子機の増設時や、通信システムの立ち上がり時、各子機にアドレスを設定している。一般に、アドレスを自動で割り振る際には、乱数を仮アドレスとして用いる方式を用いる。特許文献1では、乱数による仮アドレスの重複があった場合、不具合無く正式アドレスの設定ができる方法を提案している。具体的には特許文献1では、まず子機が仮アドレスを用いて親機に正式アドレスの発行をリクエストする。親機が仮アドレスの重複を検出した場合、重複している各子機にエラー情報をブロードキャストし、再度乱数による仮アドレスの設定を行う。当該処理を仮アドレスの重複がなくなるまで繰り返すことで、仮アドレス重複による不具合を回避している。   Conventionally, in a communication system including a master unit and a plurality of slave units, an address is set for each slave unit when the slave unit is added or when the communication system is started up. Generally, when an address is automatically assigned, a method using a random number as a temporary address is used. Patent Document 1 proposes a method that can set a formal address without any trouble when a temporary address is duplicated by a random number. Specifically, in Patent Document 1, first, the child device requests the parent device to issue an official address using the temporary address. When the master unit detects duplication of temporary addresses, it broadcasts error information to each duplicate slave unit, and again sets temporary addresses using random numbers. By repeating this process until there is no duplication of temporary addresses, problems due to duplication of temporary addresses are avoided.

特開2006−238301号公報JP 2006-238301 A

しかしながら、従来技術は子機が親機にリクエストする方式となっており、親機及び各子機のどちらも通信上の起点となる。しかし、マスター・スレーブ方式による無線通信(以下、マスター・スレーブ通信という。)を行う場合では、各子機は通信上の起点とはならず、各子機は親機からのリクエストに応答するのみであるため、上記技術を採用することができない。   However, the prior art is a method in which the slave unit makes a request to the master unit, and both the master unit and each slave unit are starting points for communication. However, in the case of performing wireless communication by the master / slave method (hereinafter referred to as master / slave communication), each slave unit does not become a communication starting point, and each slave unit only responds to a request from the master unit. Therefore, the above technique cannot be employed.

従って、上記のような問題点に鑑みてなされた本発明の目的は、マスター・スレーブ通信を行う親機及び複数の子機において、アドレスの重複を回避することができるアドレス設定方法及びシステムを提供することにある。   Accordingly, an object of the present invention made in view of the above problems is to provide an address setting method and system capable of avoiding address duplication in a master unit and a plurality of slave units that perform master / slave communication. There is to do.

上記課題を解決するために第1の発明に係るアドレス設定方法は、
親機と複数の子機とが同一周波数帯でマスター・スレーブ通信を行うシステムにおけるアドレス設定方法であって、
前記親機が、アドレス設定開始信号を前記複数の子機に送信するステップと、
各子機が、前記アドレス設定開始信号を受信した場合、乱数を発生して前記乱数に応じた応答時間帯に前記親機に点呼応答信号を送信するステップと、
前記親機が、前記点呼応答信号を受信した受信回数をカウントし、前記受信回数と予め記憶している子機総数とが同一であると判定した場合、アドレス設定完了信号を前記複数の子機に送信し、各子機は、前記アドレス設定完了信号を受信した場合、前記乱数を自端末のアドレスとして決定するステップと、
前記親機が、前記受信回数と前記子機総数とが同一でないと判定した場合、前記受信回数をリセットし、前記アドレス設定開始信号を再送信するステップと、
を含むことを特徴とする。
In order to solve the above problem, an address setting method according to the first invention is
An address setting method in a system in which a master unit and a plurality of slave units perform master / slave communication in the same frequency band,
The master unit transmits an address setting start signal to the plurality of slave units;
When each slave unit receives the address setting start signal, generating a random number and transmitting a call response signal to the master unit in a response time zone corresponding to the random number;
When the master unit counts the number of receptions of the call response signal and determines that the number of receptions and the total number of slave units stored in advance are the same, an address setting completion signal is sent to the plurality of slave units. Each slave unit, when receiving the address setting completion signal, determining the random number as the address of its own terminal;
If the base unit determines that the reception count and the total number of slave units are not the same, reset the reception count, and retransmit the address setting start signal;
It is characterized by including.

また、第2の発明に係るアドレス設定方法は、
前記親機がさらに、前記受信回数と、予め記憶している子機総数とが同一であると判定した場合、スレーブアドレス設定情報を記憶し、
前記親機は、自端末の起動後に前記スレーブアドレス設定情報が記憶されているか否かを判定し、前記アドレス設定情報が記憶されていると判定した場合、前記アドレス設定開始信号を送信しないことを特徴とする。
An address setting method according to the second invention is
If the master unit further determines that the number of receptions and the total number of pre-stored slave units are the same, store slave address setting information,
The base unit determines whether or not the slave address setting information is stored after starting its own terminal, and when determining that the address setting information is stored, does not transmit the address setting start signal Features.

また、第3の発明に係るアドレス設定方法は、
前記親機の動作電圧は、前記複数の子機の動作電圧と異なり、前記複数の子機にはバッテリーが接続され、前記親機は、前記マスター・スレーブ通信により前記バッテリーを制御することを特徴とする。
An address setting method according to the third invention is:
The operating voltage of the master unit is different from the operating voltage of the plurality of slave units, a battery is connected to the plurality of slave units, and the master unit controls the battery by the master-slave communication. And

また、第4の発明に係るシステムは、
親機と複数の子機とが同一周波数帯でマスター・スレーブ通信を行うシステムであって、
前記親機が、アドレス設定開始信号を前記複数の子機に送信し、
各子機が、前記アドレス設定開始信号を受信した場合、乱数を発生して前記乱数に応じた応答時間帯に前記親機に点呼応答信号を送信し、
前記親機が、前記点呼応答信号を受信した受信回数をカウントし、前記受信回数と予め記憶している子機総数とが同一であると判定した場合、アドレス設定完了信号を前記複数の子機に送信し、各子機は、前記アドレス設定完了信号を受信した場合、前記乱数を自端末のアドレスとして決定し、
前記親機が、前記受信回数と前記子機総数とが同一でないと判定した場合、前記受信回数をリセットし、前記アドレス設定開始信号を再送信することを特徴とする。
The system according to the fourth invention is:
A system in which a master unit and multiple slave units perform master / slave communication in the same frequency band,
The master unit transmits an address setting start signal to the plurality of slave units,
When each slave unit receives the address setting start signal, it generates a random number and transmits a call response signal to the master unit in a response time zone according to the random number,
When the master unit counts the number of receptions of the call response signal and determines that the number of receptions and the total number of slave units stored in advance are the same, an address setting completion signal is sent to the plurality of slave units. Each slave unit receives the address setting completion signal, determines the random number as the address of its own terminal,
If the base unit determines that the number of receptions and the total number of slave units are not the same, the base unit resets the number of receptions and retransmits the address setting start signal.

第1の発明におけるアドレス設定方法及びシステムによれば、マスター・スレーブ通信を行う親機及び複数の子機において、アドレスの重複を回避することができる。   According to the address setting method and system in the first invention, duplication of addresses can be avoided in a master unit and a plurality of slave units that perform master-slave communication.

また、第2の発明におけるアドレス設定方法によれば、アドレス設定情報が無い場合にアドレス設定開始信号を子機に送信するため、効率的にアドレスを設定することができる。   Also, according to the address setting method of the second invention, an address setting start signal is transmitted to the slave unit when there is no address setting information, so that an address can be set efficiently.

また、第3の発明におけるアドレス設定方法によれば、子機に重複の無いアドレスを設定し、子機に接続されたバッテリーを効率よく制御することができる。   Moreover, according to the address setting method in the third aspect of the invention, it is possible to set a non-overlapping address in the slave unit and to efficiently control the battery connected to the slave unit.

また、第4の発明におけるアドレス設定方法によれば、マスター・スレーブ通信を行う親機及び複数の子機において、アドレスの重複を回避することができる。   In addition, according to the address setting method of the fourth invention, duplication of addresses can be avoided in the master unit and the plurality of slave units that perform master / slave communication.

本発明の一実施形態に係るシステムのブロック図である。1 is a block diagram of a system according to an embodiment of the present invention. 本発明の一実施形態に係る親機のブロック図である。It is a block diagram of the main | base station which concerns on one Embodiment of this invention. 点呼時間及び応答時間帯を示す図である。It is a figure which shows a call time and a response time slot | zone. 本発明の一実施形態に係る子機のブロック図である。It is a block diagram of the subunit | mobile_unit which concerns on one Embodiment of this invention. 本発明の一実施形態に係る親機の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the main | base station which concerns on one Embodiment of this invention. 本発明の一実施形態に係る子機の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the subunit | mobile_unit which concerns on one Embodiment of this invention. 本発明の一実施形態に係るシステムにおけるアドレス設定のタイミングチャートを示す図である。It is a figure which shows the timing chart of the address setting in the system which concerns on one Embodiment of this invention.

以下、本発明の実施の形態について説明する。   Embodiments of the present invention will be described below.

(実施の形態)
図1は本発明の一実施形態に係るシステム1のブロック図である。本発明の一実施形態に係るシステムは、親機11(マスタ11ともいう。)と、弱電電源12と、子機13(スレーブ13ともいう。)と、強電電源14とを備える。以下本実施形態では、当該システム1はバッテリーを制御するシステムであるものとして説明するが、これに限定されない。また子機の数は2台以上であればよい。本実施の形態では、子機の数がPであるものとして説明する。各子機13−1〜13−Pは同一の構成であるため、本実施の形態では、子機13と表記する。
(Embodiment)
FIG. 1 is a block diagram of a system 1 according to an embodiment of the present invention. The system according to an embodiment of the present invention includes a master unit 11 (also referred to as a master 11), a weak power source 12, a slave unit 13 (also referred to as a slave 13), and a high power source 14. Hereinafter, in the present embodiment, the system 1 is described as a system that controls a battery, but the present invention is not limited to this. The number of slave units may be two or more. In the present embodiment, description will be made assuming that the number of slave units is P. Since each subunit | mobile_unit 13-1 to 13-P is the same structure, it describes with the subunit | mobile_unit 13 in this Embodiment.

親機11と各子機13とは、同一周波数帯でマスター・スレーブ通信を行う。各子機13にはバッテリー(バッテリーセル)が接続される。親機11は、各子機13に接続されるバッテリーの電圧、温度、充電量等を監視及び制御するために、各子機13とバッテリーに係る情報を送受信する。   The master unit 11 and each slave unit 13 perform master / slave communication in the same frequency band. A battery (battery cell) is connected to each slave unit 13. In order to monitor and control the voltage, temperature, charge amount and the like of the battery connected to each slave unit 13, the master unit 11 transmits and receives information related to the battery with each slave unit 13.

弱電電源12は、親機11に電源供給をする。一方、強電電源14は、各子機13に電源供給をする。本発明は親機11の動作電圧と、子機13の動作電圧と異なる。具体的には弱電電源12が供給する電圧は、強電電源14が供給する電圧よりも低い。そのため、親機11と各子機13間は、有線ではなく無線により通信を行っている。これにより、弱電電源12及び強電電源14の短絡を防止することができる。またこれにより、電源配線の取り回しも物理的に短くすることができる。なお本実施形態では、親機11に子機13よりも低い電圧を供給しているが、これに限られない。親機11に子機13よりも高い電圧を供給するようにしてもよい。   The weak power source 12 supplies power to the base unit 11. On the other hand, the high power source 14 supplies power to each slave unit 13. The present invention is different from the operating voltage of the base unit 11 and the operating voltage of the handset 13. Specifically, the voltage supplied by the weak power source 12 is lower than the voltage supplied by the high power source 14. Therefore, communication is performed between the parent device 11 and each child device 13 wirelessly instead of wired. Thereby, the short circuit of the weak electric power source 12 and the high electric power source 14 can be prevented. This also makes it possible to physically shorten the power supply wiring. In this embodiment, a voltage lower than that of the slave unit 13 is supplied to the master unit 11, but the present invention is not limited to this. A voltage higher than that of the slave unit 13 may be supplied to the master unit 11.

[1.親機の構成]
図2は、本発明の一実施形態に係る親機11のブロック図である。親機11は、無線通信部111と、電源入力部112と、主記憶装置113と、一時記憶装置114と、制御部115と、タイマ116と、点呼用タイマ117とを備える。
[1. Main unit configuration]
FIG. 2 is a block diagram of base unit 11 according to the embodiment of the present invention. Base unit 11 includes a wireless communication unit 111, a power input unit 112, a main storage device 113, a temporary storage device 114, a control unit 115, a timer 116, and a call timer 117.

無線通信部111は、各子機13とマスター・スレーブ方式により無線通信を行う。親機11はマスター側であるため、通信の起点となる。無線通信の規格は、赤外線、無線LAN、Bluetooth(登録商標)、光通信等、如何なるものであってもよい。   The wireless communication unit 111 performs wireless communication with each slave unit 13 by a master / slave method. Since the master unit 11 is the master side, it becomes a starting point of communication. The wireless communication standard may be any one of infrared, wireless LAN, Bluetooth (registered trademark), optical communication, and the like.

電源入力部112は、弱電電源12からの電源を親機11に供給し、親機11を起動及び動作させる。   The power input unit 112 supplies power from the weak power source 12 to the parent device 11 to activate and operate the parent device 11.

主記憶装置113は、ハードディスク、フラッシュメモリ等により構成し、親機11に係る各種情報を記憶する。例えば主記憶装置113は、子機13の総数(P)を記憶する。また主記憶装置113は、スレーブアドレス設定情報を記憶する。スレーブアドレス設定情報とは、各子機のアドレスが設定されていることを示す情報である。主記憶装置113にスレーブアドレス設定情報が記憶されている場合、既に各子機13にアドレスが設定されているため、さらなるアドレス設定は不要である。一方で、主記憶装置113にスレーブアドレス設定情報が記憶されていない場合、各子機13のアドレスを設定する必要がある。   The main storage device 113 is configured by a hard disk, a flash memory, or the like, and stores various information related to the parent device 11. For example, the main storage device 113 stores the total number (P) of the slave units 13. The main storage device 113 stores slave address setting information. The slave address setting information is information indicating that the address of each slave unit is set. When slave address setting information is stored in the main storage device 113, since an address is already set in each slave unit 13, no further address setting is required. On the other hand, when the slave address setting information is not stored in the main storage device 113, it is necessary to set the address of each slave unit 13.

一時記憶装置114は、例えばRAM(Random Access Memory)であり、制御部115による演算のために必要な情報を一時的に記憶する。   The temporary storage device 114 is, for example, a RAM (Random Access Memory), and temporarily stores information necessary for calculation by the control unit 115.

制御部115は、親機11に関する各種制御を行う。具体的には制御部115は、電源入力部112による親機11への電源供給及び起動後、無線通信部111を介して各子機13に起動命令信号を送信する。   The control unit 115 performs various controls related to the parent device 11. Specifically, the control unit 115 transmits a start command signal to each slave unit 13 through the wireless communication unit 111 after the power supply unit 112 supplies power to the base unit 11 and starts up.

起動命令信号は、各子機13を起動させるための信号である。起動命令信号は、各子機13が信号を受信してから起動するのに十分な時間長(以下、スレーブ起動時間という。)を有する信号である。具体的には制御部115は、起動命令信号の送信開始後にタイマ116による時間計測を0からスタートさせ、タイマ116により、スレーブ起動時間が経過したか否かを判定する。起動命令信号は各子機13にブロードキャストされる。   The start command signal is a signal for starting each slave unit 13. The start command signal is a signal having a time length sufficient for starting each slave unit 13 after receiving the signal (hereinafter referred to as a slave start time). Specifically, the control unit 115 starts the time measurement by the timer 116 from 0 after the start of transmission of the start command signal, and determines whether or not the slave start time has elapsed by the timer 116. The start command signal is broadcast to each slave unit 13.

制御部115は、起動命令信号を送信開始後にスレーブ起動時間が経過したかを、タイマ116により判定する。スレーブ起動時間が経過していない場合、制御部115は、スレーブ起動時間の経過を待機する。スレーブ起動時間が経過している場合、制御部115は、主記憶装置113にスレーブアドレス設定情報が記憶されているか否かを判定する。主記憶装置113にスレーブアドレス設定情報が記憶されている場合、既にアドレス設定は完了しているため、各子機13に設定されているアドレスを用いて各子機13と無線通信を行う。一方、主記憶装置113にスレーブアドレス設定情報が記憶されていない場合、制御部115は、無線通信部111を介して、各子機13に点呼準備信号を送信する。   The control unit 115 uses the timer 116 to determine whether the slave activation time has elapsed after starting the transmission of the activation command signal. When the slave activation time has not elapsed, the control unit 115 waits for the slave activation time to elapse. When the slave activation time has elapsed, the control unit 115 determines whether slave address setting information is stored in the main storage device 113. When slave address setting information is stored in the main storage device 113, since the address setting has already been completed, wireless communication is performed with each slave unit 13 using the address set in each slave unit 13. On the other hand, when the slave address setting information is not stored in the main storage device 113, the control unit 115 transmits a call preparation signal to each slave unit 13 via the wireless communication unit 111.

点呼準備信号とは、各子機13に点呼応答信号の送信準備をさせる信号である。点呼応答信号については後述する。点呼準備信号は、各子機13が信号を受信してから点呼準備完了するのに十分な時間長(以下、点呼準備時間という。)を有する信号である。具体的には制御部115は、点呼準備信号の送信開始後にタイマ116による時間計測を0からスタートさせ、タイマ116により、点呼準備時間が経過したか否かを判定する。点呼準備信号は各子機13にブロードキャストされる。点呼準備信号は、本発明の「アドレス設定開始信号」に対応する。   The call preparation signal is a signal that causes each slave unit 13 to prepare for transmission of a call response signal. The call response signal will be described later. The call preparation signal is a signal having a sufficient length of time (hereinafter referred to as a call preparation time) to complete the preparation of the call after each slave unit 13 receives the signal. Specifically, the control unit 115 starts the time measurement by the timer 116 from 0 after starting the transmission of the call preparation signal, and determines whether or not the call preparation time has elapsed by the timer 116. The roll call preparation signal is broadcast to each slave unit 13. The call preparation signal corresponds to the “address setting start signal” of the present invention.

制御部115は、点呼準備信号を送信開始後に点呼準備時間が経過したかタイマ116により判定する。点呼準備時間が経過していない場合、制御部115は、点呼準備時間の経過を待機する。点呼準備時間が経過している場合、制御部115は、無線通信部111を介して各子機13に点呼信号を送信する。   The control unit 115 determines whether or not the call preparation time has elapsed after the start of transmission of the call preparation signal by the timer 116. When the call preparation time has not elapsed, the control unit 115 waits for the call preparation time to elapse. When the call preparation time has elapsed, the control unit 115 transmits a call signal to each slave unit 13 via the wireless communication unit 111.

点呼信号とは、各子機13からの点呼応答信号を所定の時間に送信させるための信号である。ここで点呼応答信号とは、親機からの点呼信号に対する応答として子機13が送信する信号である。点呼応答信号は、各子機13において発生される乱数により定まる所定の時間帯(応答時間帯)に、各子機13から送信される。本システムにおいては概略として当該乱数を各子機13の通信用のアドレスとして用いる。各子機13は、点呼信号により同期をとることで、所定の応答時間帯に点呼応答信号を送信する。点呼信号は、全ての子機13から点呼応答信号を受信するのに十分な時間長(以下、点呼時間という。)を有する。以下、点呼時間をTとする。具体的には制御部115は、点呼信号送信開始後にタイマ116による時間計測を0からスタートさせ、タイマ116により、点呼時間(T)が経過したか否かを判定する。点呼信号は各子機13にブロードキャストされる。   The call signal is a signal for transmitting a call response signal from each handset 13 at a predetermined time. Here, the call response signal is a signal transmitted from the child device 13 as a response to the call signal from the parent device. The roll call response signal is transmitted from each slave unit 13 in a predetermined time zone (response time zone) determined by a random number generated in each slave unit 13. In this system, the random number is generally used as a communication address for each slave unit 13. Each slave unit 13 transmits a call response signal in a predetermined response time zone by synchronizing with the call signal. The call signal has a time length sufficient to receive the call response signals from all the slave units 13 (hereinafter referred to as the call time). Hereinafter, the call time is assumed to be T. Specifically, the control unit 115 starts time measurement by the timer 116 from 0 after the start of the call signal transmission, and determines whether or not the call time (T) has elapsed by the timer 116. The call signal is broadcast to each handset 13.

ここで応答時間帯とは、点呼時間Tを子機13により発生する乱数の総数(M)で分割した各時間帯であり、T/Mの時間長を有する。なおMは子機の総数(P)以上の数であれば如何なる値であってもよい。好適にはMはPよりも十分に大きく、たとえばMはPの2倍以上である。図3は点呼時間と応答時間帯とを示す概念図である。図3に示すように、点呼時間Tには、応答時間帯RT〜RTが含まれる。応答時間帯RT〜RTはそれぞれ乱数1〜Mに対応する。つまり子機13において乱数Nが発生された場合、当該子機13は、応答時間帯RTに点呼応答信号を送信する。したがって各子機13がそれぞれ異なる乱数を発生した場合、それぞれ異なる応答時間帯に点呼応答信号が送信されることになる。 Here, the response time zone is a time zone obtained by dividing the toll-call time T by the total number (M) of random numbers generated by the handset 13, and has a time length of T / M. M may be any value as long as it is a number equal to or greater than the total number (P) of the slave units. Preferably, M is sufficiently larger than P, for example, M is twice or more than P. FIG. 3 is a conceptual diagram showing the call time and the response time zone. As shown in FIG. 3, the roll-call time T, it includes the response time period RT 1 to RT M. Response time zones RT 1 to RTM correspond to random numbers 1 to M , respectively. That is, when the random number N in the slave unit 13 is generated, slave unit 13 sends a roll-call response signal to the response time period RT N. Therefore, when each cordless handset 13 generates a different random number, a call response signal is transmitted in a different response time zone.

制御部115は、点呼信号を送信中に、点呼応答信号を受信する。また制御部115は、点呼応答信号を各応答時間帯に受信した場合、点呼応答カウンタに1を加算する。点呼応答カウンタは、点呼応答信号の受信回数をカウントするための情報であり、主記憶装置113に記憶されている。点呼応答カウンタは初期状態において0である。   The control unit 115 receives the call response signal while transmitting the call signal. Moreover, the control part 115 adds 1 to a call response counter, when a call response signal is received in each response time slot | zone. The call response counter is information for counting the number of receptions of the call response signal, and is stored in the main storage device 113. The call response counter is 0 in the initial state.

以下制御部115による点呼応答信号の受信回数のカウント方法について詳述する。制御部115は、点呼信号を送信開始後に点呼用タイマ117による時間計測を0からスタートさせる。続いて制御部115は、子機13から点呼応答信号を受信したか否かを判定する。子機13から点呼応答信号を受信した場合、制御部115は、点呼応答カウンタに1を加算する。その後、制御部115は、応答時間帯の時間長(T/M)が経過するまで待機をする。当該時間長を経過した場合、制御部115は点呼用タイマ117をリセットし、時間計測を0から再スタートさせる。すなわち制御部115は、各応答時間帯において点呼応答信号を受信した場合、一度だけ点呼応答カウンタに1を加算してインクリメントし、その後、応答時間帯の時間長(T/M)の時間の経過を待機する。一方、子機13から点呼応答信号を受信していない場合、制御部115は、点呼用タイマ117により、当該時間長を経過しているか否かを判定する。当該時間長を経過していない場合、制御部115は、子機13から点呼応答信号を受信したか否かを再度判定する。すなわち制御部115は、各応答時間帯において点呼応答信号を受信しない場合、応答時間帯の時間長(T/M)の間、点呼応答信号の受信を繰り返し判定する。   Hereinafter, a method of counting the number of times of receiving the call response signal by the control unit 115 will be described in detail. The control unit 115 starts time measurement by the call timer 117 from 0 after starting transmission of the call signal. Subsequently, the control unit 115 determines whether or not a call response signal has been received from the handset 13. When receiving the call response signal from the handset 13, the control unit 115 adds 1 to the call response counter. Thereafter, the control unit 115 stands by until the time length (T / M) of the response time period elapses. When the time length has elapsed, the control unit 115 resets the call timer 117 and restarts time measurement from zero. That is, when receiving the call response signal in each response time zone, the control unit 115 increments the call response counter by adding 1 to the time once, and thereafter, the time length (T / M) of the response time zone has elapsed. Wait. On the other hand, when the call call response signal is not received from the handset 13, the control unit 115 determines whether or not the time length has elapsed by using the call timer 117. When the time length has not elapsed, the control unit 115 determines again whether or not the call call response signal has been received from the handset 13. That is, the control unit 115 repeatedly determines the reception of the call response signal during the time length (T / M) of the response time zone when the call call response signal is not received in each response time zone.

また制御部115は、点呼時間が経過後、点呼応答カウンタの値が、主記憶装置113に記憶されている子機13の総数と一致するか否かを判定する。上述したように、子機13においてそれぞれ異なる乱数を発生した場合、それぞれ異なる応答時間帯に点呼応答信号が送信される。そのため、各子機13がそれぞれ異なる乱数を発生した場合には、点呼応答カウンタの値は子機13の総数となり、主記憶装置113に記憶されている子機13の総数(P)と一致する。一致した場合、制御部115は、無線通信部111を介して各子機13に点呼完了信号を送信する。つまり親機11は、点呼応答信号を受信した受信回数をカウントし、受信回数と予め記憶している子機総数(P)とが同一であると判定した場合、点呼完了信号を複数の子機13に送信する。   The control unit 115 determines whether or not the value of the call response counter matches the total number of handset devices 13 stored in the main storage device 113 after the call time has elapsed. As described above, when different random numbers are generated in the handset 13, a call response signal is transmitted in a different response time zone. Therefore, when each child device 13 generates a different random number, the value of the call response counter is the total number of child devices 13, which matches the total number (P) of child devices 13 stored in the main storage device 113. . If they match, the control unit 115 transmits a call completion signal to each slave unit 13 via the wireless communication unit 111. That is, when the base unit 11 counts the number of times of receiving the call response signal and determines that the number of times of reception and the total number of pre-stored handsets (P) are the same, the base call completion signal is sent to a plurality of handset units. 13 to send.

一方、子機13の2台以上において同一の乱数を発生した場合、同一の応答時間帯には、一度だけ点呼応答カウンタに一を加算するため、点呼応答カウンタの値は子機13の総数未満となり、主記憶装置113に記憶されている子機13の総数(P)と一致しない。したがってこの場合、制御部115は、点呼応答カウンタを0にリセットし、点呼準備信号を各子機13に再送信する。そして制御部115は、各子機13に乱数を再度発生させ、点呼をやり直す。すなわち親機11が受信回数と、子機13の総数(P)とが同一でないと判定した場合、受信回数をリセットし、点呼準備信号を再送信して、点呼をやり直す。   On the other hand, when the same random number is generated in two or more slave units 13, one is added to the call response counter once in the same response time zone, so the value of the call response counter is less than the total number of slave units 13. Therefore, the total number (P) of the slave units 13 stored in the main storage device 113 does not match. Therefore, in this case, the control unit 115 resets the call response counter to 0 and retransmits the call call preparation signal to each slave unit 13. Then, the control unit 115 causes each slave unit 13 to generate a random number again and redoes the call. That is, when the base unit 11 determines that the number of receptions and the total number (P) of the handset units 13 are not the same, the reception number is reset, the call preparation signal is retransmitted, and the call is redone.

ここで点呼完了信号とは、点呼応答信号を重複なく受信したことを各子機13に通知する信号である。点呼完了信号は、所定の時間長(以下、点呼完了時間という。)を有する信号である。具体的には制御部115は、点呼完了信号の送信開始後にタイマ116による時間計測を0からスタートさせ、タイマ116により、点呼完了時間が経過したか否かを判定する。点呼完了信号は各子機13にブロードキャストされる。   Here, the call completion signal is a signal that notifies each slave unit 13 that the call response signals have been received without duplication. The call completion signal is a signal having a predetermined time length (hereinafter referred to as a call completion time). Specifically, the control unit 115 starts the time measurement by the timer 116 from 0 after starting the transmission of the call completion signal, and determines whether or not the call completion time has elapsed by the timer 116. The call completion signal is broadcast to each handset 13.

制御部115は、点呼完了信号を送信後、主記憶装置113にスレーブアドレス設定情報を記憶する。   The control unit 115 stores the slave address setting information in the main storage device 113 after transmitting the call completion signal.

[2.子機の構成]
続いて子機13の構成について説明する。図4は、本発明の一実施形態に係る子機13のブロック図である。子機13は、無線通信部131と、電源入力部132と、主記憶装置133と、一時記憶装置134と、制御部135と、乱数発生器136と、タイマ137とを備える。
[2. Slave unit configuration]
Next, the configuration of the slave unit 13 will be described. FIG. 4 is a block diagram of the handset 13 according to an embodiment of the present invention. The subunit | mobile_unit 13 is provided with the radio | wireless communication part 131, the power input part 132, the main memory device 133, the temporary memory device 134, the control part 135, the random number generator 136, and the timer 137.

無線通信部131は、親機11とマスター・スレーブ方式により無線通信を行う。子機13はスレーブ側であるため、通信の起点とならない。無線による通信の規格は、赤外線、無線LAN、Bluetooth(登録商標)、光通信等、如何なるものであってもよい。   The wireless communication unit 131 performs wireless communication with the parent device 11 by a master / slave method. Since the subunit | mobile_unit 13 is a slave side, it does not become a starting point of communication. The wireless communication standard may be any of infrared, wireless LAN, Bluetooth (registered trademark), optical communication, and the like.

電源入力部132は、強電電源14からの電源を子機13に供給し、子機13を起動及び動作させる。子機13は親機11から無線通信部131を介して起動命令信号を受信すると、電源入力部132により起動する。ここで子機13の起動とは、低電力消費状態(スリープ状態)から通常電力消費状態に移行することを表す。スリープ状態において子機13は、起動命令信号を受信可能なように構成されている。   The power input unit 132 supplies the power from the high-voltage power source 14 to the slave unit 13 and activates and operates the slave unit 13. When the slave unit 13 receives the activation command signal from the master unit 11 via the wireless communication unit 131, the slave unit 13 is activated by the power input unit 132. Here, the activation of the slave unit 13 represents a transition from the low power consumption state (sleep state) to the normal power consumption state. In the sleep state, the slave unit 13 is configured to be able to receive an activation command signal.

主記憶装置133は、ハードディスク、フラッシュメモリ等により構成し、子機13に係る各種情報を記憶する。例えば主記憶装置133は、スレーブアドレス情報を記憶する。スレーブアドレス情報とは、自機の通信用のアドレスを示す情報である。主記憶装置133にスレーブアドレス情報が記憶されている場合、既に子機13にアドレスが設定されているため、さらなるアドレス設定は不要である。この場合、子機13は、当該スレーブアドレス情報により示されるアドレスにより、通信を行う。一方で主記憶装置133にスレーブアドレス情報が記憶されていない場合、子機13のアドレスを設定する必要がある。   The main storage device 133 is constituted by a hard disk, a flash memory, or the like, and stores various information related to the slave unit 13. For example, the main storage device 133 stores slave address information. Slave address information is information indicating an address for communication of the own device. When slave address information is stored in the main storage device 133, since an address has already been set in the slave unit 13, no further address setting is required. In this case, the slave unit 13 performs communication using the address indicated by the slave address information. On the other hand, when slave address information is not stored in the main storage device 133, it is necessary to set the address of the slave unit 13.

一時記憶装置134は、例えばRAM(Random Access Memory)であり制御部135による演算のために必要な情報を一時的に記憶する。例えば一時記憶装置134は、乱数発生器136が発生させた乱数を記憶する。   The temporary storage device 134 is, for example, a RAM (Random Access Memory), and temporarily stores information necessary for calculation by the control unit 135. For example, the temporary storage device 134 stores the random number generated by the random number generator 136.

制御部135は、子機13に関する各種制御を行う。具体的には制御部135は、電源入力部132による子機13への電源供給及び起動後、主記憶装置133にスレーブアドレス情報が記憶されているか否かを判定する。スレーブアドレス情報が記憶されている場合、既にアドレス設定は完了しているため、設定されているアドレスにより親機11と無線通信を行う。   The control unit 135 performs various controls related to the slave unit 13. Specifically, the control unit 135 determines whether or not slave address information is stored in the main storage device 133 after the power input unit 132 supplies power to the slave unit 13 and starts up. If the slave address information is stored, the address setting has already been completed, and wireless communication is performed with the parent device 11 using the set address.

一方、主記憶装置133にスレーブアドレス情報が記憶されていない場合、制御部135は、点呼準備信号を親機11から無線通信部131を介して受信したか否かを判定する。点呼準備信号を受信していない場合、制御部135は、点呼準備信号を受信するまで待機する。   On the other hand, when slave address information is not stored in the main storage device 133, the control unit 135 determines whether or not a call preparation signal is received from the base unit 11 via the wireless communication unit 131. When the call preparation signal is not received, the control unit 135 stands by until the call preparation signal is received.

子機13が点呼準備信号を受信した場合、制御部135は、乱数発生器136により、乱数を発生させる。乱数発生器136は、乱数Nを発生させる。ここで乱数Nは、1〜Mの任意の整数である。制御部135は、乱数Nを一時記憶装置134に記憶する。   When the handset 13 receives the call preparation signal, the control unit 135 causes the random number generator 136 to generate a random number. The random number generator 136 generates a random number N. Here, the random number N is an arbitrary integer from 1 to M. The control unit 135 stores the random number N in the temporary storage device 134.

また制御部135は、子機13が無線通信部131を介して点呼信号を受信したか否かを判定する。子機13が点呼信号を受信した場合、制御部135は、点呼応答信号を応答する応答時間帯を決定する。具体的には制御部135は、タイマ137により点呼信号の受信開始から起算した経過時間を計測し、応答時間帯の始期((T/M)×(N−1))を経過したか否かを判定する。当該始期を経過していない場合、始期まで待機する。当該始期を経過した場合、制御部135は、無線通信部131を介して点呼応答信号を送信する。   In addition, the control unit 135 determines whether or not the handset 13 has received a call signal via the wireless communication unit 131. When the handset 13 receives the call signal, the control unit 135 determines a response time zone for responding to the call response signal. Specifically, the control unit 135 measures the elapsed time calculated from the start of receiving the call signal by the timer 137, and whether or not the start time of the response time zone ((T / M) × (N−1)) has elapsed. Determine. If the start time has not passed, the system waits until the start time. When the start period has elapsed, the control unit 135 transmits a call response signal via the wireless communication unit 131.

点呼応答信号を送信開始後、制御部135はさらに、タイマ137により点呼信号の受信開始から起算した経過時間を計測し、応答時間帯の終期((T/M)×N)を経過したか否かを判定する。当該終期を経過していない場合、終期経過まで点呼応答信号を送信し続ける。当該終期を経過した場合、制御部135は、点呼応答信号の送信を終了する。   After starting the transmission of the call response signal, the control unit 135 further measures the elapsed time calculated from the start of the reception of the call signal by the timer 137, and whether or not the end of the response time zone ((T / M) × N) has elapsed. Determine whether. If the end period has not elapsed, the call response signal continues to be transmitted until the end period has elapsed. When the end period has elapsed, the control unit 135 ends the transmission of the call response signal.

また制御部135は、点呼応答信号の送信を終了した後、点呼完了信号の受信を待機する。点呼応答信号を受信した場合、制御部135は、主記憶装置133に乱数Nをスレーブアドレス情報として記憶する。すなわち子機13は、乱数Nを自端末のアドレスとして決定し、親機11との無線通信に使用する。
[3.親機の動作]
次に、本発明の一実施形態に係るシステム1の親機11の動作について、図5に示すフローチャートによりその動作を説明する。
The control unit 135 waits for reception of a call completion signal after completing transmission of the call response signal. When the call response signal is received, the control unit 135 stores the random number N as slave address information in the main storage device 133. That is, the slave unit 13 determines the random number N as the address of its own terminal and uses it for wireless communication with the master unit 11.
[3. Operation of main unit]
Next, the operation of the base unit 11 of the system 1 according to the embodiment of the present invention will be described with reference to the flowchart shown in FIG.

はじめに電源入力部112による親機11への電源供給及び起動後、無線通信部111を介して起動命令信号を各子機13に送信する(ステップS101)。   First, after the power supply unit 112 supplies power to the base unit 11 and starts up, a start command signal is transmitted to each handset 13 via the wireless communication unit 111 (step S101).

次に制御部115は、起動命令信号を送信開始後にスレーブ起動時間が経過したかを、タイマ116により判定する。スレーブ起動時間が経過していない場合(ステップS102:いいえ)、制御部115は、スレーブ起動時間の経過を待機する。スレーブ起動時間が経過している場合(ステップS102:はい)、制御部115は、主記憶装置113にスレーブアドレス設定情報が記憶されているか否かを判定する(ステップS103)。主記憶装置113にスレーブアドレス設定情報が記憶されている場合(ステップS103:はい)、既にアドレス設定は完了しているため、設定されているアドレスにより各子機13と無線通信を行う。一方、主記憶装置113にスレーブアドレス設定情報が記憶されていない場合(ステップS103:いいえ)、制御部115は、無線通信部111を介して、全ての子機13に点呼準備信号を送信する(ステップS104)。   Next, the control unit 115 uses the timer 116 to determine whether the slave activation time has elapsed after starting the transmission of the activation command signal. When the slave activation time has not elapsed (step S102: No), the control unit 115 waits for the slave activation time to elapse. When the slave activation time has elapsed (step S102: Yes), the control unit 115 determines whether slave address setting information is stored in the main storage device 113 (step S103). When slave address setting information is stored in the main storage device 113 (step S103: Yes), since address setting has already been completed, wireless communication is performed with each slave unit 13 using the set address. On the other hand, when slave address setting information is not stored in the main storage device 113 (step S103: No), the control unit 115 transmits a call preparation signal to all the slave units 13 via the wireless communication unit 111 (step S103: NO). Step S104).

続いて制御部115は、点呼準備信号を送信開始後に点呼準備時間が経過したかタイマ116により判定する(ステップS105)。点呼準備時間が経過していない場合(ステップS105:いいえ)、制御部115は、点呼準備時間の経過を待機する。点呼準備時間が経過している場合(ステップS105:はい)、制御部115は、無線通信部111を介して各子機13に点呼信号を送信する(ステップS106)。   Subsequently, the control unit 115 determines whether or not the call preparation time has elapsed after the start of transmission of the call preparation signal by the timer 116 (step S105). When the call preparation time has not elapsed (step S105: No), the control unit 115 waits for the call preparation time to elapse. When the call preparation time has elapsed (step S105: Yes), the control unit 115 transmits a call signal to each slave unit 13 via the wireless communication unit 111 (step S106).

制御部115は、点呼信号を送信開始後にタイマ116及び点呼用タイマ117による時間計測を0からスタートさせる。続いて制御部115は、子機13から点呼応答信号を受信したか否かを判定する(ステップS107)。子機13から点呼応答信号を受信していない場合、点呼用タイマ117により応答時間帯の時間長(T/M)が経過したかを判定する(ステップS108)。応答時間帯の時間長を経過していた場合、後述するステップS111に進む。応答時間帯の時間長を経過していない場合、ステップS107に戻る。   The control unit 115 starts the time measurement by the timer 116 and the call timer 117 from 0 after starting the transmission of the call signal. Subsequently, the control unit 115 determines whether or not a call response signal has been received from the handset 13 (step S107). When the call response signal is not received from the handset 13, it is determined by the call timer 117 whether the time length (T / M) of the response time period has elapsed (step S108). If the time length of the response time zone has elapsed, the process proceeds to step S111 described later. When the time length of the response time zone has not elapsed, the process returns to step S107.

子機13から点呼応答信号を受信した場合(ステップS107:はい)、制御部115は、点呼応答カウンタに1を加算する(ステップS109)。その後制御部115は、応答時間帯の時間長(T/M)が経過するまで待機をする(ステップS110)。当該時間長を経過した場合、制御部115は点呼用タイマ117をリセットし、時間計測を0から再スタートさせる(ステップS111)。続いて制御部115は、タイマ116により点呼時間が経過しているか否かを判定する(ステップS112)。点呼時間が経過していない場合、ステップS107に戻る。   When the call response signal is received from the handset 13 (step S107: Yes), the control unit 115 adds 1 to the call response counter (step S109). After that, the control unit 115 stands by until the time length (T / M) of the response time period elapses (step S110). When the time length has elapsed, the control unit 115 resets the call timer 117 and restarts time measurement from 0 (step S111). Subsequently, the control unit 115 determines whether or not the call time has elapsed by the timer 116 (step S112). If the call time has not elapsed, the process returns to step S107.

ステップS112で点呼時間が経過していると判定された場合、制御部115は、点呼応答カウンタの値が、主記憶装置113に記憶されている子機13の総数と一致するか否かを判定する(ステップS113)。一致する場合、制御部115は、無線通信部111を介して各子機13に点呼完了信号を送信する(ステップS114)。制御部115は、点呼完了信号を送信後、点呼完了時間の経過を待機し(ステップS115)、主記憶装置113にスレーブアドレス設定情報を記憶する(ステップS116)。そしてアドレス設定に係る処理が終了する。   When it is determined in step S112 that the call time has elapsed, the control unit 115 determines whether or not the value of the call response counter matches the total number of handset devices 13 stored in the main storage device 113. (Step S113). If they match, the control unit 115 transmits a call completion signal to each slave unit 13 via the wireless communication unit 111 (step S114). After transmitting the call completion signal, the controller 115 waits for the call completion time to elapse (step S115), and stores the slave address setting information in the main storage device 113 (step S116). Then, the processing related to address setting ends.

[4.子機の動作]
次に、本発明の一実施形態に係るシステム1の子機13の動作について、図6に示すフローチャートによりその動作を説明する。はじめに子機13の制御部135は、親機11から無線通信部131を介して起動命令信号を受信すると自端末を起動する。
[4. Operation of slave unit]
Next, the operation of the slave unit 13 of the system 1 according to the embodiment of the present invention will be described with reference to the flowchart shown in FIG. First, the control unit 135 of the child device 13 activates its own terminal when receiving the activation command signal from the parent device 11 via the wireless communication unit 131.

子機13が起動後、制御部135は、主記憶装置133にスレーブアドレス情報が記憶されているか否かを判定する(ステップS201)。スレーブアドレス情報が記憶されている場合、既にアドレス設定は完了しているため、設定されているアドレスにより親機11と無線通信を行う。   After the child device 13 is activated, the control unit 135 determines whether slave address information is stored in the main storage device 133 (step S201). If the slave address information is stored, the address setting has already been completed, and wireless communication is performed with the parent device 11 using the set address.

主記憶装置133にスレーブアドレス情報が記憶されていない場合、制御部135は、点呼準備信号を親機11から無線通信部131を介して受信したか否かを判定する(ステップS202)。点呼準備信号を受信していない場合、制御部135は、点呼準備信号を受信するまで待機する(ステップS202:いいえ)。   If the slave address information is not stored in the main storage device 133, the control unit 135 determines whether or not a call preparation signal has been received from the parent device 11 via the wireless communication unit 131 (step S202). When the call preparation signal is not received, the control unit 135 waits until the call preparation signal is received (step S202: No).

子機13が点呼準備信号を受信した場合(ステップS202:はい)、制御部135は、乱数発生器136により、乱数を発生させる。乱数発生器136は、乱数Nを発生させる。制御部135は、乱数Nを一時記憶装置134に記憶する(ステップS203)。   When the handset 13 receives the call preparation signal (step S202: Yes), the control unit 135 causes the random number generator 136 to generate a random number. The random number generator 136 generates a random number N. The control unit 135 stores the random number N in the temporary storage device 134 (step S203).

続いて制御部135は、子機13が無線通信部131を介して点呼信号を受信したか否かを判定する(ステップS204)。点呼信号を受信していない場合、受信するまで待機する(ステップS204:いいえ)。子機13が点呼信号を受信した場合、制御部135は、タイマ137により点呼信号の受信開始から経過した時間を計測し、応答時間帯の始期((T/M)×(N−1))を経過したか否かを判定する(ステップS205)。当該始期を経過していない場合、始期の経過まで待機する(ステップS205:いいえ)。当該始期を経過した場合、制御部135は、無線通信部131を介して点呼応答信号を送信する(ステップS206)。   Subsequently, the control unit 135 determines whether or not the handset 13 has received a call signal via the wireless communication unit 131 (step S204). If the call signal has not been received, the process waits until it is received (step S204: No). When the handset 13 receives the call signal, the control unit 135 measures the time elapsed from the start of receiving the call signal by the timer 137 and starts the response time zone ((T / M) × (N−1)). It is determined whether or not elapses (step S205). If the start period has not elapsed, the process waits until the start period has elapsed (step S205: No). When the start period has passed, the control unit 135 transmits a call response signal via the wireless communication unit 131 (step S206).

点呼応答信号を送信開始後、制御部135はさらに、タイマ137により点呼信号の受信開始から経過した時間を計測し、応答時間帯の終期((T/M)×N)を経過したか否かを判定する(ステップS207)。当該終期を経過していない場合、ステップS206に進んで、時間経過まで点呼応答信号を送信し続ける。当該終期を経過した場合、制御部135は、点呼応答信号の送信を終了し(ステップS207:はい)、ステップS208に進む。   After starting the transmission of the call response signal, the control unit 135 further measures the time elapsed from the start of reception of the call signal by the timer 137, and whether or not the end of the response time zone ((T / M) × N) has elapsed. Is determined (step S207). If the end period has not elapsed, the process proceeds to step S206, and the call response signal is continuously transmitted until the time elapses. When the end period has passed, the control unit 135 ends the transmission of the call response signal (step S207: Yes), and proceeds to step S208.

点呼応答信号の送信を終了した後、制御部135は、点呼完了信号の受信を待機する(ステップS208)。点呼応答信号を受信した場合、制御部135は、主記憶装置133に乱数Nをスレーブアドレス情報として記憶する(ステップS209)。子機13は、乱数Nを自端末のアドレスとして決定し、以後の親機11との通信に使用する。このようにして親機11及び子機13間の通信で用いられるアドレスが設定される。   After completing the transmission of the call response signal, the control unit 135 waits for reception of a call completion signal (step S208). When receiving the call response signal, the control unit 135 stores the random number N as slave address information in the main storage device 133 (step S209). The subunit | mobile_unit 13 determines the random number N as an address of a self-terminal, and uses it for communication with the main | base station 11 after that. In this way, an address used for communication between the parent device 11 and the child device 13 is set.

[5.本システムの動作]
次に、本システムについて、図7に示すアドレス設定のタイミングチャートによりその動作を説明する。図7(a)〜(c)は、それぞれ親機11の電源、送信データ、及び受信データを示す。図7(d)〜(f)は、それぞれ子機13の電源、送信データ、及び受信データを示す。
[5. Operation of this system]
Next, the operation of this system will be described with reference to the address setting timing chart shown in FIG. FIGS. 7A to 7C show the power supply, transmission data, and reception data of the base unit 11, respectively. 7D to 7F show the power supply, transmission data, and reception data of the slave unit 13, respectively.

図7(a)及び(b)に示すように、親機11の起動後、親機11は、起動命令信号を各子機13に送信し、それに続いて点呼準備信号を各子機13に送信する。各子機13は、起動命令信号を受信して起動し、点呼準備信号を受信する(図7(d)及び(f))。続いて親機11は、点呼信号を各子機13に送信し、かつ各子機13からの点呼応答信号をそれぞれ所定の応答時間帯に受信する。各子機13は、乱数発生器136により発生された乱数Nに対応する応答時間帯に、点呼応答信号を送信する。例えば図7の子機13の乱数発生器136は、乱数として3を発生しており、子機13は、乱数3に対応する応答時間帯(RT)に点呼応答信号を送信し(図7(e))、親機11は、当該信号を受信している(図7(c))。なお図7(c)における各点呼応答信号に付されている番号は、点呼応答信号の受信回数(すなわち点呼応答カウンタの値)を表す。点呼信号の送信後、親機11は、点呼完了信号を各子機13に送信する。 As shown in FIGS. 7A and 7B, after the master unit 11 is activated, the master unit 11 transmits an activation command signal to each slave unit 13, and subsequently sends a call preparation signal to each slave unit 13. Send. Each cordless handset 13 is activated by receiving the activation command signal, and receives a call preparation signal (FIGS. 7D and 7F). Subsequently, base unit 11 transmits a call signal to each slave unit 13 and receives a call response signal from each slave unit 13 in a predetermined response time zone. Each slave unit 13 transmits a call response signal in a response time zone corresponding to the random number N generated by the random number generator 136. For example, the random number generator 136 of the handset 13 in FIG. 7 generates 3 as a random number, and the handset 13 transmits a call response signal in a response time zone (RT 3 ) corresponding to the random number 3 (FIG. 7). (E)) The master unit 11 receives the signal (FIG. 7C). The number assigned to each call response signal in FIG. 7C represents the number of times the call response signal is received (that is, the value of the call response counter). After transmitting the call signal, base unit 11 transmits a call completion signal to each handset 13.

このように本発明によれば、親機11による点呼準備信号に基づき各子機13がそれぞれ乱数を発生し、当該乱数に応じた応答時間帯に点呼応答信号を送信し、点呼応答信号の受信回数と子機13の総数とが同一である場合に当該乱数を各子機のアドレスとして決定するため、マスター・スレーブ通信を行う親機及び複数の子機においても、子機13のアドレスの重複を回避することができる。また、各子機13は本システムによりアドレスが自動的に設定されるため、各子機13に予め別のアドレスを設定するような調整をする必要が無い。そのため全く同じ構成で子機13に係るIC及び通信回路を製造できるため、製造コストを低減することができる。   As described above, according to the present invention, each handset 13 generates a random number based on the call preparation signal from the base unit 11, transmits the call response signal in the response time zone corresponding to the random number, and receives the call response signal. When the number of times and the total number of slave units 13 are the same, the random number is determined as the address of each slave unit. Therefore, even in the master unit and the plurality of slave units that perform master-slave communication, duplication of addresses of the slave units 13 Can be avoided. In addition, since the address of each slave unit 13 is automatically set by the present system, it is not necessary to make an adjustment to set another address in advance in each slave unit 13. Therefore, since the IC and the communication circuit related to the slave unit 13 can be manufactured with exactly the same configuration, the manufacturing cost can be reduced.

なお、本実施形態においては、点呼応答カウンタが主記憶装置113に記憶されるものとして説明したがこれに限られず、一時記憶装置114に記憶されるようにしてもよい。   In the present embodiment, the call response counter is described as being stored in the main storage device 113, but the present invention is not limited thereto, and may be stored in the temporary storage device 114.

なお、本実施形態においては、親機11が、タイマ116及び点呼用タイマ117の2つのタイマを有するものとして説明したがこれに限られず、親機11はタイマ116のみ有する構成であってもよい。この場合、親機11の制御部115は、点呼信号の送信開始からの経過時間に基づきステップS109における各応答時間の時間長の経過を判定する。   In the present embodiment, the master unit 11 has been described as having two timers, the timer 116 and the call timer 117. However, the present invention is not limited to this, and the master unit 11 may have only the timer 116. . In this case, control unit 115 of base unit 11 determines the elapse of the length of each response time in step S109 based on the elapsed time from the start of transmission of the call signal.

本発明を諸図面や実施例に基づき説明してきたが、当業者であれば本開示に基づき種々の変形や修正を行うことが容易であることに注意されたい。従って、これらの変形や修正は本発明の範囲に含まれることに留意されたい。例えば、各手段、各ステップ等に含まれる機能等は論理的に矛盾しないように再配置可能であり、複数の手段やステップ等を1つに組み合わせたり、或いは分割したりすることが可能である。   Although the present invention has been described based on the drawings and examples, it should be noted that those skilled in the art can easily make various modifications and corrections based on the present disclosure. Therefore, it should be noted that these variations and modifications are included in the scope of the present invention. For example, the functions included in each means, each step, etc. can be rearranged so that there is no logical contradiction, and a plurality of means, steps, etc. can be combined or divided into one. .

1 システム
11 親機
12 弱電電源
13 子機
14 強電電源
111 無線通信部
112 電源入力部
113 主記憶装置
114 一時記憶装置
115 制御部
116 タイマ
117 点呼用タイマ
131 無線通信部
132 電源入力部
133 主記憶装置
134 一時記憶装置
135 制御部
136 乱数発生器
137 タイマ
DESCRIPTION OF SYMBOLS 1 System 11 Main unit 12 Weak power source 13 Slave unit 14 High power source 111 Wireless communication unit 112 Power input unit 113 Main storage device 114 Temporary storage device 115 Control unit 116 Timer 117 Point call timer 131 Wireless communication unit 132 Power input unit 133 Main memory Device 134 Temporary storage device 135 Control unit 136 Random number generator 137 Timer

Claims (4)

親機と複数の子機とが同一周波数帯でマスター・スレーブ通信を行うシステムにおけるアドレス設定方法であって、
前記親機が、アドレス設定開始信号を前記複数の子機に送信するステップと、
各子機が、前記アドレス設定開始信号を受信した場合、乱数を発生して前記乱数に応じた応答時間帯に前記親機に点呼応答信号を送信するステップと、
前記親機が、前記点呼応答信号を受信した受信回数をカウントし、前記受信回数と予め記憶している子機総数とが同一であると判定した場合、アドレス設定完了信号を前記複数の子機に送信し、各子機は、前記アドレス設定完了信号を受信した場合、前記乱数を自端末のアドレスとして決定するステップと、
前記親機が、前記受信回数と前記子機総数とが同一でないと判定した場合、前記受信回数をリセットし、前記アドレス設定開始信号を再送信するステップと、
を含むアドレス設定方法。
An address setting method in a system in which a master unit and a plurality of slave units perform master / slave communication in the same frequency band,
The master unit transmits an address setting start signal to the plurality of slave units;
When each slave unit receives the address setting start signal, generating a random number and transmitting a call response signal to the master unit in a response time zone corresponding to the random number;
When the master unit counts the number of receptions of the call response signal and determines that the number of receptions and the total number of slave units stored in advance are the same, an address setting completion signal is sent to the plurality of slave units. Each slave unit, when receiving the address setting completion signal, determining the random number as the address of its own terminal;
If the base unit determines that the reception count and the total number of slave units are not the same, reset the reception count, and retransmit the address setting start signal;
Address setting method including
前記親機はさらに、前記受信回数と、予め記憶している子機総数とが同一であると判定した場合、スレーブアドレス設定情報を記憶し、
前記親機は、自端末の起動後に前記スレーブアドレス設定情報が記憶されているか否かを判定し、前記アドレス設定情報が記憶されていると判定した場合、前記アドレス設定開始信号を送信しないことを特徴とする、請求項1に記載のアドレス設定方法。
The master unit further stores slave address setting information when it is determined that the number of receptions and the total number of slave units stored in advance are the same,
The base unit determines whether or not the slave address setting information is stored after starting its own terminal, and when determining that the address setting information is stored, does not transmit the address setting start signal The address setting method according to claim 1, wherein the address setting method is characterized by:
前記親機の動作電圧は、前記複数の子機の動作電圧と異なり、前記複数の子機にはバッテリーが接続され、前記親機は、前記マスター・スレーブ通信により前記バッテリーを制御することを特徴とする、請求項1又は2に記載のアドレス設定方法。   The operating voltage of the master unit is different from the operating voltage of the plurality of slave units, a battery is connected to the plurality of slave units, and the master unit controls the battery by the master-slave communication. The address setting method according to claim 1 or 2. 親機と複数の子機とが同一周波数帯でマスター・スレーブ通信を行うシステムであって、
前記親機が、アドレス設定開始信号を前記複数の子機に送信し、
各子機が、前記アドレス設定開始信号を受信した場合、乱数を発生して前記乱数に応じた応答時間帯に前記親機に点呼応答信号を送信し、
前記親機が、前記点呼応答信号を受信した受信回数をカウントし、前記受信回数と予め記憶している子機総数とが同一であると判定した場合、アドレス設定完了信号を前記複数の子機に送信し、各子機は、前記アドレス設定完了信号を受信した場合、前記乱数を自端末のアドレスとして決定し、
前記親機が、前記受信回数と前記子機総数とが同一でないと判定した場合、前記受信回数をリセットし、前記アドレス設定開始信号を再送信することを特徴とするシステム。
A system in which a master unit and multiple slave units perform master / slave communication in the same frequency band,
The master unit transmits an address setting start signal to the plurality of slave units,
When each slave unit receives the address setting start signal, it generates a random number and transmits a call response signal to the master unit in a response time zone according to the random number,
When the master unit counts the number of receptions of the call response signal and determines that the number of receptions and the total number of slave units stored in advance are the same, an address setting completion signal is sent to the plurality of slave units. Each slave unit receives the address setting completion signal, determines the random number as the address of its own terminal,
When the base unit determines that the reception count and the total number of slave units are not the same, the system resets the reception count and retransmits the address setting start signal.
JP2014056938A 2014-03-19 2014-03-19 address setting method and system Pending JP2015179990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014056938A JP2015179990A (en) 2014-03-19 2014-03-19 address setting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014056938A JP2015179990A (en) 2014-03-19 2014-03-19 address setting method and system

Publications (1)

Publication Number Publication Date
JP2015179990A true JP2015179990A (en) 2015-10-08

Family

ID=54263749

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014056938A Pending JP2015179990A (en) 2014-03-19 2014-03-19 address setting method and system

Country Status (1)

Country Link
JP (1) JP2015179990A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107781949A (en) * 2017-10-13 2018-03-09 青岛海信日立空调系统有限公司 Air cooling module unit extended method and air cooling module unit
WO2019202667A1 (en) * 2018-04-17 2019-10-24 株式会社エニイワイヤ Address-setting method of control-monitor signal transmission system
WO2019244332A1 (en) * 2018-06-22 2019-12-26 株式会社エニイワイヤ Method for confirming survival of slave station in control/monitor signal transmission system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107781949A (en) * 2017-10-13 2018-03-09 青岛海信日立空调系统有限公司 Air cooling module unit extended method and air cooling module unit
WO2019202667A1 (en) * 2018-04-17 2019-10-24 株式会社エニイワイヤ Address-setting method of control-monitor signal transmission system
WO2019244332A1 (en) * 2018-06-22 2019-12-26 株式会社エニイワイヤ Method for confirming survival of slave station in control/monitor signal transmission system

Similar Documents

Publication Publication Date Title
US10911930B2 (en) Wireless system, wireless device, non-transitory computer-readable storage medium having stored therein communication program, and communication method
US10904832B2 (en) Wireless system, wireless device, non-transitory computer-readable storage medium having stored therein communication program, and communication method
US10397868B2 (en) Wireless system, wireless device, non-transitory computer-readable storage medium having stored therein communication program, and communication method
WO2018088375A1 (en) Wireless transmitter receiver and vehicle
JP2015179990A (en) address setting method and system
JP2012248939A (en) Radio communication device, radio communication system, radio communication control method and program
EP3113374A1 (en) Communication device and communication system using same
JP2016218660A (en) Sensor information transmission device, sensor information transmission system, sensor information transmission method, and sensor information transmission program
US20220093068A1 (en) Wireless communication device, electronic device, and wireless communication method
JP2011150492A (en) Radio communication system
JP2014190568A (en) Air conditioning system
JP2010206631A (en) Base station apparatus, terminal apparatus, and communication method
JP6206717B2 (en) Communication system and heat ray sensor terminal used therefor
CN110971328B (en) Clock and information transmission system
JP6352672B2 (en) Control device and communication system
JP6519710B2 (en) Wireless communication system
JP2017010257A (en) Fire alarm device and fire alarm system
JP2008131467A (en) Communication equipment
JP2006033070A (en) Data transmission control method
JP2020010288A (en) Device, system and method for radio communication, and program
JP6219782B2 (en) Wireless relay device
JP6282867B2 (en) Wireless relay slave unit, wireless information collection system
JP2015104026A (en) Wireless communication system
JP2011205591A (en) Radio communication system
JP2014021919A (en) Av equipment