A kind of intelligent lighting system and its control method
Technical field
The present invention relates to intelligent lighting controls technical field more particularly to a kind of intelligent lighting systems and its controlling party
Method.
Background technique
Under the background that cloud computing, technology of Internet of things develop rapidly, intelligent illuminating system shines in perception personnel state, control
Powerful support is provided in terms of bright operation for architecture indoor luminous environment.But as flood tide equipment access the low of intelligent illuminating system can
The impact of the new models such as the low compatibility interconnected by property, distinct device, the intelligent illuminating system of existing centralization are difficult to compartment
The needs of interior luminous environment control management.
Existing interior lighting system is based on the agreements such as DALI and KNX, and perfect by many years, function is neater
Entirely, reliability is higher, meets people to a degree of demand of interior lighting system.But due between different lighting systems
Mutually incompatible, this, which allows for the equipment to work under not homologous ray, to share, and data information can not intercommunication.To equipment
Later maintenance causes certain difficulty, while also resulting in economic loss.In addition, there are also many illumination producers for
The considerations of design and economic cause of oneself product etc., devises what producer had by oneself according to the lighting protocol of some mainstreams
Lighting protocol.In this case, the lighting protocol between different manufacturers is more difficult to unification, and thereby results in serious resource
Waste, improves the maintenance cost of later period lamps and lanterns.
To sum up, the intelligent lighting data format being badly in need of between a kind of each different lighting protocols that can connect, to meet day
The room lighting environmental demand opened up increasingly.
Summary of the invention
In view of above-mentioned analysis, the present invention is intended to provide a kind of intelligent lighting system and its control method, to solve
Lighting protocol disunity and the wasting of resources resulting between certainly existing different manufacturers, later period lamps and lanterns maintenance cost is high asks
Topic.
The purpose of the present invention is mainly achieved through the following technical solutions:
A kind of intelligent lighting controls method, includes the following steps:
Building host server sends the data frame including source address, destination address and control instruction to bus;
Lighting control terminal receives the data frame and is parsed from bus, when the destination address and the photograph in data frame
When the network address of bright controlling terminal is identical, the controlled lighting apparatus that control is uniquely connected therewith executes the control in the data frame
System instruction;
The Lighting control terminal also generates feedback command after having executed the control instruction, is sent to the building master
Machine server;
The building host server receives the feedback command, to illumination controlling terminal whether successful execution control instruction
Judged.
On the basis of above scheme, the present invention has also done following improvement:
Further, when the building host server accesses network, network obtains the building host server automatically
Physical address, and be that it matches corresponding network address, comprising:
Successively obtain zone number belonging to the building host server or the physical address of the Lighting control terminal,
Major class number, building group number, building serial number number, floor number are built, and combines and forms the building host server
Network address.
Further, when the Lighting control accessing terminal to network, network obtains the object of the Lighting control terminal automatically
Address is managed, and matches corresponding network address for it, comprising:
Successively obtain zone number belonging to the physical address of the Lighting control terminal, building major class is numbered, it is small to build
Class number, building serial number number, floor number, room type identification code, room number, circuit number, Lighting control terminal are compiled
Number, and combine the network address for forming the Lighting control terminal.
Further, if numbering of part belonging to the building host server or the physical address of the Lighting control terminal
It is not present, the spot patch with corresponding digit is neat.
Further, the data frame includes start frame, address field, control domain, application layer data frame, check code, end code;
The address field address and source address for storage purposes;
The control domain for storing data transmission direction mark, communication state mark, subsequent frame identification, read-write capability code
Mark;Wherein, the subsequent frame identification, for identifying whether that there are subsequent data frames;The read-write capability code mark, for marking
Know the read-write type of the data frame;
The application layer data frame is for storing holding function code mark, data cell mark, action identification, time quantum
Mark;Wherein, the holding function code mark, for identifying the type of action for needing Lighting control terminal to execute;The data
Unit marks, for identifying the two-step action type for needing Lighting control terminal to execute;The action identification is needed for identifying
The specific actuating quantity that Lighting control terminal executes;The time quantum mark, the time issued for identifying the data frame.
Further, the Lighting control terminal receives the data frame and is parsed from bus, when the purpose in data frame
When address is identical as the network address of the Lighting control terminal, described in the controlled lighting apparatus execution that control is uniquely connected therewith
Control instruction in data frame, comprising:
The address domain information in the data frame is read, if the destination address of the data frame and the Lighting control terminal
Network address it is identical, continue the control domain information for reading the data frame;
If data transfer direction is identified as to be identified as by host sending, communications status in the control domain of the data frame
Normally and subsequent frame has been identified as subsequent data frame, then the read-write type of the data frame is determined according to read-write capability code mark,
And continue to read application layer data frame information in the data frame;
Holding function code mark, the data cell mark, action identification being successively read in the application layer data frame, determine
Need type of action, the two-step action type, specific actuating quantity of the execution of Lighting control terminal;
The Lighting control terminal is according to the read-write type of the data frame, the movement class for needing Lighting control terminal to execute
Type, two-step action type, specific actuating quantity control corresponding with the controlled lighting apparatus execution that Lighting control terminal is uniquely connected
Movement;
The Lighting control terminal also reads the time quantum mark, records the time that the data frame issues.
Further, if the subsequent frame in the control domain is identified as no subsequent data frame, the Lighting control terminal knot
The reading of Shu Benci data frame, and no longer feedback command is sent to building host server.
Further, holding function code mark is stored in the application layer data frame, includes at least following one kind: setting ginseng
Number, communication protocol inquiry, real time data inquiry, the inquiry of historical data, current event inquiry, history querying, lamps and lanterns state
Inquiry, inquiry remote signalling state, inquiry remote state.
Further, when the holding function code stored in the application layer data frame is identified as setting parameter, corresponding number
Include at least following one kind according to unit marks: light modulation, scene, inquiry, induction, instruction, active upload, lamps and lanterns control, is adjusted at toning
Beam angle, color-temperature regulating.
The present invention also provides a kind of lighting control system, the system comprises: building host server, Lighting control are whole
End, controlled lighting apparatus;Wherein,
The building host server, for carrying out communication friendship using data frame and one or more Lighting control terminals
Mutually;
The Lighting control terminal and controlled lighting apparatus are uniquely coupled, for being sent according to the building host server
Data frame, control the controlled lighting apparatus and execute corresponding movement;Wherein, data are stored in the Lighting control terminal
Data format meaning in frame, the data frame received for identification;
The data frame includes start frame, address field, control domain, application layer data frame, check code, end code;
The address field address and source address for storage purposes;
The control domain for storing data transmission direction mark, communication state mark, subsequent frame identification, read-write capability code
Mark;Wherein, the subsequent frame identification, for identifying whether that there are subsequent data frames;The read-write capability code mark, for marking
Know the read-write type of the data frame;
The application layer data frame is for storing holding function code mark, data cell mark, action identification, time quantum
Mark;Wherein, the holding function code mark, for identifying the type of action for needing Lighting control terminal to execute;The data
Unit marks, for identifying the two-step action type for needing Lighting control terminal to execute;The action identification is needed for identifying
The specific actuating quantity that Lighting control terminal executes;The time quantum mark, the time issued for identifying the data frame;
The building host server and Lighting control terminal are stored with net match with its physical address, unique
Network address.
The present invention has the beneficial effect that:
Intelligent lighting controls method and control system in the present invention are based on the building host server that the present invention formulates
Network address, Lighting control end network address, the data format in data transmission procedure are realized.The present invention at home and abroad mainstream
On the basis of lighting protocol, big data cloud platform novel system framework is relied on, realizes the design of novel intelligent lighting system architecture,
Develop a set of cloud platform intelligent lighting standardized data formats based on TCP/IP application layer protocol.Pass through the combing world and state
Interior existing communication standard, determines the data content and range of intelligent lighting system, and research meets public building and intelligently shines
Bright system use demand.Data format in the present invention has carried out unified regulation to different lighting protocols in application layer, makes
It can communicate with each other on the application layer between different lighting systems, the cost for reducing later maintenance and using.It can
Meet present room lighting increasingly higher demands, standardized data formats can also be docked with big data, cloud platform etc., full
Demand of the foot now for illumination intelligent.
It in the present invention, can also be combined with each other between above-mentioned each technical solution, to realize more preferred assembled schemes.This
Other feature and advantage of invention will illustrate in the following description, also, certain advantages can become from specification it is aobvious and
It is clear to, or understand through the implementation of the invention.The objectives and other advantages of the invention can by specification, claims with
And it is achieved and obtained in specifically noted content in attached drawing.
Detailed description of the invention
Attached drawing is only used for showing the purpose of specific embodiment, and is not to be construed as limiting the invention, in entire attached drawing
In, identical reference symbol indicates identical component.
Fig. 1 is intelligent lighting controls method flow diagram disclosed in the embodiment of the present invention 1;
Fig. 2 is intelligent lighting system structural schematic diagram disclosed in the embodiment of the present invention 2.
Specific embodiment
Specifically describing the preferred embodiment of the present invention with reference to the accompanying drawing, wherein attached drawing constitutes the application a part, and
Together with embodiments of the present invention for illustrating the principle of the present invention, it is not intended to limit the scope of the present invention.
Embodiment 1
The embodiment of the present invention 1 discloses a kind of intelligent lighting controls method, and in the method, each illumination is set to realize
Standby control is equipped with dedicated Lighting control terminal for each lighting apparatus.Method realizes that intelligence is shone in using the present invention
During bright control, it is necessary first to determine building host server, Lighting control terminal network address and transmission process in
The data format of the data frame used.
In the present embodiment, the network address of building host server, Lighting control terminal is determined by following manner:
When the building host server accesses network, network obtains the building host server physically automatically
Location, and corresponding network address is matched for it;Detailed process are as follows: successively obtain the building host server or illumination control
Zone number belonging to the physical address of terminal processed, building major class number, building group number, building serial number number, floor are compiled
Number, and combine the network address for forming the building host server.As shown in table 1,
1 building host server network address of table
(F:0000-1111)
FFFF FFF FFF |
FF |
FF |
FFFF |
FFF |
Regional code |
Build major class |
Build group |
Build serial number |
Layer |
When the Lighting control accessing terminal to network, network obtains the physical address of the Lighting control terminal automatically,
And corresponding network address is matched for it;Detailed process are as follows: belonging to the physical address for successively obtaining the Lighting control terminal
Zone number, building major class number, building group number, building serial number number, floor number, room type identification code, room
Number, circuit number, Lighting control terminal number, and combine the network address for forming the Lighting control terminal.Such as 2 institute of table
Show.
2 Lighting control end network address of table
(F:0000-1111)
Each coding in table 1, table 2 is done described briefly below:
(1) regional code, layer, room ...
Administrative area, garden coding are divided according to administrative region coding.Layer, room, circuit, lamp, can be according to physical location
It fills in.Fully open when being broadcasted, such as by certain layer of lamp, it is exactly FF that the part after layer, which needs all filling 1,
FF FF FF;For example the lamp of certain building is fully open, builds the whole filling 1 of part needs after serial number, is exactly FFF FF FF
FF FF。
All filling 1 e.g. turn on certain layer of whole lamp: FF FF FF FF.
(2) major class is built
According to different building classifications, by public building there are many major class is built, the present embodiment is exemplary to give portion
Classification and corresponding number, as shown in table 3:
Build major class classification and number in 3 part of table
There are corresponding building group and room type identification code under different building major class.
(3) group (citing, as shown in table 4) is built
Residential housing
4 residential housing of table classification and number
Residential housing classification |
Number |
It is unfiled |
0 |
Low-rise dwelling |
1 |
Detached house |
2 |
Townhouse house |
3 |
Double-unit residence |
4 |
Courtyard house |
5 |
Multi-storey building |
6 |
Formula house between ladder |
7 |
Gallery apartment building |
8 |
Separate unit formula house |
9 |
Stepped house |
10 |
Split-level house, duplex house |
11 |
High residential building |
12 |
Tower house |
13 |
Apartment type high rise |
14 |
Gallery tall building of apartment |
15 |
Super high-rise dwelling house |
16 |
It is undetermined |
17-255 |
(4) room type identification code: (citing, as shown in table 5)
The classification of 5 room type identification code of table and number
The classification of room type identification code |
Number |
It is unfiled |
0 |
Living room |
2 |
Master bedroom |
3 |
Secondary bedroom, study |
4 |
Kitchen |
5 |
Toilet |
6 |
Miscellaneous function space |
7 |
Dining room |
8 |
Aisle, staircase |
9 |
Public garage |
10 |
Elevator lobbies |
11 |
It is undetermined |
12-255 |
In actual application, if belonging to the building host server or the physical address of the Lighting control terminal
Numbering of part is not present, and the spot patch with corresponding digit is neat, thereby guarantees that the corresponding relationship between physical address and network address.
It, can be simultaneously by the way that the network address of building host server and Lighting control terminal and actual physical address are mapped
To between different zones, different building, the server of different lighting protocols and terminal be managed collectively, convenient use in the future
And maintenance.
The present embodiment gives the format of data frame, comprising: start frame, address field, control domain, application layer data frame,
Check code, end code, as shown in table 6.
6 data frame format of table
In above-mentioned data frame, address field address and source address for storage purposes.
Control domain mainly controls the transmission direction of data, state, read-write etc., storing data transmission direction mark, communication shape
State mark, subsequent frame identification, read-write capability code mark;Wherein, the subsequent frame identification, for identifying whether that there are follow-up datas
Frame;The read-write capability code mark, for identifying the read-write type of the data frame;Control domain data format is as shown in table 7.
7 control domain data format of table
Illustratively give meaning when each mark takes different value:
D7=0: it is issued by host;D7=1: it is issued by equipment;
D6=0: communication is normal;D6=1: communication abnormality;
D5=0: without subsequent data frame;D5=1: there is subsequent data frame
D4-D0: function code
00000 (00): retain
00001 (01): data are read
00010 (02): follow-up data is read
00011 (03): data are write
00100 (04): read-only
00101 (05): it only writes
00110 (06): active upload
00111 (07) -11111 (1F): undetermined
Application layer data frame is for storing holding function code mark, data cell mark, action identification, time quantum mark
Know;Wherein, the holding function code mark, for identifying the type of action for needing Lighting control terminal to execute;The data sheet
Member mark, for identifying the two-step action type for needing Lighting control terminal to execute;The action identification needs to shine for identifying
The specific actuating quantity that bright controlling terminal executes;The time quantum mark, the time issued for identifying the data frame.Movement
It is as shown in table 8 that function code identifies meaning.
8 application layer holding function code of table identifies meaning
Different holding function codes corresponds to different data cell mark and action identification, data cell identification marking
Subdivision to the function of dominant under function code;Such as: AFN represents the parameter of setting lamps and lanterns when being equal to 01, and different holding function codes is corresponding
There is different data cell marks.As AFN=01, being corresponding with 10 kinds of data cell marks can be called, different data sheets
Parameter is arranged in this corresponding different lamps and lanterns of member mark, convenient to control lamps and lanterns.
AFN=01: setting parameter
For the parameter of equipment to be arranged, have the function of light modulation, toning, inquiry etc..
AFN=01
FN=01: light modulation
=02: toning
=03: scene
=04: inquiry
=05: induction
=06: instruction
=07: active upload
=08: lamps and lanterns control (rotation, traversing)
=09: light modulation beam angle
=0A: color-temperature regulating
08-FF: undetermined
Action identification meaning is as shown in table 9, indicate to illumination controlling terminal carry out concrete operations, including toning, light modulation,
Grouping etc..That is, function code and data unit marks only illustrate this segment data is what needs to do, what is specifically executed is interior
Appearance is realized by the respective action in table 9.
9 action identification meaning of table
When Lighting control terminal also generates feedback command after having executed the control instruction, it is sent to the building host
It is as shown in table 10 to reply frame data format for server:
Table 10 replys frame data format
When building host server issue be query facility type instruction when, Lighting control terminal can be according in table 11
Parameter identification is replied:
11 device parameter of table mark
The format of time quantum mark is as shown in table 12.Time quantum records the time that each instruction issues, effect
Be: 1. facilitate cloud platform to inquire each lighting instruction, and the person of being convenient to use is to illumination platform moving law and situation
Understanding, facilitate the maintenance in later period and the content of energy monitoring etc.;2. the record time, which facilitates, carries out energy consumption measure system
Meter.
12 time quantum of table mark
Year |
Month |
Day |
When |
Point |
Second |
FFFF |
FF |
FF |
FF |
FF |
FF |
Number used in the network address and transmission process of building host server, Lighting control terminal in the present invention
After determining according to the data format of frame, intelligent lighting controls method in the present invention is introduced.Illustratively list building host clothes
Several interaction scenarios being engaged between device and Lighting control terminal:
Example 1: building host server sends control information, schematic diagram such as Fig. 1 to one or more Lighting control terminals
Shown, this method comprises the following steps:
Step S11: building host server send include source address, destination address and control instruction data frame to total
Line;
Step S12: Lighting control terminal receives the data frame and is parsed from bus, when the destination address in data frame
When identical as the network address of the Lighting control terminal, the controlled lighting apparatus that control is uniquely connected therewith executes the data
Control instruction in frame;Specifically,
Step S121: reading the address domain information in the data frame, if the destination address of the data frame and the photograph
The network address of bright controlling terminal is identical, continues the control domain information for reading the data frame;
Step S122: if in the control domain of the data frame, data transfer direction, which is identified as, to be issued by host, communicates shape
State is identified as normal and subsequent frame and has been identified as subsequent data frame, then determines the data frame according to read-write capability code mark
Read-write type, and continue to read application layer data frame information in the data frame;If the subsequent frame in the control domain is identified as
Without subsequent data frame, then the Lighting control terminal terminates the reading of this data frame, and no longer sends out to building host server
Send feedback command;
Step S123: holding function code mark, the data cell mark, movement being successively read in the application layer data frame
Mark determines the type of action for needing Lighting control terminal to execute, two-step action type, specific actuating quantity;
Step S124: the Lighting control terminal according to the read-write type of the data frame, need Lighting control terminal to hold
Capable type of action, two-step action type, specific actuating quantity control the controlled lighting apparatus being uniquely connected with Lighting control terminal
Execute corresponding movement.
Step S13: the Lighting control terminal also generates feedback command after having executed the control instruction, is sent to institute
State building host server;
Step S14: the building host server receives the feedback command, to illumination controlling terminal whether successful execution
Control instruction is judged.
Generally, when building host server send be only write-in data or only read data when, when receive illumination
After controlling terminal feedback command, any reply is no longer carried out;What it is when the transmission of building host server is that the correlations such as broadcasting command refer to
When enabling, also feedback command can further be judged, if judging result is mistake, send NACK messages;And it is controlled by illumination
Terminal processed sends corresponding information again, until host correct judgment, sends confirmation message, D5=0, frame end is arranged.
Example 2: when all Lighting control terminals of the building host server into range of management send broadcasting instructions, at this time
Workflow it is as follows:
Step S21: building host server send include source address, destination address and control instruction data frame to total
Line;
Step S22: Lighting control terminal receives the data frame comprising broadcasting instructions from bus;
Step S23: it is controlled to control it after receiving the data frame comprising broadcasting instructions for all Lighting control terminals
Equipment executes corresponding movement;
Step S24: part controlled device is not operating if it exists, then corresponding Lighting control terminal active feedback stroke defect
Instruction is analyzed and is warned to the stroke defect instruction that the Lighting control terminal is fed back by building host server.
Example 3: when there is mistake or movement in controlled device, meeting active upload command adapted thereto to building host server,
Workflow at this time is as follows:
Step S31: when mistake or movement occurs in controlled device, the Lighting control terminal being attached thereto is actively corresponding
Mistake or action command are to building host server;
Step S32: building host server is analyzed and is warned to the mistake that reports of illumination controlling terminal or action command
Show;If being judged as error message, returning equipment denies information;Otherwise, terminate this process;
Step S33: connecing upload information again by Lighting control terminal, is carried out reaffirming judgement by host, until information
It is errorless, terminate this process.
Compared with prior art, the present invention relies on big data cloud platform new at home and abroad on the basis of mainstream lighting protocol
Type system architecture realizes the design of novel intelligent lighting system architecture, develops a set of cloud based on TCP/IP application layer protocol
Platform intelligent lighting criteria data format.By combing the existing communication standard of international and national, intelligent lighting controls are determined
The data content and range of system, research meet public building intelligent illuminating system use demand.Data format in the present invention
Unified regulation has been carried out to different lighting protocols in application layer, make between different lighting systems can on the application layer into
Row is communicated with each other, the cost for reducing later maintenance and using.It can satisfy present room lighting increasingly higher demands, standard
Changing data format can also be docked with big data, cloud platform etc., meet the needs of now for illumination intelligent.
Embodiment 2
In the embodiment of the present invention 2, a kind of lighting control system is provided, as shown in Fig. 2, the system comprises: building
Space host server, Lighting control terminal, controlled lighting apparatus;Wherein,
The building host server, for carrying out communication friendship using data frame and one or more Lighting control terminals
Mutually;
The Lighting control terminal and controlled lighting apparatus are uniquely coupled, for being sent according to the building host server
Data frame, control the controlled lighting apparatus and execute corresponding movement;Wherein, data are stored in the Lighting control terminal
Data format meaning in frame, the data frame received for identification;
The building host server and Lighting control terminal are stored with net match with its physical address, unique
Network address.
The specific implementation process of present system embodiment is referring to above method embodiment, and the present embodiment is herein no longer
It repeats.Since the present embodiment is identical as above method embodiment principle, so this system also has above method embodiment corresponding
Technical effect.
It will be understood by those skilled in the art that realizing all or part of the process of above-described embodiment method, meter can be passed through
Calculation machine program is completed to instruct relevant hardware, and the program can be stored in computer readable storage medium.Wherein, institute
Stating computer readable storage medium is disk, CD, read-only memory or random access memory etc..
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art,
It should be covered by the protection scope of the present invention.