[go: up one dir, main page]

CN106547235A - A kind of room scene mode setting method - Google Patents

A kind of room scene mode setting method Download PDF

Info

Publication number
CN106547235A
CN106547235A CN201610894096.XA CN201610894096A CN106547235A CN 106547235 A CN106547235 A CN 106547235A CN 201610894096 A CN201610894096 A CN 201610894096A CN 106547235 A CN106547235 A CN 106547235A
Authority
CN
China
Prior art keywords
switch
control
room
scene mode
units
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
CN201610894096.XA
Other languages
Chinese (zh)
Inventor
凌云
周维龙
汤彩珍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan University of Technology
Original Assignee
Hunan University of Technology
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 Hunan University of Technology filed Critical Hunan University of Technology
Priority to CN201610894096.XA priority Critical patent/CN106547235A/en
Publication of CN106547235A publication Critical patent/CN106547235A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

一种房间情景模式设置方法,由房间控制装置来实现。所述房间控制装置中包括有多个分布单元,分布单元中包括有调光控制器和至少2个智能开关;所述智能开关能够被设置成为情景模式开关;所述智能开关还能够被设置成为电器控制开关。所述分布单元都包括有通信模块;所述通信模块为无线数传收发模块;所述多个分布单元之间的通信网络为分布式无线通信网络。所述房间控制装置无需控制主机,可以根据需要选择合适数量的调光控制单元、控制开关单元等相关分布单元通过分布式通信网络自行组成。所述房间控制装置无需服务器,也无需控制主机,即可实现情景模式的控制与设置。A room scene mode setting method is realized by a room control device. The room control device includes a plurality of distribution units, and the distribution unit includes a dimming controller and at least 2 smart switches; the smart switch can be set as a scene mode switch; the smart switch can also be set as Electrical control switch. The distribution units all include a communication module; the communication module is a wireless data transmission transceiver module; the communication network among the plurality of distribution units is a distributed wireless communication network. The room control device does not need a control host, and can select an appropriate number of related distributed units such as dimming control units and control switch units according to needs to form itself through a distributed communication network. The room control device does not need a server or a control host, and can realize the control and setting of the scene mode.

Description

一种房间情景模式设置方法A method for setting room scene mode

技术领域technical field

本发明涉及一种电器设备的室内控制系统及其管理控制系统,尤其是一种房间情景模式设置方法。The invention relates to an indoor control system of electrical equipment and its management control system, in particular to a method for setting room scene modes.

背景技术Background technique

为了解决酒店、家居或者办公室的智能化控制,目前已有的居室房间控制系统或者智能家居控制系统普遍采用集中控制方式,即整个控制系统包括集中控制箱以及开关操作面板、空调操作面板、调光控制器、室外门铃开关等外围模块,集中控制箱通过控制信号线或者是通信总线与各外围模块进行通信,居室房间内要求实现的相关控制均由集中控制箱完成,通过外围模块来实现。这种集中控制系统成本高,安装不方便;另外,一旦集中控制箱出现问题,整个系统将完全瘫痪。另外,酒店服务器等对居室房间的控制通过集中控制箱进行控制,其功能受到集中控制箱的限制,失去了灵活性。另外,当需要情景模式等一键控制方式时,情景模式的控制数据保存在服务器或者控制主机中,当服务器发送故障或者是与服务器的通信发送故障,又或者控制主机发送故障时,情景模式的一键控制无法实现。情景模式的设置也需要在控制主机或者服务器上完成。In order to solve the intelligent control of hotels, homes or offices, the existing room control system or smart home control system generally adopts a centralized control method, that is, the entire control system includes a centralized control box and switch operation panel, air conditioning operation panel, dimming Controller, outdoor doorbell switch and other peripheral modules, the centralized control box communicates with each peripheral module through the control signal line or communication bus, and the relevant control required in the living room is completed by the centralized control box and realized through the peripheral modules. This centralized control system is expensive and inconvenient to install; in addition, once a problem occurs in the centralized control box, the entire system will be completely paralyzed. In addition, the control of the living room by the hotel server is controlled through the centralized control box, and its function is limited by the centralized control box, which loses flexibility. In addition, when a one-key control method such as scene mode is required, the control data of the scene mode is stored in the server or the control host. When the server fails to send or the communication with the server fails, or the control host sends One-button control is not possible. The setting of the scenario mode also needs to be completed on the control host or server.

发明内容Contents of the invention

为了解决现有酒店房间控制装置存在的上述技术问题,本发明提供了一种房间情景模式设置方法,由房间控制装置来实现。In order to solve the above-mentioned technical problems existing in the existing hotel room control device, the present invention provides a room scene mode setting method, which is realized by the room control device.

所述房间控制装置中包括多个分布单元,所述多个分布单元中包括N个触摸开关单元和P个调光控制单元;所述N大于等于1;所述P大于等于。所述N个触摸开关单元中包括至少2个智能开关。The room control device includes multiple distribution units, and the multiple distribution units include N touch switch units and P dimming control units; the N is greater than or equal to 1; and the P is greater than or equal to. The N touch switch units include at least 2 smart switches.

所述智能开关能够被设置成为情景模式开关;所述智能开关还能够被设置成为电器控制开关。The smart switch can be set as a scene mode switch; the smart switch can also be set as an electrical appliance control switch.

所述分布单元都包括有通信模块;所述通信模块为无线数传收发模块;所述多个分布单元之间的通信网络为分布式无线通信网络。The distribution units all include a communication module; the communication module is a wireless data transmission transceiver module; the communication network among the plurality of distribution units is a distributed wireless communication network.

所述情景模式由房间控制装置中的一组对象控制单元及其情景模式开关来共同控制;所述一组对象控制单元至少包括2个对象控制单元;所述对象控制单元包括电器控制开关和调光控制器。The scene mode is jointly controlled by a group of object control units and their scene mode switches in the room control device; the group of object control units includes at least two object control units; the object control unit includes electrical control switches and adjustment light controller.

所述情景模式开关中保存有该情景模式的控制数据;启动情景模式时,该情景模式的控制数据会发送至相应的对象控制单元中。The scene mode switch stores the control data of the scene mode; when the scene mode is started, the control data of the scene mode will be sent to the corresponding object control unit.

所述情景模式通过情景模式开关和多个对象控制单元来共同设置;参与设置过程的多个对象控制单元组成所述的一组对象控制单元。The scenario mode is jointly set by a scenario mode switch and multiple object control units; multiple object control units participating in the setting process form the group of object control units.

所述房间情景模式设置方法的具体步骤是:The concrete steps of described room scenario mode setting method are:

步骤一,操作情景模式开关,进入情景模式设置状态;Step 1: Operate the scene mode switch to enter the scene mode setting state;

步骤二,对该情景模式中需要控制的一个对象控制单元进行操作,设置相应的控制状态;Step 2, operate an object control unit that needs to be controlled in the scene mode, and set a corresponding control state;

步骤三,重复步骤二,直至该组对象控制单元的控制状态全部设置完成;Step 3, repeating Step 2 until all the control states of the group of object control units are set;

步骤四,操作情景模式开关,退出情景模式设置状态;将该组所有对象控制单元的控制数据保存至该情景模式开关中。Step 4, operate the scene mode switch to exit the scene mode setting state; save the control data of all object control units in the group to the scene mode switch.

所述步骤一,操作情景模式开关,进入情景模式设置状态,具体方法是:长按情景模式开关则进入情景模式设置状态。The first step is to operate the scene mode switch to enter the scene mode setting state. The specific method is: long press the scene mode switch to enter the scene mode setting state.

所述步骤三中直至该组对象控制单元的控制状态全部设置完成,方法是:对该情景模式中需要控制的每个对象控制单元进行操作,设置为相应的控制状态。。In the step 3, all the control states of the group of object control units are set up, the method is: operate each object control unit that needs to be controlled in the scene mode, and set it to the corresponding control state. .

本发明的有益效果是:房间控制装置无需控制主机,可以根据需要选择合适数量的调光控制单元、触摸开关单元等相关分布单元通过分布式无线通信网络自行组成;房间控制装置的情景模式控制数据保存在相应的情景模式开关中,无需服务器,也无需控制主机,即可实现情景模式的控制;情景模式的设置直接采用情景模式开关和相应的情景模式控制单元来完成,同样无需服务器,也无需控制主机。The beneficial effects of the present invention are: the room control device does not need to control the host computer, and can select an appropriate number of related distribution units such as dimming control units and touch switch units according to the needs to form by itself through a distributed wireless communication network; the scene mode control data of the room control device Stored in the corresponding scene mode switch, the control of the scene mode can be realized without a server or a control host; the setting of the scene mode is directly completed by the scene mode switch and the corresponding scene mode control unit, also without a server or a Control host.

附图说明Description of drawings

图1是房间控制装置实施例结构图;Fig. 1 is a structural diagram of an embodiment of a room control device;

图2是触摸开关单元实施例结构图;Fig. 2 is a structural diagram of an embodiment of a touch switch unit;

图3是包括2个开关的触摸开关单元实施例电路;Fig. 3 is the touch switch unit embodiment circuit comprising 2 switches;

图4是调光控制单元实施例结构图;Fig. 4 is a structural diagram of an embodiment of a dimming control unit;

图5是居室中央控制管理系统实施例;Fig. 5 is the embodiment of the central control and management system of the living room;

图6是房间接入点单元实施例结构图。Fig. 6 is a structural diagram of an embodiment of a room access point unit.

具体实施方式detailed description

以下结合附图对本发明作进一步说明。The present invention will be further described below in conjunction with accompanying drawing.

如图1所示的是包括有4个分布单元的房间控制装置实施例结构图,各分布单元之间通过分布式无线通信网络实现通信。其中1个分布单元为调光控制单元101,另外3个分布单元是触摸开关单元,分别为触摸开关单元102、触摸开关单元103、触摸开关单元104。As shown in FIG. 1 is a structure diagram of an embodiment of a room control device including four distribution units, and the communication between each distribution unit is realized through a distributed wireless communication network. One of the distribution units is the dimming control unit 101 , and the other three distribution units are touch switch units, namely the touch switch unit 102 , the touch switch unit 103 , and the touch switch unit 104 .

图1所示的4个分布单元中都有通信模块。各分布单元利用各自的通信模块,通过分布式无线通信网络100实现与其他分布单元的通信,通信模块的作用是将数据传输给其他分布单元以及接收其他分布单元的数据。所述房间控制装置需要增加分布单元时,所增加分布单元的通信模块功能与图1所示4个分布单元中的通信模块相同,采用与图1所示4个分布单元相同的方式接入分布式无线通信网络100。There are communication modules in the 4 distribution units shown in Fig. 1 . Each distribution unit uses its own communication module to communicate with other distribution units through the distributed wireless communication network 100. The function of the communication module is to transmit data to other distribution units and receive data from other distribution units. When the room control device needs to add a distribution unit, the function of the communication module of the added distribution unit is the same as that of the communication modules in the 4 distribution units shown in Figure 1, and the distribution unit is accessed in the same way as the 4 distribution units shown in Figure 1. type wireless communication network 100.

分布式无线通信网络的频段包括314-316MHz、430-432MHz、433.00-434.79MHz等;无线通信网络还可以采用红外线通信网络。所述房间控制装置中,所有分布单元通信模块的无线通信载波频率一致,即:所有分布单元的通信模块都具有无线发射电路且发射载波频率一致的无线信号;所有分布单元的通信模块都具有无线接收电路且能够直接接收所有分布单元通信模块发射的无线信号。分布单元的通信模块中都包括有无线收发模块,能够实现无线数字通信,即实现数字信号的发送与直接接收。例如,图1所示实施例中,无线收发模块采用433MHz无线收发模块时,调光控制单元101、触摸开关单元102、触摸开关单元103、触摸开关单元104的通信模块中都包括有433MHz无线收发模块,或者称433MHz无线数传模块;当其中1个分布单元通过433MHz无线收发模块发送数据时,其他分布单元能够直接通过自己所属的433MHz无线收发模块接收数据。The frequency bands of the distributed wireless communication network include 314-316MHz, 430-432MHz, 433.00-434.79MHz, etc.; the wireless communication network can also use an infrared communication network. In the described room control device, the wireless communication carrier frequencies of all distribution unit communication modules are consistent, that is: the communication modules of all distribution units have wireless transmission circuits and transmit wireless signals with the same carrier frequency; the communication modules of all distribution units have wireless The receiving circuit can directly receive the wireless signals transmitted by the communication modules of all distribution units. The communication modules of the distribution units all include wireless transceiver modules, which can realize wireless digital communication, that is, realize the sending and direct receiving of digital signals. For example, in the embodiment shown in FIG. 1, when the wireless transceiver module adopts a 433MHz wireless transceiver module, the communication modules of the dimming control unit 101, touch switch unit 102, touch switch unit 103, and touch switch unit 104 all include 433MHz wireless transceiver modules. Module, or 433MHz wireless data transmission module; when one of the distribution units sends data through the 433MHz wireless transceiver module, other distribution units can directly receive data through their own 433MHz wireless transceiver module.

