CN111132432B - Lighting scheduling control method and server - Google Patents
Lighting scheduling control method and server Download PDFInfo
- Publication number
- CN111132432B CN111132432B CN201911272778.7A CN201911272778A CN111132432B CN 111132432 B CN111132432 B CN 111132432B CN 201911272778 A CN201911272778 A CN 201911272778A CN 111132432 B CN111132432 B CN 111132432B
- Authority
- CN
- China
- Prior art keywords
- lighting
- illumination
- calendar
- objects
- scheduling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention provides an illumination scheduling control method and a server, wherein the method comprises the following steps: determining a calendar matrix according to a preset date type; acquiring a set of illumination objects; determining a time distribution matrix of the lighting objects in the calendar based on the calendar matrix and the first corresponding relation between each lighting object in the lighting object set and the date type; determining a set of illumination time intervals corresponding to each illumination object; determining a second corresponding relation between each terminal and each lighting object in the lighting object set, wherein the terminal is used for controlling the lighting objects; when the lighting scheduling needs to be controlled, acquiring a time distribution matrix and a second corresponding relation of lighting objects in a calendar and a lighting time interval set corresponding to each lighting object, and generating a lighting scheduling schedule table based on the time distribution matrix and the second corresponding relation of the lighting objects in the calendar and the lighting time interval set corresponding to each lighting object; and controlling the lighting scheduling process according to the lighting scheduling schedule.
Description
Technical Field
The invention relates to the technical field of information scheduling control, in particular to an illumination scheduling control method and a server.
Background
With the development of urban construction, urban illumination focuses on urban images more and more, and the requirements and the quantity of road illumination and landscape illumination are increasing continuously.
It is well known that there are many areas in a city that require extensive lighting control. Currently, each area individually controls the lighting effect, so that each area must be provided with a server and be equipped with corresponding staff for control management, and the resources are seriously wasted. And when in control, corresponding control instructions are sent manually, so that the labor intensity of operators is increased, and the automation control degree is not high.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides an illumination scheduling control method and a server, which are used for solving the technical problems of resource waste and low scheduling efficiency caused by that each area independently controls the illumination effect in urban large-scale illumination control in the prior art.
The invention provides a lighting scheduling control method, which comprises the following steps:
determining a calendar matrix according to a preset date type; the date types include: working days, weekends, general holidays and major holidays;
acquiring a set of lighting objects, the lighting objects comprising: an energy-saving lighting mode, a weekday lighting mode, a major holiday lighting mode, a general holiday lighting mode, and an off lighting mode in each lighting zone;
determining a time distribution matrix of the lighting objects in a calendar based on the calendar matrix based on a first correspondence of each of the lighting objects in the set of lighting objects to the date type;
determining a set of illumination time intervals corresponding to each illumination object;
determining a second correspondence between each terminal and each lighting object in the set of lighting objects, the terminal being used for controlling the lighting objects;
when the lighting scheduling needs to be controlled, acquiring a time distribution matrix of the lighting objects in a calendar, the second corresponding relation and a lighting time interval set corresponding to each lighting object, and generating a lighting scheduling schedule table based on the time distribution matrix of the lighting objects in the calendar, the second corresponding relation and the lighting time interval set corresponding to each lighting object;
and controlling the lighting scheduling process according to the lighting scheduling schedule.
Optionally, the determining a calendar matrix according to a preset date type includes:
acquiring a natural day set in a calendar;
classifying natural days in the calendar according to a preset date type to obtain a date category set;
and determining the calendar matrix according to the natural day set and the date category set.
Optionally, after determining the time distribution matrix of the lighting objects based on the first corresponding relationship between each lighting object in the lighting object set and the date type and the calendar matrix, the method further includes:
determining a first priority of the lighting object based on a date type corresponding to the lighting object, the first priority being as follows from high to low: major holidays, general holidays, weekdays, weekends;
determining a second priority of the lighting object based on the operation type of the lighting object, the second priority being, by high to low: opening and closing.
Optionally, the generating a lighting scheduling schedule based on the time distribution matrix of the lighting objects in the calendar, the second correspondence, and the set of lighting time intervals corresponding to each lighting object includes:
traversing a time distribution matrix of the illumination object in the calendar to obtain an illumination object set;
carrying out priority ranking on all the illumination objects in the illumination object set according to a preset priority to obtain the ranked illumination object set;
traversing the ordered illumination object set, and distributing the illumination objects in the ordered illumination object set to corresponding time sequences according to the illumination time interval corresponding to each illumination object;
and according to the second corresponding relation, corresponding the lighting objects in the sequenced lighting object set with the terminal to obtain a lighting scheduling schedule.
Optionally, the controlling a lighting scheduling process according to the lighting scheduling schedule includes:
sending the lighting scheduling schedule to a scheduling controller;
executing a scheduling task in the lighting scheduling calendar with the scheduling controller.
The present invention provides an illumination scheduling server, the server comprising:
the first determining unit is used for determining a calendar matrix according to a preset date type; the date types include: working days, weekends, general holidays and major holidays;
an acquisition unit for acquiring a set of lighting objects, the lighting objects comprising: an energy-saving lighting mode, a weekday lighting mode, a major holiday lighting mode, a general holiday lighting mode, and an off lighting mode in each lighting zone;
a second determination unit, configured to determine a time distribution matrix of the lighting objects in a calendar based on the calendar matrix and the first corresponding relationship between each lighting object in the set of lighting objects and the date type;
a third determining unit, configured to determine a set of illumination time intervals corresponding to each illumination object;
a fourth determining unit, configured to determine a second correspondence between each terminal and each lighting object in the set of lighting objects, where the terminal is used to control the lighting object;
a generating unit, configured to, when an illumination schedule needs to be controlled, obtain a time distribution matrix of the illumination object in a calendar, the second correspondence, and an illumination time interval set corresponding to each illumination object, and generate an illumination schedule based on the time distribution matrix of the illumination object in the calendar, the second correspondence, and the illumination time interval set corresponding to each illumination object;
and the control unit is used for controlling the lighting scheduling process according to the lighting scheduling calendar.
Optionally, the first determining unit is specifically configured to:
acquiring a natural day set in a calendar;
classifying natural days in the calendar according to a preset date type to obtain a date category set;
and determining the calendar matrix according to the natural day set and the date category set.
Optionally, the second determining unit is further configured to:
determining a first priority of the lighting object based on a date type corresponding to the lighting object, the first priority being as follows from high to low: major holidays, general holidays, weekdays, weekends;
determining a second priority of the lighting object based on the operation type of the lighting object, the second priority being, by high to low: opening and closing.
Optionally, the generating unit is specifically configured to:
traversing a time distribution matrix of the illumination object in the calendar to obtain an illumination object set;
carrying out priority ranking on all the illumination objects in the illumination object set according to a preset priority to obtain the ranked illumination object set;
traversing the ordered illumination object set, and distributing the illumination objects in the ordered illumination object set to corresponding time sequences according to the illumination time interval corresponding to each illumination object;
and according to the second corresponding relation, enabling the lighting objects in the sequenced lighting object set to correspond to the terminal again to obtain a lighting scheduling schedule.
Optionally, the control unit is specifically configured to:
sending the lighting scheduling schedule to a scheduling controller;
executing a scheduling task in the lighting scheduling calendar with the scheduling controller.
The invention provides an illumination scheduling control method and a server, wherein the method comprises the following steps: determining a calendar matrix according to a preset date type; the date types include: working days, weekends, general holidays and major holidays; acquiring a set of lighting objects, the lighting objects comprising: an energy-saving lighting mode, a weekday lighting mode, a major holiday lighting mode, a general holiday lighting mode, and an off lighting mode in each lighting zone; determining a time distribution matrix of the lighting objects in a calendar based on the calendar matrix based on a first correspondence of each of the lighting objects in the set of lighting objects to the date type; determining a set of illumination time intervals corresponding to each illumination object; determining a second correspondence between each terminal and each lighting object in the set of lighting objects, the terminal being used for controlling the lighting objects; when the lighting scheduling needs to be controlled, acquiring a time distribution matrix of the lighting objects in a calendar, the second corresponding relation and a lighting time interval set corresponding to each lighting object, and generating a lighting scheduling schedule table based on the time distribution matrix of the lighting objects in the calendar, the second corresponding relation and the lighting time interval set corresponding to each lighting object; controlling a lighting scheduling process according to the lighting scheduling schedule; therefore, the generated lighting scheduling schedule combines the date type, the corresponding relation between the lighting object and the terminal and the lighting time interval of the lighting object, so that the lighting scheduling can be controlled at high precision, the whole scheduling process does not need excessive manual participation, and the automation degree is higher; and the application can contain a plurality of lighting areas, so that all the lighting areas are controlled in a centralized manner, the use number of servers can be greatly reduced, and the resource waste is reduced.
Drawings
Fig. 1 is a schematic flow chart of a lighting scheduling control method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of the overall structure of a server according to the embodiment of the present invention.
Detailed Description
The method aims to solve the technical problems that in the prior art, in urban large-scale lighting control, each area independently controls lighting effects, so that resource waste and scheduling efficiency are low. The invention provides an illumination scheduling control method and a server, wherein the method comprises the following steps: determining a calendar matrix according to a preset date type; the date types include: working days, weekends, general holidays and major holidays; acquiring a set of lighting objects, the lighting objects comprising: an energy-saving lighting mode, a weekday lighting mode, a major holiday lighting mode, a general holiday lighting mode, and an off lighting mode in each lighting zone; determining a time distribution matrix of the lighting objects in a calendar based on the calendar matrix based on a first correspondence of each of the lighting objects in the set of lighting objects to the date type; determining a set of illumination time intervals corresponding to each illumination object; determining a second corresponding relation between each terminal in the terminal set and each lighting object in the lighting object set, wherein the terminal is used for controlling the lighting object; when the lighting scheduling needs to be controlled, acquiring a time distribution matrix of the lighting objects in a calendar, the second corresponding relation and a lighting time interval set corresponding to each lighting object, and generating a lighting scheduling schedule table based on the time distribution matrix of the lighting objects in the calendar, the second corresponding relation and the lighting time interval set corresponding to each lighting object; and controlling the lighting scheduling process according to the lighting scheduling schedule.
The technical solution of the present invention is further described in detail by the accompanying drawings and the specific embodiments.
Example one
The present embodiment provides a lighting scheduling control method, as shown in fig. 1, the method includes:
s110, determining a calendar matrix according to a preset date type;
because the required lighting effect is different at different date types, in order to improve the accuracy of lighting scheduling control, a calendar matrix needs to be determined according to the preset date type. The date types include: working days, weekends, general holidays and major holidays. Wherein each date type has different characteristic factors, such as: the characteristic factor corresponding to the weekday may be a, the characteristic factor corresponding to the weekend may be b, the characteristic factor corresponding to the general holiday may be c, and the characteristic factor corresponding to the major holiday may be f.
Here, the major holiday may include: spring festival, New year's day, national day festival; the general holidays include: labor, Qingming, Dragon boat festival, mid-autumn festival, etc. It will be appreciated that the lighting effect required during the spring festival and during the labor festival is not the same.
For example, for a calendar from 1/2019 to 1/2020, it may be specified that 13/2019 is mid-autumn, and then the characteristic factor corresponding to 13/9/2019 is c, which represents a general holiday; the 1 st 10 th 2019 to 7 th 10 th 2019 are national festivals, and the characteristic factor corresponding to the 1 st 10 th 2019 to 7 th 10 th 2019 is set as f, which represents a major holiday; because of the involvement of the rest, characteristic factors corresponding to 29 days in 9 months and 12 days in 10 months must be designated as a, which is represented as working days; the characteristic factor corresponding to the common weekend is b, which represents saturday and sunday; of course, the ordinary weekends may not be named, and the default is that the weekend is six weeks or day.
Then, as an alternative embodiment, the determining the calendar matrix according to the preset date type includes:
acquiring a natural day set in a calendar, wherein the natural day set can be E1(d1…dn),d1~dnThe natural day is between 1 month and 1 day in 2019 and 1 month and 1 day in 2020.
Classifying natural days in the calendar according to a preset date type to obtain a date category set, wherein the date category set can be E2(t1,t2,t3,t4) Wherein, t1,t2,t3,t4Respectively corresponding to working days, weekends, holidays and major holidays;
determining the calendar matrix according to the natural day set and the date category set, wherein the calendar matrix can beWherein Gdnt1 is natural day dnIs of the date type t1The definitions of other parameters are analogized, so that the date type of any natural day can be known in the calendar matrix.
S111, acquiring an illumination object set;
after the calendar matrix is determined, a set of lighting objects needs to be acquired, the lighting objects comprising: an energy saving lighting mode, a weekday lighting mode, a major holiday lighting mode, a general holiday lighting mode, and an off lighting mode in each lighting zone. The illumination area includes a plurality of. The set of illumination objects may then be E3(A1…An),A1~AnAre the corresponding illumination objects.
For example, assuming that the illumination areas include 10, each of which includes 5 illumination patterns, the total number of illumination objects is 50. Here, the floodlight landscape of each lighting area is controlled by one terminal, which may be a controller.
The terminal in the embodiment comprises a strong current instruction end and a weak current instruction end, wherein each strong current instruction end corresponds to one weak current instruction end, and each terminal is not interfered mutually.
S112, determining a time distribution matrix of the lighting objects in a calendar based on the calendar matrix and the first corresponding relation between each lighting object in the lighting object set and the date type;
here, in the set of lighting objects, each lighting object has a respective first correspondence with a date type.
For example, if the day 1 of month 10 in 2019 to the day 7 of month 10 in 2019 are major holidays, the lighting object corresponding to the date type is a major holiday lighting mode; and 13, 9 and 2019 are general holidays, and the lighting object corresponding to the date type is a general holiday lighting mode.
After the first corresponding relation is determined, a time distribution matrix of the lighting object in the calendar is determined based on the first corresponding relation and the calendar matrix.
The time distribution matrix of the lighting objects in the calendar may be:wherein GdnEn is the date type t1The corresponding lighting object is En; the interpretation of other parameters is analogized, so that the lighting object corresponding to any one date type can be known in the time matrix.
It should be noted that, in the time distribution matrix, each date is divided into several time segments.
After determining the time distribution matrix of the lighting objects based on the first corresponding relationship between each lighting object in the set of lighting objects and the date type and the calendar matrix, in order to avoid lighting conflicts, the method further comprises:
determining a first priority of the lighting object based on a date type corresponding to the lighting object, the first priority being as follows from high to low: major holidays, general holidays, weekdays, weekends;
determining a second priority of the lighting object based on the operation type of the lighting object, the second priority being, by high to low: opening and closing.
S113, determining a set of illumination time intervals corresponding to each illumination object;
it will be appreciated that it is not possible to illuminate 24h uninterrupted in any one illumination area. It is therefore necessary to determine the illumination time interval corresponding to each illumination object. For example, the lighting time interval corresponding to the lighting mode of the major holiday is 7 to 10 nights from 7 to 10 nights every 7 to 7 nights from 10 and 1 days in 2019 to 10 and 7 months in 2019.
The date of the special request can be adjusted according to the special request. For example, the day 10 and 1 is the national day, the illumination duration needs to be prolonged, and the illumination time interval corresponding to the day 10 and 1 can be 7-12 points at night.
Thus, after the illumination time interval of each illumination object is determined, an illumination time interval set can be obtained.
It should be noted that, in practical applications, time conflicts may occur, for example, if the 10 th month, 5 th day and 6 th day in 2019 are weekends, but the days are in the national day, the types of the dates corresponding to the 10 th month, 5 th day and 6 th day include: weekends and major holidays.
However, in the lighting scheduling, there is only one lighting mode, and in this case, before lighting, the method further includes: and determining the priority of the lighting object according to the date types if the date types include at least two.
Continuing with the above example, the types of dates corresponding to days 5 and 6 of 10 months include: on weekends and major holidays, the priority of the major holidays is higher than that of weekends, so that the illumination objects of 10 months, 5 days and 6 days can be in the major holiday illumination mode.
S114, determining a second corresponding relation between each terminal and each lighting object in the lighting object set;
since the illumination area includes a plurality of illumination areas, the terminal for controlling the illumination object also includes a plurality of illumination areas, and the illumination object also includes a plurality of illumination areas. Therefore, in order to ensure the accuracy of the scheduling, it is necessary to determine a second correspondence between each terminal and each lighting object in the set of lighting objects.
S115, when the lighting scheduling needs to be controlled, acquiring a time distribution matrix of the lighting objects in a calendar, the second corresponding relation and a lighting time interval set corresponding to each lighting object, and generating a lighting scheduling schedule table based on the time distribution matrix of the lighting objects in the calendar, the second corresponding relation and the lighting time interval set corresponding to each lighting object;
when the lighting scheduling needs to be controlled, acquiring a time distribution matrix of the lighting objects in a calendar, the second corresponding relation and a lighting time interval set corresponding to each lighting object, and generating a lighting scheduling schedule table based on the time distribution matrix of the lighting objects in the calendar, the second corresponding relation and the lighting time interval set corresponding to each lighting object;
specifically, generating an illumination scheduling schedule according to the time distribution matrix of the illumination objects in the calendar, the second correspondence, and the illumination time interval set corresponding to each illumination object includes:
traversing a time distribution matrix of the illumination object in the calendar to obtain an illumination object set;
carrying out priority ranking on all the illumination objects in the illumination object set according to a preset priority to obtain the ranked illumination object set;
for example, for a lighting object set of 10 months and 5 days, assume that the lighting object set for that day is E3=(B1、B2……B10、A1、A2……A10)A1~A10Having the same priority, B1~B10Having the same priority, A1~A10Has a higher priority than B1~B10The priority of (2). Then the ordered set of lighting objects is(A1、A2……A10、B1、B2……B10)。
And then traversing the ordered illumination object set, and distributing the illumination objects in the ordered illumination object set to corresponding time sequences in a time distribution matrix according to the illumination time interval corresponding to each illumination object, so that the illumination objects are in one-to-one correspondence with the time sequences.
And according to the second corresponding relation, corresponding the lighting objects in the sequenced lighting object set with the terminal to obtain a lighting scheduling schedule.
Here, the lighting object corresponding to each terminal is preset, and the ordered lighting object order is different from the previous order, so it is necessary to newly correspond the lighting object in the ordered lighting object set to the terminal based on the second correspondence between the terminal and the lighting object.
When the lighting objects in the sorted lighting object set are distributed into the corresponding time series in the time distribution matrix according to the lighting time interval corresponding to each lighting object, if the number of the lighting objects is not consistent with the number of the time series (assuming that the number of the lighting objects is greater than the number of the time series), the lighting objects with high priority are preferentially allocated to the time series, and the lighting objects with low priority are allocated to the time series in a lagging manner until no lighting object exists or the time interval can be allocated.
And S116, controlling the lighting scheduling process according to the lighting scheduling calendar.
And after the lighting scheduling schedule is generated, controlling a lighting scheduling process according to the lighting scheduling schedule.
As an alternative embodiment, the controlling a lighting scheduling process according to the lighting scheduling schedule comprises:
sending the lighting scheduling schedule to a scheduling controller;
executing a scheduling task in the lighting scheduling calendar with the scheduling controller.
In the embodiment, the scheduling tasks in the scheduling calendar are executed by using quartz as a scheduling controller.
Specifically, the scheduling controller traverses elements in the lighting scheduling calendar, for any element, first obtains a second corresponding relationship between the terminal and the lighting object, then establishes a control project jobaccording to the second corresponding relationship, generates an expression function cron according to a date type and a time sequence corresponding to the lighting object, establishes a trigger for the control project by using the expression function, and registers the trigger into the scheduling controller. The lighting scheduling schedule is executed when the scheduling controller is started.
Here, when the scheduling controller executes the lighting scheduling schedule, a schedule interrupt event for interrupting the target terminal and further interrupting the lighting object corresponding to the target terminal may be further transmitted to the scheduling controller. Since the terminals are independent of each other, when the lighting object corresponding to the target terminal is interrupted, the lighting objects corresponding to the other terminals are normally executed.
And after receiving the schedule interrupt event, the scheduling controller reestablishes the trigger according to the received latest correspondence between the terminal and the lighting object, and registers the trigger into the scheduling controller. The establishment process is the same as the above-mentioned establishment process, and thus is not described again.
Based on the same inventive concept, the application also provides an illumination scheduling control device, which is detailed in embodiment two.
Example two
The present embodiment provides a server, and referring to fig. 2, the server includes: a first determining unit 21, an acquiring unit 22, a second determining unit 23, a third determining unit 24, a fourth determining unit 25, a generating unit 26, and a control unit 27; wherein,
since the required lighting effect is different at different date types, in order to improve the accuracy of the lighting scheduling control, the first determining unit 21 needs to determine the calendar matrix according to a preset date type. The date types include: working days, weekends, general holidays and major holidays. Wherein each date type has different characteristic factors, such as: the characteristic factor corresponding to the weekday may be a, the characteristic factor corresponding to the weekend may be b, the characteristic factor corresponding to the general holiday may be c, and the characteristic factor corresponding to the major holiday may be f.
Here, the major holiday may include: spring festival, New year's day, national day festival; the general holidays include: labor, Qingming, Dragon boat festival, mid-autumn festival, etc. It will be appreciated that the lighting effect required during the spring festival and during the labor festival is not the same.
For example, for a calendar from 1/2019 to 1/2020, it may be specified that 13/2019 is mid-autumn, and then the characteristic factor corresponding to 13/9/2019 is c, which represents a general holiday; the 1 st 10 th 2019 to 7 th 10 th 2019 are national festivals, and the characteristic factor corresponding to the 1 st 10 th 2019 to 7 th 10 th 2019 is set as f, which represents a major holiday; because of the involvement of the rest, characteristic factors corresponding to 29 days in 9 months and 12 days in 10 months must be designated as a, which is represented as working days; the characteristic factor corresponding to the common weekend is b, which represents saturday and sunday; of course, the ordinary weekends may not be named, and the default is that the weekend is six weeks or day.
Then, as an alternative embodiment, the first determining unit 21 determines the calendar matrix according to a preset date type, including:
acquiring a natural day set in a calendar, wherein the natural day set can be E1(d1…dn),d1~dnThe natural day is between 1 month and 1 day in 2019 and 1 month and 1 day in 2020.
Classifying natural days in the calendar according to a preset date type to obtain a date category set, wherein the date category set can be E2(t1,t2,t3,t4) Wherein, t1,t2,t3,t4Respectively corresponding to working days, weekends, holidays and major holidays;
determining the date according to the natural day set and the date category setThe calendar matrix can beWherein Gdnt1 is natural day dnIs of the date type t1The definitions of other parameters are analogized, so that the date type of any natural day can be known in the calendar matrix.
After the determination of the calendar matrix, the acquisition unit 22 needs to acquire a set of lighting objects, including: an energy saving lighting mode, a weekday lighting mode, a major holiday lighting mode, a general holiday lighting mode, and an off lighting mode in each lighting zone. The illumination area includes a plurality of. The set of illumination objects may then be E3(A1…An),A1~AnAre the corresponding illumination objects.
For example, assuming that the illumination areas include 10, each of which includes 5 illumination patterns, the total number of illumination objects is 50. Here, the floodlight landscape of each lighting area is controlled by one terminal, which may be a controller.
The terminal in the embodiment comprises a strong current instruction end and a weak current instruction end, wherein each strong current instruction end corresponds to one weak current instruction end, and each terminal is not interfered mutually.
Here, in the set of lighting objects, each lighting object has a respective first correspondence with a date type.
For example, if the day 1 of month 10 in 2019 to the day 7 of month 10 in 2019 are major holidays, the lighting object corresponding to the date type is a major holiday lighting mode; and 13, 9 and 2019 are general holidays, and the lighting object corresponding to the date type is a general holiday lighting mode.
After the first correspondence is determined, the second determining unit 23 is configured to determine a time distribution matrix of the lighting object in the calendar based on the first correspondence and the calendar matrix.
The time distribution matrix of the lighting objects in the calendar may be:wherein GdnEn is the date type t1The corresponding lighting object is En; the interpretation of other parameters is analogized, so that the lighting object corresponding to any one date type can be known in the time matrix.
It should be noted that, in the time distribution matrix, each date is divided into several time segments.
After determining the time distribution matrix of the lighting objects based on the first corresponding relationship between each lighting object in the set of lighting objects and the date type and the calendar matrix, in order to avoid lighting conflicts, the second determining unit 23 is further configured to:
determining a first priority of the lighting object based on a date type corresponding to the lighting object, the first priority being as follows from high to low: major holidays, general holidays, weekdays, weekends;
determining a second priority of the lighting object based on the operation type of the lighting object, the second priority being, by high to low: opening and closing.
It will be appreciated that it is not possible to illuminate 24h uninterrupted in any one illumination area. The third determination unit 24 needs to determine the illumination time interval corresponding to each illumination object. For example, the lighting time interval corresponding to the lighting mode of the major holiday is 7 to 10 nights from 7 to 10 nights every 7 to 7 nights from 10 and 1 days in 2019 to 10 and 7 months in 2019.
The date of the special request can be adjusted according to the special request. For example, the day 10 and 1 is the national day, the illumination duration needs to be prolonged, and the illumination time interval corresponding to the day 10 and 1 can be 7-12 points at night.
Thus, after the illumination time interval of each illumination object is determined, an illumination time interval set can be obtained.
It should be noted that, in practical applications, time conflicts may occur, for example, if the 10 th month, 5 th day and 6 th day in 2019 are weekends, but the days are in the national day, the types of the dates corresponding to the 10 th month, 5 th day and 6 th day include: weekends and major holidays.
However, in the lighting scheduling, there is only one lighting mode, and in this case, before lighting, the method further includes: and determining the priority of the lighting object according to the date types if the date types include at least two.
Continuing with the above example, the types of dates corresponding to days 5 and 6 of 10 months include: on weekends and major holidays, the priority of the major holidays is higher than that of weekends, so that the illumination objects of 10 months, 5 days and 6 days can be in the major holiday illumination mode.
Since the illumination area includes a plurality of illumination areas, the terminal for controlling the illumination object also includes a plurality of illumination areas, and the illumination object also includes a plurality of illumination areas. Therefore, in order to ensure the accuracy of the scheduling, the fourth determination unit 25 needs to determine the second correspondence between each terminal and each lighting object in the set of lighting objects.
When the lighting schedule needs to be controlled, the generating unit 26 is configured to obtain a time distribution matrix of the lighting object in a calendar, the second correspondence, and a lighting time interval set corresponding to each lighting object, and generate a lighting schedule table based on the time distribution matrix of the lighting object in the calendar, the second correspondence, and the lighting time interval set corresponding to each lighting object;
specifically, the generating unit 26 generates the lighting scheduling schedule according to the time distribution matrix of the lighting objects in the calendar, the second correspondence, and the set of lighting time intervals corresponding to each lighting object, including:
traversing a time distribution matrix of the illumination object in the calendar to obtain an illumination object set;
carrying out priority ranking on all the illumination objects in the illumination object set according to a preset priority to obtain the ranked illumination object set;
for example, for a lighting object set of 10 months and 5 days, assume that the lighting object set for that day is E3=(B1、B2……B10、A1、A2……A10)A1~A10Having the same priority, B1~B10Having the same priority, A1~A10Has a higher priority than B1~B10The priority of (2). Then the set of ordered lighting objects is (A)1、A2……A10、B1、B2……B10)。
And then traversing the ordered illumination object set, and distributing the illumination objects in the ordered illumination object set to corresponding time sequences in a time distribution matrix according to the illumination time interval corresponding to each illumination object, so that the illumination objects are in one-to-one correspondence with the time sequences.
And according to the second corresponding relation, corresponding the lighting objects in the sequenced lighting object set with the terminal to obtain a lighting scheduling schedule.
Here, the lighting object corresponding to each terminal is preset, and the ordered lighting object order is different from the previous order, so it is necessary to newly correspond the lighting object in the ordered lighting object set to the terminal based on the second correspondence between the terminal and the lighting object.
When the lighting objects in the sorted lighting object set are distributed into the corresponding time series in the time distribution matrix according to the lighting time interval corresponding to each lighting object, if the number of the lighting objects is not consistent with the number of the time series (assuming that the number of the lighting objects is greater than the number of the time series), the lighting objects with high priority are preferentially allocated to the time series, and the lighting objects with low priority are allocated to the time series in a lagging manner until no lighting object exists or the time interval can be allocated.
After the generation of the lighting scheduling schedule, the control unit 27 is adapted to control the lighting scheduling process according to said lighting scheduling schedule.
As an alternative embodiment, the control unit 27 controls the lighting scheduling process according to the lighting scheduling schedule, including:
sending the lighting scheduling schedule to a scheduling controller;
executing a scheduling task in the lighting scheduling calendar with the scheduling controller.
In the embodiment, the scheduling tasks in the scheduling calendar are executed by using quartz as a scheduling controller.
Specifically, the scheduling controller traverses elements in the lighting scheduling calendar, for any element, first obtains a second corresponding relationship between the terminal and the lighting object, then establishes a control project jobaccording to the second corresponding relationship, generates an expression function cron according to a date type and a time sequence corresponding to the lighting object, establishes a trigger for the control project by using the expression function, and registers the trigger into the scheduling controller. The lighting scheduling schedule is executed when the scheduling controller is started.
Here, when the scheduling controller executes the lighting scheduling schedule, a schedule interrupt event for interrupting the target terminal and further interrupting the lighting object corresponding to the target terminal may be further transmitted to the scheduling controller. Since the terminals are independent of each other, when the lighting object corresponding to the target terminal is interrupted, the lighting objects corresponding to the other terminals are normally executed.
And after receiving the schedule interrupt event, the scheduling controller reestablishes the trigger according to the received latest correspondence between the terminal and the lighting object, and registers the trigger into the scheduling controller. The establishment process is the same as the above-mentioned establishment process, and thus is not described again.
The lighting control scheduling method and the server provided by the invention have the following beneficial effects that:
the invention provides an illumination scheduling control method and a server, wherein the method comprises the following steps: determining a calendar matrix according to a preset date type; the date types include: working days, weekends, general holidays and major holidays; acquiring a set of lighting objects, the lighting objects comprising: an energy-saving lighting mode, a weekday lighting mode, a major holiday lighting mode, a general holiday lighting mode, and an off lighting mode in each lighting zone; determining a time distribution matrix of the lighting objects in a calendar based on the calendar matrix based on a first correspondence of each of the lighting objects in the set of lighting objects to the date type; determining a set of illumination time intervals corresponding to each illumination object; determining a second correspondence between each terminal and each lighting object in the set of lighting objects, the terminal being used for controlling the lighting objects; when the lighting scheduling needs to be controlled, acquiring a time distribution matrix of the lighting objects in a calendar, the second corresponding relation and a lighting time interval set corresponding to each lighting object, and generating a lighting scheduling schedule table based on the time distribution matrix of the lighting objects in the calendar, the second corresponding relation and the lighting time interval set corresponding to each lighting object; controlling a lighting scheduling process according to the lighting scheduling schedule; therefore, the generated lighting scheduling schedule combines the date type, the corresponding relation between the lighting object and the terminal and the lighting time interval of the lighting object, so that the lighting scheduling can be controlled at high precision, the whole scheduling process does not need excessive manual participation, and the automation degree is higher; and the application can contain a plurality of lighting areas, so that all the lighting areas are controlled in a centralized manner, the use number of servers can be greatly reduced, and the resource waste is reduced.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.
Claims (6)
1. A lighting scheduling control method is applied to urban lighting control, and comprises the following steps:
determining a calendar matrix according to a preset date type; the date types include: working days, weekends, general holidays and major holidays;
acquiring a set of lighting objects, the lighting objects comprising: an energy-saving lighting mode, a weekday lighting mode, a major holiday lighting mode, a general holiday lighting mode, and an off lighting mode in each lighting zone;
determining a time distribution matrix of the lighting objects in a calendar based on the calendar matrix based on a first correspondence of each of the lighting objects in the set of lighting objects to the date type;
determining a set of illumination time intervals corresponding to each illumination object;
determining a second correspondence between each terminal and each lighting object in the set of lighting objects, the terminal being used for controlling the lighting objects;
when the lighting scheduling needs to be controlled, acquiring a time distribution matrix of the lighting objects in a calendar, the second corresponding relation and a lighting time interval set corresponding to each lighting object, and generating a lighting scheduling schedule table based on the time distribution matrix of the lighting objects in the calendar, the second corresponding relation and the lighting time interval set corresponding to each lighting object;
controlling a lighting scheduling process according to the lighting scheduling schedule;
the generating of the lighting scheduling schedule based on the time distribution matrix of the lighting objects in the calendar, the second correspondence, and the set of lighting time intervals corresponding to each lighting object includes:
traversing a time distribution matrix of the illumination object in the calendar to obtain an illumination object set;
carrying out priority ranking on all the illumination objects in the illumination object set according to a preset priority to obtain the ranked illumination object set;
traversing the ordered illumination object set, and distributing the illumination objects in the ordered illumination object set to corresponding time sequences according to the illumination time interval corresponding to each illumination object;
according to the second corresponding relation, corresponding the lighting objects in the sequenced lighting object set with the terminal to obtain a lighting scheduling schedule;
the controlling of the lighting scheduling process according to the lighting scheduling schedule includes:
sending the lighting scheduling schedule to a scheduling controller;
executing a scheduling task in the lighting scheduling calendar with the scheduling controller.
2. The method of claim 1, wherein determining a calendar matrix based on a preset date type comprises:
acquiring a natural day set in a calendar;
classifying natural days in the calendar according to a preset date type to obtain a date category set;
and determining the calendar matrix according to the natural day set and the date category set.
3. The method of claim 1, wherein determining the time distribution matrix for the lighting objects based on the calendar matrix and the first correspondence of each of the lighting objects in the set of lighting objects to the date type further comprises:
determining a first priority of the lighting object based on a date type corresponding to the lighting object, the first priority being as follows from high to low: major holidays, general holidays, weekdays, weekends;
determining a second priority of the lighting object based on the operation type of the lighting object, the second priority being, by high to low: opening and closing.
4. A lighting scheduling server, wherein the server is used in urban lighting control, and the server comprises:
the first determining unit is used for determining a calendar matrix according to a preset date type; the date types include: working days, weekends, general holidays and major holidays;
an acquisition unit for acquiring a set of lighting objects, the lighting objects comprising: an energy-saving lighting mode, a weekday lighting mode, a major holiday lighting mode, a general holiday lighting mode, and an off lighting mode in each lighting zone;
a second determination unit, configured to determine a time distribution matrix of the lighting objects in a calendar based on the calendar matrix and the first corresponding relationship between each lighting object in the set of lighting objects and the date type;
a third determining unit, configured to determine a set of illumination time intervals corresponding to each illumination object;
a fourth determining unit, configured to determine a second correspondence between each terminal and each lighting object in the set of lighting objects, where the terminal is used to control the lighting object;
a generating unit, configured to, when an illumination schedule needs to be controlled, obtain a time distribution matrix of the illumination object in a calendar, the second correspondence, and an illumination time interval set corresponding to each illumination object, and generate an illumination schedule based on the time distribution matrix of the illumination object in the calendar, the second correspondence, and the illumination time interval set corresponding to each illumination object;
the control unit is used for controlling the lighting scheduling process according to the lighting scheduling schedule;
the generating unit is specifically configured to:
traversing a time distribution matrix of the illumination object in the calendar to obtain an illumination object set;
carrying out priority ranking on all the illumination objects in the illumination object set according to a preset priority to obtain the ranked illumination object set;
traversing the ordered illumination object set, and distributing the illumination objects in the ordered illumination object set to corresponding time sequences according to the illumination time interval corresponding to each illumination object;
according to the second corresponding relation, enabling the lighting objects in the sequenced lighting object set to correspond to the terminal again to obtain a lighting scheduling schedule;
the control unit is specifically configured to:
sending the lighting scheduling schedule to a scheduling controller;
executing a scheduling task in the lighting scheduling calendar with the scheduling controller.
5. The server according to claim 4, wherein the first determining unit is specifically configured to:
acquiring a natural day set in a calendar;
classifying natural days in the calendar according to a preset date type to obtain a date category set;
and determining the calendar matrix according to the natural day set and the date category set.
6. The server of claim 4, wherein the second determining unit is further to:
determining a first priority of the lighting object based on a date type corresponding to the lighting object, the first priority being as follows from high to low: major holidays, general holidays, weekdays, weekends;
determining a second priority of the lighting object based on the operation type of the lighting object, the second priority being, by high to low: opening and closing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911272778.7A CN111132432B (en) | 2019-12-12 | 2019-12-12 | Lighting scheduling control method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911272778.7A CN111132432B (en) | 2019-12-12 | 2019-12-12 | Lighting scheduling control method and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111132432A CN111132432A (en) | 2020-05-08 |
CN111132432B true CN111132432B (en) | 2022-04-12 |
Family
ID=70499817
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911272778.7A Active CN111132432B (en) | 2019-12-12 | 2019-12-12 | Lighting scheduling control method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111132432B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116049189B (en) * | 2023-01-09 | 2023-08-29 | 浙江万邦智能科技股份有限公司 | Sunlight exchange method, system and storage medium for energy-saving illumination |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02172185A (en) * | 1988-12-26 | 1990-07-03 | Eye Lighting Syst Corp | lighting equipment |
CN202750280U (en) * | 2012-07-11 | 2013-02-20 | 苏州市华工照明科技有限公司 | Intelligent lighting management cloud system based on internet of things (IOT) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150305116A1 (en) * | 2014-04-18 | 2015-10-22 | Sanjaykumar J. Vora | Lighting Control System and Method |
CN105517277B (en) * | 2015-11-25 | 2018-10-19 | 小米科技有限责任公司 | Lighting apparatus control method and device |
CN105517279B (en) * | 2015-11-30 | 2018-04-06 | 小米科技有限责任公司 | A kind of method and apparatus of light emitting control |
ES2927752T3 (en) * | 2016-10-18 | 2022-11-10 | Plejd Ab | Lighting system and method for automatic control of a lighting pattern |
CN108419453B (en) * | 2017-10-27 | 2020-09-22 | 深圳和而泰智能控制股份有限公司 | Lighting lamp control method and device and lighting lamp |
CN207560419U (en) * | 2017-12-13 | 2018-06-29 | 湖南欧智通科技有限公司 | It is a kind of can be according to the lighting apparatus of ambient light light on and off |
CN108934116A (en) * | 2018-05-30 | 2018-12-04 | 辽宁工程技术大学 | A kind of office building lighting system energy consumption method for splitting |
-
2019
- 2019-12-12 CN CN201911272778.7A patent/CN111132432B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02172185A (en) * | 1988-12-26 | 1990-07-03 | Eye Lighting Syst Corp | lighting equipment |
CN202750280U (en) * | 2012-07-11 | 2013-02-20 | 苏州市华工照明科技有限公司 | Intelligent lighting management cloud system based on internet of things (IOT) |
Also Published As
Publication number | Publication date |
---|---|
CN111132432A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109783218B (en) | Kubernetes container cluster-based time-associated container scheduling method | |
US9524296B2 (en) | Managing events in a computing environment | |
US8392404B2 (en) | Dynamic query and step routing between systems tuned for different objectives | |
CN109978293A (en) | A kind of multitask smart shift scheduling method, apparatus, equipment and storage medium | |
CN111132432B (en) | Lighting scheduling control method and server | |
CN111045820A (en) | Container scheduling method based on time sequence prediction | |
CN106156115A (en) | A kind of resource regulating method and device | |
JP2002189841A (en) | Workflow management method and system and recording medium storing the processing program | |
CN110363323A (en) | A kind of Intelligent planning method, system and the equipment of periodicity customer visit route | |
CN103700026A (en) | Free node transfer processing method for intelligent power grid dispatching | |
CN111062685A (en) | Internet-based network recruitment system and method | |
CN110717140A (en) | Scheduling method for multipurpose worker target | |
CN111177651A (en) | Time-sharing missing code fitting method for electric meter of metering automation system | |
Pujani et al. | Management review of energy consumption: The energy saving opportunity in university buildings | |
Bergui et al. | A survey on bandwidth-aware geo-distributed frameworks for big-data analytics | |
CN111158875B (en) | Multi-module-based multi-task processing method, device and system | |
CN116437540A (en) | A smart building lighting system, method, device and storage medium | |
CN111062624A (en) | Task management platform and method for automatic distribution and push | |
CN106598716B (en) | A kind of method for scheduling task based on multiprocessor | |
Lu et al. | Simulation-optimization integrated approach to planning ready mixed concrete production and delivery: Validation and applications | |
CN115665949A (en) | A control method and system for unattended timing performance of mountain night scene lighting | |
CN104881327B (en) | The operation flow management method and device of cluster | |
CN115802554A (en) | Illumination control method, apparatus, device, storage medium, and computer program product | |
US7877750B2 (en) | Scheduled job execution management | |
CN106485349A (en) | Patrol time distribution method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |