以下所說明之實施形態及變化例僅係本發明之一例,本發明並不限定於實施形態及變化例,即便為該實施形態及變化例以外,只要不脫離本發明之技術思想之範圍,能夠根據設計等進行各種變更。 (實施形態) (1)概要 本實施形態之控制系統使用於例如辦公大樓、店鋪、醫院、學校、或工廠等之設施,係用於控制設置於設施之照明器具等之控制對象之系統。在本實施形態中,以控制系統10係用於控制照明器具之照明控制系統之情形為例進行說明。 控制系統10如圖1及圖2所示般,具備:照明控制器1(控制單元)、及無線單元2。照明控制器1構成為能夠與無線單元2通信。無線單元2構成為能夠與複數台(在圖1及圖2之例中為n台)之終端31、32、…3n通信(「n」為整數)。以下,在不特別區分複數台終端31、32、…3n時,將複數台終端31、32、…3n之各者稱為「終端3」。在本實施形態中,以複數台終端3不包含於控制系統10之構成要件而進行說明。 複數台終端3分成控制終端與監視終端此2類。作為控制終端之終端3係與作為控制對象之照明器具構成為一體。或,作為控制終端之終端3亦可與作為控制對象之照明器具為個別構體,該情形下,作為控制終端之終端3係與照明器具、或設置於針對照明器具之饋電路上之繼電器電性連接。作為控制終端之終端3具有進行控制對象之機器之控制之功能。例如,作為控制終端之終端3具有遵照自無線單元2發送之訊息(message)進行照明器具之開/關、調光、或調色等之控制之功能。此處所謂之「訊息」係遵照特定之形式而記述的在裝置間被發送接收之一個整體之資料。作為監視終端之終端3係由例如安裝於牆壁等而受理使用者之操作之開關裝置、或各種感測器裝置而構成。此處所謂之感測器裝置係例如人體感測器、照度感測器、或溫度感測器等。作為監視終端之終端3在例如藉由開關檢測到使用者之操作、或藉由感測器檢測到人之存在等發生特定之事態時,會對無線單元2發送訊息。 在各終端3設定有固有之位址。照明控制器1使用該等位址個別地識別終端3。在本實施形態中,以在1台終端3設定有1個位址之情形進行說明。惟,並不限定於此構成,當在1個監視終端具備複數個開關或複數個感測器時,可分別在複數個開關或複數個感測器設定有固有之位址。相同地,當在1個控制終端連接有複數個照明器具時,可分別在複數個照明器具設定有固有之位址。 無線單元2具有在照明控制器1與複數台終端3之間中繼信號之功能。例如,在訊息被從照明控制器1發送至終端3時,無線單元2接受來自照明控制器1之訊息,並對終端3發送訊息。又,在訊息被自終端3發送至照明控制器1時,無線單元2接收來自終端3之訊息並暫時記憶。無線單元2根據來自照明控制器1之請求而將所記憶之訊息發送至照明控制器1。當在監視終端發生特定之事態,亦即在監視終端檢測到特定之事態時,監視用訊息(以下亦稱為「監視訊息」)被從監視終端發送至無線單元2。接收到監視訊息之無線單元2針對位址與監視訊息之發送源(監視終端)對應之控制終端發送控制用之訊息(以下亦稱為「控制訊息」)。藉此,作為控制終端之終端3遵照控制訊息進行作為控制對象之照明器具之控制。 在本實施形態中,複數台終端3之位址之設定作業係使用專用之位址設定器而進行。複數台終端3之各者具有與位址設定器之通信功能,各個位址係由位址設定器輸入。 再者,在圖2之例中,照明控制器1構成為能夠與集中控制器4通信。集中控制器4構成為除了與照明控制器1通信以外,還能夠與例如空調控制器5通信。空調控制器5係與控制系統10不同地構成為用於控制空調機器(空氣調節機)之空調控制系統。集中控制器4係照明控制器1及空調控制器5之上位裝置,集中管理包含控制系統10之照明控制系統、及空調控制系統。亦即,利用集中控制器4能夠控制設置於設施之照明器具及空調機器之二者。 (2)構成 其次,針對本實施形態之控制系統10之構成參照圖1詳細地進行說明。 如上述所述般,控制系統10具備照明控制器1、及無線單元2。 照明控制器1藉由2線式信號線100與無線單元2有線連接。照明控制器1構成為能夠在與無線單元2之間藉由有線通信雙方向地發送接收訊息。在本實施形態中,在照明控制器1與無線單元2之間,例如藉由包含雙極性(±24 V)之時分多工信號之傳送信號進行訊息之發送接收。具體而言,照明控制器1將含有訊息之傳送信號輸出至信號線100。藉此,訊息被從照明控制器1發送至無線單元2。又,無線單元2在傳送信號之回送期間將訊息作為電流模式信號而回送。藉此,訊息被自無線單元2發送至照明控制器1。此處所謂之「電流模式信號」係以藉由切換開放信號線100之線間之狀態、與在線間連接低阻抗元件之狀態而產生之電流變化來表示之信號。 無線單元2構成為能夠在與複數台終端3之間藉由無線通信雙方向地發送接收訊息。亦即,無線單元2在與照明控制器1之間藉由有線通信發送接收訊息,在與終端3之間藉由無線通信發送接收訊息。藉此,無線單元2可將從照明控制器1利用有線通信接收之訊息,利用無線通信中繼(傳送)至終端3。又,無線單元2可將從終端3利用無線通信接收之訊息,利用有線通信中繼(傳送)至照明控制器1。在本實施形態中,無線單元2與終端3之間之通信方式係例如無需許可之小功率無線(特定小功率無線)、或Wi-Fi(註冊商標)等之無線通信。針對此種小功率無線,相應於用途等而使用之頻帶及天線功率等之規格在各國受到規定。在日本規定為使用920 MHz頻帶或420 MHz頻帶之電波的小功率無線。 無線單元2具有:有線通信部21(第1通信部)、控制部22、記憶部23、及通信部24(第2通信部)。 有線通信部21係用於進行與照明控制器1之通信之通信介面,藉由信號線100與照明控制器1連接。有線通信部21在與照明控制器1之間使用傳送信號藉由有線通信雙方向地進行訊息之發送接收。 控制部22控制有線通信部21、及通信部24。控制部22係由以CPU(Central Processing Unit,中央處理單元)及記憶體為主構成之微電腦而構成。換言之,控制部22利用具有CPU及記憶體之電腦而實現,藉由CPU執行儲存於記憶體之程式,而電腦作為控制部22而發揮功能。程式在此處預先記憶於控制部22之記憶體,但亦可通過網際網路等之電氣通信線路,或通過記錄於記憶卡等之記錄媒體而被提供。 記憶部23係由例如快閃記憶體等之能夠電性改寫之非揮發性半導體記憶體而構成。記憶部23記憶自複數台終端3之各者接收之資料、及自照明控制器1接收之資料。再者,記憶部23將能夠通信之複數台終端3之位址、與識別和該位址對應之終端3係控制終端還是監視終端之資訊(類別資訊)建立對應關係並記憶。 通信部24係用於進行與無線單元2之控制下之複數台終端3之通信的通信介面。通信部24在與終端3之間藉由無線通信雙方向地進行訊息之發送接收。能夠利用通信部24通信之複數台終端3、亦即無線單元2之控制下之複數台終端3之位址係預先登錄在控制部22之記憶體等。換言之,通信部24僅能夠在與登錄有位址之終端3之間進行通信。 如上述般構成之無線單元2例如配置在設置有複數台終端3之房間之天花板等適於在與複數台終端3之間進行無線通信之位置。惟,無線單元2並不限定於與複數台終端3直接地通信之構成。例如,在與位於來自無線單元2之無線信號(電波)不能到達之位置之終端3之間,無線單元2可經由中繼器間接地通信。 其次,針對終端3之構成參照圖1進行說明。由於複數台終端31、32、…3n之基本之構成係共通的,故在此處僅針對複數台終端31、32、…3n中之1台終端31進行說明,針對其他終端32、33、…3n之構成省略說明。 終端3具有:終端側通信部301、終端側控制部302、及功能模組303。 終端側通信部301係用於進行與控制系統10(無線單元2)通信之通信介面。終端側通信部301在與無線單元2之間藉由無線通信雙方向地進行訊息之發送接收。能夠在終端側通信部301通信之無線單元2之位址預先登錄於終端側控制部302之記憶體等。換言之,終端側通信部301僅能夠在與登錄有位址之無線單元2之間進行通信。 終端側控制部302控制終端側通信部301及功能模組303。終端側控制部302係由以CPU及記憶體為主構成之微電腦而構成。換言之,終端側控制部302利用具有CPU及記憶體之電腦而實現,藉由CPU執行儲存於記憶體之程式,而電腦作為終端側控制部302發揮功能。程式在此處預先記憶於終端側控制部302之記憶體,但亦可通過網際網路等之電氣通信線路、或通過來自無線單元2之無線信號、或記錄於記憶卡等之記錄媒體而被提供。 功能模組303係實現終端3之與控制系統10(無線單元2)之通信以外之功能的模組。在終端3係控制終端之情形下,功能模組303具有進行作為控制對象之照明器具之開/關、調光、或調色等之控制的功能。在終端3係監視終端之情形下,功能模組303具有作為開關、或各種感測器之功能。亦即,終端3具有在功能模組303之功能上附加有與控制系統10之通信功能之構成。 又,無線單元2相對於1台照明控制器1可連接有複數台(參照圖3)。亦即,在圖1及圖2中係僅圖示1台無線單元2,但可在信號線100上連接有複數台無線單元2。該情形下,在複數台無線單元2之各自之控制下,設置有1台以上之終端3。 再者,雖然在圖1及圖2中省略了圖示,但於信號線100連接有有線終端。有線終端與上述終端3不同,不經由無線單元2而是針對照明控制器1由信號線100直接地連接。有線終端原則上而言採用與上述終端3相同之構成,與上述終端3相同地,分成控制終端與監視終端此2類。惟,有線終端之終端側通信部在不經由無線單元2而在與照明控制器1之間利用有線通信雙方向地進行訊息之發送接收此點上,與有線終端及上述終端3不同。在本實施形態中,在照明控制器1與有線終端之間,藉由傳送信號進行訊息之發送接收。 (3)動作 其次,針對本實施形態之控制系統10之動作進行說明。以下,針對監視終端3之狀態之監視動作(第1控制動作)、及由控制系統10控制至少1台終端3之控制動作此2個動作依序進行說明。其後,針對照明控制器1強制控制至少1台終端3之控制動作(第2控制動作)進行說明。 在以下之說明中,設想如圖3所示般,控制系統10具備複數台無線單元2之情形而說明。又,在圖3所示之例中,設為各無線單元2控制2台終端3。以下,在區別複數台無線單元2時,將複數台(作為一例設為3台)之無線單元2分別稱為「無線單元2x」、「無線單元2y」、或「無線單元2z」。又,針對無線單元2x之控制下之終端31如「終端31x」般,針對複數台無線單元2x,2y、2z之各者之控制下之終端3亦在符號之末尾附加「x」、「y」、或「z」進行說明。 又,假定照明控制器1以特定之輪詢週期Tp(第1通信週期)進行與1台無線單元2(例如無線單元2x)控制下之複數台終端3(例如終端31x)之通信。輪詢週期Tp根據能夠與照明控制器1通信之終端3之台數而設定。例如,假定照明控制器1能夠與m(「m」為1以上之整數)台終端3進行通信,針對1台終端3分配有數百毫秒之時間。該情形下,輪詢週期Tp以數「m」與針對1台終端3所分配之時間(數百毫秒)相乘而求得。在本實施形態中,將輪詢週期Tp設為最大10多秒(例如15秒)。 假定無線單元2以特定之週期Ts(第2通信週期)進行與控制下之複數台終端3之通信。在本實施形態中,輪詢週期Tp係藉由照明控制器1具有之計時器而計時,週期Ts係由無線單元2具有之計時器計時。 (3.1)監視動作 首先,針對控制系統10之監視動作進行說明。本實施形態之控制系統10藉由將請求訊息以複數台終端3為發送對象進行定期或不定期地發送,而進行監視終端3之狀態之監視動作。此處所謂之「請求訊息」係含有針對複數台終端3請求回信複數台終端3之各自之狀態之指令的訊息。又,此處所謂之「狀態」,例如若終端3為控制終端,則係各自之動作狀態,具體而言係照明器具之點亮狀態(照明器具之開/關、調光比、或色溫度等)。又,例如若終端3為監視終端,則「狀態」係各種感測器之檢測狀態(檢測結果)等。具體而言,例如若終端3為照度感測器,則「狀態」係照度感測器所檢測到之檢測範圍之照度。另外,例如若終端3為人體感測器,則「狀態」係人體感測器所檢測到之檢測範圍內之人數等。又,有將請求控制終端之終端資訊之請求訊息稱為「狀態請求訊息」,將請求監視終端之終端資訊之請求訊息稱為「檢測請求訊息」之情形。終端資訊係表示終端3之狀態之資料。 以下,針對控制系統10之監視動作使用圖4進行說明。在圖4中,將時刻t1~t8之期間設為輪詢週期Tp,將時刻t2~t11之期間設為週期Ts。又,假定終端3存在有複數台。 無線單元2之通信部24對無線單元2控制下之複數台終端3之各者發送請求訊息M1(時刻t2)。 無線單元2在請求訊息之發送後之監視期間內,以時分方式接收來自複數台終端3之應答信號M2(時刻t3)。又,在圖3中,看似無線單元2在時刻t3從全部終端3接收應答信號M2,但實際上由於係以時分方式接收來自複數台終端3之應答信號M2,故在接收信號所需之時間上具有寬度。在本實施形態之控制系統10中,由於在監視動作上無須依序存取,故可減少請求訊息之發送次數。因此,在本實施形態之控制系統10中,能夠縮短監視複數台終端3之各者之狀態所需之時間。 接收到應答信號M2之無線單元2將應答信號M2所含之表示各個終端3之狀態之資料(終端資訊)記憶於記憶部23。例如,記憶部23具有記憶控制終端之狀態之第1記憶區域、及記憶監視終端之狀態之第2記憶區域。無線單元2之控制部22將在應答信號M2之發送源係作為控制終端之終端3時該應答信號所含之表示狀態之資料(終端資訊) 在第1記憶區域與該終端3(控制終端)及有效期限Tv建立對應關係並記憶。控制部22將在應答信號M2之發送源係作為監視終端之終端3時該應答信號M2即監視訊息所含之表示狀態之資料(終端資訊)在第2記憶區域與該終端3(監視終端)及有效期限Tv建立對應關係並記憶於記憶部23。有效期限Tv係在週期Ts之期間內且為以終點為下個週期Ts之開始時點之期間。在本實施形態中,有效期限Tv設定為較輪詢週期Tp更長。例如,作為有效期限Tv設定為大於15秒之值。 有線通信部21若從照明控制器1接收含有以複數個終端3中至少1個終端3為發送對象之請求訊息M3(請求資訊),則發送針對該至少1個終端3之終端資訊且為有效期限Tv內之終端資訊(時刻t4~t7)。具體而言,無線單元2之控制部22若有線通信部21從照明控制器1接收請求訊息M3時,則從記憶部23獲得針對與請求訊息M3相應之終端3之終端資訊且為有效期限Tv內之全部終端資訊。控制部22以將所獲得之全部終端資訊發送至照明控制器1之方式控制有線通信部21。 此處,作為請求訊息M3所含之發送對象係例如終端3之位址。發送對象既可為1台終端3之位址,亦可為複數台終端3之各自之位址。控制部22在能夠與和位址對應之終端3進行通信時(於控制下存在有以位址所示之終端3時),從記憶部23獲得與位址對應之終端3之終端資訊且為有效期限Tv內之全部終端資訊。 例如,照明控制器1在時刻t4~t5中獲得針對作為控制終端之終端3之全部終端資訊,在時刻t6~t7中獲得針對作為監視終端之終端3之全部終端資訊。具體而言,無線單元2之有線通信部21從照明控制器1接收含有控制終端之位址之狀態請求訊息M31(時刻t4)。控制部22從記憶部23獲得與狀態請求訊息M31所含之位址對應之終端3(控制終端)之終端資訊。有線通信部21將含有控制部22獲得之終端資訊之應答信號M41發送至照明控制器1(時刻t5)。有線通信部21從照明控制器1接收含有監視終端之位址之檢測請求訊息M32(時刻t6)。控制部22從記憶部23獲得與檢測請求訊息M32所含之位址對應之終端3(監視終端)之終端資訊。有線通信部21將含有控制部22獲得之終端資訊之應答信號M42發送至照明控制器1(時刻t7)。 在下一個輪詢週期Tp,亦即在有效期限Tv未經過之時點(時刻t9),若有線通信部21從照明控制器1接收請求訊息M3,則對照明控制器1發送針對與請求訊息M3相應之全部終端3之終端資訊且為有效期限Tv內之終端資訊。此時,本次被發送之終端資訊係在時刻t2~t3之通信中獲得之終端資訊之內容。例如,有線通信部21在時刻t9,從照明控制器1接收含有與在時刻t4接收之狀態請求訊息M31所含之位址相同之位址的狀態請求訊息M31。此時,有線通信部21將與在時刻t5發送之終端資訊為相同內容之終端資訊發送至照明控制器1(時刻t10)。 若終端資訊之有效期限Tv過期,則無線單元2之通信部24對於無線單元2之控制下之複數台終端3之各者發送請求訊息M1(時刻t11),且從複數台終端3之各者以時分方式接收(獲得)含有新的終端資訊之請求訊息M2(時刻t12)。又,在圖3中,無線單元2看似與時刻t3相同地,在時刻t12從全部終端3接收應答信號M2,但實際上由於係以時分方式接收來自複數台終端3之應答信號M2,故在接收信號所需之時間上具有寬度。 此處,針對無線單元2之詳細之動作,使用圖5所示之流程圖進行說明。 控制部22若接收請求訊息,則判斷請求對象之終端3是否登錄於記憶部23(步驟S1)。具體而言,控制部22判斷在記憶部23中是否記憶有請求訊息所含之位址(第1標識符)。例如,控制部22判斷請求訊息所含之位址是否與在記憶部23中記憶之複數個終端3之各者之位址(第2標識符)之任一個一致。 在判斷為於記憶部23未登錄有請求對象之終端3時(步驟S1之「否」),控制部22取消請求訊息且結束處理。例如,假定來自照明控制器1之請求訊息所含之控制對象之終端3之位址係終端31x、32x之位址。該情形下,於無線單元2y登錄有終端31y、32y之位址,於無線單元2z登錄有終端31z、32z之位址,而於無線單元2y、2z未登錄有終端31x、32x之位址。因此,無線單元2y、2z取消來自照明控制器1之請求訊息。未登錄有終端31x、32x之位址之無線單元2x進行以下之處理。 在判斷為於記憶部23登錄有請求對象之終端3時(步驟S1之「是」)、控制部22判斷在記憶部23之第1記憶區域及第2記憶區域是否存在有效期限Tv內之終端資訊(步驟S2)。在不存在有效期限Tv內之終端資訊時(步驟S2之「否」),控制部22進行錯誤處理(步驟S7)。此處,錯誤處理係將例如錯誤訊息發送至照明控制器1之處理。 在判斷為存在有效期限Tv內之終端資訊時,(步驟S2之「是」),控制部22判斷請求對象之終端3是否為控制終端(步驟S3)。控制部22判斷與記憶於記憶部23之複數之位址中和請求訊息所含之位址一致之位址建立對應關係之類別資訊是否表示控制終端。 在判斷為請求對象之終端3係控制終端時(步驟S3之「是」),控制部22自記憶部23之第1記憶區域獲得與請求對象之終端3相應之終端資訊(步驟S4)。有線通信部21將在記憶部23中記憶之複數個終端資訊中與請求訊息所含之位址一致之位址所分配之終端3(控制終端)之終端資訊發送至照明控制器1。 在判斷為請求對象之終端3不是控制終端時(步驟S3之「否」),控制部22判斷請求對象之終端3是否為監視終端(步驟S5)。控制部22判斷與記憶於記憶部23之複數個位址中和請求訊息所含之位址一致之位址建立對應關係之類別資訊是否表示監視終端。 在判斷為請求對象之終端3係監視終端時(步驟S5之「是」),控制部22自記憶部23之第2記憶區域獲得與請求對象之終端3相應之終端資訊(步驟S6)。有線通信部21將在記憶部23中記憶之複數個終端資訊中與請求訊息所含之位址一致之位址所分配之終端3(監視終端)之終端資訊發送至照明控制器1。 在判斷為請求對象之終端3不是監視終端時(步驟S5之「否」),控制部22進行錯誤處理(步驟S7)。 又,作為請求訊息所含之發送對象並不限定於終端3之位址。請求訊息亦可含有識別複數個終端3中請求對象之終端3之類別之終端類別作為發送對象。此處,終端類別係表示請求對象之終端3係控制終端還是監視終端之資訊。 有線通信部21若接收含有終端類別之請求訊息,則將複數個終端3中與終端類別相應之至少1個終端3之終端資訊發送至照明控制器1。具體而言,控制部22若有線通信部21從照明控制器1接收含有表示控制終端之終端類別之請求訊息,則從記憶部23獲得複數個終端3中作為控制終端之終端3之全部之終端資訊(例如,時刻t4~t5)。又,控制部22在有線通信部21從照明控制器1接收含有表示監視終端之終端類別之請求訊息時,從記憶部23獲得複數個終端3中作為監視終端之終端3之全部之終端資訊(例如,時刻t6~t7)。控制部22以將所獲得之全部終端資訊發送至照明控制器1之方式控制有線通信部21。 又,在請求訊息中亦可包含位址、及終端類別。該情形下,例如,藉由包含表示廣播之位址作為位址、及終端類別,而無線單元2可將控制下之全部終端3中以終端類別所示之全部終端3之終端資訊發送至照明控制器1。 如圖4所示般,在時刻t11~t12中,由於在時刻t2~t3獲得之終端資訊之有效期限Tv過期,故無線單元2當在時刻t11~t12接收請求訊息時進行錯誤處理。因此,無線單元2之控制部22較佳的是在進行終端資訊之收集之期間(相當於時刻t11~t12之期間),在接收到請求訊息時,將上次獲得之終端資訊作為有效期限Tv內來處理。或者是,無線單元2將忙狀態之意旨之訊息發送至照明控制器1。 在監視動作中,無線單元2在輪詢週期Tp內在從照明控制器1接收請求訊息之前先從複數台終端3之各者獲得終端資訊並記憶。在照明控制器1請求終端資訊時,無線單元2將記憶於記憶部23之請求對象之終端3之終端資訊發送至照明控制器1。因此,由於無線單元2無需在照明控制器1之請求後將請求訊息發送至請求對象之終端3,故可抑制對於請求對象之終端3之通信量變高。總之,對於照明控制器1之請求之應答變快。 再者,由於在控制系統10中可如上述般抑制通信量變高,故照明控制器1可在輪詢週期Tp內獲得針對請求對象之全部終端3之終端資訊。 又,有效期限Tv設定為較輪詢週期Tp更長。因此,由於無線單元2無須在輪詢週期Tp內進行複數次終端資訊之更新,故可抑制在輪詢週期Tp內之與複數台終端3之通信量變高。 (3.2)控制動作(第1控制動作) 其次,針對控制系統10之控制動作進行說明。 針對無線單元2基於監視終端之終端狀態(檢測結果),控制與該監視終端對應之控制終端之動作使用圖6進行說明。在圖6中,將時刻t50~t60之期間設為輪詢週期Tp。又,監視終端及控制終端設為複數台。 無線單元2對無線單元2之控制下之複數台終端3之各者發送請求訊息M11(時刻t51)。 無線單元2在請求訊息M11之發送後之監視期間內,以時分方式接收來自複數台終端3之應答信號M21、M22(時刻t52、t53)。 接收到應答信號M21、M22之無線單元2將應答信號M21、M22所含之表示各個終端3之狀態之資料(終端資訊)記憶於記憶部23。控制部22在應答信號M21之發送源係作為控制終端之終端3時將該應答信號M21所含之表示狀態之資料(終端資訊)在第1記憶區域與該終端3(控制終端)及有效期限建立對應關係並記憶。控制部22在應答信號M22之發送源係作為監視終端之終端3時將該應答信號M22所含之表示狀態之資料(終端資訊)在第2記憶區域與該終端3(監視終端)及有效期限建立對應關係並記憶於記憶部23。 控制部22基於作為監視終端之終端3之終端資訊(檢測結果),經由通信部24控制與監視終端相應之複數台終端3(控制終端)中與監視終端相應之至少1個終端3(控制終端)。具體而言,控制部22對複數台終端3(控制終端)中之與監視終端對應之至少1個終端3(控制終端)發送包含控制內容之控制訊息M12(時刻t54)。作為控制終端之終端3遵照控制訊息M12進行作為控制對象之照明器具之控制,並將包含其結果之控制結果訊息M23發送至無線單元2(時刻t55)。無線單元2之控制部22將控制結果訊息M23所含之控制結果與控制對象之終端3之位址及控制內容建立對應關係並記憶於記憶部23。 有線通信部21從照明控制器1接收含有監視終端之位址之檢測請求訊息M33(時刻t56)。控制部22從記憶部23獲得與檢測請求訊息M33所含之位址相應之終端3(監視終端)之終端資訊。有線通信部21將含有控制部22獲得之終端資訊之應答信號M43發送至照明控制器1(時刻t57)。例如,控制部22從記憶部23獲得全部監視終端之終端資訊。而且,有線通信部21將含有全部監視終端之終端資訊之應答信號M43發送至照明控制器1。又,雖然在圖6中未圖示,但在輪詢週期Tp內,無線單元2接收狀態請求訊息,並將含有與狀態請求訊息相應之終端資訊之應答信號發送至照明控制器1。 照明控制器1基於所接收之全部監視終端之終端資訊,判斷是否存在有應該控制之控制終端。在判斷為存在有應該控制之控制終端時,照明控制器1對控制對象之控制終端以該控制終端之位址為發送對象而發送含有控制內容之控制訊息M34。 無線單元2之有線通信部21從照明控制器1接收對控制對象之控制終端發送之控制訊息M34(時刻t58)。控制部22判斷從照明控制器1接收之控制訊息M34所含之位址及控制內容之組合是否已經記憶於記憶部23。在判斷為組合已經記憶於記憶部23時,無需將控制訊息發送至控制終端,而是將含有與該組合相應之控制結果之控制結果訊息M44發送至照明控制器1(時刻t59)。 又,在本實施形態中,在控制對象之終端3(控制終端)存在有複數台時,無線單元2可個別地進行控制,亦可對於控制對象之全部終端3進行相同內容之控制。 在第1控制動作中,若無線單元2接收來自監視終端之終端資訊(檢測結果),則根據該終端資訊之內容無需經由照明控制器1而控制與監視終端相應之控制終端。其後,即便獲得了監視終端之終端資訊之照明控制器1,對與無線單元2控制之控制終端為同一控制終端發送與無線單元2進行之控制內容為同一控制內容之控制訊息,無線單元2亦取消控制訊息。亦即,當在照明控制器1發送控制訊息時控制已經被進行時,可抑制對於控制對象之全部終端3之通信量變高。進而,在照明控制器1對終端3請求控制時,在控制已經由無線單元2進行時將不再產生對控制對象之終端3之控制訊息之重新發送。亦即,照明控制器1之對終端3之控制之請求易於在輪詢週期Tp內完結。 (3.3)控制動作(第2控制動作) 此處,針對照明控制器1與監視終端之終端狀態(檢測結果)無關,而對作為控制終端之終端3進行控制之動作進行說明。該動作係在例如自照明控制器1之上位裝置接收到含有控制內容之指示時,或在照明控制器1之操作者輸入指示時進行。 在與監視終端之終端狀態(檢測結果)無關而對控制終端產生控制之請求時,照明控制器1對控制對象之控制終端以該控制終端之位址為發送對象而發送含有控制內容之控制訊息。 無線單元2之有線通信部21從照明控制器1接收針對控制對象之控制終端發送之控制訊息。控制部22判斷從照明控制器1接收之控制訊息所含之位址及控制內容之組合是否已經記憶於記憶部23。在控制部22判斷為組合未記憶於記憶部23時,將從照明控制器1接收到之控制訊息發送至控制對象之控制終端。 控制終端遵照控制訊息進行作為控制對象之照明器具之控制,且將含有其結果之控制結果資訊、及表示控制後之狀態之終端資訊(新的終端資訊)經由無線單元2發送至照明控制器1。該情形下,控制終端於在時分方式之通信中特別之上升區間、例如競爭存取(Contention Access)區間發送控制結果資訊。此處所謂之「競爭存取區間」係複數台終端3及無線單元2之任一個均可使用之區間。無線單元2將新的終端資訊記憶於記憶部23,且將控制結果資訊及新的終端資訊發送至照明控制器1。 藉此,控制系統10可即時地更新作為控制終端之終端3之狀態(終端資訊)。此時,較佳的是被即時地更新之終端資訊之有效期限Tv與更新前之有效期限Tv相同。藉此,無須變更時分方式之發送之週期。 無須將被即時地更新之終端資訊之有效期限Tv設為與更新前之有效期限Tv相同,無線單元2亦可在即時地更新終端資訊時,更新有效期限Tv。該情形下,由無線單元2保持之終端資訊之即時性變高。或者是,無線單元2雖然不即時地更新終端資訊,但可即時地更新有效期限Tv。該情形下,在對於終端資訊之資訊量而有效期限Tv之資訊量為小時,藉由僅更新有效期限Tv,而可縮短更新時間。藉此,可迅速地對應來自其他終端3之資訊之接收。 又,在本實施形態中,在控制對象之終端3(控制終端)存在有複數台時,照明控制器1可個別地進行控制,亦可對於控制對象之全部終端3進行相同內容之控制。 (變化例) 上述實施形態之構成僅為本發明之一例,本發明並不限定於上述實施形態,即便在上述實施形態以外,只要在不脫離本發明之技術思想之範圍內,可根據設計等進行各種變更。以下,列舉上述實施形態之變化例。 在上述實施形態中,照明控制器1採用將終端3之位址包含於請求訊息而作為請求訊息之發送對象之構成,但並不限定於該構成。照明控制器1亦可採用替代終端3之位址而將無線單元2之位址包含於請求訊息而作為請求訊息之發送對象之構成。該情形下,請求訊息含有終端類別。如圖3所示般在複數個無線單元2包含於控制系統10之情形下,若各無線單元2從照明控制器1接收請求訊息,則判斷發送對象是否與本機之位址一致。在不一致時,無線單元2取消請求訊息。在一致時,無線單元2從記憶部23獲得與請求訊息所含之終端類別相應之全部終端3之終端資訊。 在上述實施形態中,係針對控制系統10為照明控制系統之情形進行了例示,但不限定於該例,控制系統10可應用於各種控制對象之控制。例如,控制系統10既可為用於控制空調機器(空氣調節機)之空調控制系統,亦可為用於控制複數種控制對象(例如照明器具及空調機器)之系統。又,控制系統10並不限定於辦公大樓等之非住宅設施,亦可使用於例如獨戶住宅、或公寓大廈等之住宅。 又,在上述實施形態中,係以複數台終端3不包含於控制系統10之構成件進行了說明,但不限定於此,複數台終端3亦可包含於控制系統10之構成要件。 又,在上述實施形態中,係以照明控制器1構成為能夠與集中控制器4通信之情形為例進行了說明,但集中控制器4並非為必須之構成,而是可適當省略。 又,在上述實施形態中,係顯示照明控制器1與無線單元2之間之通信為有線通信,而無線單元2與複數台終端3之間之通信為無線通信之例,但不限定於該例。例如,照明控制器1與無線單元2之間之通信可為無線通信,且無線單元2與複數台終端3之間之通信可為有線通信。 又,在上述實施形態中,無線單元2在基於來自監視終端之檢測結果(終端資訊)控制相應之控制終端後,若從照明控制器1收到含有針對同一控制終端之同一控制內容之控制訊息則予以取消,但亦可不取消。該情形下,無線單元2在基於來自監視終端之檢測結果(終端資訊)控制相應之控制終端之後對於同一控制終端執行同一控制。 又,在上述實施形態中,係將終端資訊之有效期限Tv設定為較輪詢週期Tp更長而進行了說明,但不限定於此,有效期限Tv亦可設定為輪詢週期Tp以下。如上述般,由於有效期限Tv係在週期Ts之期間內且為以終點為下個週期Ts之開始時點之期間,故無線單元2可在輪詢週期Tp內進行複數次終端資訊之更新。因此,輪詢週期Tp內之終端資訊之即時性變高。 又,在上述實施形態中,係採用將有效期限Tv與終端資訊建立對應關係之構成,但不限定於此。亦可不將有效期限Tv與終端資訊建立對應關係。該情形下,無線單元2將暫時記憶之針對終端3之終端資訊記憶於記憶部23,直至獲得針對同一終端3之新的終端資訊為止。無線單元2若獲得針對終端3之新的終端資訊,則取消目前為止在記憶部23中記憶之針對同一終端3之終端資訊,而將所獲得之新的終端資訊記憶於記憶部23。藉此,無需將有效期限Tv建立對應關係而可將在記憶部23中記憶之終端資訊經常保持為最新之狀態。此時,未執行如圖5所示之步驟S2之處理。亦即,控制部22在判斷為登錄有請求對象之終端3時(步驟S1之「是」),獲得請求對象之終端3之終端資訊。具體而言,控制部22在對象之終端3為控制終端時,從記憶部23之第1記憶區域獲得終端資訊,在對象之終端3為監視終端時,從記憶部23之第2記憶區域獲得終端資訊。有線通信部21將相應於對象之終端3而獲得之終端資訊發送至照明控制器1。 又,在上述實施形態中,無線單元2係將控制訊息M12之發送對象作為控制終端,但控制訊息M12之發送對象亦可為監視終端。因此,無線單元2可切換監視終端之動作之開關。 又,在上述實施形態中,無線單元2從監視終端獲得檢測結果之時序係例如在請求訊息M11之發送後之監視期間內以時分方式接受,但獲得檢測結果之時序並不限定於此。例如,無線單元2可在競爭存取區間從監視終端接收檢測結果。亦即,監視終端不僅在監視期間以時分方式發送檢測結果,亦可在競爭存取區間發送檢測結果。 又,在上述實施形態中,照明控制器1與無線單元2係個別構體,但照明控制器1與無線單元2亦可構成為一體。控制系統10之功能並不限定於照明控制器1、及無線單元2,亦可分散於2台以上之裝置而設置。 (總結) 如以上所說明般,第1態樣之中繼器(無線單元2)中繼複數個終端(3)與控制單元(照明控制器1)之間之通信。中繼器具備:第1通信部(有線通信部21)、第2通信部(通信部24)、控制部(22)、及記憶部(23)。第1通信部係與控制單元進行通信。第2通信部係與複數個終端(3)之各者進行通信。控制部(22)經由第2通信部進行對複數個終端(3)中至少1個終端(3)之控制。記憶部23記憶複數個終端(3)之各者相關之資訊且為用於對控制單元發送之終端資訊。 根據該構成,中繼器預先記憶複數台終端(3)之各者之終端資訊。因此,即便終端資訊之發送之請求被從控制單元發送至各終端(3)時,無線單元(2)在不將請求發送至各終端(3)下將終端資訊發送至控制單元。因此,無線單元(2)可在控制單元從複數台終端(3)之各者獲得終端資訊時,抑制終端資訊之獲得所需之時間。 第2態樣之中繼器係如第1態樣者,其中若第2通信部從複數個終端(3)之各者接收針對該終端(3)之終端資訊,則控制部(22)將所接收之終端資訊記憶於記憶部(23)。根據該構成,中繼器可從複數個終端(3)之各者獲得終端資訊。 第3態樣之中繼器係如第2態樣者,其中在複數個終端(3)中包含檢測特定之事態之監視終端、及與監視終端相對應之控制終端。若第2通信部從監視終端接收該監視終端所檢測到之結果即檢測結果,則控制部(22)將檢測結果作為終端資訊記憶於記憶部(23),並對控制終端進行與檢測結果相應之控制。根據該構成,由於中繼器無需接收控制單元之指示而對控制對象之控制終端(終端3)進行控制,故可節省從控制單元接收指示為止之時間。亦即,中繼器可迅速地進行與監視終端之檢測結果相應之控制。 第4態樣之中繼器係如第3態樣者,其中在對控制終端進行了與檢測結果相應之控制後,第1通信部從控制單元接收含有針對控制終端之控制內容的控制訊息。該情形下,控制部(22)在與檢測結果相應之控制之內容和控制訊息所含之控制內容為相同時,不對控制終端進行與控制內容相應之控制。控制部(22)在與檢測結果相應之控制之內容和控制訊息所含之控制內容為不相同時,對控制終端進行與控制內容相應之控制。根據該構成,由於中繼器即便針對與已進行控制之控制終端為同一控制終端而從控制單元接收與中繼器所進行之控制內容為同一控制內容之控制訊息卻不進行控制,故可防止控制之重複。再者,由於中繼器在針對控制終端所進行之控制內容、與控制訊息所含之控制內容為不相同時進行控制,故亦能夠進行與控制單元之請求相應之對應。 第5態樣之中繼器係如第1至第4之任一態樣者,其中第1通信部以複數個終端(3)中至少1個終端(3)為發送對象而從控制單元接收請求針對該至少1個終端(3)之終端資訊的請求資訊。此時,第1通信部構成為發送在記憶部(23)中記憶之針對該至少1個終端(3)之終端資訊(與請求資訊相應之終端資訊)。根據該構成,中繼器無需將請求資訊發送至各終端(3)而可將終端資訊發送至控制單元。換言之,控制單元無需指定中繼器而可獲得作為請求對象之全部終端(3)之終端資訊。 第6態樣之中繼器係如第5態樣者,其中請求資訊含有識別複數個終端(3)中請求對象之終端(3)之類別之終端類別。第1通信部構成為若從控制單元接收包含終端類別之請求資訊,則將複數個終端(3)中與終端類別相應之至少1個終端(3)之終端資訊發送至控制單元。根據該構成,中繼器可將複數個終端(3)中與終端類別相應之終端(3)之終端資訊發送至控制單元。 第7態樣之中繼器係如第5或第6態樣者,其中請求資訊進一步含有用於識別終端(3)之第1標識符(例如,請求對象之終端3之位址)。記憶部(23)記憶針對複數個終端(3)一對一地分配之複數個第2標識符(能夠通信之複數個終端3之位址)。控制部(22)進一步判斷複數個第2標識符中是否存在與請求資訊所含之第1標識符一致之第2標識符。第1通信部構成為當控制部(22)判斷為存在有與第1標識符一致之第2標識符時,將在記憶部(23)中記憶之複數個終端資訊中與第1標識符一致之第2標識符所分配之終端(3)之終端資訊發送至控制單元。根據該構成,中繼器當接收到含有與記憶於記憶部(23)之第2標識符一致之第1標識符之請求資訊時,發送與第2標識符相應之終端(3)之終端資訊。此構成在控制單元藉由廣播等對複數個中繼器發送請求資訊時為有效。 第8態樣之中繼器係如第7態樣者,其中第1通信部與控制單元在第1通信週期(輪詢週期Tp)進行通信。第2通信部與複數個終端(3)之各者在第2通信週期(週期Ts)進行通信。針對複數個終端(3)之各者之終端資訊係與第2通信週期之期間內且為將該終端資訊之內容設為有效之有效期限Tv建立對應關係。第1通信部構成為在針對與請求資訊相應之至少1個終端3之終端資訊為有效期限Tv內時,發送針對該至少1個終端(3)之終端資訊。根據該構成,由於中繼器對於從複數個終端(3)獲得之終端資訊設定有效期限(Tv),故可提高有效期限(Tv)之終端資訊之信賴性。 第9態樣之中繼器係如第8態樣者,其中有效期限(Tv)設定為較第1通信週期更長。根據該構成,由於在第1通信週期內針對複數個終端(3)之各者之終端資訊之獲得進行1次即可,故可抑制在中繼器與複數個終端(3)之間所發生之通信量之增加。 第10態樣之中繼器係如第8態樣者,其中有效期限(Tv)被設定為第1通信週期以下。根據該構成,由於在第1通信週期內能夠進行複數次針對複數個終端(3)之各者之終端資訊之更新,故可提高第1通信週期內之終端資訊之即時性。 第11態樣之控制系統(10)具備如第1至第10之任一態樣之中繼器、及控制單元(照明控制器1)。根據該構成,控制系統(10)在控制單元從複數台終端(3)之各者獲得終端資訊時,可抑制終端資訊之獲得所需之時間。The embodiments and modification examples described below are only examples of the present invention, and the present invention is not limited to the embodiment and modification examples. Even if it is outside the embodiment and modification examples, as long as it does not deviate from the scope of the technical idea of the present invention, Various changes are made according to design, etc. (Embodiment) (1) Overview The control system of this embodiment is used in facilities such as office buildings, shops, hospitals, schools, or factories, and is a system for controlling the control objects such as lighting fixtures installed in facilities. In this embodiment, the case where the control system 10 is a lighting control system for controlling lighting fixtures will be described as an example. As shown in FIGS. 1 and 2, the control system 10 includes a lighting controller 1 (control unit) and a wireless unit 2. The lighting controller 1 is configured to be able to communicate with the wireless unit 2. The wireless unit 2 is configured to be able to communicate with a plurality of terminals (n units in the example of FIGS. 1 and 2) 31, 32, ... 3n ("n" is an integer). Hereinafter, when the plural terminals 31, 32, ... 3n are not particularly distinguished, each of the plural terminals 31, 32, ... 3n is referred to as "terminal 3". In the present embodiment, the description will be made based on the configuration requirements in which a plurality of terminals 3 are not included in the control system 10. The plural terminals 3 are divided into two types: control terminals and monitoring terminals. The terminal 3 as the control terminal is integrated with the lighting fixture as the control target. Or, the terminal 3 as the control terminal may be a separate structure from the lighting appliance as the control target. In this case, the terminal 3 as the control terminal is connected to the lighting appliance or the relay circuit provided on the feeder circuit for the lighting appliance. Sexual connection. The terminal 3 as a control terminal has a function of controlling the machine to be controlled. For example, the terminal 3, which is a control terminal, has a function of controlling on/off, dimming, or color adjustment of a lighting appliance in accordance with a message sent from the wireless unit 2. The so-called "message" here refers to an entire piece of data that is sent and received between devices according to a specific format. The terminal 3 as a monitoring terminal is constituted by, for example, a switch device which is mounted on a wall or the like and accepts a user's operation, or various sensor devices. The sensor device referred to here is, for example, a human body sensor, an illuminance sensor, or a temperature sensor. The terminal 3, which is a monitoring terminal, sends a message to the wireless unit 2 when a specific situation occurs, for example, when the user's operation is detected by a switch, or when the presence of a person is detected by a sensor. Each terminal 3 is set with a unique address. The lighting controller 1 uses these addresses to individually identify the terminal 3. In this embodiment, a case where one address is set in one terminal 3 will be described. However, it is not limited to this configuration. When a plurality of switches or a plurality of sensors are provided in one monitoring terminal, a specific address can be set in the plurality of switches or the plurality of sensors, respectively. Similarly, when a plurality of lighting fixtures are connected to one control terminal, a unique address can be set for each of the plurality of lighting fixtures. The wireless unit 2 has a function of relaying signals between the lighting controller 1 and a plurality of terminals 3. For example, when a message is sent from the lighting controller 1 to the terminal 3, the wireless unit 2 accepts the message from the lighting controller 1 and sends a message to the terminal 3. In addition, when a message is sent from the terminal 3 to the lighting controller 1, the wireless unit 2 receives the message from the terminal 3 and temporarily memorizes it. The wireless unit 2 sends the memorized message to the lighting controller 1 according to the request from the lighting controller 1. When a specific situation occurs at the monitoring terminal, that is, when the monitoring terminal detects a specific situation, a monitoring message (hereinafter also referred to as a "monitoring message") is sent from the monitoring terminal to the wireless unit 2. The wireless unit 2 that has received the monitoring message transmits a control message (hereinafter also referred to as "control message") to the control terminal whose address corresponds to the source (monitoring terminal) of the monitoring message. With this, the terminal 3 as the control terminal performs control of the lighting appliance as the control object in accordance with the control message. In this embodiment, the address setting operation of a plurality of terminals 3 is performed using a dedicated address setting device. Each of the plurality of terminals 3 has a communication function with an address setter, and each address is input by the address setter. Furthermore, in the example of FIG. 2, the lighting controller 1 is configured to be able to communicate with the centralized controller 4. The centralized controller 4 is configured to be able to communicate with, for example, the air-conditioning controller 5 in addition to the lighting controller 1. Unlike the control system 10, the air-conditioning controller 5 is configured as an air-conditioning control system for controlling air-conditioning equipment (air conditioners). The centralized controller 4 is a host device of the lighting controller 1 and the air-conditioning controller 5, and centrally manages the lighting control system including the control system 10 and the air-conditioning control system. That is, the centralized controller 4 can control both the lighting equipment and the air conditioning equipment installed in the facility. (2) Configuration Next, the configuration of the control system 10 of this embodiment will be described in detail with reference to FIG. As described above, the control system 10 includes the lighting controller 1 and the wireless unit 2. The lighting controller 1 is wiredly connected to the wireless unit 2 via a 2-wire signal line 100. The lighting controller 1 is configured to be able to send and receive messages in both directions by wired communication with the wireless unit 2. In the present embodiment, between the lighting controller 1 and the wireless unit 2, for example, a transmission signal including a bipolar (±24 V) time division multiplex signal is used to transmit and receive messages. Specifically, the lighting controller 1 outputs the transmission signal containing the message to the signal line 100. By this, the message is sent from the lighting controller 1 to the wireless unit 2. In addition, the wireless unit 2 sends back the message as a current mode signal during the loop back of the transmitted signal. By this, the message is sent from the wireless unit 2 to the lighting controller 1. The so-called "current mode signal" here is a signal expressed by a change in current generated by switching the state between the open signal line 100 and the state of connecting a low-impedance element between the lines. The wireless unit 2 is configured to be able to transmit and receive messages in both directions by wireless communication with a plurality of terminals 3. That is, the wireless unit 2 transmits and receives messages by wired communication with the lighting controller 1 and transmits and receives messages by wireless communication with the terminal 3. Thereby, the wireless unit 2 can relay (transmit) the message received from the lighting controller 1 using wired communication to the terminal 3 using wireless communication. In addition, the wireless unit 2 can relay (transmit) the message received from the terminal 3 using wireless communication to the lighting controller 1 using wired communication. In this embodiment, the communication method between the wireless unit 2 and the terminal 3 is, for example, wireless communication such as low-power wireless (specific low-power wireless) without permission or Wi-Fi (registered trademark). For such low-power wireless, the specifications of the frequency band and antenna power used in accordance with the use are regulated in various countries. It is stipulated in Japan as a low-power radio using the radio wave of 920 MHz band or 420 MHz band. The wireless unit 2 includes a wired communication unit 21 (first communication unit), a control unit 22, a memory unit 23, and a communication unit 24 (second communication unit). The wired communication unit 21 is a communication interface for communicating with the lighting controller 1 and is connected to the lighting controller 1 through the signal line 100. The wired communication unit 21 transmits and receives messages in two directions by wired communication using a transmission signal with the lighting controller 1. The control unit 22 controls the wired communication unit 21 and the communication unit 24. The control unit 22 is composed of a microcomputer mainly composed of a CPU (Central Processing Unit) and a memory. In other words, the control unit 22 is realized by a computer having a CPU and a memory, and the CPU executes a program stored in the memory, and the computer functions as the control unit 22. The program is stored in the memory of the control unit 22 in advance here, but may also be provided through an electrical communication line such as the Internet or through a recording medium recorded on a memory card or the like. The memory section 23 is composed of a nonvolatile semiconductor memory that can be electrically rewritten, such as a flash memory. The memory section 23 memorizes the data received from each of the plurality of terminals 3 and the data received from the lighting controller 1. In addition, the memory unit 23 establishes a correspondence between the addresses of the plurality of terminals 3 that can communicate, and the information (category information) that identifies whether the terminal 3 corresponding to the address is a control terminal or a monitoring terminal (class information). The communication unit 24 is a communication interface for communicating with a plurality of terminals 3 under the control of the wireless unit 2. The communication unit 24 transmits and receives messages in both directions by wireless communication with the terminal 3. The addresses of the plurality of terminals 3 that can be communicated by the communication unit 24, that is, the plurality of terminals 3 under the control of the wireless unit 2, are registered in the memory of the control unit 22 or the like in advance. In other words, the communication unit 24 can only communicate with the terminal 3 registered with the address. The wireless unit 2 configured as described above is disposed, for example, on a ceiling of a room where a plurality of terminals 3 are installed, and the like is suitable for wireless communication with the plurality of terminals 3. However, the wireless unit 2 is not limited to the configuration of directly communicating with a plurality of terminals 3. For example, the wireless unit 2 can communicate indirectly via a repeater between the terminal 3 and the terminal 3 that is located in a position where the wireless signal (radio wave) from the wireless unit 2 cannot reach. Next, the configuration of the terminal 3 will be described with reference to FIG. 1. Since the basic configuration of the plural terminals 31, 32, ... 3n is common, only one of the plural terminals 31, 32, ... 3n is explained here, and the other terminals 32, 33, ... The description of the configuration of 3n is omitted. The terminal 3 includes a terminal-side communication unit 301, a terminal-side control unit 302, and a functional module 303. The terminal-side communication unit 301 is a communication interface for communicating with the control system 10 (wireless unit 2). The terminal-side communication unit 301 transmits and receives messages in both directions by wireless communication with the wireless unit 2. The address of the wireless unit 2 that can communicate with the terminal-side communication unit 301 is registered in the memory of the terminal-side control unit 302 in advance. In other words, the terminal-side communication unit 301 can only communicate with the wireless unit 2 in which the address is registered. The terminal-side control unit 302 controls the terminal-side communication unit 301 and the functional module 303. The terminal-side control unit 302 is composed of a microcomputer mainly composed of a CPU and a memory. In other words, the terminal-side control unit 302 is realized by a computer having a CPU and a memory, and the CPU executes a program stored in the memory, and the computer functions as the terminal-side control unit 302. The program is pre-stored in the memory of the terminal-side control unit 302 here, but it can also be downloaded through an electrical communication line such as the Internet, a wireless signal from the wireless unit 2, or a recording medium recorded on a memory card, etc. provide. The functional module 303 is a module that realizes functions other than communication between the terminal 3 and the control system 10 (wireless unit 2). In the case where the terminal 3 is a control terminal, the function module 303 has a function of controlling on/off, dimming, or color adjustment of the lighting appliance to be controlled. In the case where the terminal 3 is a monitoring terminal, the functional module 303 has a function as a switch or various sensors. That is, the terminal 3 has a configuration in which a communication function with the control system 10 is added to the function of the functional module 303. In addition, a plurality of wireless units 2 can be connected to one lighting controller 1 (see FIG. 3 ). That is, in FIGS. 1 and 2, only one wireless unit 2 is shown, but a plurality of wireless units 2 may be connected to the signal line 100. In this case, more than one terminal 3 is provided under the control of each of the plurality of wireless units 2. In addition, although illustration is omitted in FIGS. 1 and 2, a wired terminal is connected to the signal line 100. Unlike the terminal 3 described above, the wired terminal is directly connected to the lighting controller 1 by the signal line 100 without passing through the wireless unit 2. In principle, the wired terminal has the same configuration as the terminal 3 described above, and like the terminal 3, it is divided into two types: a control terminal and a monitoring terminal. However, the terminal-side communication unit of the wired terminal is different from the wired terminal and the terminal 3 in that it transmits and receives messages bidirectionally with the lighting controller 1 by wired communication without going through the wireless unit 2. In this embodiment, a message is sent and received between the lighting controller 1 and the wired terminal by a transmission signal. (3) Operation Next, the operation of the control system 10 of this embodiment will be described. Hereinafter, two operations, a monitoring operation (first control operation) for monitoring the state of the terminal 3 and a control operation for controlling at least one terminal 3 by the control system 10, will be described in order. Hereinafter, a control operation (second control operation) in which the lighting controller 1 forcibly controls at least one terminal 3 will be described. In the following description, it is assumed that the control system 10 includes a plurality of wireless units 2 as shown in FIG. 3. In the example shown in FIG. 3, it is assumed that each wireless unit 2 controls two terminals 3. Hereinafter, when distinguishing a plurality of wireless units 2, the plurality of wireless units 2 (three sets as an example) will be referred to as "wireless unit 2x", "wireless unit 2y", or "wireless unit 2z", respectively. Also, the terminal 31 under the control of the wireless unit 2x is like "terminal 31x", and the terminal 3 under the control of a plurality of wireless units 2x, 2y, 2z is also appended with "x" and "y" at the end of the symbol "Or "z" for explanation. Further, it is assumed that the lighting controller 1 performs communication with a plurality of terminals 3 (eg, terminal 31x) under the control of one wireless unit 2 (eg, wireless unit 2x) in a specific polling cycle Tp (first communication cycle). The polling period Tp is set according to the number of terminals 3 that can communicate with the lighting controller 1. For example, it is assumed that the lighting controller 1 can communicate with m ("m" is an integer of 1 or more) terminal 3, and each terminal 3 is allocated a time of several hundreds of milliseconds. In this case, the polling period Tp is obtained by multiplying the number "m" by the time allocated to one terminal 3 (hundreds of milliseconds). In this embodiment, the polling period Tp is set to a maximum of more than 10 seconds (for example, 15 seconds). It is assumed that the wireless unit 2 performs communication with a plurality of terminals 3 under control in a specific cycle Ts (second communication cycle). In the present embodiment, the polling period Tp is counted by the timer of the lighting controller 1, and the period Ts is counted by the timer of the wireless unit 2. (3. 1) Monitoring operation First, the monitoring operation of the control system 10 will be described. The control system 10 of the present embodiment performs the monitoring operation of monitoring the state of the terminal 3 by periodically or irregularly transmitting a request message to a plurality of terminals 3 as a transmission target. The so-called "request message" here refers to a message containing a command for the plurality of terminals 3 to reply to the respective state of the plurality of terminals 3. In addition, the "state" referred to here is, for example, if the terminal 3 is a control terminal, it is the respective operating state, specifically the lighting state of the lighting fixture (on/off of the lighting fixture, dimming ratio, or color temperature Wait). In addition, for example, if the terminal 3 is a monitoring terminal, the "state" is the detection state (detection result) of various sensors. Specifically, for example, if the terminal 3 is an illuminance sensor, the "status" is the illuminance in the detection range detected by the illuminance sensor. In addition, for example, if the terminal 3 is a human body sensor, the "state" refers to the number of people in the detection range detected by the human body sensor. In addition, the request message requesting the terminal information of the control terminal is called "status request message", and the request message requesting the terminal information of the monitoring terminal is called "detection request message". The terminal information is data indicating the state of the terminal 3. Hereinafter, the monitoring operation of the control system 10 will be described using FIG. 4. In FIG. 4, the period from time t1 to t8 is the polling period Tp, and the period from time t2 to t11 is the period Ts. Also, assume that there are a plurality of terminals 3. The communication unit 24 of the wireless unit 2 transmits a request message M1 to each of the plurality of terminals 3 under the control of the wireless unit 2 (time t2). The wireless unit 2 receives the response signal M2 from the plurality of terminals 3 in a time-division manner within the monitoring period after the transmission of the request message (time t3). In addition, in FIG. 3, it seems that the wireless unit 2 receives the response signal M2 from all the terminals 3 at time t3, but in fact, since it receives the response signal M2 from the plurality of terminals 3 in a time division manner, it is necessary to receive the signal It has a width in time. In the control system 10 of the present embodiment, since it is not necessary to access sequentially in the monitoring operation, the number of transmission of request messages can be reduced. Therefore, in the control system 10 of this embodiment, the time required to monitor the status of each of the plurality of terminals 3 can be shortened. The wireless unit 2 that has received the response signal M2 stores the data (terminal information) indicating the status of each terminal 3 contained in the response signal M2 in the memory section 23. For example, the memory section 23 has a first memory area that memorizes the state of the control terminal and a second memory area that memorizes the state of the monitoring terminal. The control unit 22 of the wireless unit 2 uses the data indicating the status (terminal information) contained in the response signal when the transmission source of the response signal M2 is the terminal 3 of the control terminal in the first memory area and the terminal 3 (control terminal) And the validity period Tv establishes a corresponding relationship and remembers. The control unit 22 uses the response signal M2 as the terminal 3 of the monitoring terminal when the transmission source of the response signal M2 is the status information (terminal information) contained in the monitoring message in the second memory area and the terminal 3 (monitoring terminal) A corresponding relationship is established with the expiration date Tv and stored in the memory section 23. The valid period Tv is within the period of the period Ts and takes the end point as the starting point of the next period Ts. In the present embodiment, the validity period Tv is set to be longer than the polling period Tp. For example, the validity period Tv is set to a value greater than 15 seconds. If the wired communication unit 21 receives the request message M3 (request information) containing at least one terminal 3 of the plurality of terminals 3 from the lighting controller 1, it transmits the terminal information for the at least one terminal 3 and is valid Terminal information within the time limit Tv (time t4 to t7). Specifically, when the wired communication unit 21 receives the request message M3 from the lighting controller 1, the control unit 22 of the wireless unit 2 obtains the terminal information for the terminal 3 corresponding to the request message M3 from the memory unit 23 and the validity period Tv All terminal information within. The control unit 22 controls the wired communication unit 21 so as to send all the obtained terminal information to the lighting controller 1. Here, the transmission target included in the request message M3 is, for example, the address of the terminal 3. The sending object can be either the address of one terminal 3 or the respective addresses of a plurality of terminals 3. When the control unit 22 can communicate with the terminal 3 corresponding to the address (when the terminal 3 indicated by the address exists under control), it obtains the terminal information of the terminal 3 corresponding to the address from the memory unit 23 and is All terminal information within the validity period Tv. For example, the lighting controller 1 obtains all terminal information for the terminal 3 as the control terminal from time t4 to t5, and obtains all terminal information for the terminal 3 as the monitoring terminal from time t6 to t7. Specifically, the wired communication unit 21 of the wireless unit 2 receives the status request message M31 containing the address of the control terminal from the lighting controller 1 (time t4). The control unit 22 obtains terminal information of the terminal 3 (control terminal) corresponding to the address included in the status request message M31 from the memory unit 23. The wired communication unit 21 sends a response signal M41 containing the terminal information obtained by the control unit 22 to the lighting controller 1 (time t5). The wired communication unit 21 receives the detection request message M32 containing the address of the monitoring terminal from the lighting controller 1 (time t6). The control unit 22 obtains terminal information of the terminal 3 (monitoring terminal) corresponding to the address included in the detection request message M32 from the memory unit 23. The wired communication unit 21 sends a response signal M42 containing the terminal information obtained by the control unit 22 to the lighting controller 1 (time t7). In the next polling cycle Tp, that is, when the validity period Tv has not elapsed (time t9), if the wired communication unit 21 receives the request message M3 from the lighting controller 1, it sends a response corresponding to the request message M3 to the lighting controller 1. The terminal information of all terminals 3 is the terminal information within the validity period Tv. At this time, the terminal information sent this time is the content of the terminal information obtained in the communication from time t2 to t3. For example, at time t9, the wired communication unit 21 receives from the lighting controller 1 a status request message M31 that contains the same address as that contained in the status request message M31 received at time t4. At this time, the wired communication unit 21 transmits terminal information having the same content as the terminal information transmitted at time t5 to the lighting controller 1 (time t10). If the validity period Tv of the terminal information expires, the communication unit 24 of the wireless unit 2 sends a request message M1 to each of the plurality of terminals 3 under the control of the wireless unit 2 (time t11), and from each of the plurality of terminals 3 A request message M2 containing new terminal information is received (obtained) in a time-division manner (time t12). In addition, in FIG. 3, the wireless unit 2 seems to receive the response signal M2 from all the terminals 3 at the time t12 in the same manner as the time t3, but in reality, the response signal M2 from the plurality of terminals 3 is received in a time-division manner. Therefore, it has a width in the time required to receive the signal. Here, the detailed operation of the wireless unit 2 will be described using the flowchart shown in FIG. 5. Upon receiving the request message, the control unit 22 determines whether the terminal 3 requested is registered in the storage unit 23 (step S1). Specifically, the control unit 22 determines whether the address (first identifier) included in the request message is stored in the storage unit 23. For example, the control unit 22 determines whether the address contained in the request message matches any of the addresses (second identifiers) of the plurality of terminals 3 stored in the storage unit 23. When it is determined that the terminal 3 of the request target is not registered in the storage unit 23 (No in step S1), the control unit 22 cancels the request message and ends the process. For example, it is assumed that the address of the control target terminal 3 included in the request message from the lighting controller 1 is the addresses of the terminals 31x and 32x. In this case, the addresses of the terminals 31y and 32y are registered in the wireless unit 2y, the addresses of the terminals 31z and 32z are registered in the wireless unit 2z, and the addresses of the terminals 31x and 32x are not registered in the wireless unit 2y and 2z. Therefore, the wireless units 2y, 2z cancel the request message from the lighting controller 1. The wireless unit 2x that has not registered the addresses of the terminals 31x and 32x performs the following processing. When it is determined that the terminal 3 to be requested is registered in the storage unit 23 (YES in step S1), the control unit 22 determines whether there is a terminal within the effective period Tv in the first memory area and the second memory area of the memory unit 23 Information (step S2). When there is no terminal information within the validity period Tv (No in step S2), the control unit 22 performs error processing (step S7). Here, the error processing is a process of sending an error message to the lighting controller 1, for example. When it is determined that there is terminal information within the validity period Tv (YES in step S2), the control unit 22 determines whether the terminal 3 to be requested is a control terminal (step S3). The control unit 22 determines whether the category information that establishes a corresponding relationship with the addresses stored in the plural addresses of the memory unit 23 and the addresses included in the request message indicates the control terminal. When it is determined that the requested terminal 3 is the control terminal (YES in step S3), the control unit 22 obtains terminal information corresponding to the requested terminal 3 from the first storage area of the storage unit 23 (step S4). The wired communication unit 21 sends the terminal information of the terminal 3 (control terminal) assigned to the address that matches the address included in the request message among the plurality of terminal information stored in the memory unit 23 to the lighting controller 1. When it is determined that the terminal 3 requested is not the control terminal (NO in step S3), the control unit 22 determines whether the terminal 3 requested is the monitoring terminal (step S5). The control unit 22 determines whether the category information that establishes a corresponding relationship with the addresses that are stored in the plurality of addresses in the memory unit 23 and the addresses included in the request message indicate the monitoring terminal. When it is determined that the requested terminal 3 is a monitoring terminal (YES in step S5), the control unit 22 obtains terminal information corresponding to the requested terminal 3 from the second memory area of the storage unit 23 (step S6). The wired communication unit 21 sends the terminal information of the terminal 3 (monitoring terminal) assigned to the address that matches the address contained in the request message among the plurality of terminal information stored in the memory unit 23 to the lighting controller 1. When it is determined that the terminal 3 to be requested is not the monitoring terminal (NO in step S5), the control unit 22 performs error processing (step S7). In addition, the transmission object included in the request message is not limited to the address of the terminal 3. The request message may also include a terminal type that identifies the type of the terminal 3 of the request target among the plurality of terminals 3 as the transmission target. Here, the terminal type is information indicating whether the requesting terminal 3 is a control terminal or a monitoring terminal. When receiving the request message containing the terminal type, the wired communication unit 21 sends the terminal information of at least one terminal 3 corresponding to the terminal type among the plurality of terminals 3 to the lighting controller 1. Specifically, if the wired communication unit 21 receives the request message containing the terminal type indicating the control terminal from the lighting controller 1, the control unit 22 obtains all the terminals 3 as the control terminal of the plurality of terminals 3 from the memory unit 23 Information (for example, time t4 to t5). In addition, when the wired communication unit 21 receives the request message containing the terminal type indicating the monitoring terminal from the lighting controller 1, the control unit 22 obtains all terminal information of the terminal 3 as the monitoring terminal from the plurality of terminals 3 from the memory unit 23 ( For example, time t6 to t7). The control unit 22 controls the wired communication unit 21 so as to send all the obtained terminal information to the lighting controller 1. In addition, the request message may include an address and a terminal type. In this case, for example, by including the address representing the broadcast as the address and the terminal type, the wireless unit 2 can send the terminal information of all the terminals 3 shown in the terminal type among all the terminals 3 under control to the lighting Controller 1. As shown in FIG. 4, from time t11 to t12, the validity period Tv of the terminal information obtained at time t2 to t3 expires, so the wireless unit 2 performs error processing when receiving the request message at time t11 to t12. Therefore, it is preferable that the control unit 22 of the wireless unit 2 collect the terminal information during the period of collection of terminal information (equivalent to the period from time t11 to t12), and use the terminal information obtained last time as the validity period Tv Come to deal with. Or, the wireless unit 2 sends a message indicating the busy state to the lighting controller 1. In the monitoring operation, the wireless unit 2 first obtains terminal information from each of the plurality of terminals 3 and memorizes it before receiving the request message from the lighting controller 1 within the polling period Tp. When the lighting controller 1 requests terminal information, the wireless unit 2 sends the terminal information of the terminal 3 stored in the memory 23 to the lighting controller 1 to the request target. Therefore, since the wireless unit 2 does not need to send the request message to the terminal 3 of the request target after the request of the lighting controller 1, the communication volume to the terminal 3 of the request target can be suppressed from becoming high. In short, the response to the request of the lighting controller 1 becomes faster. Furthermore, since the control system 10 can suppress the increase in the amount of communication as described above, the lighting controller 1 can obtain terminal information for all terminals 3 of the request target within the polling period Tp. Also, the validity period Tv is set to be longer than the polling period Tp. Therefore, since the wireless unit 2 does not need to update the terminal information multiple times within the polling period Tp, it is possible to suppress the increase in the communication volume with the multiple terminal 3 within the polling period Tp. (3. 2) Control operation (first control operation) Next, the control operation of the control system 10 will be described. The operation of the wireless unit 2 to control the control terminal corresponding to the monitoring terminal based on the terminal state (detection result) of the monitoring terminal will be described using FIG. 6. In FIG. 6, the period from time t50 to t60 is set as the polling cycle Tp. Moreover, the monitoring terminal and the control terminal are plural. The wireless unit 2 transmits a request message M11 to each of the plurality of terminals 3 under the control of the wireless unit 2 (time t51). The wireless unit 2 receives the response signals M21 and M22 from the plurality of terminals 3 in a time-division manner within the monitoring period after the transmission of the request message M11 (time t52, t53). The wireless unit 2 that has received the response signals M21 and M22 stores the data (terminal information) indicating the status of each terminal 3 contained in the response signals M21 and M22 in the memory section 23. When the transmission source of the response signal M21 is the terminal 3 of the control terminal, the control unit 22 uses the data indicating the status (terminal information) contained in the response signal M21 in the first memory area and the terminal 3 (control terminal) and the expiration date Establish correspondence and remember. When the transmission source of the response signal M22 is the terminal 3 of the monitoring terminal, the control unit 22 uses the data (terminal information) indicating the status contained in the response signal M22 in the second memory area and the terminal 3 (monitoring terminal) and the expiration date The corresponding relationship is established and memorized in the memory section 23. The control unit 22 controls at least one terminal 3 (control terminal) corresponding to the monitoring terminal among the plurality of terminals 3 (control terminal) corresponding to the monitoring terminal via the communication unit 24 based on the terminal information (detection result) of the terminal 3 as the monitoring terminal ). Specifically, the control unit 22 transmits a control message M12 including control content to at least one terminal 3 (control terminal) corresponding to the monitoring terminal among the plurality of terminals 3 (control terminal) (time t54). The terminal 3 as the control terminal performs control of the lighting appliance as the control object in accordance with the control message M12, and sends a control result message M23 including the result to the wireless unit 2 (time t55). The control unit 22 of the wireless unit 2 associates the control result contained in the control result message M23 with the address and control content of the terminal 3 to be controlled and stores it in the memory unit 23. The wired communication unit 21 receives the detection request message M33 including the address of the monitoring terminal from the lighting controller 1 (time t56). The control unit 22 obtains terminal information of the terminal 3 (monitoring terminal) corresponding to the address included in the detection request message M33 from the memory unit 23. The wired communication unit 21 sends a response signal M43 containing the terminal information obtained by the control unit 22 to the lighting controller 1 (time t57). For example, the control unit 22 obtains terminal information of all monitoring terminals from the memory unit 23. Furthermore, the wired communication unit 21 sends a response signal M43 containing terminal information of all monitoring terminals to the lighting controller 1. In addition, although not shown in FIG. 6, in the polling period Tp, the wireless unit 2 receives the status request message and sends a response signal containing terminal information corresponding to the status request message to the lighting controller 1. The lighting controller 1 determines whether there is a control terminal that should be controlled based on the received terminal information of all monitoring terminals. When it is determined that there is a control terminal that should be controlled, the lighting controller 1 transmits a control message M34 containing control content to the control terminal of the control target using the address of the control terminal as the transmission target. The wired communication unit 21 of the wireless unit 2 receives the control message M34 sent to the control target of the control object from the lighting controller 1 (time t58). The control unit 22 determines whether the combination of the address and the control content contained in the control message M34 received from the lighting controller 1 has been stored in the memory unit 23. When it is determined that the combination has been memorized in the memory section 23, it is not necessary to send a control message to the control terminal, but a control result message M44 containing the control result corresponding to the combination is sent to the lighting controller 1 (time t59). In addition, in the present embodiment, when a plurality of terminals 3 (control terminals) to be controlled exist, the wireless unit 2 can be individually controlled, or the same contents can be controlled to all terminals 3 to be controlled. In the first control operation, if the wireless unit 2 receives the terminal information (detection result) from the monitoring terminal, the control terminal corresponding to the monitoring terminal is controlled without the lighting controller 1 according to the content of the terminal information. Thereafter, even if the lighting controller 1 obtained the terminal information of the monitoring terminal, the control terminal controlled by the wireless unit 2 is the same, and the control terminal sends the control message with the same control content as the wireless unit 2, the wireless unit 2 Also cancel the control message. That is, when the control has been performed when the lighting controller 1 transmits the control message, it is possible to suppress the increase in the communication volume for all the terminals 3 to be controlled. Furthermore, when the lighting controller 1 requests control of the terminal 3, when the control has been performed by the wireless unit 2, retransmission of the control message to the terminal 3 to be controlled will no longer occur. That is, the request of the lighting controller 1 to control the terminal 3 is easily completed within the polling period Tp. (3. 3) Control operation (second control operation) Here, the operation of controlling the terminal 3 as the control terminal, regardless of the terminal state (detection result) of the monitoring terminal, will be described. This action is performed when, for example, an instruction containing control content is received from the upper device of the lighting controller 1, or when an operator of the lighting controller 1 inputs the instruction. When a control request is made to the control terminal irrespective of the terminal state (detection result) of the monitoring terminal, the lighting controller 1 sends a control message containing the control content to the control terminal of the control target using the address of the control terminal as the transmission target . The wired communication unit 21 of the wireless unit 2 receives the control message sent from the lighting controller 1 to the control terminal of the control target. The control unit 22 determines whether the combination of the address and the control content included in the control message received from the lighting controller 1 has been stored in the memory unit 23. When the control unit 22 determines that the combination is not memorized in the memory unit 23, it transmits the control message received from the lighting controller 1 to the control target control terminal. The control terminal follows the control message to control the lighting appliance as the control object, and sends the control result information containing the result and the terminal information (new terminal information) indicating the state after control to the lighting controller 1 via the wireless unit 2 . In this case, the control terminal transmits the control result information in a particularly rising interval in the time division communication, for example, a contention access (Contention Access) interval. The so-called "contention access interval" here is an interval that can be used by any one of the plurality of terminals 3 and the wireless unit 2. The wireless unit 2 memorizes the new terminal information in the memory section 23, and sends the control result information and the new terminal information to the lighting controller 1. Thereby, the control system 10 can update the status (terminal information) of the terminal 3 as the control terminal in real time. At this time, it is preferable that the validity period Tv of the terminal information that is updated in real time is the same as the validity period Tv before the update. Thereby, there is no need to change the transmission cycle of the time division mode. It is not necessary to set the validity period Tv of the terminal information that is updated in real time to be the same as the validity period Tv before the update, and the wireless unit 2 can also update the validity period Tv when the terminal information is updated in real time. In this case, the terminal information held by the wireless unit 2 becomes more timely. Alternatively, although the wireless unit 2 does not update the terminal information in real time, it can update the validity period Tv in real time. In this case, when the amount of information of the terminal information and the effective period Tv is small, the update time can be shortened by only updating the effective period Tv. By this, the reception of information from other terminals 3 can be quickly responded to. In addition, in this embodiment, when there are a plurality of terminals 3 (control terminals) to be controlled, the lighting controller 1 can be individually controlled, or the same contents can be controlled to all terminals 3 to be controlled. (Variation) The configuration of the above-mentioned embodiment is only an example of the present invention, and the present invention is not limited to the above-mentioned embodiment. Even outside the above-mentioned embodiment, as long as it does not deviate from the technical idea of the present invention, it can be designed according to the design, etc. Make various changes. In the following, a variation of the above embodiment will be listed. In the above-mentioned embodiment, the lighting controller 1 adopts the configuration in which the address of the terminal 3 is included in the request message as the transmission target of the request message, but it is not limited to this configuration. The lighting controller 1 may also adopt a configuration in which the address of the wireless unit 2 is included in the request message instead of the address of the terminal 3 as the transmission target of the request message. In this case, the request message contains the terminal type. As shown in FIG. 3, in the case where a plurality of wireless units 2 are included in the control system 10, if each wireless unit 2 receives a request message from the lighting controller 1, it is judged whether the transmission target matches the address of the local machine. In the case of inconsistency, the wireless unit 2 cancels the request message. When they match, the wireless unit 2 obtains the terminal information of all terminals 3 corresponding to the terminal type included in the request message from the memory section 23. In the above embodiment, the case where the control system 10 is a lighting control system has been exemplified, but it is not limited to this example, and the control system 10 can be applied to control of various control objects. For example, the control system 10 may be an air-conditioning control system for controlling air-conditioning equipment (air conditioners), or a system for controlling a plurality of control objects (such as lighting appliances and air-conditioning equipment). In addition, the control system 10 is not limited to non-residential facilities such as office buildings, but can also be used in houses such as single-family houses or apartment buildings. In addition, in the above-mentioned embodiment, the description has been made with the components that the plurality of terminals 3 are not included in the control system 10, but the invention is not limited thereto, and the plurality of terminals 3 may be included in the components of the control system 10. In addition, in the above-mentioned embodiment, the case where the lighting controller 1 is configured to be able to communicate with the centralized controller 4 has been described as an example, but the centralized controller 4 is not an indispensable configuration, and may be omitted as appropriate. In the above embodiment, the communication between the lighting controller 1 and the wireless unit 2 is a wired communication, and the communication between the wireless unit 2 and a plurality of terminals 3 is an example of wireless communication, but it is not limited to this example. For example, the communication between the lighting controller 1 and the wireless unit 2 may be wireless communication, and the communication between the wireless unit 2 and the plurality of terminals 3 may be wired communication. Furthermore, in the above embodiment, after the wireless unit 2 controls the corresponding control terminal based on the detection result (terminal information) from the monitoring terminal, if it receives a control message containing the same control content for the same control terminal from the lighting controller 1 It will be cancelled, but not cancelled. In this case, the wireless unit 2 performs the same control on the same control terminal after controlling the corresponding control terminal based on the detection result (terminal information) from the monitoring terminal. In addition, in the above-mentioned embodiment, the validity period Tv of the terminal information is set to be longer than the polling period Tp, but it is not limited to this, and the validity period Tv may be set to be less than the polling period Tp. As described above, since the validity period Tv is within the period of the period Ts and the end point is the starting point of the next period Ts, the wireless unit 2 can update the terminal information multiple times within the polling period Tp. Therefore, the terminal information in the polling period Tp becomes more timely. In addition, in the above-mentioned embodiment, a structure in which the validity period Tv is associated with the terminal information is adopted, but it is not limited to this. It is not necessary to establish a corresponding relationship between the effective period Tv and the terminal information. In this case, the wireless unit 2 memorizes the terminal information for the terminal 3 that is temporarily stored in the memory section 23 until new terminal information for the same terminal 3 is obtained. When the wireless unit 2 obtains new terminal information for the terminal 3, it cancels the terminal information for the same terminal 3 that has been stored in the storage unit 23 so far, and stores the obtained new terminal information in the storage unit 23. Thereby, the terminal information stored in the memory unit 23 can always be kept up-to-date without establishing a corresponding relationship with the effective period Tv. At this time, the processing of step S2 shown in FIG. 5 is not performed. That is, when it is determined that the terminal 3 of the request target is registered (YES in step S1), the control unit 22 obtains the terminal information of the terminal 3 of the request target. Specifically, the control unit 22 obtains terminal information from the first memory area of the memory unit 23 when the target terminal 3 is the control terminal, and obtains the second memory area from the memory unit 23 when the target terminal 3 is the monitoring terminal. Terminal information. The wired communication section 21 sends the terminal information obtained corresponding to the target terminal 3 to the lighting controller 1. In addition, in the above embodiment, the wireless unit 2 takes the transmission target of the control message M12 as the control terminal, but the transmission target of the control message M12 may also be the monitoring terminal. Therefore, the wireless unit 2 can switch the switch that monitors the operation of the terminal. In the above embodiment, the timing of the wireless unit 2 obtaining the detection result from the monitoring terminal is received in a time-division manner, for example, within the monitoring period after the transmission of the request message M11, but the timing of obtaining the detection result is not limited to this. For example, the wireless unit 2 may receive the detection result from the monitoring terminal during the contention access interval. That is, the monitoring terminal not only transmits the detection results in a time-division manner during the monitoring period, but also transmits the detection results in the contention access interval. In addition, in the above-mentioned embodiment, the lighting controller 1 and the wireless unit 2 are separate structures, but the lighting controller 1 and the wireless unit 2 may be integrally formed. The function of the control system 10 is not limited to the lighting controller 1 and the wireless unit 2, and may be installed on two or more devices. (Summary) As explained above, the repeater (wireless unit 2) in the first aspect relays the communication between the plurality of terminals (3) and the control unit (lighting controller 1). The repeater includes a first communication unit (wired communication unit 21), a second communication unit (communication unit 24), a control unit (22), and a memory unit (23). The first communication unit communicates with the control unit. The second communication unit communicates with each of the plurality of terminals (3). The control unit (22) controls at least one terminal (3) among the plurality of terminals (3) via the second communication unit. The memory section 23 memorizes information related to each of the plurality of terminals (3) and is terminal information for sending to the control unit. According to this configuration, the repeater stores terminal information of each of the plurality of terminals (3) in advance. Therefore, even if the request for sending terminal information is sent from the control unit to each terminal (3), the wireless unit (2) sends the terminal information to the control unit without sending the request to each terminal (3). Therefore, the wireless unit (2) can suppress the time required for obtaining terminal information when the control unit obtains terminal information from each of the plurality of terminals (3). The repeater of the second aspect is the one of the first aspect, wherein if the second communication unit receives terminal information for the terminal (3) from each of the plurality of terminals (3), the control unit (22) will The received terminal information is memorized in the memory section (23). According to this configuration, the repeater can obtain terminal information from each of the plurality of terminals (3). The repeater of the third aspect is the one of the second aspect, wherein the plurality of terminals (3) include a monitoring terminal that detects a specific state, and a control terminal corresponding to the monitoring terminal. If the second communication part receives the detection result detected by the monitoring terminal from the monitoring terminal, the control part (22) memorizes the detection result as terminal information in the storage part (23), and performs a control terminal corresponding to the detection result Of control. According to this configuration, since the repeater does not need to receive an instruction from the control unit to control the control terminal (terminal 3) of the control object, it is possible to save time until the instruction is received from the control unit. That is, the repeater can quickly perform control corresponding to the detection result of the monitoring terminal. The repeater of the fourth aspect is the same as that of the third aspect, in which after the control terminal is controlled according to the detection result, the first communication unit receives the control message containing the control content for the control terminal from the control unit. In this case, when the control content corresponding to the detection result and the control content contained in the control message are the same, the control unit (22) does not perform control corresponding to the control content on the control terminal. When the control content corresponding to the detection result and the control content contained in the control message are different, the control unit (22) controls the control terminal according to the control content. According to this configuration, even if the repeater does not control the control message that is the same control terminal as the control terminal that has been controlled and receives the same control content as the control content performed by the repeater from the control unit, it can be prevented Repeat control. Furthermore, since the repeater performs control when the control content for the control terminal is different from the control content contained in the control message, it can also correspond to the request of the control unit. The repeater of the fifth aspect is any one of the first to fourth aspects, in which the first communication unit receives at least one terminal (3) from the plurality of terminals (3) as the transmission target and receives it from the control unit Request information for terminal information of the at least one terminal (3). At this time, the first communication unit is configured to transmit terminal information (terminal information corresponding to the requested information) stored in the storage unit (23) for the at least one terminal (3). According to this configuration, the repeater can send the terminal information to the control unit without sending the requested information to each terminal (3). In other words, the control unit can obtain the terminal information of all the terminals (3) as the request objects without designating a repeater. The repeater in the sixth aspect is the one in the fifth aspect, wherein the request information includes a terminal type that identifies the type of the terminal (3) of the request target among the plurality of terminals (3). The first communication unit is configured to, when receiving request information including the terminal type from the control unit, send terminal information of at least one terminal (3) corresponding to the terminal type among the plurality of terminals (3) to the control unit. According to this configuration, the repeater can send the terminal information of the terminal (3) corresponding to the terminal type among the plurality of terminals (3) to the control unit. The repeater of the seventh aspect is the one of the fifth or sixth aspect, wherein the request information further contains a first identifier for identifying the terminal (3) (for example, the address of the terminal 3 of the request target). The memory unit (23) memorizes a plurality of second identifiers (addresses of a plurality of terminals 3 capable of communication) assigned one-to-one to the plurality of terminals (3). The control unit (22) further determines whether there is a second identifier that matches the first identifier included in the request information among the plurality of second identifiers. The first communication unit is configured to match the first identifier in the plurality of terminal information stored in the storage unit (23) when the control unit (22) determines that there is a second identifier that matches the first identifier The terminal information of the terminal (3) assigned by the second identifier is sent to the control unit. According to this configuration, the repeater transmits the terminal information of the terminal (3) corresponding to the second identifier when it receives the request information containing the first identifier that matches the second identifier stored in the memory section (23) . This configuration is effective when the control unit sends request information to a plurality of repeaters by broadcasting or the like. The repeater in the eighth aspect is the one in the seventh aspect, in which the first communication unit and the control unit communicate in the first communication cycle (polling cycle Tp). The second communication unit communicates with each of the plurality of terminals (3) in the second communication cycle (period Ts). The terminal information for each of the plurality of terminals (3) is in correspondence with the validity period Tv during the second communication cycle and for the content of the terminal information to be valid. The first communication unit is configured to transmit terminal information for at least one terminal (3) when terminal information for at least one terminal 3 corresponding to the requested information is within the validity period Tv. According to this configuration, since the repeater sets the validity period (Tv) of the terminal information obtained from the plurality of terminals (3), the reliability of the terminal information of the validity period (Tv) can be improved. The repeater in the ninth aspect is the one in the eighth aspect, in which the effective period (Tv) is set to be longer than the first communication cycle. According to this configuration, since it is sufficient to obtain the terminal information of each of the plurality of terminals (3) once in the first communication cycle, it can be suppressed from occurring between the repeater and the plurality of terminals (3) The increase in traffic. The repeater of the tenth aspect is the one of the eighth aspect, wherein the validity period (Tv) is set to be less than the first communication cycle. According to this configuration, since the terminal information of each of the plurality of terminals (3) can be updated multiple times in the first communication cycle, the real-time nature of the terminal information in the first communication cycle can be improved. The control system (10) of the eleventh aspect includes the repeater according to any one of the first to tenth aspects, and a control unit (lighting controller 1). According to this configuration, the control system (10) can suppress the time required for obtaining terminal information when the control unit obtains terminal information from each of the plurality of terminals (3).