图1所示房间控制装置实施例中,只包括1个调光控制单元和3个触摸开关单元。房间控制装置中,调光控制单元和触摸开关单元的数量可以根据实际的需要增加或者减少。通常情况下,触摸开关单元可能需要控制房灯、床头灯、夜灯、台灯、落地灯、卫浴灯、镜前灯、射灯、筒灯、壁灯等,以及其他灯;可能需要控制电视机、换气扇以及其他电器设备;可能需要控制设定睡眠模式、会客模式、阅读模式以及其他情景模式;等等。床头灯、台灯、落地灯,或者还有其他灯等多个灯需要用调光控制器进行控制。因此,开关的总数量需要增加,触摸开关单元的数量通常超过3个;尤其是多个设备需要实现二地或者多地控制时,需要更多的触摸开关单元。同一个房间控制装置中,开关的总数量可以超过256个,没有上限限制。同样地,调光控制器有可能需要设置在多个调光控制单元中。In the embodiment of the room control device shown in Fig. 1, only one dimming control unit and three touch switch units are included. In the room control device, the number of dimming control units and touch switch units can be increased or decreased according to actual needs. Usually, the touch switch unit may need to control room lamps, bedside lamps, night lamps, table lamps, floor lamps, bathroom lamps, mirror lights, spotlights, downlights, wall lamps, etc., and other lights; it may be necessary to control TVs, Ventilation fans and other electrical equipment; it may be necessary to control and set sleep mode, visitor mode, reading mode and other scene modes; etc. Multiple lights such as bedside lamps, table lamps, floor lamps, or other lights need to be controlled with dimming controllers. Therefore, the total number of switches needs to be increased, and the number of touch switch units is usually more than three; especially when multiple devices need to realize two-site or multi-site control, more touch switch units are needed. In the same room control device, the total number of switches can exceed 256, and there is no upper limit. Likewise, the dimming controller may need to be arranged in multiple dimming control units.

图2所示为房间控制装置中触摸开关单元实施例的结构图,包括开关微控制器模块301、通信模块302、开关1输入模块303、开关2输入模块304、开关1驱动模块305、开关2驱动模块306、通断指示模块307。通信模块302、开关1输入模块303、开关2输入模块304、开关1驱动模块305、开关2驱动模块306、通断指示模块307与开关微控制器模块301之间有电连接关系或者带光电隔离的电连接关系,用于相关信号的传递。触摸开关单元经由通信模块302通过分布式无线通信网络实现与其他分布单元的通信,其作用是将数据传输给其他分布单元以及接收其他分布单元的数据。Figure 2 is a structural diagram of an embodiment of a touch switch unit in a room control device, including a switch microcontroller module 301, a communication module 302, a switch 1 input module 303, a switch 2 input module 304, a switch 1 drive module 305, a switch 2 A driving module 306 and an on-off indicating module 307 . The communication module 302, the switch 1 input module 303, the switch 2 input module 304, the switch 1 drive module 305, the switch 2 drive module 306, the on-off indication module 307 and the switch microcontroller module 301 are electrically connected or have photoelectric isolation The electrical connection relationship is used for the transmission of related signals. The touch switch unit communicates with other distribution units through the distributed wireless communication network through the communication module 302, and its role is to transmit data to other distribution units and receive data from other distribution units.

开关微控制器模块301的作用包括:分析通过通信模块302接收的数据,实现本触摸开关单元开关驱动模块304的同步控制,实现情景模式控制等;将本触摸开关单元的控制操作和状态,形成数据并通过通信模块302向外发送;判断识别开关1输入模块303、开关2输入模块304的状态及操作;控制开关1驱动模块305、开关1驱动模块306的状态;控制通断指示模块307的指示状态。The function of the switch micro-controller module 301 includes: analyze the data received by the communication module 302, realize the synchronous control of the switch drive module 304 of the touch switch unit, realize the scene mode control, etc.; form the control operation and state of the touch switch unit The data is sent out through the communication module 302; the state and operation of the identification switch 1 input module 303 and the switch 2 input module 304 are judged; the state of the control switch 1 drive module 305 and the switch 1 drive module 306; Indicates the status.

触摸开关单元中包括有1个或者多个开关输入模块,对应于1个或者多个电器开关装置,电器开关装置也就是通常所说的电器开关,或者是开关。图2所示的触摸开关单元实施例中,有开关1输入模块303、开关2输入模块304共2个开关输入模块。同一房间控制装置中,不同触摸开关单元的开关数量可以任意选择。即设同一房间控制装置中,可以分别有若干个1开开关、若干个2开开关、若干个3开开关、若干个4开开关、若干个5开开关,等等。The touch switch unit includes one or more switch input modules, corresponding to one or more electrical switch devices, and the electrical switch devices are commonly referred to as electrical switches, or switches. In the embodiment of the touch switch unit shown in FIG. 2 , there are two switch input modules, a switch 1 input module 303 and a switch 2 input module 304 . In the same room control device, the number of switches of different touch switch units can be selected arbitrarily. That is, in the same room control device, there can be several 1-open switches, several 2-open switches, several 3-open switches, several 4-open switches, several 5-open switches, and so on.

开关输入模块各个触摸开关功能的设置可以是设置一个触摸点触摸后实现开、关转换,或者是设置二个触摸点分别实现开、关的功能。The setting of each touch switch function of the switch input module can be to set one touch point to realize on-off conversion after touching, or to set two touch points to realize the on-off function respectively.

触摸开关单元中包括有1个或者多个开关驱动模块,同一个触摸开关单元中,开关驱动模块的数量与开关输入模块的数量相等,且一一对应,组成相同个数数量的电器开关装置。图2所示的触摸开关单元实施例中,有开关1驱动模块305、开关2驱动模块306共2个开关驱动模块。开关驱动模块可以由电磁继电器,或者是固态继电器,或者是晶闸管,以及他们的驱动电路组成。如果一个触摸开关单元中包括2个电器开关装置,则表明该触摸开关单元中包括2个开关,可以分别实现对2个电器或者其他设备的控制。The touch switch unit includes one or more switch drive modules. In the same touch switch unit, the number of switch drive modules is equal to the number of switch input modules, and they correspond one-to-one to form the same number of electrical switch devices. In the embodiment of the touch switch unit shown in FIG. 2 , there are two switch driving modules, namely, a switch 1 driving module 305 and a switch 2 driving module 306 . The switch driving module can be composed of an electromagnetic relay, or a solid state relay, or a thyristor, and their driving circuits. If a touch switch unit includes 2 electrical switch devices, it means that the touch switch unit includes 2 switches, which can control 2 electrical appliances or other equipment respectively.

通断指示模块307用于指示开关驱动模块的通断状态。通断指示模块307不要求必须配置,有通断指示模块307,则可以在触摸开关单元的面板上观察到被控制电器的启、停状态;没有通断指示模块307的指示,则需要直接通过观察被控制电器的运行情况判断其启、停状态。The on-off indication module 307 is used to indicate the on-off state of the switch driving module. The on-off indication module 307 is not required to be configured. With the on-off indication module 307, the start and stop status of the controlled electrical appliance can be observed on the panel of the touch switch unit; Observe the operation of the controlled electrical appliances to judge their start and stop states.

触摸开关单元在没有与其他分布单元组成网络时,能够设置成独立工作模式,单独工作。When the touch switch unit does not form a network with other distribution units, it can be set to an independent working mode and work alone.

如图3所示为包括2个开关的触摸开关单元实施例电路。开关微控制器模块的控制核心采用单片机,图3中,单片机最小系统所需的电路省略未画出。开关输入模块,即触摸开关采用双键电容触摸感应开关芯片ASC0104-2,ASC0104-2的2个触摸输入端TP0、TP1分别连接触摸点K1、K2,同时,触摸输入端TP0、TP1分别经由电容C1、C2接地;ASC0104-2的2个触摸信号输出端TPQ0、TPQ1分别连接至单片机的输入端IN0、IN1;ASC0104-2的高/低有效电平选择端AHLB和电源正端VDD连接至电源+VCC;ASC0104-2的输出类型选择端和电源负端VSS连接至电源地。触摸开关单元中包括有多个开关输入模块时,可以如图3实施例中所示的,采用具有多键输入的集成芯片;也可以每个开关输入模块采用一个单独的电路。As shown in Fig. 3, the embodiment circuit of the touch switch unit including 2 switches is shown. The control core of the switch microcontroller module adopts a single-chip microcomputer. In Fig. 3, the circuit required for the minimum system of the single-chip microcomputer is omitted and not drawn. The switch input module, that is, the touch switch adopts the double-key capacitive touch sensor switch chip ASC0104-2, and the two touch input terminals TP0 and TP1 of ASC0104-2 are respectively connected to the touch points K1 and K2. C1 and C2 are grounded; the two touch signal output terminals TPQ0 and TPQ1 of ASC0104-2 are respectively connected to the input terminals IN0 and IN1 of the microcontroller; the high/low active level selection terminal AHLB of ASC0104-2 and the positive power supply terminal VDD are connected to the power supply +VCC; the output type selection terminal of ASC0104-2 and the negative terminal VSS of the power supply are connected to the power ground. When the touch switch unit includes multiple switch input modules, as shown in the embodiment of FIG. 3 , an integrated chip with multi-key input can be used; each switch input module can also use a separate circuit.

图3中,通信模块采用CC1101无线数传收发模块,频率为433MHz或者315MHz。CC1101无线数传收发模块的片选控制端CSN连接至单片机的输出端OUT1,SPI时钟端SCK连接至单片机的输出端OUT2,SPI数据输入端MOSI连接至单片机的输出端OUT3,SPI数据输出端MISO连接至单片机的输入端IN3,信息输出端GDO0、GDO2分别连接至单片机的输入端IN2、IN4;CC1101无线数传收发模块的电源端VCC连接至电源+VCC,地端GND连接至电源地。In Fig. 3, the communication module adopts CC1101 wireless data transmission transceiver module, and the frequency is 433MHz or 315MHz. The chip selection control terminal CSN of the CC1101 wireless data transmission transceiver module is connected to the output terminal OUT1 of the microcontroller, the SPI clock terminal SCK is connected to the output terminal OUT2 of the microcontroller, the SPI data input terminal MOSI is connected to the output terminal OUT3 of the microcontroller, and the SPI data output terminal MISO Connect to the input terminal IN3 of the single-chip microcomputer, and the information output terminals GDO0 and GDO2 are connected to the input terminals IN2 and IN4 of the single-chip microcomputer respectively; the power supply terminal VCC of the CC1101 wireless data transmission transceiver module is connected to the power supply +VCC, and the ground terminal GND is connected to the power supply ground.

图3中,光耦隔离器M1、双向晶闸管V1、电阻R3、电阻R4组成开关K1的开关驱动模块,光耦隔离器M2、双向晶闸管V2、电阻R5、电阻R6组成开关K2的开关驱动模块。电阻R4与光耦隔离器M1的输出串联后,并联至双向晶闸管V1的第一阳极和门极;电阻R3与光耦隔离器M1输入串联后,由单片机的输出端OUT4控制双向晶闸管V1的通断;双向晶闸管V1的第一阳极和第二阳极分别为开关K1的交流电源相线(火线)输入端L和输出端L1;开关K1的负载连接至输出端L1和交流电源零线。电阻R6与光耦隔离器M2的输出串联后,并联至双向晶闸管V2的第一阳极和门极;电阻R5与光耦隔离器M2输入串联后,由单片机的输出端OUT5控制双向晶闸管V2的通断;双向晶闸管V2的第一阳极和第二阳极分别为开关K2的交流电源相线(火线)输入端L和输出端L2;开关K2的负载连接至输出端L2和交流电源零线。光耦隔离器M1、M2可以选择具有过零触发功能的MOC3041、MOC3042、MOC3043、MOC3061、MOC3062、MOC3063等器件。In Fig. 3, optocoupler isolator M1, triac V1, resistor R3, and resistor R4 form a switch drive module of switch K1, and optocoupler isolator M2, triac V2, resistor R5, and resistor R6 form a switch drive module of switch K2. After the resistor R4 is connected in series with the output of the optocoupler isolator M1, it is connected in parallel to the first anode and gate of the bidirectional thyristor V1; after the resistor R3 is connected in series with the input of the optocoupler isolator M1, the output terminal OUT4 of the microcontroller controls the switching of the bidirectional thyristor V1. The first anode and the second anode of the bidirectional thyristor V1 are the input terminal L and the output terminal L1 of the AC power phase line (live line) of the switch K1 respectively; the load of the switch K1 is connected to the output terminal L1 and the neutral line of the AC power supply. After the resistor R6 is connected in series with the output of the optocoupler isolator M2, it is connected in parallel to the first anode and gate of the bidirectional thyristor V2; after the resistor R5 is connected in series with the input of the optocoupler isolator M2, the output terminal OUT5 of the microcontroller controls the switching of the bidirectional thyristor V2. The first anode and the second anode of the bidirectional thyristor V2 are respectively the input terminal L and the output terminal L2 of the AC power phase line (fire line) of the switch K2; the load of the switch K2 is connected to the output terminal L2 and the neutral line of the AC power supply. Optocoupler isolators M1 and M2 can choose MOC3041, MOC3042, MOC3043, MOC3061, MOC3062, MOC3063 and other devices with zero-crossing trigger function.

图3中,发光二极管LED1、发光二极管LED2、电阻R1、电阻R2组成通断指示模块。发光二极管LED1为开关K1的信号指示,由单片机的输出端OUT6控制;发光二极管LED2为开关K2的信号指示,由单片机的输出端OUT7控制。In Fig. 3, the light emitting diode LED1, the light emitting diode LED2, the resistor R1, and the resistor R2 form an on-off indicating module. The light-emitting diode LED1 is the signal indication of the switch K1, which is controlled by the output terminal OUT6 of the single-chip microcomputer; the light-emitting diode LED2 is the signal indication of the switch K2, and is controlled by the output terminal OUT7 of the single-chip microcomputer.

