Background technology
LED is as a kind of novel lighting technology, and its application prospect is highly visible, and the LED illumination replaces a kind of trend that traditional lighting has become the lighting field development.The high-brightness LED light fixture is described as the light source of 21 century most worthy especially, will cause new revolution of lighting field.
Therefore, the traditional lighting light fixture is faced with the severe challenge of LED light fixture at present, and the reason that causes present this situation mainly is because the LED light fixture has following 3 major advantages:
1, energy-conservation.Because LED is a cold light source, semiconductor lighting self, is compared with incandescent lamp, fluorescent lamp without any pollution environment, and economizing electrical efficiency can reach more than 90%.Under same brightness, power consumption only is 1/10 of ordinary incandescent lamp, 1/2 of fluorescent tube.If replace 50% of our present traditional lighting with LED, the electric weight that annual China saves just is equivalent to the summation of a Three Gorges plant generator amount, and its energy-saving benefit is very considerable.
2, health.LED is a kind of green light source.LED lamp DC driven does not have stroboscopic, does not have infrared and composition ultraviolet, does not have radiation pollution, and color rendering is high and have very strong light emission direction, and dimming behavior is good, and colour temperature can not produce the collimation error when changing.The cold light source caloric value is low, can safe touch; These all are that incandescent lamp and fluorescent lamp are inaccessible.It can provide the illumination space of comfortable, can satisfy people's physiological health demand again well, is the healthy light source of vision protection and environmental protection.
3, artistry.LED has shown impayable advantage on color art, the color LED product has covered whole limit of visible spectrum at present, and monochromaticjty is good, the color purity height, and the combination of red, green, yellow LED makes the selection of color and gray scale (1,670 ten thousand look) have bigger flexibility.
LED lighting at present is mainly used in room illumination, building lighting, the Landscape Lighting, by the control of light being realized effects such as the chasing of light, flowing water, jump, make light set up composition, order and rhythm, can give full play of the artistic expression of light.Coordinate mutually but reach the various artistic elements such as variation, color, brightness and music rhythm that make light, just must adopt complicated automatic control system.
At present, the LED lamp light control system is mainly realized dynamic LED light control effect by following several technical approach:
1), adopt DMX512 communications protocol mode: this mode adopts distributed, modular computer networking technology control system, and communication interface adopts general EIA-485 standard in the computer communication, adopts optical fiber or netting twine transmission of control signals.
2), adopt the network control system of EIA-485 standard interface: this system adopts optical fiber or netting twine transmission of control signals.The system communication agreement, the form that generally adopts EIA-485 standard or producer to define voluntarily.Many master controls maximum that links can reach 128, can control 128 end-loopback controllers at most.Terminal adopts serial or parallel TIL control mode signal to light fixture.
3), adopt the large scale display control mode: this mode mainly by the CPU microprocessor, with the standard communication interface of host computer, with the standard communication interface of driver module and the control module hardware configuration that the environmental light intensity detection module is formed a standard, by working out different software, promptly can be used for different places.Reach RS232, RS422AK or the RS485 communication interface that can adopt standard with the standard communication interface of driver module with the standard communication interface of host computer.
By to the description of above three kinds of modes as can be seen, existing LED light control mode has following two shortcomings:
The first, be that the lighting effects scheme is solidificated in the controller, select that the user selects in can only the scheme in controller and can't add new lighting effects scheme, uses dumb by the button on the controller panel;
The second, the signal transmission depends on the twisted-pair feeder of 485 interface modes, have a greatly reduced quality on using flexibly, and when light fixture increases, a large amount of cables will take up room and increase the cost of system, and it is very too fat to move that the system that makes becomes, and is not easy to the expansion of system.
Summary of the invention
(1) technical problem that will solve
Deficiency at above-mentioned prior art existence, main purpose of the present invention is to provide a kind of LED lamp light wireless controlling system that combines with the WEB technology based on the low-speed wireless personal area network LR-WPAN technology of IEEE 802.15.4 standard, realizing flexible control, and be easy to the expansion of system to LED light.
(2) technical scheme
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of LED lamp light wireless controlling system, this system comprises:
Unit, lamplight scene file website is used for providing and can receiving the lamplight scene file that the user utilizes the lamplight scene software editing and uploads for the lamplight scene file of downloading to the user by the Internet network;
The local computer unit, be used to utilize the lamplight scene software editing lighting effects of loading, login unit, lamplight scene website, download and upload the lamplight scene file, become the LED unit can the recognition data form lamplight scene file conversion, the data after the conversion are downloaded to the wireless personal domain network unit;
The wireless personal domain network unit is used to receive the lamplight scene data from the local computer unit, and stores, control LED unit;
The LED unit is used to receive the control signal from the wireless personal domain network unit, realizes specific lighting effects.
Described wireless personal domain network unit comprises:
The network coordinator node is used to the node in the network to distribute the address, receives from the local computer unit and storage lamplight scene data, the lamplight scene data that receive is sent to router node, control whole LED lamp light wireless controlling system;
Router node is used to realize the discovery and the selection of network path, and the lamplight scene data that are received from the network coordinator node are sent to the terminal equipment node of LED unit, the switch and the brightness of control LED light fixture;
The terminal equipment node is used to provide the interface of control router node with the LED light fixture, with the control signal that is received from the control router node real-time send the LED light fixture to, thereby the light of control LED light fixture and brightness are according to the scheme variation of expection.
Described network coordinator node comprises a routing table, and this routing table stores the path of each node in the network, and the network coordinator node sends to relay router node and terminal equipment node according to the path of storage with the lamplight scene data;
Described network coordinator node links to each other with the local computer unit by serial ports, and described network coordinator node provides keyboard interface and LCD display, and the lamplight scene data are numbered, and shows predetermined lighting effects by keyboard input control led module.
Described router node comprises:
The relay router node is used for giving the control router node with the lamplight scene data forwarding that is received from the network coordinator node;
The control router node is used for the terminal equipment node as its child node, forms Star Network, realizes the control to the LED light fixture.
Described relay router node and control router node comprise a routing table respectively, and described routing table stores the path of leading to network coordinator node and other router node;
On described relay router node and the control router node fixed wall or on the building,, control the switch and the brightness of LED light fixture wirelessly by the DC voltage-stabilizing power supply.
Described wireless personal domain network unit further comprises:
Remote controller, comprise router node and keyboard, be used for concentrating or grading control is organized the switch and the brightness of light more, in the router node of remote controller, store the lamplight scene program, the LED light fixture address, router node address or the lamplight scene numbering that need control by the keyboard input, adopt the mode of multi-hop that control signal is transferred to destination node, the switch and the brightness of control LED light fixture.
The control signal that described remote controller sent is received by router node, specifically controls the switch of which or which LED light fixture and the brightness load decision by the control signal data frame.
The tree topology network of described wireless personal domain network unit for making up on the basis of star topology network configuration, described tree topology network is a multihop network.
Described LED unit comprises LED light fixture and led drive circuit.
Described led drive circuit is used to resolve the data that router node transmits, and drives the length of the LED fluorescent lifetime of three kinds of color R/G/B, the change color of control LED light fixture light in the mode of MCU control PWM.
(3) beneficial effect
From technique scheme as can be seen, the present invention has following beneficial effect:
1, utilizes the present invention, the user can download or upload the lamplight scene scheme by lamplight scene software on WEB, as long as just can obtain up-to-date lighting effects at any time by a computer that is connected to Internet, make that the selection of illumination scheme is very convenient, have great flexibility.
2, utilize the present invention, can also utilize lamplight scene software editing scheme, the preview lighting effects, lamplight scene data after transforming are downloaded in the telegon, solved the problem that the lamplight scene scheme is difficult to change, all right real-time observation network condition makes LED light control hommization more.
3, utilize the present invention, control the LED lighting system, replace wired mode, saved a large amount of spaces, also reduced cost, be easy to installation and maintenance, realize flexible control LED light with wireless network.
4, utilize the present invention, adopt multihop network, make the coverage of system become bigger, can add new node at any time, when the needs expanding system, only need install light fixture, and need not to arrange cable, the system that makes very easily expands.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below the wireless personal domain network at first the present invention used be described in detail.
IEEE802.15.4 is electronic motor Ssociety of engineers (Institute of Electrical andElectronics Engineer, IEEE) definite low-speed wireless personal area network (Personal AreaNetwork) standard.This standard is low-energy-consumption, lower rate transmissions, low-cost as highest priority, be intended to in individual or the home-ranges between the distinct device low speed interconnection unified standard is provided.Standard definition physical layer (Physical Layer, PHY) and media access layer (Medium AccessLayer, MAC).
Physical layer (PHY) standard has been determined the low-power consumption spread-spectrum radio on international ISM2.4GHz, has also stipulated two operating frequency 868MHz and 915MHz in addition.
Media access layer (MAC) normalized definition how to share aerial passage in a plurality of IEEE802.15.4 radio signals of the same area work.Media access layer has following characteristics:
Three kinds of different transmission rates of 20kbps, 40kbps and 250kbps under different carrier frequencies, have been realized;
Support Star network and two kinds of network topology structures of mesh network;
16 and 64 two kinds of address formats are arranged, and wherein 64 bit address are globally unique extended address;
The carrier wave multichannel of supporting conflict to avoid intercept technology (Carrier Sense Multiple Access withCollision Avoidance, CSMA-CA);
Support to confirm (ACK) mechanism, guarantee transmission reliability.
In the IEEE802.15.4 network, according to the communication capacity that equipment had, can be divided into full-function device (Full-Function Device, FFD) and simplify function device (Reduce-FunctionDevice, RFD).Can communicate by letter between the FFD equipment and between FFD equipment and the RFD equipment.Can not direct communication between the RFD equipment, can only with the FFD devices communicating, perhaps outwards transmit data by a FFD equipment.The FFD equipment that this is associated with RFD is called the telegon (Coordinator) of this RFD.RFD equipment is mainly used in simple control and uses, and as the switch of lamp etc., data quantity transmitted is less, and the transfer resource and the communication resource are taken seldom, and RFD equipment can adopt the implementation that is dirt cheap like this.Network coordinator is the master controller among the LR-WPAN, except participating in application directly, also will finish tasks such as member's Identity Management, link-state information management and packet forward.
According to the needs of using, the IEEE802.15.4 network can be organized into Star Network, also can be organized into mesh network.
As shown in Figure 1, Fig. 1 is the topological structure schematic diagram of Star Network.In Star Network, be the center with network coordinator 11, all equipment is all communicated by letter with network coordinator.How a network determines that the network coordinator of oneself is determined by upper-layer protocol, after FFD is being activated for the first time, the at first request of broadcast query network coordinator, if receive to respond in the explanation network and had network coordinator, by a series of verification process, equipment just becomes the conventional equipment in this network again.If not receiving to respond or authenticate gets nowhere, this FFD equipment just can be set up the network of oneself, and becomes this network of network telegon.Network coordinator is unique identifier of network selecting, and the equipment in all Star Networks all is owner's relation of stipulating oneself with this identifier.After the selection marker symbol, network coordinator just allows miscellaneous equipment to add the network of oneself, and is these device forwards packets.
As shown in Figure 2, Fig. 2 is the topological structure schematic diagram of mesh network.In the mesh network,, just can carry out direct communication, not need the forwarding of other equipment as long as any two equipment can be received the other side's wireless signal each other.But still need a network coordinator 21 in the mesh network, but the function of this telegon no longer is to transmit for miscellaneous equipment to belong to, but finishes basic Network Management Functions such as facility registration and access control.The generation of network coordinator is equally by upper-layer protocol regulation, for example first equipment that begins to communicate by letter on certain channel as the network coordinator on this channel.
Therefore, the low speed that has based on the IEEE802.15.4 standard, the characteristic of low-power consumption can be applied to wireless personal domain network such as a lot of fields such as industrial monitoring, environmental monitorings.Because the transmission means of the needed a kind of just short distance low speed of LED light control, wireless personal domain network based on the IEEE802.15.4 standard is well suited for being applied to the control of LED light, though the product that uses the wireless LED of control light is arranged at present, but the notion of wireless personal domain network is not introduced LED light control field, and the IEEE802.15.4 standard provides the interface of network-oriented layer, can develop Routing Protocol easily, make wireless personal domain network have great autgmentability.
The present invention just is being based on the low-speed wireless personal area network of above-mentioned IEEE802.15.4 standard, and a kind of LED lamp light wireless controlling system is provided.
As shown in Figure 3, Fig. 3 is the structured flowchart of LED lamp light wireless controlling system provided by the invention, and this system comprises unit, lamplight scene file website 31, local computer unit 32, wireless personal domain network unit 33 and LED unit 34.
Wherein, unit, lamplight scene file website 31 is used for providing and can receiving the lamplight scene file that the user utilizes the lamplight scene software editing and uploads for the lamplight scene file of downloading to the user by the Internet network.
Local computer unit 32 is used to utilize the lamplight scene software editing lighting effects of loading, login unit, lamplight scene website, download and upload the lamplight scene file, become the LED unit can the recognition data form lamplight scene file conversion, the data after the conversion are downloaded to the wireless personal domain network unit.
Wireless personal domain network unit 33 is used to receive the lamplight scene data from the local computer unit, and stores, control LED unit.Wireless personal domain network unit 33 comprises network coordinator node, router node and terminal equipment node.
Wherein, the network coordinator node is used to the node in the network to distribute the address, receives from the local computer unit and storage lamplight scene data, the lamplight scene data that receive is sent to router node, control whole LED lamp light wireless controlling system.The network coordinator node comprises a routing table, and this routing table stores the path of each node in the network, and the network coordinator node sends to relay router node and terminal equipment node according to the path of storage with the lamplight scene data.The network coordinator node links to each other with the local computer unit by serial ports, and described network coordinator node provides keyboard interface and LCD display, and the lamplight scene data are numbered, and shows predetermined lighting effects by keyboard input control led module.
Router node is used to realize the discovery and the selection of network path, and the lamplight scene data that are received from the network coordinator node are sent to the terminal equipment node of LED unit, the switch and the brightness of control LED light fixture.Router node comprises relay router node, control router node and terminal equipment node.Wherein, the relay router node is used for giving the control router node with the lamplight scene data forwarding that is received from the network coordinator node; The control router node is used for the terminal equipment node as its child node, forms Star Network, realizes the control to the LED light fixture.Relay router node and control router node comprise a routing table respectively, and described routing table stores the path of leading to network coordinator node and other router node.On relay router node and the control router node fixed wall or on the building,, control the switch and the brightness of LED light fixture wirelessly by the DC voltage-stabilizing power supply.
The terminal equipment node is used to provide the interface of control router node with the LED light fixture, with the control signal that is received from the control router node real-time send the LED light fixture to, thereby the light of control LED light fixture and brightness are according to the scheme variation of expection.
Wireless personal domain network unit 33 can further include remote controller.This remote controller comprises router node and keyboard, be used for concentrating or grading control is organized the switch and the brightness of light more, in the router node of remote controller, store the lamplight scene program, the LED light fixture address, router node address or the lamplight scene numbering that need control by the keyboard input, adopt the mode of multi-hop that control signal is transferred to destination node, the switch and the brightness of control LED light fixture.The control signal that remote controller sent is received by router node, specifically controls the switch of which or which LED light fixture and the brightness load decision by the control signal data frame.
The tree topology network of wireless personal domain network unit 33 for making up on the basis of star topology network configuration, described tree topology network is a multihop network.
LED unit 34 is used to receive the control signal from the wireless personal domain network unit, realizes specific lighting effects.LED unit 34 comprises LED light fixture and led drive circuit, described led drive circuit is used to resolve the data that router node transmits, drive the length of the LED fluorescent lifetime of three kinds of color R/G/B, the change color of control LED light fixture light in the mode of MCU control PWM.
The present invention combines WEB technology and wireless personal domain network technology and is applied in the control of LED light, and the form by wireless personal domain network from the Internet downloads to the lamplight scene scheme the LED lighting system.
Existing LED lamp light control system is dumb in order to overcome, the shortcoming of poor expandability, the lamplight scene scheme is offered the user by Internet, select for the user, and the user can pass through the needed scheme of lamplight scene software editing, perhaps the scheme of being edited be uploaded on the website.
Adopt wired mode to take big quantity space, cost height, safeguard inconvenient shortcoming for solving existing LED control system, replace wired connected mode with wireless personal domain network.The IEEE802.15.4 standard is absorbed in low speed and low-power consumption, radio-frequency emission power is lower, physical layer and MAC layer have only been defined, and do not relate to upper-layer protocol, can only form Star Network and simple mesh network, the problem of being brought is that transmission range is limited thus, is operated under the condition of 2.4GHz transmission range in ten meters to tens meters scope, when enlarging, the needs working range can't meet the demands the system extension difficulty.
The present invention provides a kind of multi-hop routing mode for addressing the above problem, add router node in network, the information that makes can be forwarded to destination device by router, enlarges the working range of network, guarantee the error free transmission of data, also strengthened the autgmentability of system simultaneously.Concrete scheme comprises following content:
Aspect WEB, set up a LED lamplight scene website, this website is safeguarded by the technical staff, and the download of various lamplight scene schemes is provided.For making the user can constantly obtain up-to-date lamplight scene scheme, the technical staff keeps upgrading web site contents, and the lamplight scene file of making is put on the website.The user can land the website download scenarios by lamplight scene software, also can oneself edit the scene scheme by lamplight scene software, if and the interesting scheme of sharing oneself of user, can be by the lamplight scene software upload to the website, for other user experiences.
About being described below of lamplight scene software:
1) can land LED lamplight scene website as browser by this software, and from the website file in download, also the file of this locality can be uploaded on the website by lamplight scene software;
2) editor's lamplight scene scheme, the quantity, color, the dynamic effect that provide graphical interfaces to select LED light generate a lamplight scene file, and this document is consistent with the lamplight scene file format of being downloaded from server;
3) software can be explained the lamplight scene file that downloads to, and the virtual environment of preview lighting effects is provided, and reflects lighting effects really;
4) the lamplight scene file only is used for preview on computers, can not be discerned by the LED driver module, and on computers after the preview, lamplight scene software can become the lamplight scene file conversion led module can recognition data;
5) software comprises serial communication modular, and the data after the conversion are downloaded in the telegon of wireless personal domain network by computer by serial.
The all right real-time observation network conditions of software, the mistake of discovery network is discerned initiate node.
Aspect wireless personal domain network, the IEEE802.15.4 standard has only defined physical layer and MAC layer, and does not relate to network layer, can only form single-hop networks, and because the transmitting power of equipment is lower, transmission range is limited, makes that the coverage of single-hop networks is less.The present invention sets up multihop network for addressing this problem based on IEEE802.15.4, adds router node on the basis of Star Network, forms tree topology.
According to the tree topology of network, when the Routing Protocol of planned network, consider that the most of node in the network is seldom mobile, adopt tabledriven Routing Protocol.Each coordinator node in the network and router node are all safeguarded a form, comprise the routing iinformation that arrives other all nodes in the network in the form, are called routing table.The structure of routing table entry is made up of destination node address, next-hop node address, jumping figure.When detecting network topology structure and change, node sends updating message in network, receive the form of the node updates oneself of updating message, with safeguard in time, routing iinformation accurately.The foundation of routing table and maintenance divide into groups to implement by periodic broadcasting routing update, and the automatic selection of node meeting minimum hop count is used as the path and stores, because node is seldom mobile, so the route form does not need frequent renewal.Below each part in the network is described.
Network coordinator is responsible for tissue and is set up tree network, and for the node in the network distributes the address, control whole LED lighting system links to each other with computer by serial ports.The child node of telegon is a router node.The lamplight scene data number of telegon to obtaining from computer, and store.Routing table of storage has comprised the path that leads to each node in the network in the telegon, after router receives contextual data is sent to its child node---terminal equipment node.Telegon provides keyboard interface and LCD display, also the lamplight scene data is numbered, and shows predetermined lighting effects by keyboard input control led module.
Router node is realized the discovery and the selection of network path, and the certain router node as its child node, is formed Star Network with terminal equipment, is called the control router node; The other router node only need be transmitted data, is called the relay router node.Also store routing table in the router node, comprised the path of leading to coordinator node and other router node.In system, on the general fixed wall of router node or on the building, power by DC voltage-stabilizing, needs according to the scene, the part router node is made the form of wireless switching, substitutes original mechanical switch, can concentrate or divide into groups to control the switch and the brightness of LED light fixture.
The terminal equipment node is as the child node of router, is responsible for providing the interface with led module, with the control signal that receives real-time send led module to, thereby control light changes according to the scheme of expection.Led module design has led drive circuit, is responsible for resolving the data that terminal equipment transmits, and drives the length of the LED fluorescent lifetime of three kinds of color R/G/B, the color that control LED light changes in the mode of MCU control PWM.
Also have a kind of remote controller in network, this equipment is made up of a router node and LCD and keyboard, can concentrate or grading control is organized the switch and the brightness of light more.Stored several groups of lamplight scene programs in remote controller, needed the LED address or the router node address of control by keyboard input, and the lamplight scene numbering, the mode by multi-hop is transferred to destination node.The data that remote controller sent are only received by router node, specifically control the load decision by Frame of which lamp or which lamp.
Based on the structured flowchart of the described LED lamp light wireless controlling system of Fig. 3, LED lamp light wireless controlling system provided by the invention is further described below in conjunction with specific embodiment.
Embodiment one
In the present embodiment, be example with the domestic applications, further specify LED lamp light wireless controlling system provided by the invention in conjunction with the accompanying drawings.
As shown in Figure 4, Fig. 4 is the schematic diagram of LED lamp light wireless controlling system in the embodiment of the invention, and this system comprises lamplight scene file website 41, local computer 42, wireless personal domain network unit 43, LED unit 44 and remote controller 45.Wherein, wireless personal domain network unit 43 comprises network coordinator 431, relay router node 432, control router node 433 terminal equipment nodes 434.
The workflow of this LED lamp light wireless controlling system as shown in Figure 5, Fig. 5 is the workflow diagram of LED lamp light wireless controlling system in the embodiment of the invention, may further comprise the steps:
Step 501: at first set up the lamplight scene website, safeguard by the technical staff, provide a series of lamplight scene file to download, and constantly file is upgraded by the technical staff, the website also provides the function of upload file, and the user can utilize lamplight scene software to download and upload.
Step 502: arrange wireless personal domain network and LED light fixture in each room, comprise a control router node and several terminal equipment nodes in each room, form Star Network.Router node is fixed on the wall, and shell is the form of switch, as wireless switching, substitutes original mechanical switch, meets the original custom of people.Led module is connected with terminal equipment;
Step 503:, make that all nodes can both access network according to scene concrete needs reasonable Arrangement relay router node and network coordinator.
Step 504: stored several groups of lamplight scene data in remote controller in advance, whether normally the lamplight scene scheme numbering that input needs the address of control and needs to show on the remote controller keyboard judges test macro operation according to the lighting effects situation.Then network coordinator and computer being communicated with serial ports connects.
Step 505: move lamplight scene software on computers, land the website and download the lamplight scene file, perhaps, download to after the preview in the network coordinator, by the control of the keyboard interface on telegon LED display lamp light effect by lamplight scene software editing scheme.
Step 506: in the process of system's operation,, can find timely in case mistake appears in the node in the network by the state of lamplight scene software Real Time Observation network.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.