Detailed Description
The invention is further described below with reference to the accompanying drawings.
As shown in fig. 1, a diagram of an embodiment 1 of a Zigbee network control system for hotel rooms includes 3 distribution units, where the 3 distribution units are all touch switch units, and are respectively a touch switch unit 110, a touch switch unit 112, and a touch switch unit 113.
The 3 distribution units shown in fig. 1 all have ZigBee modules, which are ZigBee nodes. The 3 distributed units communicate with each other via the ZigBee network 100.
In 3 ZigBee nodes of the ZigBee network shown in fig. 1, 1 is a ZigBee coordinator, and the other 2 nodes are all ZigBee terminal nodes, or all ZigBee routing nodes, or 1 is a ZigBee terminal node, and 1 is a ZigBee routing node.
There are only 3 distribution units in fig. 1. When the Zigbee network control system of the hotel guest room needs to be added with the distribution units, the added distribution units are provided with the ZigBee modules and are ZigBee nodes.
All 3 ZigBee nodes of the ZigBee network shown in FIG. 1 are touch switch units, but some of the touch switch units are ZigBee coordinators, and the other nodes are ZigBee routing nodes or ZigBee terminal nodes.
Fig. 2 shows a structure diagram of an embodiment 2 of a Zigbee network control system for hotel rooms, which includes 4 distribution units, where 1 is a coordinator unit 101, and the other 3 are touch switch units, which are a touch switch unit 102, a touch switch unit 103, and a touch switch unit 104, respectively.
The 4 distribution units shown in fig. 2 all have ZigBee modules, which are ZigBee nodes. The 4 distributed units communicate with each other via a ZigBee network 106.
In the 4 distribution units shown in fig. 2, the coordinator unit 101 is a ZigBee coordinator, and 3 touch switch units are all ZigBee terminal nodes, or all ZigBee routing nodes, or part ZigBee terminal nodes, and part ZigBee routing nodes.
There are only 4 distribution units in fig. 2. When the Zigbee network control system of the hotel guest room needs to be added with the distribution units, the added distribution units are provided with ZigBee modules which are ZigBee routing nodes or ZigBee terminal nodes.
The coordinator unit 101 in fig. 2 has only the function of the ZigBee coordinator. In different application scenarios of the Zigbee network control system in hotel rooms, the Zigbee coordinator function of the coordinator unit 10 in fig. 2 may be implemented in a distribution unit of other functions. For example, in the system shown in fig. 1, the ZigBee coordinator is implemented by one of 3 touch switch units; in hotel room control occasions, the ZigBee coordinator function can be realized by a power-taking switch unit or a communication relay unit; the control of the door lock can be realized by a door lock control unit; and so on.
The Zigbee network control system of the hotel guest room is provided with a plurality of distribution units, namely a plurality of ZigBee nodes; in all the ZigBee nodes in the system, 1 is a ZigBee coordinator, and the rest are all ZigBee terminal nodes, or all ZigBee routing nodes, or part of the ZigBee terminal nodes and part of the ZigBee routing nodes. At least 1 ZigBee node in all ZigBee nodes is an FFD node, namely a full-function node, and has the capability of a ZigBee coordinator.
When other ZigBee networks exist in the vicinity of the ZigBee network, for example, the ZigBee network is used for hotel room control, 1 ZigBee network control system for hotel rooms is provided in each room in the adjacent rooms, or 1 ZigBee network is provided in each room. When each ZigBee network is networked, in order to avoid the addition of the distribution units in other ZigBee networks, or the addition of the distribution units in the ZigBee networks in other ZigBee networks, a method of designating network identifiers can be adopted. The ZigBee coordinator selects a designated network identifier when establishing a ZigBee network; and selecting corresponding designated network identifiers to join the ZigBee network by the same hotel room Zigbee network control system, or the ZigBee terminal nodes or the ZigBee routing nodes in the same ZigBee network. And a time-sharing and batch networking method can be adopted to avoid wrong networking. The networking enabling state of the ZigBee coordinator can be set, namely the ZigBee coordinator does not allow the ZigBee terminal nodes or the ZigBee routing nodes to be added into the network under the normal condition, and the ZigBee coordinator is started for a period of time only under the condition that the networking enabling of the ZigBee coordinator is enabled, so that the ZigBee routing nodes or the ZigBee terminal nodes are added into the network. The opening time is no more than 5 minutes, and the typical time is 1 minute.
In the embodiment of the Zigbee network control system for hotel rooms shown in fig. 1 or fig. 2, only 3 touch switch units are included. The number of the touch switch units in the Zigbee network control system of the hotel guest room can be increased or reduced according to actual needs. Generally, the touch switch unit may need to control house lamps, bedside lamps, night lamps, table lamps, floor lamps, bathroom lamps, mirror lamps, spot lamps, down lamps, wall lamps, and the like, as well as other lamps; it may be desirable to control televisions, ventilators, and other electrical equipment; there may be a need to control do not disturb, request service, request clean-up, request later, and other request states; it may be necessary to control setting of sleep mode, guest-meeting mode, reading mode, and other contextual modes; and so on. Therefore, the total number of switches needs to be increased, and the number of touch switch units is generally more than 3; especially, when a plurality of devices need to realize two-place or multi-place control, more touch switch units are needed. In the same ZigBee network, the total number of the switches can exceed 256, and no upper limit is provided.
Fig. 3 is a structural diagram of an embodiment of a touch switch unit, and includes a switch microcontroller module 301, a ZigBee module 302, a switch 1 input module 303, a switch 2 input module 304, a switch 1 driving module 305, a switch 2 driving module 306, and an on-off indication module 307. The ZigBee 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 have an electrical connection relationship or an electrical connection relationship with photoelectric isolation, and are used for transmitting related signals.
The touch switch unit communicates with other distribution units through the ZigBee network via the ZigBee module 302, and functions to transmit data to the other distribution units and receive data of the other distribution units.
The role of the switching microcontroller module 301 includes: analyzing the data received by the ZigBee module 302, realizing the synchronous control of the switch driving module 304 of the touch switch unit, realizing the contextual model control and the like; the control operation and the state of the touch switch unit are formed into data and are sent out through the ZigBee module 302; judging and identifying the states and operations of the switch 1 input module 303 and the switch 2 input module 304; controlling the states of the switch 1 driving module 305 and the switch 1 driving module 306; controls the indication state of the on-off indication module 307.
The touch switch unit includes 1 or more switch input modules corresponding to 1 or more electrical switch devices, that is, so-called electrical switches or switches. In the embodiment of the touch switch unit shown in fig. 2, there are 2 switch input modules, namely, a switch 1 input module 303 and a switch 2 input module 304. In the same hotel room Zigbee network control system, the switch number of different touch switch units can be selected at will. The Zigbee network control system for hotel rooms is provided with K touch switch units, the switch number of each touch switch unit is determined according to the requirement, and the switch numbers can be the same or different; in K touch switch units, the switch number of each touch switch unit is more than or equal to 1; among the K touch switch units, there may be a plurality of 1-open switches, a plurality of 2-open switches, a plurality of 3-open switches, a plurality of 4-open switches, a plurality of 5-open switches, and other numbers of multi-open switches, respectively, and so on.
The function of each touch switch of the switch input module can be set to be switched on and off after one touch point is set for touch, or set to be switched on and off respectively by two touch points.
The touch switch unit comprises 1 or more switch driving modules, and in the same touch switch unit, the number of the switch driving modules is equal to that of the switch input modules, and the switch driving modules correspond to the switch input modules one to form the electric appliance switch devices with the same number. In the embodiment of the touch switch unit shown in fig. 3, there are 2 switch driving modules including 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. The meaning of electrical switching device is here the same as that of the switch in general; for example, if one touch switch unit includes 2 electrical appliance switch devices, it indicates that the touch switch unit includes 2 switches, and the control of 2 electrical appliances can be respectively realized.
The on-off indication module 307 is used for indicating the on-off state of the switch driving module. The on-off indication module 307 does not need to be configured, and if the on-off indication module 307 is arranged, the on-off state of the controlled electric appliance can be observed on a panel of the touch switch unit; if there is no indication from the on-off indication module 307, the on-off state of the controlled electrical appliance needs to be judged directly by observing the operation condition of the controlled electrical appliance.
Fig. 4 shows a circuit of an embodiment of a touch switch unit including 2 switches. The control core of the switch microcontroller module adopts a single chip microcomputer, and in fig. 4, a circuit required by a minimum system of the single chip microcomputer is omitted and not shown. The switch input module is characterized in that a touch switch adopts a double-key capacitance touch sensing switch chip ASC0104-2, 2 touch input ends TP0 and TP1 of the ASC0104-2 are respectively connected with touch points K1 and K2, and meanwhile, the touch input ends TP0 and TP1 are respectively grounded through capacitances C1 and C2; 2 touch signal output ends TPQ0 and TPQ1 of the ASC0104-2 are respectively connected to input ends IN0 and IN1 of the single chip microcomputer; the high/low effective level selection end AHLB and the power supply positive end VDD of the ASC0104-2 are connected to a power supply + VCC; the output type selection terminal and the power supply negative terminal VSS of the ASC0104-2 are connected to the power supply ground. When the touch switch unit includes a plurality of switch input modules, an integrated chip with multi-key input may be used as shown in the embodiment of fig. 4; a separate circuit may be used for each switching input module.
In fig. 4, the ZigBee module is a fully functional CC2530 module. A serial port receiving end RX and a serial port TX of the CC2530 module are respectively connected with a transmitting end TX and a receiving end RX of a serial port of the single chip microcomputer; the power supply terminal VCC of the CC2530 module is connected to the power supply + VCC, and the ground terminal GND is connected to the power ground.
In fig. 4, the optocoupler isolator M1, the triac V1, the resistor R3, and the resistor R4 constitute a switch driving module of the switch K1, and the optocoupler isolator M2, the triac V2, the resistor R5, and the resistor R6 constitute a switch driving module of the switch K2. The resistor R4 is connected in series with the output of the optocoupler isolator M1 and then connected to the first anode and the gate of the bidirectional thyristor V1 in parallel; after the resistor R3 is connected with the input of the optocoupler isolator M1 in series, the output end OUT1 of the singlechip controls the on-off of the bidirectional thyristor V1; the first anode and the second anode of the bidirectional thyristor V1 are respectively an alternating current power supply phase line (live wire) input end L and an output end L1 of the switch K1; the load of the switch K1 is connected to the output terminal L1 and the neutral line of the ac power supply. The resistor R6 is connected in series with the output of the optocoupler isolator M2 and then connected to the first anode and the gate of the bidirectional thyristor V2 in parallel; after the resistor R5 is connected with the input of the optocoupler isolator M2 in series, the output end OUT2 of the singlechip controls the on-off of the bidirectional thyristor V2; the first anode and the second anode of the bidirectional thyristor V2 are respectively an alternating current power supply phase line (live wire) input end L and an output end L2 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. The optocoupler isolators M1 and M2 can be selected from devices such as MOC3041, MOC3042, MOC3043, MOC3061, MOC3062 and MOC3063 with zero-crossing triggering functions.
In fig. 4, the on-off indication module is composed of a light emitting diode LED1, a light emitting diode LED2, a resistor R1 and a resistor R2. The light emitting diode LED1 is a signal indication of the switch K1 and is controlled by the output end OUT3 of the single chip microcomputer; the light emitting diode LED2 is the signal indication of the switch K2 and is controlled by the output end OUT4 of the single chip microcomputer.
In fig. 4, when the user touches K1, the on/off state of the triac V1 changes, and the load becomes power-off when power is supplied or becomes power-on when power is supplied. Similarly, when the user touches the switch K2, the on/off state of the triac V2 changes, and the load becomes power-off when power is supplied or becomes power-on when power is supplied.
In the touch switch units of the Zigbee network control system of the hotel guest rooms, 2 or more than 2 electric appliance switch devices in any touch switch unit can be configured into an interlocking state to act in a unified way. The plurality of appliance switching devices configured in the interlocking state can be arbitrarily selected and combined in a plurality of touch switch units in the same ZigBee network, and can be from the same or different touch switch units, or the appliance switching devices in the same touch switch unit or the appliance switching devices in different touch switch units. Any number of touch switch units refers to 1 or more than 1 touch switch unit.
When part of electrical appliance switch devices are configured to be in an interlocking state in a touch switch unit of the Zigbee network control system of the hotel guest room, the electrical appliance switch devices configured to be in the interlocking state are regarded as 1 switch group; the rest electric appliance switch devices can still be selected and combined to be configured into an interlocking state to form another 1 switch group; in the same hotel room Zigbee network control system, the switch group configured in the interlocking state may be 0 group, may be 1 group, or may be multiple groups.
There are various ways in which the switch may be configured to interlock. For example, all switches are set to have their functions, and by setting the switch functions, the switches having the same function or the same controlled object are set to be in an interlocked state, that is, all switches in the same hotel room Zigbee network control system that are consistent with each other are in an interlocked state. Or all switches are coded (or numbered), and all switches with the same codes in the same hotel room Zigbee network control system are in an interlocking state; and so on. When only one switch of a controlled object is correspondingly set, namely the function of a certain switch is unique, or the code of a certain switch in the same hotel room Zigbee network control system is unique, the switch is not interlocked with other switches in the same hotel room Zigbee network control system.
When the plurality of electrical appliance switching devices are configured to be in the interlocking state, the power supply of the controlled object can be controlled by the output of the switch driving module of any one or more electrical appliance switching devices. For example, 2 electrical appliance switch devices using relay outputs are configured to be interlocked to control the exhaust fan, after any one switch input module of the 2 electrical appliance switch devices is operated, the 2 relays will act simultaneously, i.e. output power simultaneously or cut off power simultaneously, and the power of the exhaust fan can be connected to the output end of any one of the 2 relays. If 1 switch is to be implemented to control multiple controlled objects, the multiple controlled objects may be controlled by connecting to the outputs of different switches in the switch configured in the interlocked state.
For example, there are 3 touch switch units in the ZigBee network shown in fig. 1, and there are 4 electrical switch devices, or 4 switches, K11, K12, K13, and K14 in the touch switch unit 110; there are 5 electrical switching devices, or 5 switches, respectively K21, K22, K23, K24, and K25 in the touch switch unit 111; the touch switch unit 112 has 3 electrical switch devices, or 3 switches, K31, K32, and K33, respectively. Example 1, the electrical switch devices from 3 touch switch units are respectively configured to be in an interlocking state, for example, K11, K23 and K32 are configured to be in an interlocking state to control room lamps, and the power of the room lamps can be connected from the output end of any one of K11, K23 and K32; the control of the room lamp can be realized by operating any one of the switches K11, K23 and K32. Example 2, K21, K22, K33 are configured to be interlocked to control the exhaust fan, and since K21, K22 are in the same touch switch unit, the outputs of K21, K22 can be connected in parallel to control the exhaust fan, which can improve the load carrying capacity, of course, the exhaust fan can also be controlled by the output of K33; the control of the exhaust fan can be realized by operating any one of the switches K21, K22 and K33. Example 3, if it is only necessary to improve the loaded capacity, only a plurality of electrical switch devices in one touch switch unit may be configured to be in an interlocking state, for example, K23, K24, and K25 may be configured to be in an interlocking state, and then outputs of K23, K24, and K25 may be connected in parallel to control the electric heater, and any one of the switches K23, K24, and K25 may be operated to control the electric heater; compared with the common switch which is connected in parallel and then controls the electric appliance, the parallel interlocking control of the touch switch unit is automatically synchronous after interlocking, and the parallel interlocking control respectively operate and simultaneously act; the common switches need to be operated simultaneously, if only one switch in the parallel connection of the common switches is switched on, the load is still controlled by the switch, only when all the parallel switches are switched on simultaneously, all the parallel switches supply power simultaneously, and only when all the parallel switches are switched off, the load is switched off.
The function (or control object) of the write switch or the number of the write switch in the switch is called a configuration, and there are various methods of configuring the switch or configuring the switch group in an interlocked state.
The configuration is performed at the time of production. During production, the configuration information of the switch is set to be consistent with the screen printing name on the panel, for example, if the screen printing name on the panel is night light, the corresponding switch function is configured to be a night light switch; the screen printing name on the panel is a wall lamp, and the function of the corresponding switch is configured as a wall lamp switch; the screen printing name on the panel is the ventilator, and the corresponding switch function is configured to be a ventilator switch; when the switch is in the same ZigBee network with the touch switch unit of other switches and has the same switch function, the switch is automatically in an interlocking state. For example, when the function of 3 switches in the same ZigBee network is configured as a wall lamp switch, the 3 wall lamp switches automatically become an interlocked state; when only one switch is configured as the ventilator switch, the ventilator switch controls the ventilator alone. The spare switch, or when the switch is not configured in function during production, may be set to a special switch named as an unconfigured function, for example, set to the spare switch uniformly, or set to the unconfigured switch uniformly, or set to other names; all switches with the functions of a standby switch (or a non-configured switch) do not form a switch group and are not in an interlocking state. In actual configuration, the switch function may be replaced by a number, for example, No. 1 switch controls a wall lamp, and when the function of 2 switches in the same ZigBee network is configured as No. 1 switch, the 2 switches 1 automatically become an interlocking state. The spare switch, or when the switch is not configured in function during production, may set a special number, for example, set to 0, that is, the switch 0 is a switch that is not configured in function, therefore, in the same ZigBee network, even if there are a plurality of switches 0, the switch group will not be formed, that is, the switches 0 are not configured in an interlocked state; the special number is not necessarily 0, and other numbers, such as 999, 511, etc., may be selected.
The configuration is performed or modified in the field. Accessing a computer or a special configuration tool in a Zigbee network control system of a hotel guest room on site, and performing networking unified configuration; or the single touch switch unit is connected with a computer or a special configuration tool to carry out independent configuration.
Firstly, a computer or a special configuration tool is accessed to a site hotel room Zigbee network control system or is connected with a single touch switch unit;
editing functions or numbers of switches needing to be configured in a relevant engineering configuration interface of a computer or a special configuration tool and selecting the switches, or selecting the switches with the edited functions or numbers;
the selection switch is configured to complete configuration confirmation; if the switch group needs to be configured, continuing to select the switches for configuration until all the switches of the switch group and the selected switches in the engineering configuration interface are completely configured and confirmed;
and fourthly, returning to the step II (configuring in the Zigbee network control system of the hotel guest room on site) or the step II (configuring a single touch switch unit) and configuring other switches.
And step three, configuring the selection switch, and performing a plurality of methods for confirming the configuration, wherein one of the methods is to perform one-time switch operation to realize new configuration and cancel old configuration. For example, a room lamp switch is prepared and configured, a switch corresponding to a room lamp is selected in a relevant engineering configuration interface, and then a certain switch needing to be configured is operated once, so that the switch is configured to have the same switch function or the same switch number as the selected switch in the engineering configuration interface, and other switch functions or switch numbers which are configured once are cancelled; the other switch is operated once again, the other switch is also configured to have the same switch function or the same switch number as the switch selected in the engineering configuration interface, and the front switch and the rear switch are also configured to be 1 switch group; and then, the other switches are operated, so that the number of the switches of the switch group is increased. The second method is that all switches have the status indication of whether the switch is configured; if the switch which is not configured is subjected to the state indication display, the switch is subjected to one-time switch operation, new configuration is carried out, and the state indication display configuration is successful; when the switch with the status indication display configuration success is subjected to one-time switch operation, the configuration is cancelled, and the status indication display is not configured; the unconfigured switch can be set as a standby switch, or set as an unconfigured switch, or set as other names; the unconfigured switches may also be set to switch No. 0, or to other special numbers. Whether the configured state indication is available can be distinguished by the on and off of the indicator light, can be distinguished by the flicker of the indicator light, can be distinguished by the different flicker frequencies of the indicator light, and the like.
The interlocked configuration of all touch switch units can be reconfigured, reconfigured and the like changed at any time.
The touch switch unit can be set to an independent working mode to work independently when not forming a network with other distribution units.
Fig. 5 is a block diagram of an embodiment of a coordinator unit, which includes a coordinating microcontroller module 401 and a ZigBee module 402. The ZigBee module 402 and the coordination microcontroller module 401 have an electrical connection relationship or an electrical connection relationship with optical-electrical isolation, and are used for transmitting related signals.
The ZigBee node in the coordinator unit is determined as a ZigBee coordinator, and the coordination microcontroller module 401 controls the ZigBee node to implement the function of the ZigBee coordinator in the ZigBee network.
The Zigbee network control system for hotel rooms can further include 1 or more curtain control units in the plurality of distribution units, and each curtain control unit is 1 Zigbee node in the Zigbee network.
Fig. 6 shows a block diagram of an embodiment of a curtain control unit, which includes a curtain microcontroller module 801, and includes a ZigBee module 802, a curtain 1 given module 803, a curtain 2 given module 804, a curtain 1 open/close driving module 805, and a curtain 2 open/close driving module 806. The ZigBee module 802, the curtain 1 setting module 803, the curtain 2 setting module 804, the curtain 1 opening/closing driving module 805, the curtain 2 opening/closing driving module 806 and the curtain microcontroller module 801 are electrically connected or electrically connected with photoelectric isolation, and are used for transmitting relevant signals. The curtain control unit shown in fig. 6 includes 2 curtain controllers, that is, a curtain controller 1 and a curtain controller 2; one curtain control unit may include only 1 curtain controller, or 3 or more curtain controllers.
The curtain microcontroller module 801 functions to include: analyzing the data received by the ZigBee module 802 to realize synchronous control with curtain controllers in other curtain control units; the control operation and the state of the curtain control unit form data and the data are sent out through the ZigBee module 802; judging and identifying the states and operations of the curtain 1 giving module 803 and the curtain 2 giving module 804; controls the states of the curtain 1 open/close driving module 805 and the curtain 2 open/close driving module 806.
The curtain 1 given module 803 and the curtain 2 given module 804 both include a curtain open switch, a curtain close switch, and a curtain stop switch or button, and the curtain open switch, the curtain close switch, the curtain stop switch or button are touch switches or touch buttons.
The curtain opening/closing drive modules, for example, the curtain 1 opening/closing drive module 805 and the curtain 2 opening/closing drive module 806, each include a curtain opening drive device and a curtain closing drive device, and the curtain opening drive device and the curtain closing drive device may be composed of an electromagnetic relay, a solid-state relay, a thyristor, and their drive circuits. The curtain opening driving device and the curtain closing driving device can respectively drive the curtain opening motor and the curtain closing motor to operate, or respectively drive the curtain motor to operate in forward and reverse directions, so as to realize the opening and closing of the curtain. If the curtain motor has the remote control function, the curtain opening/closing driving module generates and drives the transmitting circuit for the corresponding remote control signal. The curtain motor adopts a motor with a function of automatic stop when meeting a resistance.
In the same hotel room Zigbee network control system, 2 or more than 2 curtain controllers in any curtain control unit can be configured to be in an interlocking state and act in a unified way. These plurality of curtain controllers configured in the interlocked state can be arbitrarily selected to be combined among the plurality of curtain control units in the ZigBee network. The shade controllers configured in an interlocked state operate on any one of the shade controllers, all of the shade controllers are simultaneously actuated. For example, there are A, B two curtain control units in the same hotel room Zigbee network control system, there are curtain controller 1 and curtain controller 2 in unit a, and there are curtain controller 3, curtain controller 4, and curtain controller 5 in unit B. Now, the curtain controller 1 and the curtain controller 5 are configured to be in an interlocking state, and when the curtain controller 1 performs curtain opening operation, the curtain controller 1 and the curtain controller 5 both perform curtain opening driving action; when the curtain controller 5 performs a curtain closing operation, both the curtain controller 1 and the curtain controller 5 perform a curtain closing drive operation. In practical application, the driving motor of the curtain can select one curtain controller to actually control, and other curtain controllers are used for realizing other control. The interlocking configuration of the window shade controllers in all the window shade control units can be cancelled at any time or changed operation such as reconfiguration can be carried out.
When some curtain controllers in the curtain control units of the same hotel room Zigbee network control system are configured to be in an interlocking state, the curtain controllers configured to be in the interlocking state are regarded as 1 curtain control group; the remaining shade controllers can still be selectively combined and configured into an interlocked state to form additional shade control groups; in the same hotel room Zigbee network control system, the curtain control groups configured in the interlocked state may be 0 group, 1 group, or multiple groups.
The shade controller is configured to interlock in the same manner as the electrical switch device is configured to interlock in a variety of ways and methods. For example, interlocking is performed by setting a controlled object, that is, all curtain controllers are provided with one controlled object, and all curtain controllers in a hotel room Zigbee network control system, which are consistent with each other, are in an interlocking state; in the example of the aforementioned A, B two curtain control units, when the curtain controller 1 and the curtain controller 5 are both configured to control the main curtain and the curtain controller 2, the curtain controller 3, and the curtain controller 4 are configured to control the other curtains, the curtain controllers 1 and 5 are configured to be interlocked. Or all curtain controllers are coded, and all curtain controllers with the same codes in the hotel room Zigbee network control system are in an interlocking state; and so on.
The number written in the control object of the curtain controller or written in the curtain controller of the curtain control unit is called the configuration. There are various methods of configuring the shade controllers, or the shade control groups, as the switches.
The configuration is performed at the time of production. During production, the configuration information of the curtain controller is set to be consistent with the silk-screen name on the panel, for example, if the silk-screen name on the panel is the main curtain, the corresponding curtain controller function is configured as the main curtain controller; if the screen printing name on the panel is an auxiliary curtain, the function of the corresponding curtain controller is configured into an auxiliary curtain controller; the screen printing name on the panel is a small curtain, and the corresponding curtain controller function is configured to be a small curtain controller; when the curtain controller is in the same ZigBee network with the curtain control units in which other curtain controllers are located and configured to be the controller function of the same curtain, the curtain controller automatically becomes an interlocking state. For example, when there are 3 curtain controllers in the same ZigBee network, and the functions of the 3 curtain controllers are configured as the sub-curtain controllers, the 3 sub-curtain controllers automatically become the interlocked state; when only one curtain controller is functionally configured as a small curtain controller, the small curtain controller controls the small curtain alone. The standby curtain controller, or when the curtain controller is not configured in function during production, may set a special curtain controller named as the unconfigured function, for example, set the standby curtain controller uniformly, or set the unconfigured curtain controller uniformly, or set the curtain controller as another name; all curtain controllers with the functions of standby curtain controllers (or curtain controllers without other names such as curtain controllers) do not form a curtain control group and are not in an interlocking state. In actual configuration, the curtain controller function may be replaced with a number, for example, when the curtain controller 1 controls the sub-curtain, and when the functions of 2 curtain controllers are configured as the curtain controller 1 in the same ZigBee network, the 2 curtain controllers 1 automatically become the interlocked state. The standby curtain controller, or when the curtain controller is not configured in function during production, may set a special number, for example, set to number 0, that is, the number 0 curtain controller is a curtain controller that is not configured in function with respect to the curtain controller, and therefore, even if there are a plurality of number 0 curtain controllers in the same ZigBee network, there is no curtain control group formed, that is, the plurality of number 0 curtain controllers are not configured in an interlocked state. The special number is not necessarily 0, and other numbers, such as 999, 511, etc., may be selected.
The configuration is performed or modified in the field. Accessing a computer or a special configuration tool in a field ZigBee network to perform networking unified configuration; or the single curtain control unit is connected with a computer or a special configuration tool to carry out independent configuration.
Firstly, a computer or a special configuration tool is accessed to a field ZigBee network or is connected with a single curtain control unit;
editing the function or number of the curtain controller to be configured in a relevant engineering configuration interface of a computer or a special configuration tool and selecting the function or number, or selecting the curtain controller with the edited function or number;
selecting a curtain controller in the curtain control unit to configure to complete configuration confirmation; if the curtain control group needs to be configured, continuously selecting the curtain controllers for configuration until all the curtain controllers of the curtain control group and the selected curtain controllers in the engineering configuration interface are completely configured and confirmed;
and fourthly, returning to the step II (configuration in a ZigBee network on site) or the step I (configuration of a single curtain control unit) to configure other curtain controllers.
And one of the methods is to perform one curtain controller operation to realize new configuration and cancel old configuration. For example, when a main curtain controller is prepared to be configured, the main curtain controller is selected in the relevant engineering configuration interface, and then a certain curtain controller is operated once (opened or closed), the curtain controller is configured to have the same curtain controller function or the same curtain controller number as the curtain controller selected in the engineering configuration interface, and the other curtain controller functions or curtain controller numbers which the curtain controller was configured to have are cancelled; the other curtain controller is operated once again, the other curtain controller is also configured to have the same curtain controller function or the same curtain controller number as the curtain controller selected in the engineering configuration interface, and the front and rear 2 curtain controllers are also configured to be 1 curtain control group; and then other curtain controllers are operated, the number of the curtain controllers of the curtain control group is increased. The second method is that all the curtain controllers have the status indication of whether the curtain controllers are configured; if the curtain controller which is not configured is operated for the first time in the state indication display, new configuration is carried out, and the state indication display configuration is successful; if the curtain controller with the successfully configured status indication display is operated once, the configuration is cancelled, and the status indication display is not configured; the unconfigured curtain controller can be set as a standby curtain controller, or set as an unconfigured curtain controller, or set as other names; the unconfigured shade controller may also be set to be the shade controller No. 0, or to be other special numbers. Whether the configured state indication is available can be distinguished by the on and off of the indicator light, can be distinguished by the flicker of the indicator light, can be distinguished by the different flicker frequencies of the indicator light, and the like.
The interlocked configuration of all the curtain control units can be changed at any time by reconfiguration, reconfiguration cancellation and the like. The Zigbee network control system for hotel rooms may further include 1 or more communication relay units in the plurality of distribution units, and each communication relay unit is 1 Zigbee node in the Zigbee network.
Fig. 7 is a block diagram of an embodiment of a communication relay unit, which includes a relay microcontroller module 701, a ZigBee module 702, and a WAN module 703. An electrical connection relation or an electrical connection relation with photoelectric isolation is formed between the ZigBee module 702, the WAN port module 703 and the relay microcontroller module 701 and is used for transmitting related signals.
And the communication relay unit is used for communicating the Zigbee network control system of the hotel guest room with the Internet and communicating with a server and the like according to an Internet protocol. For example, when the hotel room Zigbee network control system is used for hotel room control, the communication relay unit mainly functions to implement communication between the hotel room Zigbee network control system and a hotel server, and at this time, the communication relay unit may also be referred to as a room AP or a room access point unit. The communication relay unit is connected with the hotel server through the WAN port module 703 through the Internet, and can upload the relevant information of the Zigbee network control system of the hotel guest room to the hotel server in time, so that the monitoring is facilitated; any distribution unit in the Zigbee network control system of the hotel guest room can be managed by virtue of the hotel server, so that remote control is realized; the electric appliance switching devices in the Zigbee network control system of the hotel guest room can be configured by means of the hotel server, particularly, the interlocking state configuration among the electric appliance switching devices is carried out, and the method is convenient and quick; and so on. The functions of the communication relay unit are controlled by a program in the relay microcontroller module 701.
The communication relay unit may further include a WiFi module and a LAN port module, such as the WiFi module 704 and the LAN port module 705 shown in fig. 7. The WiFi module enables the communication relay unit to have a WiFi hot spot function, and the LAN port module provides a LAN port for a user. The WiFi module 704, the LAN module 705 and the relay microcontroller module 701 have an electrical connection relationship or an electrical connection relationship with photoelectric isolation, and are used for transmitting related signals.
When the Zigbee network control system of a hotel room includes a communication relay unit, 1 of the Zigbee network control systems can simultaneously implement the function of the coordinator unit shown in fig. 5, that is, the Zigbee node of the communication relay unit is a Zigbee coordinator. At this time, the function of implementing the communication relay unit, and the function as the ZigBee coordinator are controlled by the program in the relay microcontroller module 701.
When the Zigbee network control system for hotel guest rooms is used for hotel guest room control, the Zigbee network control system also comprises power-taking switch units, and each power-taking switch unit is 1 ZigBee node in the ZigBee network.
Fig. 8 is a structural diagram of an embodiment of a power-taking switch unit, which includes a power-taking microcontroller module 201, a ZigBee module 202, and a house card reading module 203. An electrical connection relation or an electrical connection relation with photoelectric isolation is formed between the ZigBee module 202, the room card reading module 203 and the power-taking microcontroller module 201, and the electrical connection relation or the electrical connection relation is used for transmitting related signals.
The power switch unit has the function of monitoring the card insertion state at any time and sending the card insertion state to other distribution units of the Zigbee network control system of the hotel guest room. The ZigBee module 202 implements communication with other distribution units through a ZigBee network, and functions to transmit data to other distribution units and receive data of other distribution units; the house card reading module 203 realizes communication connection with the house card through RF, and simultaneously completes conversion of house card output information and sends the house card output information to the electricity taking microcontroller module 201; the electricity-taking microcontroller module 201 judges the current card-inserting state by analyzing the output information of the house card, forms data and sends the data to the outside through the ZigBee module 202. The function of the power-taking switch unit is controlled by a program in the power-taking microcontroller module 201.
Other distribution units in the Zigbee network control system of the hotel guest room execute corresponding operation according to the card insertion state of the power-taking switch unit. The corresponding operation is selected according to the actual needs of the hotel. For example, when a card is required to be inserted to transmit power, other distribution units in the Zigbee network control system of a hotel room can only operate in an effective card insertion state; when the ZigBee network breaks down, other distribution units can not acquire the card inserting state of the power switch unit, and if no card is inserted, the power switch unit can not acquire the card inserting state. The other distribution units can also be set to operate only in an effective card insertion state when the Zigbee network control system of the hotel guest room works normally; when the ZigBee network fails or does not form a network with other distribution units, the distribution units can work independently, for example, the touch switch units can be operated independently and controlled independently.
When the Zigbee network control system of a hotel guest room includes a power-taking switch unit, the Zigbee network control system may also implement the function of the coordinator unit shown in fig. 5, that is, the Zigbee node of the power-taking switch unit is a Zigbee coordinator. At this time, the function of the power-taking switch unit and the function as the ZigBee coordinator are controlled by a program in the power-taking microcontroller module 201. If the Zigbee network control system of a hotel room includes a power-taking switch unit and a communication relay unit, 1 of them can be selected to realize the function of the coordinator unit shown in fig. 5.
The plurality of distribution units of the Zigbee network control system for hotel rooms may further include 1 or more air conditioner control units, 1 or more monitoring units, 1 or more dimming control units, 1 or more controllable sockets, and the like.
All the distribution units comprise microcontroller modules, for example, the microcontroller module included in the touch switch unit is a switch microcontroller module, the microcontroller module included in the coordinator unit is a coordination microcontroller module, the microcontroller module included in the curtain control unit is a curtain microcontroller module, the microcontroller module included in the communication relay unit is a relay microcontroller module, and the microcontroller module included in the power-taking switch unit is a power-taking microcontroller module; and so on.
In the Zigbee network control system for hotel guest rooms, all the distribution units are communicated in a broadcast mode, and the communication is implemented specifically according to the standard of realizing the communication in the broadcast mode of the Zigbee network through a program running in a microcontroller module in each distribution unit.
When the ZigBee network adopts a broadcast mode to realize communication, problems of accidental packet loss and the like can be caused due to reasons of interference and the like, and communication failure is caused. In order to improve the reliability of communication, each distribution unit may repeat the data to be broadcast and distributed 1 or more times, and each retransmission is performed after the interval delay time t. The specific value of the interval delay time t of the retransmission can be generated in a fixed value mode or a random mode. When t is generated in a random manner, the interval delay time t of each retransmission can be generated in a random manner, that is, the interval delay time of each retransmission is randomly selected. The range of the interval delay time t is not specifically required, and in general, the maximum value of the interval delay time t does not exceed 10ms, 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 ms and 1ms, or a fixed value between 0.1 ms and 1 ms.
The procedure of implementing communication and interlock in the broadcast mode is described by the above-described example in which a plurality of appliance switching devices in 3 touch switch units are configured in the interlock state. 3 touch switch units, wherein the touch switch unit 110 comprises 4 electric switch devices or 4 switches, namely K11, K12, K13 and K14; there are 5 electrical switching devices, or 5 switches, respectively K21, K22, K23, K24, and K25 in the touch switch unit 111; the touch switch unit 112 has 3 electrical switch devices, or 3 switches, K31, K32, and K33, respectively. Assuming that the same controlled object is set at this time, the interlock configuration is performed, the controlled objects of K11, K23, and K32 are all set as room lights, and the other switches are set as other controlled objects. When the current state of the room lamp is a lamp-on state, the room lamp is turned off on the K23, the touch switch unit 111 turns off the switch driving module of the K23, and meanwhile, related information of the room lamp is converted into data and sent to the ZigBee network in a broadcasting mode; after receiving the data of the touch switch unit 111, the touch switch unit 110 and the touch switch unit 112 respectively turn off the switch driving modules of K11 and K32 which are used for controlling the house lights, so as to realize synchronization; if a communication relay unit is also arranged in the ZigBee network, the communication relay unit reports the information of the house lamp controlled by the touch switch unit 111 to the hotel server 705. After the other distribution units receive the information of the house lamp controlled by the touch switch unit 111, the analysis result shows that the house lamp is irrelevant to the other distribution units, and the information is ignored.
The distribution units realize communication in a broadcasting mode, and form a ZigBee network in an ad hoc network mode; when data is transmitted, only the information related to the local distribution unit is transmitted, and the transmitted information is irrelevant to other distribution units. For example, when the room lamp closing operation is performed at K23, the touch switch unit 111 converts the information related to the room lamp controlled by K23 into data and transmits the data to other distribution units in a broadcast manner, and the data transmission of the touch switch unit 111 is independent of other distribution units, and more precisely, whether other switches (i.e., electrical switch devices) are configured in the interlocking state with K23. After receiving the information related to the room light controlled by K23 sent by the touch switch unit 111, the other distribution units perform corresponding processing on the information, for example, the touch switch unit 110 and the touch switch unit 112 also have switches (i.e., electrical switch devices) for controlling the room light, so as to perform corresponding synchronous operations; if the interlock configuration is modified to change K32 to control a wall light, the touch switch unit 112 receives information about the K23 control of the room light and ignores the information.
The distribution units realize communication in a broadcast mode, and when the ZigBee network fails or partial distribution units fail, the intact ZigBee network or the ZigBee network consisting of the intact ZigBee network and the partial distribution units can still work normally. Taking the example that the control objects of K11, K23, and K32 are all set as house lights to realize interlocking control as an example, when the distribution unit where K32 is located cannot communicate with other distribution units in the ZigBee network, that is, the distribution unit where K32 is located fails, or a part where the ZigBee network communicates with the distribution unit where K32 is located fails, although K32, K11, and K23 are configured to be in an interlocking state, the distribution unit where K32 is located is also in an independent operating state, and what is actually still in the interlocking state is K11 and K23. When the room lamp is controlled by the output of K11 or K23, the three-place control originally realized by K32, K11 and K23 is changed into the current two-place control realized by K11 and K23.
When a plurality of ZigBee are full-function nodes, that is, FFD nodes, in the ZigBee network, there are a variety of ways to configure one of them as a ZigBee coordinator.
The method for configuring the ZigBee coordinator comprises the following steps: and adopting a pre-fixed configuration mode, namely, one of the FFDs of the ZigBee network is pre-fixedly configured as a ZigBee coordinator, and the other FFDs are configured as router nodes or terminal nodes. For example, the ZigBee node of the coordinator unit 101 in the ZigBee network shown in fig. 2 is configured as a ZigBee coordinator, and the ZigBee nodes of the touch switch unit 102, the touch switch unit 103, and the touch switch unit 104 are configured as router nodes or terminal nodes; the other FFDs added to the system shown in fig. 2 are also configured as router nodes or end nodes. Or when a communication relay unit exists in a plurality of FFDs of the ZigBee network, configuring the ZigBee node of the communication relay unit as a ZigBee coordinator, and configuring other FFDs as router nodes or terminal nodes; when a plurality of communication relay units exist in a plurality of FFDs of the ZigBee network, one of the communication relay units is configured as a ZigBee coordinator, and other FFDs are configured as router nodes or terminal nodes. And so on. When a pre-fixed configuration mode is adopted, a program running in a microcontroller module in the FFD configured as the ZigBee coordinator is a program matched with the function of the coordinator, and programs matched with the function of a router node or the function of a terminal node run in other microcontroller modules.
A second mode for configuring the ZigBee coordinator: and determining one selection configuration of a plurality of FFDs of the ZigBee network as a ZigBee coordinator, and determining other selection configurations of the FFDs as router nodes or terminal nodes by adopting an engineering configuration determination mode. The ZigBee coordinator can be configured in a plurality of ways by adopting an engineering configuration determination mode, and the configuration determination can be carried out during production, and the configuration determination or the configuration modification can also be carried out on site; a computer or a special configuration tool can be connected to a ZigBee network on site to perform networking unified configuration determination, or a single distribution unit can be connected with the computer or the special configuration tool to perform off-network independent configuration determination; the configuration can also be performed by inputting a controllable level signal at the I/O terminal of the distributed-unit microcontroller module.
There are various methods for controlling whether the networking function of the ZigBee coordinator is turned on. Can be turned on by performing a prescribed operation on a control panel of a distribution unit having a ZigBee coordinator function; a controllable level signal can be input to an I/O end of a distributed unit microcontroller module with a ZigBee coordinator function to start, for example, a button is added to start; a computer or a special starting tool can be connected into a ZigBee network on site to start networking; the system can be controlled to be started by a corresponding management control program in the hotel server through the communication relay unit; and so on.
When the distribution unit sends data, whether the data is sent or not, namely, the driving mode of sending the data adopts one of an event driving mode and a time driving mode, or adopts the event driving mode and the time driving mode simultaneously. The event-driven mode is that when the distribution unit generates data to be sent, the data sending 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, data transmission needs to be started; for example, after receiving data of a hotel server, the communication relay unit needs to start data transmission; and so on. The time driving mode is that the distribution unit sends data such as state information of the unit where the distribution unit is located out periodically.
The control cores of the microcontroller modules of the distribution unit, such as the switch microcontroller module, the coordination microcontroller module, the curtain microcontroller module, the relay microcontroller module, the power-taking microcontroller module and the like, can be selected from microcontrollers such as a single chip microcomputer, an ARM (advanced RISC machine), a DSP (digital signal processor), and the like, and can also be selected from controllers such as a CPLD (complex programmable logic device) and the like.
All the configuration information of each distribution unit, such as switch interlocking configuration information, configuration information of ZigBee nodes, various identification codes and address code information, and the like, which are allowed to be modified but still need to be kept when power is cut off, is stored in a nonvolatile memory of a control core of a microcontroller module of the distribution unit or a nonvolatile memory added outside the control core of the microcontroller module in the distribution unit. For example, when the control core selects the single chip microcomputer, the modification information is stored in a nonvolatile memory of the single chip microcomputer, or is stored in a nonvolatile memory device extended from the periphery of the single chip microcomputer.
The power supply of the distribution unit can adopt a zero-live wire power supply or a single-live wire power supply according to requirements.
The Zigbee network control system of the hotel guest room does not need a control host, and a proper number of touch switch units and other related distribution units can be selected according to the needs to form a Zigbee network; the switches configured to be in an interlocking state can realize interlocking control and unified action, namely two-place control and multi-place control are realized, and one-place control and two-place or multi-place simultaneous action can also be realized; the curtain controllers configured in the interlocking state can realize interlocking control and unified action, namely two-place control and multi-place control are realized, and one-place control and two-place or multi-place simultaneous action are realized; each distribution unit can be installed by adopting an 86-bottom shell structure; the method has the advantages of low cost, convenience and quickness in installation and debugging.
The embodiment of fig. 4 is merely an example. It is a conventional technique known to those skilled in the art to select or design the micro controller module circuits of the touch switch unit, the coordinator unit, the power switch unit, the communication relay unit, the curtain control unit, etc. according to the above requirements, and select or design the corresponding peripheral module devices and circuits to implement the corresponding functions.