图3中,触摸K1,则双向晶闸管V1的通断状态发生变化,其负载原为得电则变成失电,或者负载原为失电则变成得电。同样地,触摸K2,则双向晶闸管V2的通断状态发生变化,其负载原为得电则变成失电,或者负载原为失电则变成得电。In FIG. 3 , when K1 is touched, the on-off state of the bidirectional thyristor V1 changes, and its load becomes de-energized when it was energized, or it becomes energized when it was de-energized. Similarly, when K2 is touched, the on-off state of the bidirectional thyristor V2 changes, and its load becomes de-energized when it was energized, or it becomes energized when it was de-energized.

触摸开关单元中的每个开关都能够写入其控制功能(或者控制对象)或编号,所述控制功能(或者控制对象)或编号称为配置信息,该配置信息被写入并保存在相应触摸开关单元中。触摸开关单元中的每个开关都能够被设置成为情景模式开关,也能够被设置成为进行电器控制的开关,即电器控制开关。Each switch in the touch switch unit can write its control function (or control object) or number, and the control function (or control object) or number is called configuration information, which is written and saved in the corresponding touch in the switch unit. Each switch in the touch switch unit can be set as a scene mode switch, and can also be set as a switch for controlling electrical appliances, that is, an electrical appliance control switch.

在开关中写入开关的功能(或者控制对象)或者是写入开关编号的过程称为配置,对所述开关进行配置的方法有多种。The process of writing the function (or control object) of the switch or the number of the switch in the switch is called configuration, and there are many methods for configuring the switch.

在生产时进行配置。生产时,将开关的配置信息设置为与面板上的丝印名称一致,例如,面板上的丝印名称为夜灯,则相应的开关功能配置为夜灯开关;面板上的丝印名称为壁灯,则相应开关的功能配置为壁灯开关;面板上的丝印名称为换气扇,则相应的开关功能配置为换气扇开关;面板上的丝印名称为会客模式,该开关为会客情景模式开关,则相应的开关功能配置为会客模式开关。备用开关,或者是生产时未对开关进行功能配置时,可以设置一个专门的名称为未配置功能的开关,例如,统一设置为备用开关,或者统一设置成为未配置开关,或者是设置为其他名称。实际配置时,也可以将开关功能用编号来代替,例如,1号开关控制壁灯,2号开关控制房灯,100号开关为会客情景模式开关,等等。备用开关,或者是生产时未对开关进行功能配置时,可以设置一个专门的编号,例如,设置为0号,即0号开关是未对开关进行功能配置的开关;所述专门的编号,不一定是0号,也可以选择其他编号,例如,999号,或者是511号,等等。Configure at production time. During production, set the configuration information of the switch to be consistent with the silkscreen name on the panel. For example, if the silkscreen name on the panel is night light, the corresponding switch function is configured as night light switch; if the silkscreen name on the panel is wall lamp, then the corresponding The function of the switch is configured as a wall lamp switch; the silk screen name on the panel is ventilation fan, and the corresponding switch function is configured as a ventilation fan switch; the silk screen name on the panel is reception mode, and the switch is a reception scene mode switch, then the corresponding switch function is Configured as a visitor mode switch. Spare switch, or when the function of the switch is not configured during production, you can set a special name for the switch with an unconfigured function, for example, set it as a spare switch, or set it as an unconfigured switch, or set it to another name . In actual configuration, switch functions can also be replaced by numbers, for example, switch No. 1 controls the wall lamp, switch No. 2 controls the room light, switch No. 100 is the scene mode switch for meeting guests, and so on. A spare switch, or when the switch is not functionally configured during production, you can set a special number, for example, set it to No. 0, that is, switch No. 0 is a switch that has not been functionally configured for the switch; It must be No. 0, and you can also choose other numbers, for example, No. 999, or No. 511, and so on.

在现场进行配置或者修改配置。在现场的房间控制装置中接入电脑或者专用配置工具,进行联网统一配置;或者是将单个触摸开关单元与电脑或者专用配置工具连接,进行单独配置。具体步骤是:Configure or modify the configuration on site. Connect a computer or a special configuration tool to the on-site room control device for unified network configuration; or connect a single touch switch unit to a computer or a special configuration tool for separate configuration. The specific steps are:

①将电脑或者专用配置工具接入现场的房间控制装置或者是与单个触摸开关单元连接;① Connect the computer or special configuration tool to the on-site room control device or connect to a single touch switch unit;

②在电脑或者专用配置工具的相关工程配置界面中编辑需要配置的开关的功能或编号并选择,或者是选择已经编辑好功能或编号的开关;②Edit the function or number of the switch to be configured in the relevant project configuration interface of the computer or special configuration tool and select it, or select the switch whose function or number has been edited;

③选择开关进行配置,完成配置确认;③ Select the switch to configure and complete the configuration confirmation;

④回到步骤②(在现场的房间控制装置中进行配置)或者是步骤①(对单个触摸开关单元进行配置),进行其他开关的配置。④ Return to step ② (configure in the on-site room control device) or step ① (configure a single touch switch unit) to configure other switches.

所述步骤③中的选择开关进行配置,完成配置确认的方法有很多,方法之一是进行一次开关操作,实现新的配置,同时取消老配置。例如,现在准备配置房灯开关,在相关工程配置界面中选择房灯对应的开关,然后对需要配置的某个开关操作一次,则该开关被配置成与工程配置界面中选择的开关相同的开关功能或者是相同的开关编号,该开关曾经被配置的其他开关功能或者开关编号被取消。方法之二是所有的开关都有是否配置好的状态指示;对状态指示显示未配置的开关进行一次开关操作,则进行新配置,状态指示显示配置成功;对状态指示显示配置成功的开关进行一次开关操作,则取消配置,状态指示显示未配置;未配置的开关可以是设置为备用开关,或者设置成为未配置开关,或者是设置为其他名称;未配置的开关也可以是设置为0号开关,或者设置成为其他特殊编号。是否配置好的状态指示,可以用指示灯的亮灭区分,可以用指示灯的是否闪烁区分,可以用指示灯的闪烁频率不同进行区分,等等。The selection switch in the step ③ is configured, and there are many ways to complete the configuration confirmation. One of the methods is to perform a switch operation to realize a new configuration and cancel the old configuration at the same time. For example, now you are going to configure a room light switch, select the switch corresponding to the room light in the relevant project configuration interface, and then operate a certain switch that needs to be configured, then the switch will be configured as the same switch as the switch selected in the project configuration interface The function or the same switch number, the other switch function or switch number to which the switch was configured is canceled. The second method is that all the switches have a status indication of whether they are configured or not; perform a switch operation on a switch whose status indication shows that it is not configured, and then perform a new configuration, and the status indication shows that the configuration is successful; If the switch is operated, the configuration is cancelled, and the status indicator shows that it is not configured; the unconfigured switch can be set as a spare switch, or set as an unconfigured switch, or set to another name; the unconfigured switch can also be set as the No. 0 switch , or set to other special numbers. Whether the status indicator is configured well can be distinguished by the on and off of the indicator light, whether it is flickering or not, the different flickering frequency of the indicator light, and so on.

所有开关的配置都可以在任何时候进行重新配置、取消配置等更改操作。All switch configurations can be reconfigured, unconfigured, etc. changed at any time.

图4所示为房间控制装置中调光控制单元实施例的结构图,包括调光微控制器模块401、通信模块402、调光输入模块403、调光驱动模块404、通断指示模块305。通信模块402、调光输入模块403、调光驱动模块404与调光微控制器模块401之间有电连接关系或者带光电隔离的电连接关系,用于相关信号的传递。调光控制单元经由通信模块402通过分布式无线通信网络实现与其他分布单元的通信,其作用是将数据传输给其他分布单元以及接收其他分布单元的数据。FIG. 4 is a structural diagram of an embodiment of a dimming control unit in a room control device, including a dimming microcontroller module 401 , a communication module 402 , a dimming input module 403 , a dimming drive module 404 , and an on-off indication module 305 . The communication module 402 , the dimming input module 403 , the dimming driving module 404 and the dimming microcontroller module 401 have an electrical connection relationship or an electrical connection relationship with photoelectric isolation for the transmission of related signals. The dimming control unit communicates with other distributed units through the distributed wireless communication network through the communication module 402, and its role is to transmit data to other distributed units and receive data from other distributed units.

调光微控制器模块401的作用包括:分析通过通信模块402接收的数据,实现情景模式控制;将本调光控制单元的控制操作和状态,形成数据并通过通信模块402向外发送;判断识别调光输入模块403的状态及操作;控制调光驱动模块404的状态。The function of the dimming microcontroller module 401 includes: analyzing the data received through the communication module 402 to realize scene mode control; forming data and sending the control operation and status of the dimming control unit through the communication module 402; judging and identifying State and operation of the dimming input module 403 ; control the state of the dimming driving module 404 .

同一房间控制装置中,不同调光控制单元的调光控制器数量可以任意选择。即在同一房间控制装置中,可以分别有若干个有1个调光控制器的调光控制单元,有若干个有2个调光控制器的调光控制单元,有若干个有3个调光控制器的调光控制单元,等等。In the same room control device, the number of dimming controllers of different dimming control units can be selected arbitrarily. That is to say, in the same room control device, there can be several dimming control units with 1 dimming controller, several dimming control units with 2 dimming controllers, and several dimming control units with 3 dimming controllers. Dimming control units for controllers, etc.

调光输入模块403包括有1个或者多个调光指令装置,对应于1个或者多个调光控制器。The dimming input module 403 includes one or more dimming instruction devices, corresponding to one or more dimming controllers.

调光指令装置可以是电位器,包括电阻电位器、脉冲电位器、编码电位器等多种类型的电位器。The dimming command device can be a potentiometer, including various types of potentiometers such as resistance potentiometers, pulse potentiometers, and coding potentiometers.

调光指令装置可以由机械开关组成。机械开关可以是单控常开开关、单控常闭开关、双控常开/常闭开关等开关,也可以是常开按钮、常闭按钮、自复位开关等开关。例如,1个调光指令装置可以由2个按钮组成,其中1个按钮为亮度增加,另外1个按钮为亮度减小。The dimming command device may consist of a mechanical switch. The mechanical switch can be a single control normally open switch, a single control normally closed switch, a double control normally open/normally closed switch, etc., or a normally open button, normally closed button, self-resetting switch, etc. For example, a dimming instruction device may consist of two buttons, one of which is for increasing brightness, and the other button is for decreasing brightness.

调光指令装置还可以由触摸开关组成。例如,1个调光指令装置设置二个触摸点分别实现亮度增加、亮度减小的功能。The dimming instruction device can also be composed of a touch switch. For example, one dimming command device is provided with two touch points to realize the functions of increasing brightness and decreasing brightness respectively.

调光指令装置还可以由触摸显示屏触摸开关组成。例如,1个调光指令装置设置二个触摸点分别实现亮度增加、亮度减小的功能;或者是1个调光指令装置设置1个滑动条实现亮度增加、亮度减小的功能。The dimming command device can also be composed of a touch screen touch switch. For example, one dimming command device is provided with two touch points to realize the functions of increasing brightness and decreasing brightness respectively; or one dimming command device is provided with a sliding bar to realize the functions of increasing brightness and decreasing brightness.

调光驱动模块404包括有1个或者多个调光驱动装置,同一个调光驱动模块中,调光驱动装置的数量与调光指令装置的数量相等,且一一对应,组成相同个数数量的调光控制器。调光驱动装置可以是晶闸管调压调光电路,可以是LED脉宽调制调光电路,或者是其他调光驱动电路。The dimming driving module 404 includes one or more dimming driving devices. In the same dimming driving module, the number of dimming driving devices is equal to the number of dimming instruction devices, and they correspond one to one to form the same number of dimming controller. The dimming driving device may be a thyristor voltage regulating and dimming circuit, an LED pulse width modulation dimming circuit, or other dimming driving circuits.

如果一个调光控制单元中包括2个调光控制器,则表明该调光控制单元可以分别实现对2个灯调光控制。If a dimming control unit includes 2 dimming controllers, it means that the dimming control unit can realize dimming control of 2 lamps respectively.

调光控制单元中的每个调光控制器都能够写入其控制功能(或者控制对象)或编号,所述控制功能(或者控制对象)或编号称为配置信息,该配置信息被写入并保存在相应调光控制单元中。Each dimming controller in the dimming control unit can write its control function (or control object) or number, and the control function (or control object) or number is called configuration information, and the configuration information is written and Stored in the corresponding dimming control unit.

在调光控制器中写入其功能(或者控制对象)或编号的过程称为配置,对所述调光控制器进行配置的方法与对开关进行配置的方法一样,同样有多种。The process of writing its function (or control object) or number in the dimming controller is called configuration, and the method of configuring the dimming controller is the same as the method of configuring the switch, and there are also multiple methods.

在生产时进行配置。生产时,将调光控制器的配置信息设置为与面板上的丝印名称一致,例如,面板上的丝印名称为夜灯,则相应的调光控制器功能配置为夜灯调光控制器;面板上的丝印名称为壁灯,则相应调光控制器的功能配置为壁灯调光控制器。备用调光控制器,或者是生产时未对调光控制器进行功能配置时,可以设置一个专门的名称给未配置功能的调光控制器,例如,统一设置为备用调光控制器,或者统一设置成为未配置调光控制器,或者是设置为其他名称。实际配置时,也可以将调光控制器功能用编号来代替,例如,200号调光控制器控制壁灯,201号调光控制器控制房灯,等等。备用调光控制器,或者是生产时未对调光控制器进行功能配置时,可以设置一个专门的编号,例如,设置为0号,即0号调光控制器是未对其进行功能配置的调光控制器;所述专门的编号,不一定是0号,也可以选择其他编号,例如,999号,或者是511号,等等。Configure at production time. During production, set the configuration information of the dimming controller to be consistent with the silkscreen name on the panel. For example, if the silkscreen name on the panel is night light, the corresponding dimming controller function is configured as night light dimming controller; the panel The silkscreen name on the screen is wall lamp, and the function configuration of the corresponding dimming controller is wall lamp dimming controller. Standby dimming controller, or when the function of the dimming controller is not configured during production, you can set a special name for the dimming controller without configuration functions, for example, set it as the standby dimming controller uniformly, or uniformly Set it to Unconfigured Dimmer Controller, or set it to another name. In actual configuration, the function of the dimming controller can also be replaced by a number, for example, No. 200 dimming controller controls the wall lamp, No. 201 dimming controller controls the room lamp, and so on. Standby dimming controller, or when the dimming controller is not functionally configured during production, you can set a special number, for example, set it to No. 0, that is, No. 0 dimming controller is not configured for its function Dimming controller; the special number is not necessarily No. 0, and other numbers can also be selected, for example, No. 999, or No. 511, etc.

在现场进行配置或者修改配置。在现场的房间控制装置中接入电脑或者专用配置工具,进行联网统一配置;或者是将单个调光控制单元与电脑或者专用配置工具连接,进行单独配置。具体步骤是:Configure or modify the configuration on site. Connect a computer or a special configuration tool to the on-site room control device for unified network configuration; or connect a single dimming control unit to a computer or a special configuration tool for separate configuration. The specific steps are:

①将电脑或者专用配置工具接入现场的房间控制装置或者是与单个调光控制单元连接;① Connect the computer or special configuration tool to the on-site room control device or connect to a single dimming control unit;

②在电脑或者专用配置工具的相关工程配置界面中编辑需要配置的调光控制器的功能或编号并选择,或者是选择已经编辑好功能或编号的调光控制器;② Edit the function or number of the dimming controller to be configured in the relevant project configuration interface of the computer or special configuration tool and select it, or select the dimming controller whose function or number has been edited;

③选择调光控制器进行配置,完成配置确认;③Select the dimming controller to configure and complete the configuration confirmation;

④回到步骤②(在现场的房间控制装置中进行配置)或者是步骤①(对单个调光控制单元进行配置),进行其他调光控制器的配置。④ Go back to step ② (configure in the on-site room control device) or step ① (configure a single dimming control unit) to configure other dimming controllers.

所述步骤③中的选择调光控制器进行配置,完成配置确认的方法有很多,方法之一是进行一次调光控制器的调光操作,实现新的配置,同时取消老配置。例如,现在准备配置房灯调光控制器,在相关工程配置界面中选择房灯对应的调光控制器,然后对需要配置的某个调光控制器进行一次调光操作,则该调光控制器被配置成与工程配置界面中选择的调光控制器相同的功能或者是相同的编号,该调光控制器曾经被配置的其他功能或者编号被取消。方法之二是所有的调光控制器都有是否配置好的状态指示;对状态指示显示未配置的调光控制器进行一次调光操作,则进行新配置,状态指示显示配置成功;对状态指示显示配置成功的调光控制器进行一次调光操作,则取消配置,状态指示显示未配置;未配置的调光控制器可以是设置为备用调光控制器,或者设置成为未配置调光控制器,或者是设置为其他名称;未配置的调光控制器也可以是设置为0号调光控制器,或者设置成为其他特殊编号。是否配置好的状态指示,可以用指示灯的亮灭区分,可以用指示灯的是否闪烁区分,可以用指示灯的闪烁频率不同进行区分,可以用触摸显示屏显示不同的信息进行区分,等等。In the step ③, select the dimming controller for configuration, and there are many ways to complete the configuration confirmation. One of the methods is to perform a dimming operation of the dimming controller to realize a new configuration and cancel the old configuration at the same time. For example, if you are going to configure the dimming controller for the house light, select the dimming controller corresponding to the house lamp in the relevant project configuration interface, and then perform a dimming operation on a certain dimming controller that needs to be configured, the dimming control The dimming controller is configured with the same function or number as the dimming controller selected in the engineering configuration interface, and the other functions or numbers configured for the dimming controller are cancelled. The second method is that all dimming controllers have a status indication of whether they are configured; if the status indication shows that the dimming controller is not configured, perform a dimming operation, and then perform a new configuration, and the status indication shows that the configuration is successful; for the status indication If the dimming controller that shows the successful configuration performs a dimming operation, the configuration will be cancelled, and the status indicator will display unconfigured; the unconfigured dimming controller can be set as a backup dimming controller, or as an unconfigured dimming controller , or set to another name; the unconfigured dimming controller can also be set to No. 0 dimming controller, or set to other special numbers. Whether the status indication is configured well can be distinguished by the on and off of the indicator light, whether the indicator light is flickering or not, the frequency of the indicator light’s flickering, the touch screen displaying different information, etc. .

在调光控制单元的面板上通过面板操作进行配置。当调光指令装置由触摸显示屏组成时,其显示信息丰富,配置方便。具体的配置方法有各种选择,其目的或者方法都是在触摸显示屏上选择需要配置的调光控制器,对该需要配置的调光控制器的功能,或者是编号通过触摸显示屏进行修改并确认。Configuration is performed via panel operation on the panel of the dimming control unit. When the dimming instruction device is composed of a touch screen, the display information is rich and the configuration is convenient. There are various options for specific configuration methods. The purpose or method is to select the dimming controller to be configured on the touch screen, and modify the function or number of the dimming controller to be configured through the touch screen. and confirm.

所有调光控制器的配置都可以在任何时候进行重新配置、取消配置等更改操作。All dimmer controller configurations can be reconfigured, unconfigured, etc. changed at any time.

房间控制装置的触摸开关单元中,设置为或者是被配置为情景模式开关的开关,用于对情景模式进行启动,还可以进行情景模式的设置。In the touch switch unit of the room control device, a switch is set or configured as a scene mode switch, which is used to start the scene mode, and can also set the scene mode.

房间的情景模式可以有多种,例如,明亮模式、会客模式、休闲模式、阅读模式、睡眠模式,等等。灯光的总关功能可以是其中的一个情景模式。There may be various scene modes of the room, for example, bright mode, reception mode, leisure mode, reading mode, sleep mode, and so on. The master off function of lights can be one of the scene modes.

每种情景模式对应一个情景模式开关。每个情景模式开关控制房间控制装置中的一组对象控制单元来实现相应的情景模式。所述对象控制单元可以是电器控制开关,可以是调光控制器,还可以是空调控制器,等等。一组对象控制单元中至少包括2个对象控制单元,例如,一组对象控制单元包括至少2个电器控制开关,或者包括至少2个调光控制器,或者包括至少1个调光控制器和至少1个电器控制开关,等等。Each profile corresponds to a profile switch. Each scene mode switch controls a group of object control units in the room control device to realize the corresponding scene mode. The object control unit may be an electrical appliance control switch, a dimming controller, or an air conditioner controller, and so on. A group of object control units includes at least 2 object control units, for example, a group of object control units includes at least 2 electrical control switches, or includes at least 2 dimming controllers, or includes at least 1 dimming controller and at least 1 electrical control switch, etc.

情景模式开关中保存有该组对象控制单元的控制数据。情景模式开关启动情景模式时,将控制数据发送至相应的对象控制单元中,或者说发送至相应的对象控制单元所在的分布单元中。该组的各对象控制单元则按照接收到的控制数据进行相应的情景模式控制。The control data of the group of object control units are stored in the scene mode switch. When the scene mode switch activates the scene mode, the control data is sent to the corresponding object control unit, or to the distribution unit where the corresponding object control unit is located. Each object control unit in the group performs corresponding scene mode control according to the received control data.

情景模式可以通过情景模式开关和多个对象控制单元来共同设置;参与设置过程的多个对象控制单元组成前述的一组对象控制单元。具体方法是:The scene mode can be jointly set through the scene mode switch and multiple object control units; the multiple object control units participating in the setting process form the aforementioned group of object control units. The specific method is:

①操作情景模式开关,进入情景模式设置状态;① Operate the scene mode switch to enter the scene mode setting state;

②对该情景模式中需要控制的一个对象控制单元进行操作,设置相应的控制状态;② Operate an object control unit that needs to be controlled in the scene mode, and set the corresponding control state;

③重复步骤②,直至该组对象控制单元的控制状态全部设置完成;③Repeat step ② until all the control states of the control units of the group of objects are set;

④操作情景模式开关,退出情景模式设置状态;将该组所有对象控制单元的控制数据保存至该情景模式开关中。④ Operate the scene mode switch to exit the scene mode setting state; save the control data of all object control units in the group to the scene mode switch.

所述步骤①操作情景模式开关,进入情景模式设置状态,为避免误操作,可以采取长按操作情景模式开关才能进入情景模式设置状态,或者是连续多次短按情景模式开关才能进入情景模式设置状态,或者是连续2次(或者多次)长按情景模式开关才能进入情景模式设置状态,以及其他方法,等等。Step ① Operate the scene mode switch to enter the scene mode setting state. In order to avoid misoperation, you can take a long press to operate the scene mode switch to enter the scene mode setting state, or short press the scene mode switch several times in a row to enter the scene mode setting state, or press and hold the scene mode switch for 2 consecutive times (or multiple times) to enter the scene mode setting state, and other methods, etc.

所述步骤②对该情景模式中需要控制的一个对象控制单元进行操作,设置相应的控制状态;指的是对用开、关进行控制的电器,则至少操作一次该开关;例如,在该情景模式下,房灯需要开启,如果进入情景模式设置状态后,房灯处于熄灭状态,则操作一次房灯开关,开启房灯即可;如果进入情景模式设置状态后,房灯处于开启状态,则至少需要操作二次房灯开关,熄灭后再开启房灯。The step ② operates an object control unit that needs to be controlled in the scene mode, and sets the corresponding control state; it refers to operating the switch at least once for the electrical appliance controlled by on and off; for example, in this scene In this mode, the room light needs to be turned on. If the room light is off after entering the scene mode setting state, operate the room light switch once to turn on the room light; if the room light is on after entering the scene mode setting state, then It is necessary to operate the room light switch at least twice, and then turn on the room light after it is turned off.

所述步骤③,直至该组对象控制单元的控制状态全部设置完成,必须对该情景模式中需要控制的每个对象控制单元进行操作,设置为相应的控制状态;即使是仅需要对情景模式中的一个对象控制单元的控制状态进行修改,也需要对所有不需要修改控制状态的对象控制单元进行操作,设置相应的控制状态,保证该情景模式对应的所有对象控制单元都参与了设置操作。Said step ③, until the control state of the group of object control units is all set, each object control unit that needs to be controlled in the scene mode must be operated and set to the corresponding control state; even if only the scene mode needs to be controlled To modify the control state of an object control unit, it is also necessary to operate all object control units that do not need to modify the control state, set the corresponding control state, and ensure that all object control units corresponding to the scene mode participate in the setting operation.

某个情景模式启动后,启动其他的情景模式,自动退出当前的情景模式。After a scene mode is started, other scene modes are started, and the current scene mode is automatically exited.

某个情景模式启动后,对该情景模式中的对象控制单元进行操作,例如,对情景模式控制下的灯光进行调节,自动退出当前的情景模式。After a scene mode is started, the object control unit in the scene mode is operated, for example, the light under the control of the scene mode is adjusted, and the current scene mode is automatically exited.

某个情景模式启动后,也可以直接通过该情景模式的情景模式开关退出当前的情景模式。After a scene mode is started, the current scene mode can also be exited directly through the scene mode switch of the scene mode.

如图5所示的是居室中央控制管理系统的实施例,包括有中控服务器10和房间控制装置20、房间控制装置30、房间控制装置40、房间控制装置50共4个房间控制装置,用于控制4间居室房间、办公室,或者是4个(套)居室。4个房间控制装置都有互联网通信单元,4个房间控制装置利用互联网通信单元与中控服务器10之间采用互联网60,按照互联网协议进行通信。互联网60中可以包括网关、路由器、网络交换器等所有互联网联通中所采用的设备。As shown in Figure 5, it is an embodiment of the central control and management system of the living room, including a central control server 10, a room control device 20, a room control device 30, a room control device 40, and a room control device 50. It is suitable for controlling 4 bedrooms, offices, or 4 (sets) bedrooms. The 4 room control devices all have Internet communication units, and the 4 room control devices use the Internet 60 between the Internet communication units and the central control server 10 to communicate according to the Internet protocol. The Internet 60 may include gateways, routers, network switches and other devices used in Internet communication.

中控服务器可以是本地服务器,例如,在酒店局域网中设置一个中控服务器,或者是在居民小区的物业管理中心设置一个中控服务器;中控服务器也可以是各种形式的远程服务器,例如,使用云端服务器。The central control server can be a local server, for example, a central control server is set in the hotel LAN, or a central control server is set in the property management center of the residential area; the central control server can also be various forms of remote servers, for example, Use cloud servers.

图6所示为房间接入点单元的实施例结构图,包括微控制器模块,即接入点微控制器模块701,以及包括通信模块702、WAN口模块703。通信模块702、WAN口模块703与接入点微控制器模块701之间有电连接关系或者带光电隔离的电连接关系,用于相关信号的传递。互联网通信单元包括在房间接入点单元中。FIG. 6 is a structural diagram of an embodiment of a room access point unit, including a microcontroller module, that is, an access point microcontroller module 701 , and a communication module 702 and a WAN port module 703 . The communication module 702, the WAN port module 703 and the access point microcontroller module 701 have an electrical connection relationship or an electrical connection relationship with photoelectric isolation for the transmission of related signals. The Internet communication unit is included in the room access point unit.

房间接入点单元,或者称为房间AP,其作用是将所述房间控制装置与互联网进行联通,按照互联网协议与中控服务器进行通信。The room access point unit, or room AP, is used to connect the room control device with the Internet, and communicate with the central control server according to the Internet protocol.

房间AP通过WAN口模块703与中控服务器之间经由互联网实现连接,可及时将房间控制装置的相关信息上传至中控服务器,便于监测,实现系统数据库中的软开关与居室房间开关的联锁;可借助中控服务器对房间控制装置中的任何分布单元进行管理,实现远程控制,包括实现已经登录进入系统的用户端中监控开关对居室房间开关的联锁控制;可借助中控服务器对房间控制装置中的开关进行配置,特别是进行开关之间的联锁状态配置,方便快捷;等等。The room AP is connected to the central control server through the WAN port module 703 via the Internet, and can upload the relevant information of the room control device to the central control server in time, which is convenient for monitoring and realizes the interlocking of the soft switch in the system database and the room switch ; Any distributed unit in the room control device can be managed with the help of the central control server to realize remote control, including realizing the interlock control of the monitoring switch in the user terminal that has logged into the system to the living room switch; the central control server can be used to control the room The configuration of the switches in the control device, especially the configuration of the interlocking state between the switches, is convenient and quick; and so on.

房间AP中还可以包括WiFi模块704,还可以包括LAN口模块,WiFi模块704、LAN口模块与接入点微控制器模块701之间有电连接关系或者带光电隔离的电连接关系,用于相关信号的传递。LAN口模块向用户提供LAN口,WiFi模块704使房间AP具有WiFi热点功能。The room AP may also include a WiFi module 704, and may also include a LAN port module. The WiFi module 704, the LAN port module, and the access point microcontroller module 701 have an electrical connection relationship or an electrical connection relationship with photoelectric isolation for Transmission of relevant signals. The LAN port module provides the user with a LAN port, and the WiFi module 704 enables the room AP to have a WiFi hotspot function.

房间AP经由通信模块702,通过分布式无线通信网络实现与其他分布单元的通信,其作用是将中控服务器的数据下发到其他分布单元,以及将其他分布单元的信息上报给中控服务器。The room AP communicates with other distribution units through the distributed wireless communication network through the communication module 702, and its function is to send the data of the central control server to other distribution units and report the information of other distribution units to the central control server.

所述居室中央控制管理系统的管理与控制由中控管理系统软件来实现。所述中控管理系统软件为B/S(浏览器/服务器)架构,在中控服务器中装好其后台程序与系统数据库后,用户端只要安装浏览器,登录后即可使用。所有房间控制装置的信息都上传至中控服务器的系统数据库中,并可以在已经登录进入中控管理系统的用户端浏览查询;已经登录进入中控管理系统的用户端可以对居室房间的电器或者设备进行管理与控制。所述系统数据库可以选择各种流行的数据库平台。The management and control of the living room central control management system are realized by the central control management system software. The software of the central control management system is a B/S (browser/server) architecture. After the background program and the system database are installed in the central control server, the client only needs to install a browser and log in to use it. The information of all room control devices is uploaded to the system database of the central control server, and can be browsed and inquired on the client terminal that has logged into the central control management system; Device management and control. Various popular database platforms can be selected for the system database.

用户端可以是计算机,也可以是手持移动终端。用户端的使用者可以是工程人员,可以是酒店前台,可以是居室主人,可以是其他各种管理人员,等等。The user terminal can be a computer or a handheld mobile terminal. The user of the client terminal can be an engineer, a hotel receptionist, a room owner, or other management personnel, and so on.

用户端是计算机时,只要安装浏览器,登录进入中控管理系统后即可实现居室房间的管理与控制。中控管理系统设置有多种不同用户的登陆权限。以酒店管理为例,可以分别设置管理员、工程人员、高级经理、大堂经理、前台客服等不同用户的登陆权限,其中设置的管理员拥有最高权限。When the client is a computer, it only needs to install a browser and log in to the central control management system to realize the management and control of the living room. The central control management system has a variety of login permissions for different users. Taking hotel management as an example, you can set the login permissions of different users such as administrators, engineering personnel, senior managers, lobby managers, and front desk customer service, among which the set administrators have the highest authority.

用户能够使用计算机或者手持移动终端实现居室房间的管理与控制,与房间设备互动,如打开特定的灯光,调节房间的温度,进入情景模式,等等。用户能够使用计算机或者手持移动终端实现与特定的登录用户进行互动,例如,与酒店前台互动请求退房,与物业管理互动报告故障,等等。典型的手持移动终端包括手机和平板电脑。Users can use computers or handheld mobile terminals to realize the management and control of living rooms, and interact with room equipment, such as turning on specific lights, adjusting room temperature, entering scene modes, and so on. Users can use computers or handheld mobile terminals to interact with specific login users, for example, interact with the hotel front desk to request check-out, interact with property management to report faults, and so on. Typical handheld mobile terminals include mobile phones and tablet computers.

使用手持移动终端实现居室房间的管理与控制的方法之一是微信控制。用户微信关注,例如,酒店的公众号,或者是单位的公众号,或者是小区物业管理的公众号,等等相关的公众号后,即可实现相关管理与控制。例如,客人入住酒店后,通过酒店提供的wifi,输入房间号和验证码即可使用微信控制房间的设备,如灯光,空调,窗帘,情景模式等,也可以向酒店前台提出服务需求。One of the ways to use handheld mobile terminals to realize the management and control of living rooms is WeChat control. After users follow WeChat, for example, the official account of the hotel, or the official account of the unit, or the official account of the property management of the community, and other related official accounts, the relevant management and control can be realized. For example, after guests check into the hotel, they can use WeChat to control the equipment in the room, such as lights, air conditioners, curtains, scene modes, etc., by entering the room number and verification code through the wifi provided by the hotel, and they can also make service requests to the hotel front desk.

使用手持移动终端实现居室房间的管理与控制的方法之二是APP控制。以客人入住酒店为例,用户下载酒店提供的APP,登录进入后,即可通过APP控制房间的设备,如灯光,空调,窗帘,情景模式等,也可以向酒店前台提出服务需求。The second method of using the handheld mobile terminal to realize the management and control of the living room is APP control. Taking a guest staying in a hotel as an example, the user downloads the APP provided by the hotel, and after logging in, he can control the equipment in the room through the APP, such as lighting, air conditioning, curtains, scene modes, etc., and can also put forward service needs to the hotel front desk.

登录进入中控管理系统的用户端的相关显示控制界面上有与房间控制装置中开关相对应的监控开关;系统数据库中以软开关的形式保存房间控制装置中相对应的开关的信息;与房间控制装置中同一开关相对应的软开关和监控开关被配置成联锁状态。如果相对应的开关被设置成为情景模式开关,则系统数据库中同时还要保存该情景模式开关对应的该组控制单元的所有控制数据。There is a monitoring switch corresponding to the switch in the room control device on the relevant display control interface of the user terminal that logs into the central control management system; the information of the corresponding switch in the room control device is saved in the system database in the form of a soft switch; The soft switch and monitoring switch corresponding to the same switch in the device are configured in an interlock state. If the corresponding switch is set as a scene mode switch, all the control data of the group of control units corresponding to the scene mode switch will also be stored in the system database at the same time.

软开关能够与房间控制装置中相应的开关配置成联锁状态,或者说监控开关能够与房间控制装置中相应的开关配置成联锁状态。对显示控制界面上的某一个监控开关进行操作时,系统数据库中与其对应的软开关的状态改变,房间控制装置中与其配置成联锁状态的开关改变控制状态并执行相应的动作;当在居室房间中对某一个开关进行操作,改变控制状态时,系统数据库中与其对应的软开关的状态同样改变,登录进入系统的用户端中显示的该监控开关的状态也发生改变。The soft switch can be configured in an interlock state with the corresponding switch in the room control device, or the monitoring switch can be configured in an interlock state with the corresponding switch in the room control device. When operating a monitoring switch on the display control interface, the state of the corresponding soft switch in the system database changes, and the switch in the room control device configured as an interlocking state changes the control state and performs corresponding actions; when in the living room When a certain switch is operated in the room and the control state is changed, the state of the corresponding soft switch in the system database also changes, and the state of the monitoring switch displayed in the user terminal that logs into the system also changes.

登录进入中控管理系统的用户端的相关显示控制界面上有与房间控制装置中调光控制器相对应的监控调光控制器;系统数据库中以适当的数据形式保存房间控制装置中相对应的调光控制器的亮度控制数据;该亮度控制数据与房间控制装置中同一调光控制器的亮度控制数据被配置成联锁状态。There is a monitoring dimming controller corresponding to the dimming controller in the room control device on the relevant display control interface of the user terminal that logs into the central control management system; the corresponding dimming controller in the room control device is saved in the system database in the form of appropriate data. The brightness control data of the light controller; the brightness control data and the brightness control data of the same dimming controller in the room control device are configured in an interlocking state.

对显示控制界面上的某一个监控调光控制器进行操作时,系统数据库中与其对应的调光控制器的亮度控制数据改变,房间控制装置中与其配置成联锁状态的调光控制器改变亮度控制数据并进行调光;当在居室房间中对某一个调光控制器进行操作,改变灯光亮度时,系统数据库中与其对应的亮度控制数据同样改变。When operating a monitoring dimming controller on the display control interface, the brightness control data of the corresponding dimming controller in the system database changes, and the dimming controller configured in an interlocking state in the room control device changes the brightness Control data and perform dimming; when a certain dimming controller is operated in the living room to change the brightness of the light, the corresponding brightness control data in the system database will also change.

所述的多个房间控制装置中的每个房间控制装置均具有不同的ID,即标识号。中控管理系统软件通过标识号来对房间控制装置进行识别。标识号的具体形式很多,例如,采用房间接入点单元的MAC地址作为标识号,每个房间接入点单元都有6位MAC地址且出厂时明确标示。中控管理系统软件将居室房间房号与相应的标识号一一对应,居室房间房号与标识号可以在已经登录进入系统的用户端中采用键入的方式录入系统数据库,也可以先将居室房间房号与标识号的对应关系录入Excel、TXT等表格或者文档中再批量导入系统数据库。Each of the multiple room control devices has a different ID, that is, an identification number. The central control management system software identifies the room control device through the identification number. There are many specific forms of the identification number. For example, the MAC address of the room access point unit is used as the identification number. Each room access point unit has a 6-digit MAC address and is clearly marked when leaving the factory. The software of the central control management system corresponds the room number with the corresponding identification number one by one. The room number and the identification number can be entered into the system database by keying in the user terminal that has logged into the system, or the room number can be entered into the system database first. The corresponding relationship between the room number and the identification number is entered into Excel, TXT and other forms or documents, and then imported into the system database in batches.

系统数据库中有与所有居室房间开关相对应的软开关,已经登录进入系统的用户端的显示控制界面中有与所有居室房间开关相对应的监控开关,软开关、监控开关与居室房间中开关相对应的方法同样是控制对象名称,或者是与控制对象相关的编号。对房间控制装置内的开关写入控制对象名称或者编号后,则开关自动与系统数据库中相对应的软开关以及显示控制界面中有与所有居室房间开关相对应的监控开关配置为联锁状态。同样地,系统数据库中保存有与所有居室房间调光控制器相对应的亮度控制数据,监控调光控制器、居室房间内调光控制器和相对应的亮度控制数据采用同一控制对象名称,或者是同一编号来实现联锁。There are soft switches corresponding to all living room switches in the system database, and there are monitoring switches corresponding to all living room switches in the display control interface of the user terminal that has logged into the system. The soft switches and monitoring switches correspond to the switches in the living room The method is also the name of the control object, or the number related to the control object. After the name or number of the control object is written into the switch in the room control device, the switch is automatically configured as an interlocking state with the corresponding soft switch in the system database and the monitoring switch corresponding to all living room switches in the display control interface. Similarly, the system database stores brightness control data corresponding to all living room dimming controllers, and the monitoring dimming controller, living room dimming controller and corresponding brightness control data use the same control object name, or It is the same number to achieve interlocking.

系统数据库中预存有多种情景模式的控制数据,或者说是多种情景模式的标准控制数据。可以使用已经登录进入系统的用户端对居室房间的情景模式进行设置。方法之一是选择将预存的情景模式控制数据下载到需要设置的房间控制装置中,下载完成后,对应的情景模式开关中保存有该组所有对象控制单元的控制数据,即使是房间控制装置与中控服务器失联,通过情景模式开关启动情景模式时,其保存的控制数据仍会发送至相应的对象控制单元中,实现情景模式的控制。The system database pre-stores the control data of multiple scenarios, or the standard control data of multiple scenarios. You can use the user terminal that has logged into the system to set the scene mode of the living room. One of the methods is to choose to download the pre-stored scene mode control data to the room control device that needs to be set. After the download is completed, the corresponding scene mode switch will save the control data of all object control units in the group, even if the room control device is connected to the control unit. When the central control server is disconnected and the scene mode is activated through the scene mode switch, the saved control data will still be sent to the corresponding object control unit to realize the control of the scene mode.

方法之二是在用户端对居室房间的情景模式进行设置,具体方法是:The second method is to set the scene mode of the living room on the user terminal, the specific method is:

①操作情景模式开关对应的监控开关,进入情景模式设置状态;① Operate the monitoring switch corresponding to the scene mode switch to enter the scene mode setting state;

②对该情景模式中需要控制的一个对象控制单元进行操作,设置相应的控制状态;例如,关闭房灯对应的监控开关,或者是,调节壁灯对应的监控调光控制器;② Operate an object control unit that needs to be controlled in the scene mode, and set the corresponding control state; for example, turn off the monitoring switch corresponding to the room light, or adjust the monitoring and dimming controller corresponding to the wall lamp;

③重复步骤②,直至该组对象控制单元的控制状态全部设置完成;③Repeat step ② until all the control states of the control units of the group of objects are set;

④操作情景模式开关对应的监控开关,退出情景模式设置状态;将该组所有对象控制单元的控制数据下载并保存至相应房间控制装置中对应的该情景模式开关中。④ Operate the monitoring switch corresponding to the scene mode switch to exit the scene mode setting state; download and save the control data of all object control units in the group to the corresponding scene mode switch in the corresponding room control device.

所述步骤③,直至该组对象控制单元的控制状态全部设置完成,必须对该情景模式中需要控制的每个对象控制单元进行操作,设置相应的控制状态;即使是仅需要对情景模式中的一个对象控制单元的控制状态进行修改,也需要对所有不需要修改控制状态的对象控制单元进行操作,设置相应的控制状态,保证该情景模式对应的所有对象控制单元都参与了设置操作。In the step ③, until the control states of the group of object control units are all set, each object control unit that needs to be controlled in the scene mode must be operated to set the corresponding control state; To modify the control state of an object control unit, it is also necessary to operate all object control units that do not need to modify the control state, set the corresponding control state, and ensure that all object control units corresponding to the scene mode participate in the setting operation.

所述房间控制装置的多个分布单元中,还可以包括1个或多个空调控制单元、1个或者多个监测单元、1个或者多个可控插座,等等;如果是用于酒店客房控制,所述房间控制装置的多个分布单元中,还可以包括取电开关单元、电子门牌单元,等等。The multiple distribution units of the room control device may also include one or more air-conditioning control units, one or more monitoring units, one or more controllable sockets, etc.; if it is used in hotel rooms Control, the multiple distribution units of the room control device may also include a power-taking switch unit, an electronic door plate unit, and the like.

所有分布单元的信息,或者是状态,都可以上传至中控服务器,并保存在系统数据库中;起控制作用的分布单元,可以通过已经登录进入系统的用户端,经由中控服务器进行控制。The information or status of all distributed units can be uploaded to the central control server and stored in the system database; the distributed units that play a control role can be controlled through the central control server through the user terminal that has logged into the system.

所述房间控制装置采用分布式无线通信网络通信时,各分布单元之间可以采用多主广播方式实现通信,或者是采用主从方式进行通信,或者是采用单主广播方式实现通信。三种通信方式的具体实施均通过分布单元之内微控制器模块中运行的程序来执行。When the room control device uses a distributed wireless communication network to communicate, the distributed units can communicate in a multi-master broadcasting manner, or in a master-slave manner, or in a single-master broadcasting manner. The specific implementation of the three communication modes is executed by the program running in the microcontroller module in the distribution unit.

所述房间控制装置采用分布式无线通信网络,所有分布单元之间采用多主广播方式实现通信时,所述多主,指的是所述分布式无线通信网络中所有分布单元都是主机,都可以向分布式无线通信网络主动采用广播方式发送数据。所有分布单元都具有一个通信模块,在同一个房间控制装置,所有通信模块采用同样的方式,将所在分布单元的数据传输给其他分布单元,以及接收其他分布单元的数据。如果分布式无线通信网络没有任何一个分布单元通过通信模块向外采用广播方式发送数据,则分布式无线通信网络处于空闲状态;如果分布式无线通信网络有分布单元通过通信模块向外采用广播方式发送数据,则分布式无线通信网络处于非空闲状态。当某一个分布单元需要向外发送数据时,先侦测分布式无线通信网络的当前状态;所述分布单元在侦测到分布式无线通信网络处于空闲状态时,开始由其通信模块向外采用广播方式发送数据。The room control device adopts a distributed wireless communication network, and when all distributed units adopt a multi-master broadcast mode to realize communication, the multi-master means that all distributed units in the distributed wireless communication network are masters, and all Data can be actively broadcast to the distributed wireless communication network. All distribution units have a communication module. In the same room to control the device, all communication modules use the same method to transmit the data of the distribution unit to other distribution units and receive the data of other distribution units. If there is no distributed unit in the distributed wireless communication network to send data by broadcasting through the communication module, the distributed wireless communication network is in an idle state; data, the distributed wireless communication network is in a non-idle state. When a certain distribution unit needs to send data to the outside, it first detects the current state of the distributed wireless communication network; when the distribution unit detects that the distributed wireless communication network is in an idle state, it starts to adopt the Send data in broadcast mode.

正常工作情况下,房间控制装置中的分布单元数量有限,各分布单元向外广播发送数据的占时时间很短。一方面是需要发送的数据简单,报文短;另一方面是针对各分布单元的操作次数有限,例如,针对触摸开关单元的操作,无论是开、关灯,或者是开、关排风扇等,不会频繁操作,而各分布单元只有在该分布单元的状态发送变化时才需要向外发送数据,因此,各分布单元需要向外及时发送数据的时候不多。所以,分布式无线通信网络基本处于空闲状态,其通信的负载率极低;各分布单元采用广播方式发送数据,通常不会造成冲突,即总线上有2个及以上的分布单元同时采用广播方式发送数据,或者是2个及以上的分布单元同时利用无线通信网络采用广播方式发送数据。Under normal working conditions, the number of distribution units in the room control device is limited, and the time taken for each distribution unit to broadcast and send data to the outside is very short. On the one hand, the data to be sent is simple and the message is short; on the other hand, the number of operations for each distribution unit is limited, for example, for the operation of the touch switch unit, whether it is turning on or off the light, or turning on or off the exhaust fan, etc. It does not operate frequently, and each distribution unit only needs to send data when the state of the distribution unit changes. Therefore, there are not many times when each distribution unit needs to send data to the outside in time. Therefore, the distributed wireless communication network is basically in an idle state, and its communication load rate is extremely low; each distribution unit uses broadcasting to send data, which usually does not cause conflicts, that is, two or more distribution units on the bus use broadcasting at the same time Send data, or two or more distribution units use the wireless communication network to send data by broadcasting at the same time.

为提高通信的可靠性,各分布单元可以将需要广播发布的数据再重复发送1次或者1次以上,每次重发在间隔延时时间t之后进行;与第一次发送一样,所有重复发送都需要在侦测到分布式无线通信网络处于空闲状态时才开始进行。进一步地,为避免已经造成冲突的分布单元重复发送时再次造成冲突,重发的间隔延时时间t的具体值采用随机方式产生;多次重发时,每次重发的间隔延时时间t均采用随机方式产生,即每次重发的间隔延时时间都随机选择。间隔延时时间t的范围没有具体要求,通常情况下,间隔延时时间t的最大值不超过10ms,最小值大于0。例如,可以设定间隔延时时间t在0.1~1ms之间随机产生。In order to improve the reliability of communication, each distribution unit can re-send the data that needs to be broadcast and released once or more, and each re-send is carried out after the interval delay time t; like the first sending, all repeated sending Both need to be started when it is detected that the distributed wireless communication network is in an idle state. Further, in order to avoid conflicts caused by repeated transmission of distribution units that have already caused conflicts, the specific value of the delay time t between retransmissions is generated in a random manner; They are all generated in a random manner, that is, the interval delay time of each retransmission is randomly selected. There is no specific requirement on the range of the interval delay time t. Generally, the maximum value of the interval delay time t does not exceed 10 ms, and the minimum value is greater than 0. For example, the interval delay time t can be set to be randomly generated between 0.1 and 1 ms.

分布单元之间采用多主广播方式实现通信,分布单元采用自组网方式组成分布式无线通信网络。各分布单元的通信模块都采用能够实现无线数字通信的无线收发模块,即自动组成所述的分布式无线通信网络。The distribution units use multi-master broadcasting to realize communication, and the distribution units use ad hoc network to form a distributed wireless communication network. The communication modules of each distribution unit adopt wireless transceiver modules capable of realizing wireless digital communication, that is, automatically form the distributed wireless communication network.

分布单元采用多主广播方式实现通信,发送数据时,只将本分布单元的相关信息进行发送,发送的信息与其他分布单元无关。The distribution unit uses the multi-master broadcast method to realize communication. When sending data, only the relevant information of the distribution unit is sent, and the information sent has nothing to do with other distribution units.

分布单元采用多主广播方式实现通信,当所述分布式无线通信网络出现故障,或者是部分分布单元出现故障时,完好部分的分布式无线通信网络或者是由完好的部分分布单元组成的分布式无线通信网络仍然能够正常工作。The distribution unit adopts a multi-master broadcasting method to realize communication. When the distributed wireless communication network fails, or some of the distribution units fail, the intact part of the distributed wireless communication network or the distributed wireless communication network composed of intact part of the distribution units Wireless communication networks are still able to function normally.

所述房间控制装置采用分布式无线通信网络,所有分布单元之间采用主从方式进行通信时,将所述房间控制装置的多个分布单元中的一个配置为通信主机,其他的分布单元配置为通信从机。配置为通信主机的分布单元仅仅是通信方面的主机,并不起集中控制的作用。The room control device adopts a distributed wireless communication network, and when all distribution units communicate in a master-slave manner, one of the multiple distribution units of the room control device is configured as a communication master, and the other distribution units are configured as communication slave. A distribution unit configured as a communication master is only a communication master and does not function as a centralized control.

将所述房间控制装置的多个分布单元中的一个配置为通信主机的方式有多种。There are several ways to configure one of the distribution units of the room control device as a communication master.

配置通信主机的方式一:采用预先固定配置的方式,即将所述房间控制装置的多个分布单元中的一个预先固定配置为通信主机,其他分布单元配置为通信从机。例如,将图1所示的房间控制装置中的调光控制单元101配置为通信主机,触摸开关单元102、触摸开关单元103、触摸开关单元104配置为通信从机;在图1所示系统的基础上再增加的其他分布单元也都配置为通信从机。或者是当所述房间控制装置的多个分布单元中有取电开关单元时,将取电开关单元配置为通信主机,其他分布单元都配置为通信从机。或者是当所述房间控制装置的多个分布单元中有房间接入点单元时,将其配置为通信主机,其他分布单元都配置为通信从机。等等。采用预先固定配置的方式时,配置为通信主机的分布单元之内微控制器模块中运行的通信程序固定为主机通信程序,配置为通信从机的分布单元之内微控制器模块中运行的通信程序固定为从机通信程序。Method 1 for configuring the communication master: adopting a pre-fixed configuration method, that is, one of the multiple distribution units of the room control device is pre-fixed and configured as a communication master, and the other distribution units are configured as communication slaves. For example, the dimming control unit 101 in the room control device shown in Figure 1 is configured as a communication master, and the touch switch unit 102, touch switch unit 103, and touch switch unit 104 are configured as communication slaves; in the system shown in Figure 1 Other distribution units added on the basis are also configured as communication slaves. Or when there is a power-taking switch unit in the multiple distribution units of the room control device, the power-taking switch unit is configured as a communication master, and other distribution units are configured as communication slaves. Or, when there is a room access point unit among the multiple distribution units of the room control device, it is configured as a communication master, and other distribution units are configured as communication slaves. etc. When using the pre-fixed configuration method, the communication program running in the microcontroller module in the distribution unit configured as the communication master is fixed as the master communication program, and the communication program running in the microcontroller module in the distribution unit configured as the communication slave The program is fixed as the slave communication program.

配置通信主机的方式二:采用工程配置确定的方式,即将所述房间控制装置的多个分布单元中的一个选择配置确定为通信主机,其他分布单元选择配置确定为通信从机。此时,所述房间控制装置中所有分布单元都能够被选择配置成通信主机或者是从机;分布单元被选择配置确定为通信主机时,该分布单元之内微控制器模块中运行的通信程序为主机通信程序;分布单元被选择配置确定为通信从机时,该分布单元之内微控制器模块中运行的通信程序为从机通信程序。例如,将图1所示的房间控制装置中的调光控制单元101配置为通信主机,触摸开关单元102、触摸开关单元103、触摸开关单元104配置为通信从机,则调光控制单元101内接入点微控制器模块中运行的通信程序为主机通信程序,触摸开关单元102、触摸开关单元103、触摸开关单元104内开关微控制器模块中运行的通信程序为从机通信程序;将图1所示的房间控制装置中的触摸开关单元102配置为通信主机,调光控制单元101、触摸开关单元103、触摸开关单元104配置为通信从机,则触摸开关单元102内开关微控制器模块中运行的通信程序为主机通信程序,触摸开关单元103、触摸开关单元104内开关微控制器模块中运行的通信程序和调光控制单元101内接入点微控制器模块中运行的通信程序为从机通信程序。采用工程配置确定的方式配置通信主机的方法也有多种,可以在生产时进行配置确定,也可以在现场进行配置确定或者修改配置;可以在现场的房间控制装置中接入电脑或者专用配置工具,或者是通过已经登录进入系统的用户端进行联网统一配置确定,也可以将单个分布单元与电脑或者专用配置工具连接,进行离网单独配置确定;还可以在分布单元微控制器模块的I/O端输入可以控制的电平信号来进行配置。The second way of configuring the communication master: adopt the method of engineering configuration determination, that is, select and configure one of the multiple distribution units of the room control device as the communication master, and select and configure the other distribution units as communication slaves. At this time, all distribution units in the room control device can be selected and configured as communication masters or slaves; when the distribution unit is selected and configured as a communication master, the communication program running in the microcontroller module It is the master communication program; when the distribution unit is selected and configured as a communication slave, the communication program running in the micro-controller module in the distribution unit is the slave communication program. For example, if the dimming control unit 101 in the room control device shown in FIG. 1 is configured as a communication master, and the touch switch unit 102, 103, and 104 are configured as communication slaves, then the The communication program that runs in the access point microcontroller module is a master communication program, and the communication program that runs in the switch microcontroller module in the touch switch unit 102, touch switch unit 103, and touch switch unit 104 is a slave communication program; The touch switch unit 102 in the room control device shown in 1 is configured as a communication master, and the dimming control unit 101, the touch switch unit 103, and the touch switch unit 104 are configured as communication slaves, and the touch switch unit 102 switches the microcontroller module The communication program running in is the host communication program, the communication program running in the switch microcontroller module in the touch switch unit 103 and the touch switch unit 104 and the communication program running in the access point microcontroller module in the dimming control unit 101 are as follows: Slave communication program. There are also many ways to configure the communication host by means of engineering configuration determination. The configuration can be determined during production, or the configuration can be determined or modified on site; the computer or special configuration tool can be connected to the room control device on site. Or through the user terminal that has logged into the system to perform unified network configuration and determination, or connect a single distribution unit to a computer or a special configuration tool to perform off-network separate configuration determination; it can also be determined in the I/O of the microcontroller module of the distribution unit Input a controllable level signal to configure.

分布单元之间采用主从方式进行通信时,通信主机起综合协调的作用,所有分布单元之间的通信均通过通信主机来完成。各通信从机所在分布单元的数据首先发送给通信主机,通信主机再将数据转发到各个通信从机所在的分布单元或指定的通信从机所在的分布单元;通信主机所在分布单元的数据则直接发送到各个通信从机所在的分布单元或指定的通信从机所在的分布单元。When the distributed units communicate in a master-slave manner, the communication host plays the role of comprehensive coordination, and the communication between all distributed units is completed through the communication host. The data of the distribution unit where each communication slave is located is first sent to the communication master, and then the communication master forwards the data to the distribution unit where each communication slave is located or the distribution unit where the designated communication slave is located; the data of the distribution unit where the communication master is located is directly Send to the distribution unit where each communication slave is located or the distribution unit where the specified communication slave is located.

所述房间控制装置采用分布式无线通信网络,所有分布单元之间采用单主广播方式实现通信时,将所述分布式无线通信网络的多个分布单元中的一个配置为协调主机,其他的分布单元配置为协调从机。分布式无线通信网络中,任何时刻只能有一个分布单元具有广播权限,向分布式无线通信网络采用广播方式发送数据;所有分布单元的广播权限由协调主机综合协调确定;广播权限的确定方法优选简单的轮换方式,也可以采用其他方法来确定。配置为协调主机的分布单元仅仅起协调广播权限的作用,并不起集中控制的作用。The room control device adopts a distributed wireless communication network, and when all distribution units adopt a single master broadcast mode to realize communication, one of the multiple distribution units of the distributed wireless communication network is configured as a coordinating master, and the other distribution units are configured as a coordinating master. The unit is configured as a coordinating slave. In a distributed wireless communication network, only one distribution unit has broadcast authority at any time, and broadcasts data to the distributed wireless communication network; the broadcast authority of all distribution units is determined by the coordination of the coordinating host; the method of determining the broadcast authority is optimal A simple rotation method can also be determined by other methods. The distribution unit configured as the coordinating host only plays the role of coordinating broadcast authority, and does not play the role of centralized control.

将所述分布式无线通信网络的多个分布单元中的一个配置为协调主机的方式与采用主从方式进行通信时,将所述分布式无线通信网络的多个分布单元中的一个配置为通信主机的一样,有多种方式,包括采用预先固定配置的方式,即将所述分布式无线通信网络的多个分布单元中的一个预先固定配置为协调主机,其他分布单元配置为协调从机;配置为协调主机的分布单元之内微控制器模块中运行的通信程序固定为协调主机通信程序,配置为协调从机的分布单元之内微控制器模块中运行的通信程序固定为协调从机通信程序。包括采用工程配置确定的方式,即将所述分布式无线通信网络的多个分布单元中的一个选择配置确定为协调主机,其他分布单元选择配置确定为协调从机;此时,所述分布式无线通信网络中所有分布单元都能够被选择配置成协调主机或者是协调从机;分布单元被选择配置确定为协调主机时,该分布单元之内微控制器模块中运行的通信程序为协调主机通信程序;分布单元被选择配置确定为协调从机时,该分布单元之内微控制器模块中运行的通信程序为协调从机通信程序。采用工程配置确定的方式配置协调主机的方法也有多种,可以在生产时进行配置确定,也可以在现场进行配置确定或者修改配置;可以在现场的分布式无线通信网络中接入电脑或者专用配置工具,或者是通过已经登录进入系统的用户端进行联网统一配置确定,也可以将单个分布单元与电脑或者专用配置工具连接,进行离网单独配置确定;还可以在分布单元微控制器模块的I/O端输入可以控制的电平信号来进行配置。When one of the plurality of distribution units of the distributed wireless communication network is configured to communicate in the mode of coordinating the master and adopting the master-slave mode, one of the plurality of distribution units of the distributed wireless communication network is configured to communicate The same as the master, there are many ways, including the way of pre-fixed configuration, that is, one of the multiple distribution units of the distributed wireless communication network is pre-fixed and configured as a coordinating master, and other distribution units are configured as coordinating slaves; configuration The communication program running in the micro-controller module in the distribution unit for coordinating the master is fixed as the coordinating master communication program, and the communication program running in the micro-controller module in the distribution unit configured as a coordinating slave is fixed as the coordinating slave communication program . Including adopting the method of engineering configuration determination, that is, determining the selected configuration of one of the multiple distributed units of the distributed wireless communication network as the coordinating master, and selecting and configuring other distributed units as coordinating slaves; at this time, the distributed wireless communication network All distribution units in the communication network can be selected and configured as coordinating masters or coordinating slaves; when a distribution unit is selected and configured as a coordinating master, the communication program running in the microcontroller module within the distribution unit is a coordinating master communication program ; When the distribution unit is determined as the coordination slave by the selected configuration, the communication program running in the micro-controller module in the distribution unit is the coordination slave communication program. There are also many ways to configure the coordinating host in the way of engineering configuration determination. The configuration can be determined during production, or the configuration can be determined or modified on site; it can be connected to a computer or dedicated configuration in the distributed wireless communication network on site. tool, or through the user terminal that has logged into the system to perform unified network configuration determination, or connect a single distribution unit to a computer or a special configuration tool to perform off-network separate configuration determination; it can also be determined in the I The /O terminal inputs a controllable level signal for configuration.

采用主从方式进行通信时,所述房间控制装置的多个分布单元中的一个被配置为通信主机,其他分布单元被配置为通信从机。而所述房间控制装置中所有的通信从机都需要在通信主机中注册,加入分布式无线通信网络,即通信主机需要知道所述房间控制装置中有那些被配置为通信从机的分布单元,让通信主机能够对所有通信从机进行通信权限的协调与分配。When communication is performed in a master-slave manner, one of the multiple distribution units of the room control device is configured as a communication master, and the other distribution units are configured as communication slaves. And all the communication slaves in the room control device need to register in the communication master and join the distributed wireless communication network, that is, the communication master needs to know that there are distributed units configured as communication slaves in the room control device, Allow the communication master to coordinate and allocate communication rights to all communication slaves.

采用单主广播方式进行通信时,所述分布式无线通信网络的多个分布单元中的一个被配置为协调主机,其他分布单元被配置为协调从机。而所述房间控制装置中所有的协调从机都需要在协调主机中注册,加入分布式无线通信网络,即协调主机需要知道所述房间控制装置中有那些被配置为协调从机的分布单元,让协调主机能够对所有协调从机进行广播权限的协调与分配。When communication is performed in a single-master broadcast manner, one of the multiple distribution units of the distributed wireless communication network is configured as a coordinating master, and the other distribution units are configured as coordinating slaves. And all the coordination slaves in the room control device need to register in the coordination master and join the distributed wireless communication network, that is, the coordination master needs to know that there are distributed units configured as coordination slaves in the room control device, Allow the coordinating master to coordinate and distribute broadcast rights to all coordinating slaves.

通信从机在通信主机中注册的方法有多种,协调从机在协调主机中注册的方法与通信从机在通信主机中注册的方法一样,也有多种。下面将通信从机简称从机、通信主机简称主机,将协调从机也简称从机、协调主机也简称主机,来说明通信从机在通信主机中注册以及协调从机在协调主机中注册的方法。所述注册,指的是将从机的必要信息添加至主机,例如,将从机的单元识别码或者地址码添加至主机,实现主机能够对所有从机进行通信权限、广播权限等的协调与分配。前述的所有所述分布单元均设有单元识别码或者通信地址码,用于分布单元之间的识别。There are many ways for the communication slave to register in the communication master, and the method for the coordination slave to register in the coordination master is the same as the method for the communication slave to register in the communication master. In the following, the communication slave is referred to as the slave, the communication master is referred to as the master, the coordination slave is also referred to as the slave, and the coordination master is also referred to as the master, to explain the method of registering the communication slave in the communication master and the coordination slave registering in the coordination master . The registration refers to adding the necessary information of the slave to the host, for example, adding the unit identification code or address code of the slave to the host, so that the host can coordinate and communicate with all slaves, such as communication authority and broadcast authority. distribute. All the aforementioned distribution units are equipped with unit identification codes or communication address codes for identification between distribution units.

注册方法一:在被配置为主机的分布单元的操作面板上进行注册,通过面板操作将从机的必要信息添加至主机。Registration method 1: Register on the operation panel of the distribution unit configured as the master, and add the necessary information of the slave to the master through panel operations.

注册方法二:在现场的房间控制装置中接入电脑或者专用注册工具,或者是在已经登录进入系统的用户端,通过中控服务器利用房间接入点单元及分布式无线通信网络将从机的必要信息添加至主机。Registration method 2: Access the computer or special registration tool in the on-site room control device, or use the room access point unit and distributed wireless communication network to transfer the slave’s The necessary information is added to the host.

注册方法三:将被配置为主机的分布单元与电脑或者专用注册工具连接,通过电脑或者专用注册工具直接将从机的必要信息添加至主机。Registration method three: connect the distribution unit configured as the master to a computer or a special registration tool, and directly add the necessary information of the slave to the master through the computer or a special registration tool.

注册方法四:自动注册方式。设系统中存在从机G,以从机G为例,说明自动注册方式的要点:①主机采用轮换或者是其他方式,以不超过时间T的时间间隔与已经注册的从机进行通信联络;所述与已经注册的从机进行通信联络,包括确认从机的广播权限,或者是确认从机的通信权限,或者是其他形式的通信联络。②主机随时检测分布式无线通信网络上是否有从机采用广播方式发送的注册信息,若有,则将该注册信息在主机中注册。③从机G上电后,等待主机发起与从机G的联络,等待时间是T+T1。④在等待时间T+T1之内,主机发起了与从机G的联络,则从机G已经在主机中注册,注册结束。⑤在等待的时间T+T1之内,主机未发起与从机G的联络,从机G认为未在主机中注册,从而发起自动注册过程。⑥从机G的自动注册过程是,向分布式无线通信网络采用广播方式发送注册信息,之后,等待主机发起与从机G的联络,等待时间是T+T1;在等待时间T+T1之内,主机发起了与从机G的联络,则从机G已经在主机中注册,注册结束;在等待的时间T+T1之内,主机未发起与从机G的联络,从机G的该次自动注册未成功。⑦从机G的自动注册未成功时,可以重复多次,例如,重复3次自动注册过程。Registration method four: automatic registration method. Assuming that there is a slave G in the system, take the slave G as an example to illustrate the main points of the automatic registration method: ① The master uses rotation or other methods to communicate with the registered slaves at intervals not exceeding time T; Describe the communication with the registered slave, including confirming the broadcast authority of the slave, or confirming the communication authority of the slave, or other forms of communication. ②The host detects at any time whether there is registration information sent by the slave in broadcast mode on the distributed wireless communication network, and if so, registers the registration information in the host. ③ After the slave G is powered on, wait for the master to initiate contact with the slave G, and the waiting time is T+T1. ④ Within the waiting time T+T1, the master initiates a communication with the slave G, then the slave G has registered in the master, and the registration is over. ⑤ Within the waiting time T+T1, the master does not initiate contact with the slave G, and the slave G considers that it is not registered in the master, and thus initiates an automatic registration process. ⑥ The automatic registration process of the slave G is to send the registration information to the distributed wireless communication network by broadcasting, and then wait for the master to initiate contact with the slave G. The waiting time is T+T1; within the waiting time T+T1 , the master initiates the communication with the slave G, the slave G has registered in the master, and the registration is over; within the waiting time T+T1, the master does not initiate the communication with the slave G, the slave G Automatic registration was unsuccessful. ⑦ When the automatic registration of the slave G is unsuccessful, it can be repeated multiple times, for example, the automatic registration process is repeated 3 times.

附加等待时间T1的范围没有具体要求,通常情况下,附加等待时间T1最大值不超过10ms,最小值大于0。例如,可以设定附加等待时间T1在0.1~1ms之间随机产生。There is no specific requirement on the range of the additional waiting time T1. Generally, the maximum value of the additional waiting time T1 is not more than 10 ms, and the minimum value is greater than 0. For example, the additional waiting time T1 can be set to be randomly generated between 0.1 and 1 ms.

选择时间T时,要求T大于主机轮流联络一次所有从机所需要的时间,即采用主从方式进行通信时,通信主机轮流与所有通信从机通信一次,且完成所有数据的接收与转发所需要的时间;采用单主广播方式进行通信时,协调主机轮流与所有协调从机通信一次,且所有协调从机完成数据的广播发送所需要的时间。When selecting the time T, it is required that T be greater than the time required for the master to contact all the slaves in turn, that is, when the master-slave mode is used for communication, the communication master communicates with all the communication slaves once in turn, and completes the reception and forwarding of all data. When using the single-master broadcast method for communication, the coordinating master communicates with all coordinating slaves in turn, and the time required for all coordinating slaves to complete the broadcast transmission of data.

所述房间控制装置分布单元发送数据时,是否发送数据、即发送数据的驱动方式采用事件驱动方式、时间驱动方式中的一种,或者是同时采用事件驱动方式与时间驱动方式。所述事件驱动方式是指所在分布单元产生了需要发送的数据时,即启动数据发送,将依据本分布单元相关信息产生的数据发送至其他分布单元;例如,触摸开关单元有开关操作时,需要启动数据发送;例如,房间接入点单元接收到中控服务器的数据后,需要启动数据发送;等等。所述时间驱动方式是指分布单元将所在单元的状态信息等数据定期向外发送。When the distribution unit of the room control device sends data, whether to send data, that is, the driving method of sending data adopts one of the event-driven method and the time-driven method, or adopts the event-driven method and the time-driven method at the same time. The event-driven mode refers to that when the distribution unit generates the data that needs to be sent, the data transmission is started, and the data generated according to the relevant information of the distribution unit is sent to other distribution units; for example, when the touch switch unit has a switch operation, it needs to Start data sending; for example, after the room access point unit receives the data from the central control server, it needs to start data sending; and so on. The time-driven mode refers to that the distribution unit regularly sends out data such as status information of the unit where it is located.

所有分布单元中都有微控制器模块。例如,调光控制单元中的微控制器模块是调光微控制器模块,触摸开关单元中的微控制器模块是开关微控制器模块,房间接入点单元中的微控制器模块是接入点微控制器模块。There is a microcontroller module in all distribution units. For example, the microcontroller module in the dimming control unit is the dimming microcontroller module, the microcontroller module in the touch switch unit is the switch microcontroller module, and the microcontroller module in the room access point unit is the access Click on the microcontroller module.

所述分布单元的微控制器模块的控制核心,例如接入点微控制器模块701、开关微控制器模块301、调光微控制器模块401等模块的控制核心可以选择单片机、ARM、DSP等微控制器,也可以选择CPLD等控制器。The control core of the microcontroller module of the distribution unit, such as the control core of the access point microcontroller module 701, the switch microcontroller module 301, the dimming microcontroller module 401, etc., can choose a single-chip microcomputer, ARM, DSP, etc. Microcontroller, you can also choose a controller such as CPLD.

各分布单元的配置信息,例如情景模式的控制数据,各种识别码、标识号、地址码信息,等等所有允许修改,但需要在停电时仍然保留的信息,保存在分布单元的微控制器模块的控制核心自带的非易失性存储器中,或者是保存在分布单元中微控制器模块的控制核心外所增加的非易失性存储器中。例如,控制核心选择单片机时,修改信息保存在单片机的非易失性存储器中,或者是保存在单片机外围所扩展的非易失性存储器器件中。The configuration information of each distribution unit, such as the control data of the scene mode, various identification codes, identification numbers, address code information, etc., which are allowed to be modified but need to be retained during power failure, are stored in the microcontroller of the distribution unit The control core of the module is stored in the non-volatile memory that comes with it, or stored in the non-volatile memory that is added outside the control core of the microcontroller module in the distribution unit. For example, when the control core selects a single-chip microcomputer, the modification information is stored in a non-volatile memory of the single-chip microcomputer, or in a non-volatile memory device extended on the periphery of the single-chip microcomputer.

所述分布单元的供电电源可以采用零火线电源,也可以根据需要采用单火线电源。The power supply of the distribution unit may adopt a zero live wire power supply, or a single live wire power supply as required.

房间控制装置无需控制主机,可以根据需要选择合适数量的调光控制单元、触摸开关单元等相关分布单元通过分布式无线通信网络自行组成;房间控制装置的情景模式控制数据保存在相应的情景模式开关中,无需服务器,也无需控制主机,即可实现情景模式的控制;情景模式的设置直接采用情景模式开关和相应的情景模式控制单元来完成,同样无需服务器,也无需控制主机;利用服务器,可采用手机微信等实现情景模式的控制与设置;各分布单元能够采用86底壳结构进行安装;具有成本低,安装调试且方便、快捷的优势。The room control device does not need to control the host, and can select an appropriate number of related distribution units such as dimming control units and touch switch units according to the needs to form itself through a distributed wireless communication network; the scene mode control data of the room control device is stored in the corresponding scene mode switch In the process, the control of the scene mode can be realized without a server or a control host; the setting of the scene mode is directly completed by using the scene mode switch and the corresponding scene mode control unit, which also does not require a server or a control host; Use mobile phone WeChat to realize the control and setting of scene mode; each distribution unit can be installed with 86 bottom shell structure; it has the advantages of low cost, convenient and fast installation and debugging.

图3实施例仅为个例。按照上述要求选择或者设计触摸开关单元、房间接入点单元、调光控制单元等的微控制器模块电路,并选择或者设计其相应的外围模块器件与电路,以实现相应的功能,是本领域技术人员所掌握的常规技术。The embodiment in Fig. 3 is only an example. According to the above requirements, select or design the microcontroller module circuit of the touch switch unit, room access point unit, dimming control unit, etc., and select or design the corresponding peripheral module devices and circuits to realize the corresponding functions. Conventional techniques mastered by technicians.

Claims (7)

1. a kind of room scene mode setting method, it is characterised in that realized by room control device;
The room control device includes multiple distribution units, and the plurality of distribution unit includes N number of soft-touch control unit With P dimming control unit;The N is more than or equal to 1;The P is more than or equal to 1;
N number of soft-touch control unit includes at least 2 intelligent switch;
The intelligent switch can be provided as contextual model switch;The intelligent switch can also be provided as electrical equipment control System switch;
The distribution unit all includes communication module;The communication module is wireless data sending transceiver module;The plurality of distribution Communication network between unit is distributed wireless communication network.
2. room scene mode setting method according to claim 1, it is characterised in that the contextual model is by room control A group objects control unit and its contextual model switch in device processed carrys out co- controlling;The one group objects control unit is at least Including 2 object control units;The object control unit includes electric control switch and light adjusting controller.
3. room scene mode setting method according to claim 2, it is characterised in that protect in the contextual model switch There is the control data of the contextual model;When starting contextual model, the control data of the contextual model can be sent to corresponding right As in control unit.
4. room scene mode setting method according to claim 3, it is characterised in that the contextual model passes through scene Mode switch and multiple object control units are arranging jointly;Participate in described in multiple object control unit compositions of setting up procedure One group objects control unit.
5. room scene mode setting method according to claim 4, it is characterised in that comprise the concrete steps that:
Step one, operation profiles switch, arranges state into contextual model;
Step 2, to needing the object control unit for controlling to operate in the contextual model, arranges corresponding control shape State;
Step 3, repeat step two, until the controlled state of the group objects control unit is all provided with;
Step 4, operation profiles switch exit contextual model and arrange state;By the control of the group all object control units Data are preserved into the contextual model switch.
6. room scene mode setting method according to claim 5, it is characterised in that the step one, operational scenarios Mode switch, arranges state into contextual model, and concrete grammar is:Long switch by contextual model then enter contextual model setting shape State.
7. room scene mode setting method according to claim 5, it is characterised in that until the group in the step 3 The controlled state of object control unit is all provided with, and method is:Each object control to needing to control in the contextual model Unit processed is operated, and is set to corresponding controlled state.
CN201610894096.XA 2016-10-13 2016-10-13 A kind of room scene mode setting method Pending CN106547235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610894096.XA CN106547235A (en) 2016-10-13 2016-10-13 A kind of room scene mode setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610894096.XA CN106547235A (en) 2016-10-13 2016-10-13 A kind of room scene mode setting method

Publications (1)

Publication Number Publication Date
CN106547235A true CN106547235A (en) 2017-03-29

Family

ID=58368670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610894096.XA Pending CN106547235A (en) 2016-10-13 2016-10-13 A kind of room scene mode setting method

Country Status (1)

Country Link
CN (1) CN106547235A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113359505A (en) * 2021-07-19 2021-09-07 艾拉物联网络(深圳)有限公司 Whole-house intelligent home control method

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147874A1 (en) * 2000-12-29 2002-10-10 Henrik Niklasson Control arrangement
CN1716332A (en) * 2005-05-30 2006-01-04 浙江中控电子技术有限公司 Radio house control system
CN202166887U (en) * 2011-07-14 2012-03-14 湖南艾特美电子科技有限公司 IoT-based distributed control system
CN102385327A (en) * 2011-10-26 2012-03-21 东莞市中凌电子科技有限公司 Smart switch control method
CN202306291U (en) * 2011-10-26 2012-07-04 东莞市中凌电子科技有限公司 Intelligent control switch
CN202941017U (en) * 2012-11-27 2013-05-15 惠州雷士网络科技有限公司 Intelligent illumination system
CN203324767U (en) * 2013-05-22 2013-12-04 宁波市镇海星科智能技术有限公司 Intelligent switch system based on Zigbee network
CN204287795U (en) * 2014-11-12 2015-04-22 深圳市海运来科技有限公司 A kind of intelligent wireless doorplate control system
CN104818916A (en) * 2015-05-11 2015-08-05 齐鲁工业大学 Smart electric window group control system based on CAN bus and a method for smart electric window group control system
CN104898519A (en) * 2015-05-23 2015-09-09 上海地根实业发展有限公司 Intelligent scenario power switch
CN205015712U (en) * 2015-05-23 2016-02-03 深圳市尚吉电子有限公司 Zigbee switch of taking scene control function of intelligence house
CN105785783A (en) * 2016-03-30 2016-07-20 佛山市蓝天网络科技有限公司 Intelligent household control system
CN105955064A (en) * 2016-07-22 2016-09-21 四川宏图四方智能科技有限公司 Intelligent household appliance control system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147874A1 (en) * 2000-12-29 2002-10-10 Henrik Niklasson Control arrangement
CN1716332A (en) * 2005-05-30 2006-01-04 浙江中控电子技术有限公司 Radio house control system
CN202166887U (en) * 2011-07-14 2012-03-14 湖南艾特美电子科技有限公司 IoT-based distributed control system
CN102385327A (en) * 2011-10-26 2012-03-21 东莞市中凌电子科技有限公司 Smart switch control method
CN202306291U (en) * 2011-10-26 2012-07-04 东莞市中凌电子科技有限公司 Intelligent control switch
CN202941017U (en) * 2012-11-27 2013-05-15 惠州雷士网络科技有限公司 Intelligent illumination system
CN203324767U (en) * 2013-05-22 2013-12-04 宁波市镇海星科智能技术有限公司 Intelligent switch system based on Zigbee network
CN204287795U (en) * 2014-11-12 2015-04-22 深圳市海运来科技有限公司 A kind of intelligent wireless doorplate control system
CN104818916A (en) * 2015-05-11 2015-08-05 齐鲁工业大学 Smart electric window group control system based on CAN bus and a method for smart electric window group control system
CN104898519A (en) * 2015-05-23 2015-09-09 上海地根实业发展有限公司 Intelligent scenario power switch
CN205015712U (en) * 2015-05-23 2016-02-03 深圳市尚吉电子有限公司 Zigbee switch of taking scene control function of intelligence house
CN105785783A (en) * 2016-03-30 2016-07-20 佛山市蓝天网络科技有限公司 Intelligent household control system
CN105955064A (en) * 2016-07-22 2016-09-21 四川宏图四方智能科技有限公司 Intelligent household appliance control system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
唐永峰: "《嵌入式系统原理及应用》", 30 September 2016 *
江向东: "《居住建筑装饰工程》", 30 June 2006 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113359505A (en) * 2021-07-19 2021-09-07 艾拉物联网络(深圳)有限公司 Whole-house intelligent home control method

Similar Documents

Publication Publication Date Title
US11735918B2 (en) Method and apparatus for electrical load control network
CN110784979B (en) Lighting system and method for realizing simple networking and configuration functions
CN106292327A (en) room central control management system
CN106354060A (en) Master-slave communication method of guest room control device
CN106325090A (en) Room scene mode control method
CN206301165U (en) A kind of room central control management system
CN105785787A (en) Smart electric appliance integrated control method and smart electric appliance integrated control system for smart home
CN106453556B (en) Distributed networking control switch
CN106292614B (en) Guest room networking control system
CN206302425U (en) A kind of distributed networking control intelligent domestic system
CN106547235A (en) A kind of room scene mode setting method
CN106406176B (en) Hotel guest room Zigbee network control system
CN106502222B (en) A kind of network communication method of guest room control device
CN106502223A (en) Hotel guest room monitoring management system
CN106527364B (en) Hotel guest room electrical equipment control system
CN106549659B (en) Wireless networking touch switch
CN106547213B (en) A touch switch lock configuration method
CN106647438B (en) Hotel room wireless network control system
CN206451027U (en) A kind of guest room control system of online
CN206077455U (en) A kind of distributed control system of online in guest room
CN106444401A (en) Distributed network control system of hotel or household rooms
CN106444402A (en) Distributed networking control intelligent home system
CN204423121U (en) Passive intelligent visitor Ore-controlling Role
CN106357797A (en) Guest room distributed networked control system
AU2022100049A4 (en) A system for configuring a control device of a mesh network of connected devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170329

WD01 Invention patent application deemed withdrawn after publication