CN113163558B - Street lamp peak capacity method and device based on regular linkage and related equipment - Google Patents

Street lamp peak capacity method and device based on regular linkage and related equipment Download PDF

Info

Publication number
CN113163558B
CN113163558B CN202011444314.2A CN202011444314A CN113163558B CN 113163558 B CN113163558 B CN 113163558B CN 202011444314 A CN202011444314 A CN 202011444314A CN 113163558 B CN113163558 B CN 113163558B
Authority
CN
China
Prior art keywords
server
time
deployment
light
rule
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
Application number
CN202011444314.2A
Other languages
Chinese (zh)
Other versions
CN113163558A (en
Inventor
刘能
曾富来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
He'an Technology Co ltd
Original Assignee
He'an Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by He'an Technology Co ltd filed Critical He'an Technology Co ltd
Priority to CN202011444314.2A priority Critical patent/CN113163558B/en
Publication of CN113163558A publication Critical patent/CN113163558A/en
Application granted granted Critical
Publication of CN113163558B publication Critical patent/CN113163558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/155Coordinated control of two or more light sources
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/16Controlling the light source by timing means
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention relates to the technical field of intelligent lighting, and provides a street lamp peak capacity method, a device and related equipment based on regular linkage, wherein the method comprises the following steps: initializing a lighting device peak capacity control rule, wherein the lighting device peak capacity control rule comprises a light switching rule, a deployment server rule, a coordinate parameter and a pre-deployment time value, and the light switching rule comprises light switching time; calculating the light on/off time of the current day based on the coordinate parameter, the advanced deployment time value and the light on/off rule; if the light on/off time of the current day meets the deployment server rule, deploying the server in advance, and closing the server when the deployed server reaches a preset server closing condition. The invention can automatically deploy the server in advance, reduce the waiting time, and accelerate the flood peak processing speed of the server so as to improve the flood peak processing efficiency; when the preset server closing condition is reached, the server can be automatically closed, and the waste of server resources is avoided.

Description

Street lamp peak capacity method and device based on regular linkage and related equipment
Technical Field
The invention relates to the technical field of intelligent lighting, in particular to a street lamp peak capacity method and device based on regular linkage and related equipment.
Background
Along with social development, the matching arrangement of cities is gradually improved, and particularly, intelligent urban illumination is more comprehensively landed. For intelligent lighting, hundreds of thousands or even millions of street lamps in a city complete lighting in a few seconds, each lamp reports the lighting state to a service end, and the sudden processing flood peak is very large and reaches the peak in a very short time. Currently, a general server scheduling scheme is to automatically deploy a new server when a server resource reaches a threshold, and a peak corresponding to a slow growth may meet a requirement. However, the time required for the server to start is about 30 seconds or more, so that the flood peak is over, and the server is not started, so that the requirement of processing the flood peak in several seconds cannot be met. For sudden peak flooding in the peak period of commercial activities, a mode of manually scheduling a new server in advance is not suitable for periodicity in the street lamp industry and is accompanied with the problem of random peak capacity. It is thus clear that, among the prior art, there is the server to the long, the inefficiency problem of flood peak processing time in wisdom illumination.
Disclosure of Invention
The embodiment of the invention provides a street lamp peak capacity method based on regular linkage, which can accelerate the processing speed of a server on a flood peak, reduce the waiting time and improve the processing efficiency of the flood peak.
In a first aspect, an embodiment of the present invention provides a street lamp peak capacity method based on regular linkage, including the following steps:
initializing a lighting device peak capacity control rule, wherein the lighting device peak capacity control rule comprises a light switching rule, a deployment server rule, a coordinate parameter and a pre-deployment time value, and the light switching rule comprises light switching time;
calculating the light on/off time of the current day based on the coordinate parameter, the advanced deployment time value and the light on/off rule;
if the light on/off time of the current day meets the deployment server rule, deploying the server in advance, and closing the server when the deployed server reaches a preset server closing condition.
Optionally, the step of setting the light-on/off time includes:
calculating sunrise and sunset times based on the coordinate parameters;
and setting the light on-off time according to the sunrise and sunset time and the advanced deployment time value.
Optionally, the step of setting the light-on/off time includes:
collecting illuminance, wherein the illuminance collecting time is within a preset illuminance adjusting time range within the sunrise and sunset time;
judging whether the illuminance reaches an illuminance threshold value;
and if the illuminance reaches the illuminance threshold, setting the light on-off time according to the illuminance, the sunrise and sunset time and the advanced deployment time value.
Optionally, the deployment server rule includes a time range of the deployment server and a server identifier,
if the light on/off time of the current day meets the deployment server rule, the server is deployed in advance, and the deploying step comprises the following steps:
judging whether the light on-off time of the current day is in the time range of the deployment server or not, and judging the current server identifier;
and if the light on/off time of the current day is in the time range of the deployment server and the server identifier is the first type identifier, automatically deploying the server in advance.
Optionally, the server shutdown condition includes a shutdown time threshold,
the step of shutting down when the server reaches a preset server shutting down condition after deployment comprises:
judging whether the working time of the server after deployment reaches the closing time threshold value;
and when the working time of the server after deployment reaches the closing time threshold, closing the server.
Optionally, the server shutdown condition further includes a server data access amount threshold,
the step of shutting down when the server reaches a preset server shutting down condition after deployment comprises:
judging whether the working time of the server after deployment reaches the closing time threshold value;
judging whether the data access amount of the current server reaches the server data access amount threshold value or not;
and if the data access amount of the current server reaches the server data access amount threshold value and the working time of the server after deployment reaches the closing time threshold value, closing the server.
In a second aspect, an embodiment of the present invention further provides a street lamp peak capacity device based on regular linkage, including:
the device comprises an initialization module, a peak load control module and a peak load control module, wherein the initialization module is used for initializing a lighting device peak load control rule which comprises a light switching rule, a deployment server rule, a coordinate parameter and a deployment time value in advance, and the light switching rule comprises light switching time;
the calculation module is used for calculating the light switching time of the current day based on the coordinate parameters, the advanced deployment time values and the light switching rules;
and the deployment module is used for deploying the server in advance if the light on/off time of the current day meets the deployment server rule, and closing the server when the server achieves a preset server closing condition after deployment.
Optionally, the initialization module includes:
the calculation submodule is used for calculating the sunrise and sunset time based on the coordinate parameter;
and the setting submodule is used for setting the light on-off time according to the sunrise and sunset time and the advanced deployment time value.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: the street lamp peak capacity control method based on the rule linkage comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the steps in the street lamp peak capacity control method based on the rule linkage provided by the embodiment.
In a fourth aspect, a computer readable storage medium stores thereon a computer program, which when executed by a processor implements the steps in the street lamp peak capacity method based on regular linkage provided by the embodiment.
In the embodiment of the invention, a lighting device peak capacity control rule is initialized, wherein the lighting device peak capacity control rule comprises a light switching rule, a server deployment rule, a coordinate parameter and a deployment time value in advance, and the light switching rule comprises light switching time; calculating the light on/off time of the current day based on the coordinate parameter, the advanced deployment time value and the light on/off rule; if the light on/off time of the current day meets the deployment server rule, deploying the server in advance, and closing the server when the deployed server reaches a preset server closing condition. According to the invention, the lamp switching time of the current day is pre-calculated according to the coordinate parameters, the advanced deployment time value and the lamp switching rule, and the server is automatically deployed in advance under the condition that the lamp switching time of the current day meets the deployment server rule, so that the flood peak processing speed of the server can be accelerated, the starting time of the server is deployed when the flood peak comes is reduced, the efficiency of flood peak processing is improved, and the server can be automatically closed when the server reaches the preset server closing condition after being deployed, thereby avoiding the waste of server resources.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a street lamp peak capacity method based on regular linkage according to an embodiment of the present invention;
FIG. 2a is a flowchart of one embodiment of step 101 provided by an embodiment of the present invention;
FIG. 2b is a flowchart of another embodiment of step 101 according to an embodiment of the present invention;
FIG. 3a is a flowchart of one embodiment of step 103 provided by an embodiment of the present invention;
FIG. 3b is a flowchart of another embodiment of step 103 according to the present invention;
FIG. 3c is a flowchart of another embodiment of step 103 according to the present invention;
fig. 4 is a schematic structural diagram of a street lamp peak capacity device based on regular linkage according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another street lamp peak capacity device based on regular linkage according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another street lamp peak capacity device based on regular linkage according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another street lamp peak capacity device based on regular linkage according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another street lamp peak capacity device based on regular linkage according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another street lamp peak-tolerant device based on regular linkage according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "including" and "having," and any variations thereof in the description and claims of this application and the description of the figures are intended to cover a non-exclusive inclusion. The terms "first," "second," and the like in the description and claims or drawings of the present application are used for distinguishing between different objects and not for describing a particular order. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein may be combined with other embodiments.
As shown in fig. 1, fig. 1 is a flowchart of a street lamp peak capacity method based on regular linkage according to an embodiment of the present invention, where the street lamp peak capacity method based on regular linkage includes the following steps:
101. initializing a lighting device peak capacity control rule, wherein the lighting device peak capacity control rule comprises a light switching rule, a deployment server rule, a coordinate parameter and a pre-deployment time value, and the light switching rule comprises light switching time.
In this embodiment, the street lamp peak capacity method based on the rule linkage can be applied to an urban intelligent lighting system, and when each lamp sends state data to a server to cause a data peak, the street lamp peak capacity method based on the rule linkage can be used for automatic deployment of the server in advance, so that the problem of the peak can be better solved. The electronic equipment on which the street lamp peak capacity method based on the regular linkage operates can perform data transmission in a wired connection mode or a wireless connection mode. The Wireless connection may include, but is not limited to, a 3G/4G connection, a WiFi (Wireless-Fidelity) connection, a bluetooth connection, a wimax (worldwide Interoperability for Microwave access) connection, a Zigbee (low power local area network protocol), a uwb (ultra wideband) connection, and other Wireless connection methods now known or developed in the future.
Wherein, the lighting device may be a street lamp. The lighting device peak capacity control rule may be a rule for determining a state of the lighting device and processing the state. The light-on/off rule included in the lighting apparatus peak load control rule may be a rule for controlling when and/or under what state the lighting apparatus is on/off controlled, and the light-on/off time is included in the light-on/off rule. The on and off times per day may vary depending on various factors of the day (weather, sunrise and sunset time, illuminance, etc.), for example: the first day is that the light is turned on at 6:00 late, the light is turned off at 6:00 early, the second day is that the light is turned on at 6:30 late, and the light is turned off at 6:30 early. Of course, the on/off time may be set fixedly, for example: the light-on time in 8 months is 6:00 late, the light-off time is 6: and the light-on time of 00 and 9 months is 6:30 late, and the light-off time is 6:30 early.
The deployment server rule may be a rule that controls the server to perform automatic deployment when a preset condition is reached. The coordinate parameter may be longitude and latitude, and the advance deployment time value is also a preset number of minutes for deploying the server in advance.
102. And calculating the light switching time of the current day based on the coordinate parameters, the advance deployment time value and the light switching rule.
After initialization, the light on/off time of the current day can be calculated according to specific data. In this embodiment, the coordinate parameter is longitude and latitude P, the sunrise and sunset time of the current day can be calculated according to the longitude and latitude P, and after the sunrise and sunset time of the current day is calculated, the light on and off time of the current day can be calculated by combining the advance deployment time value according to a mode of initializing the light on and off time in the light on and off rule.
103. If the on-off time of the current day meets the server deployment rule, the server is deployed in advance, and the server is closed when the server achieves the preset server closing condition after being deployed.
After the light on/off time of the current day is calculated, the light on/off time of the current day can be compared with the rules of the deployment server in real time to judge whether the server needs to be deployed in advance at present. And if the light on-off time of the current day meets the rules of deploying the server, deploying the server in advance. After the deployed server processes the flood peak for a period of time, the data access amount of the server is reduced, the server can be closed when redundant servers appear, namely the server is closed when the server reaches a preset server closing condition after being deployed, and resource waste is prevented. The server shutdown condition may include a time limit, an access amount limit, and the like.
Considering that the flood peak may need to be processed every day, when the next flood peak processing is to be performed, the steps 102 and 103 may be returned to be performed, and the time for turning on and off the light and the pre-deployment and the shutdown of the server are re-planned according to the specific situation of the day.
In the embodiment of the invention, by initializing the lighting equipment peak capacity control rule, the lighting equipment peak capacity control rule comprises a light switching rule, a deployment server rule, a coordinate parameter and a deployment time value in advance, and the light switching rule comprises light switching time; calculating the light on/off time of the current day based on the coordinate parameters, the advanced deployment time value and the light on/off rule; and if the light on-off time of the current day meets the rule of deploying the server, deploying the server in advance, and closing the server when the deployed server reaches a preset server closing condition. According to the invention, the lamp switching time of the current day is pre-calculated according to the coordinate parameters, the advanced deployment time value and the lamp switching rule, and the server is automatically deployed in advance under the condition that the lamp switching time of the current day meets the rule of deploying the server, so that the processing speed of the server on the flood peak can be accelerated, the starting time of deploying the server when the flood peak comes is reduced, the efficiency of processing the flood peak is improved, and the server can be automatically closed when the server reaches the preset server closing condition after being deployed, thereby avoiding the waste of server resources.
As shown in fig. 2a, fig. 2a is a flowchart of a specific implementation manner of step 101 provided in an embodiment of the present invention, which specifically includes the following steps:
201. initializing a lighting device peak capacity control rule, wherein the lighting device peak capacity control rule comprises a light switching rule, a deployment server rule, a coordinate parameter and a pre-deployment time value, the light switching rule comprises light switching time, and the setting step of the light switching time comprises calculating sunrise and sunset time based on the coordinate parameter.
The specific calculation formula of the sunrise and sunset time based on the coordinate parameter (longitude and latitude P) is as follows:
sunrise time 24 (180+ time zone 15-longitude-ACOS (-TAN (-23.4 COS (360 (number of days + 9)/365))) TAN (latitude))/360;
sunset time 24 (1+ (time zone 15-longitude)/180) -sunrise time;
wherein, the date sequence number is the sequence of the current day in the year, such as: day 11 was 42 in month 2. The time zone of China is the east 8 zone, the longitude and latitude of the time zone are in an angle system, the east longitude and the north latitude are positive, and the west longitude and the south latitude are negative date sequences, and the sequence number of the current day in the year. Considering that computers generally use the radian system, the above formula of sunrise time can be converted into:
sunrise time 24 (180+ time zone 15-longitude-ACOS (-TAN (-23.4 COS (2 pi (date sequence number +9)/365) pi/180) TAN (latitude pi/180))) 180/pi/360
The above-mentioned calculated sunrise time is a value less than 24, for example: 6.69, and 6:41 after conversion.
202. And setting the light on-off time according to the sunrise and sunset time and the advanced deployment time value.
After the sunrise and sunset time is calculated, the light on/off time may be calculated by combining the advance deployment time value, for example: and calculating that the sunrise time is 6:00 in the morning, the sunset time is 7:00 in the evening, the early deployment time is 5min, the lamp is turned off at 5:55 in the morning, and the lamp is turned on at 6:55 in the evening. In this way, more intelligent control of lighting can be achieved.
As a possible embodiment, the setting of the on/off time may also be a fixed setting, such as: the fixed setting of the lamp turning-on and turning-off time is 6:30 at night and 7:00 at morning, and automatic control is not needed according to specific conditions.
Therefore, based on the above calculation method of the light switching rule, the light switching time of the current day can be calculated based on the coordinate parameter, the advance deployment time value and the light switching rule.
As an alternative embodiment, referring to fig. 2b, fig. 2b is a flowchart of another specific implementation of step 101 provided in an embodiment of the present invention. In the step 101, the step of setting the light on/off time includes:
203. and collecting the illumination intensity, wherein the illumination intensity collecting time is within a preset illumination adjusting time range within the sunrise and sunset time.
The illuminance may be abbreviated as illuminance, and its measurement unit is named "lux" and "le" for short, and the unit symbol is "lx". The illuminance represents the amount of light flux received per unit area of the surface of the subject. 1 lux is equal to 1 lumen/square meter, namely the luminous flux of the light source which is vertically irradiated by a distance of one meter and has the luminous intensity of 1 Cambridge per square meter of the shot body. Illuminance is an important index for measuring a shooting environment.
The collected illuminance may be measured by an illuminance meter. The preset illumination adjustment time range may be a few minutes before sunrise time and sunset time, in this embodiment, 3 minutes before sunrise time and sunset time, for example: the preset illumination adjusting time range is the first 3 minutes, and the illumination intensity is 5000lx within 3 minutes before the sunrise time 6:00 is acquired and calculated.
Specifically, the collected illuminance may be collected once per minute, or once every 30 seconds, and the like. If the preset illumination adjustment time range is 3 minutes and the illumination is acquired every minute, the finally acquired and calculated illumination L is (L1+ L2+ L3)/3. When k times are acquired, the calculated illuminance L — L ═ L1+ L2+ … + Lk)/k is finally acquired.
204. And judging whether the illuminance reaches an illuminance threshold value.
The illuminance threshold may be a preset illuminance value relative to outdoors, and the illuminance threshold may be used to determine the outdoor illuminance currently acquired, and perform a corresponding action according to a determination result, for example: the illuminance threshold is set to 6000lx, the currently collected illuminance is 5000lx, and the illuminance does not reach the illuminance threshold, so that the illuminance is weak when the lamp is turned off in the morning, the delayed lamp turn-off can be considered, and the early lamp turn-on can be considered when the lamp is turned on at night.
205. And if the illuminance reaches the illuminance threshold, setting the lamp switching time according to the illuminance, the sunrise and sunset time and the advanced deployment time value.
When the illuminance is judged to reach the illuminance threshold, the lamp turning-on and off time can be set by combining the illuminance, the sunrise and sunset time and the advance deployment time. As another possible embodiment, when the light turning-on and turning-off time is set fixedly, the light turning-on and turning-off time may be updated only according to the fixedly set light turning-on and turning-off time and the illumination intensity, so that the influence of the change of the environment on the lighting requirement is considered, and more intelligent control is facilitated.
As a possible embodiment, the requirement of illumination in foggy weather can be considered for various traffic sections. The fog concentration in the air is collected by configuring the fog detection device, and the lamp turning-on and turning-off time is set by combining the fog concentration on the basis, so that the intelligent control principle is favorably and comprehensively embodied.
As a possible embodiment, statistics may be performed according to the server data access amounts of the previous days, and it is determined at what time the peak flooding phenomenon occurs, and an access threshold is set according to the size of the historical data access amount when the peak flooding occurs. The access threshold is a value set for a period of time before the occurrence of the flood peak, that is, the access threshold is judged before the occurrence of the flood peak, so that the advance deployment of the server is facilitated. For example: after the data volume access of the servers in the previous 5 days is counted, the time of the peak flooding of the server(s) is 5:50 of each day, an access threshold value can be set at 10 minutes before 5:50, and when the data access volume of 5:40 reaches the access threshold value, the servers can be deployed in advance according to the access volume of the servers in the previous 5 days.
Optionally, the rule of the deployment server includes a time range of the deployment server and a server identifier, as shown in fig. 3a, fig. 3a is a flowchart of a specific implementation of step 103 provided in the embodiment of the present invention. In step 103, if the light on/off time of the current day meets the rule for deploying the server, the server is deployed in advance, which includes the steps of:
301. and judging whether the light on-off time of the current day is in the time range of deploying the server, and judging the current server identifier.
In the initialization process, the number n of newly deployed servers can be initialized and configured, and the server identifier f that is already deployed is initialized to be false, which indicates that deployment is needed; and f ═ true indicates that deployment has been performed and no redeployment is needed. Initializing c ═ false, which indicates that the server identifier needs to be closed; c ═ true, meaning that the server has shut down. When the number n of newly deployed servers is initially configured, each server may be marked, for example: when n is 5, the servers are labeled as server 1, …, server 5 in that order. Of course, the marking may be performed by other marking methods such as characters. The marking of the servers is beneficial to recording which one or more of the automatically deployed servers and the automatically closed servers are in real time, so that the wrong judgment is avoided.
More specifically, the time range for deploying the server may refer to a time period for which server deployment is allowed. In this embodiment, the aforementioned time range for deploying the server needs to satisfy the following conditions:
light on and off time of day-current time < advanced deployment time value (seconds), and light on and off time of day > current time. For example: and calculating that the light-on time of the current day is 6:30 late, the current time is 6:25, and the advance deployment time value is 5 minutes, which indicates that the light-on and light-off time of the current day meets the deployment server time range.
302. And if the light on/off time of the current day is in the time range of deploying the server and the server identifier is the first type identifier, automatically deploying the server in advance.
Wherein, the first type identifier may refer to f ═ false. And if the light on-off time of the current day meets the time range of the server deployment, judging the server identification, and automatically deploying the server if f is detected to be false. After deployment, setting the automatic identifier f ═ true, which indicates that the server has been deployed and does not need to continue deployment, for example: the server 1 has already deployed the start working state, the second calculation result is consistent with the first calculation result, and the deployment needs to be continued, at this time, the automatic identifier f is set to the server 1 as true, so that the repeated start of the server 1 can be avoided, for example, the first second calculation result is the same as the second calculation result.
Optionally, the server shutdown condition includes a shutdown time threshold, as shown in fig. 3b, where fig. 3b is a flowchart of another specific implementation of step 103 according to an embodiment of the present invention. In step 103, the closing when the server reaches the preset server closing condition after deployment further includes the steps of:
303. and judging whether the working time of the server after deployment reaches a closing time threshold value.
The server shutdown condition may be a limiting condition set to prevent waste of server resources. It includes a shutdown time threshold, i.e., how long after the server is operational it is shutdown.
304. And when the working time of the server after deployment reaches a closing time threshold, closing the server.
In this embodiment, the closing time threshold may be 1 hour, but may also be other values. When the fact that the server deployed in advance processes the flood peak is detected, the working time of the server reaches 1 hour, the server reaching the closing time threshold can be closed, and waste of server resources is avoided.
Optionally, the server shutdown condition further includes a server data access amount threshold, as shown in fig. 3c, where fig. 3c is a flowchart of another specific implementation of step 103 provided in the embodiment of the present invention. In step 103, the step of closing when the server reaches the preset server closing condition after deployment further includes:
305. and judging whether the working time of the server after deployment reaches a closing time threshold value.
306. And judging whether the data access quantity of the current server reaches a server data access quantity threshold value.
Each lamp in the lighting system sends state data to the corresponding server, so that the data access volume of the server can reach a peak flood in some time, and the peak flood phenomenon disappears after a period of processing, so that part of servers can be left empty. Therefore, the above-mentioned threshold value of the server data access amount may be a value obtained by decreasing all server data access amounts, for example: the threshold value of the data access amount of the server is 1 ten thousand. Specifically, each server may process a certain amount of access data, and when the data access amount of the current server reaches the server data access amount threshold, the vacant servers may be shut down, for example: the server processes 1 thousand data accesses per day, 10 servers can process, and the excess servers can be shut down.
307. And if the data access amount of the current server reaches the server data access amount threshold value and the working time of the deployed server reaches the closing time threshold value, closing the server.
Wherein, when simultaneously: 1. the data access amount of the current server reaches a server data access amount threshold value; 2. after the working time after the server deployment reaches the two conditions of the closing time threshold, the extra servers can be closed, and the server identifier is set to be c ═ false, so that the waste of server resources is avoided.
In the embodiment of the invention, the sunrise and sunset time is calculated according to the longitude and latitude, and the lamp switching time is set by combining the advanced deployment time value, so that the intelligent control of the on-off of the street lamp is facilitated. In addition, the added illuminance is also considered, so that the targeted processing can be performed under the actual condition, and the intelligent illumination is better realized. And when the light on-off time of the day satisfies the time range of deploying the server, and the server identification is f ═ false, can carry out the server deployment in advance automatically, can accelerate the server to the processing speed of flood peak like this, just deploy the start-up time of server when reducing the flood peak and coming, be favorable to improving the efficiency of handling the flood peak. In addition, by setting the closing time threshold and the server data access amount threshold, when the server reaches the preset closing time threshold and/or the server data access amount threshold after being deployed, the server is automatically closed, and extra resource waste of the server can be avoided.
As shown in fig. 4, fig. 4 is a schematic structural diagram of a street lamp peak-containing device based on regular linkage according to an embodiment of the present invention, where the street lamp peak-containing device 400 based on regular linkage includes:
the initialization module 401 is configured to initialize a lighting device peak capacity control rule, where the lighting device peak capacity control rule includes a light turning-on and turning-off rule, a deployment server rule, a coordinate parameter, and a deployment time ahead value, and the light turning-on and turning-off rule includes light turning-on and turning-off time;
a calculating module 402, configured to calculate a light turning on and off time of the current day based on the coordinate parameter, the advance deployment time value, and the light turning on and off rule;
the deployment module 403 is configured to perform server deployment in advance if the light on/off time of the current day meets the deployment server rule, and to perform shutdown when the server deployment reaches a preset server shutdown condition.
Optionally, as shown in fig. 5, fig. 5 is a schematic structural diagram of another street lamp peak-containing device based on regular linkage according to an embodiment of the present invention, and the initialization module 401 includes:
the calculation submodule 4011 is configured to calculate sunrise and sunset time based on the coordinate parameter;
the first setting sub-module 4012 is configured to set a light on/off time according to the sunrise and sunset time and the advanced deployment time value.
Optionally, as shown in fig. 6, fig. 6 is a schematic structural diagram of another street lamp peak-containing device based on regular linkage according to an embodiment of the present invention, and the initialization module 401 includes:
the obtaining sub-module 4013 is configured to collect illuminance, where the collected illuminance time is within a preset illuminance adjustment time range within sunrise and sunset time;
a first judging sub-module 4014 configured to judge whether the illuminance reaches an illuminance threshold;
the second setting sub-module 4015 is configured to set a light turning-on and turning-off time according to the illuminance, the sunrise and sunset time, and the advanced deployment time value, if the illuminance reaches the illuminance threshold.
Optionally, the deployment server rule includes a time range of the deployment server and a server identifier, as shown in fig. 7, fig. 7 is a schematic structural diagram of another street lamp peak capacity device based on rule linkage provided in the embodiment of the present invention, and the deployment module 403 includes:
a second determining submodule 4031, configured to determine whether the light turning-on and turning-off time of the current day is within the server deployment time range, and determine a current server identifier;
and the automatic deployment sub-module 4032 is used for automatically deploying the server in advance if the light on/off time of the current day is within the time range for deploying the server and the server identifier is the first type identifier.
Optionally, the shutdown condition of the server includes a shutdown time threshold, as shown in fig. 8, fig. 8 is a schematic structural diagram of another street lamp peak-containing device based on regular linkage provided in the embodiment of the present invention, and the deployment module 403 further includes:
a third determining sub-module 4033, configured to determine whether the working time after the server deployment reaches a closing time threshold;
a first shutdown submodule 4034, configured to shutdown the server when the working time of the server after deployment reaches a shutdown time threshold.
Optionally, the shutdown condition of the server further includes a threshold of a data access amount of the server, as shown in fig. 9, fig. 9 is a schematic structural diagram of another street lamp peak-shaving device based on regular linkage provided in the embodiment of the present invention, and the deployment module 403 further includes:
a fourth determining submodule 4035, configured to determine whether the working time after the server deployment reaches a closing time threshold;
a fifth judging submodule 4036, configured to judge whether the data access amount of the current server reaches the server data access amount threshold;
a second closing submodule 4037, configured to close the server if the data access amount of the current server reaches the server data access amount threshold and the working time of the server after deployment reaches the closing time threshold.
The street lamp peak capacity device based on the regular linkage provided by the embodiment of the invention can realize each implementation mode in the street lamp peak capacity method based on the regular linkage and has corresponding beneficial effects, and in order to avoid repetition, the repeated description is omitted.
As shown in fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 1000 includes: the street lamp peak capacity method based on rule linkage comprises a processor 1001, a memory 1002, a network interface 1003 and a computer program which is stored on the memory 1002 and can run on the processor 1001, wherein the steps in the street lamp peak capacity method based on rule linkage provided by the embodiment are realized when the processor 1001 executes the computer program.
Specifically, the processor 1001 is configured to perform the following steps:
initializing a lighting equipment peak capacity control rule, wherein the lighting equipment peak capacity control rule comprises a light switching rule, a deployment server rule, a coordinate parameter and a pre-deployment time value, and the light switching rule comprises light switching time;
calculating the light on/off time of the current day based on the coordinate parameters, the advanced deployment time value and the light on/off rule;
and if the light on-off time of the current day meets the rule of deploying the server, deploying the server in advance, and closing the server when the deployed server reaches a preset server closing condition.
Optionally, the step of initializing the switching rule executed by the processor 1001 includes:
calculating sunrise and sunset time based on the coordinate parameters;
and setting the light on-off time according to the sunrise and sunset time and the advanced deployment time value.
Optionally, the step of initializing the switching rule executed by the processor 1001 includes:
collecting illuminance, wherein the time for collecting the illuminance is within a preset illumination adjusting time range within sunrise and sunset time;
judging whether the illuminance reaches an illuminance threshold value;
and if the illuminance reaches the illuminance threshold value, setting the lamp turning-on and turning-off time according to the illuminance, the sunrise and sunset time and the advanced deployment time value.
Optionally, the deployment server rule includes a time range of the deployment server and a server identifier, and if the light on/off time of the current day satisfies the deployment server rule, the step of performing server deployment in advance includes:
judging whether the light on-off time of the current day is in the time range of deploying the server or not, and judging the current server identifier;
and if the light on/off time of the current day is in the time range of deploying the server and the server identifier is the first type identifier, automatically deploying the server in advance.
Optionally, the server shutdown condition includes a shutdown time threshold, and the step executed by the processor 1001, when the server reaches the preset server shutdown condition after deployment, is to shutdown the server includes:
judging whether the working time of the server after deployment reaches a closing time threshold;
and when the working time of the server after deployment reaches a closing time threshold, closing the server.
Optionally, the server shutdown condition further includes a server data access threshold, and the step executed by the processor 1001, when the server reaches the preset server shutdown condition after deployment, includes:
judging whether the working time of the server after deployment reaches a closing time threshold;
judging whether the data access amount of the current server reaches a server data access amount threshold value or not;
and if the data access amount of the current server reaches the data access amount threshold of the server and the working time of the server after deployment reaches the closing time threshold, closing the server.
The electronic device 1000 provided by the embodiment of the invention can implement each implementation manner in the above-mentioned regular linkage based street lamp peak capacity method embodiment, and has corresponding beneficial effects, and for avoiding repetition, details are not repeated here.
It is noted that only 1001-1003 with components are shown, but it is understood that not all of the illustrated components are required and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the electronic device 1000 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable gate array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The memory 1002 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 1002 may be an internal storage unit of the electronic device 1000, such as a hard disk or a memory of the electronic device 1000. In other embodiments, the memory 1002 may also be an external storage device of the electronic device 1000, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the electronic device 1000. Of course, the memory 1002 may also include both internal and external memory units of the electronic device 1000. In this embodiment, the memory 1002 is generally used for storing an operating system installed in the electronic device 1000 and various application software, such as program codes of a street lamp peak capacity method based on rule linkage. Further, the memory 1002 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 1001 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 1001 generally serves to control the overall operation of the electronic device 1000. In this embodiment, the processor 1001 is configured to run a program code stored in the memory 1002 or process data, for example, a program code for running a street lamp peak capacity method based on rule linkage.
The network interface 1003 may include a wireless network interface or a wired network interface, and the network interface 1003 is generally used for establishing a communication connection between the electronic device 1000 and other electronic devices.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by the processor 1001, the computer program implements each process in the street lamp peak capacity method based on rule linkage provided in the embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It can be understood by those skilled in the art that all or part of the processes in the street lamp peak capacity method based on the rule linkage according to the embodiments may be implemented by instructing related hardware through a computer program, and the program may be stored in a computer-readable storage medium, and when executed, may include processes such as the embodiments of the methods. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (9)

1. A street lamp peak capacity method based on regular linkage is characterized by comprising the following steps:
initializing a lighting device peak capacity control rule, wherein the lighting device peak capacity control rule comprises a light switching rule, a deployment server rule, a coordinate parameter and a pre-deployment time value, and the light switching rule comprises light switching time;
calculating the light on/off time of the current day based on the coordinate parameter, the advanced deployment time value and the light on/off rule;
if the light on/off time of the current day meets the deployment server rule, deploying the server in advance, and closing the server when the deployed server reaches a preset server closing condition;
the deployment server rule includes a time range for the deployment server and a server identification,
if the light on/off time of the current day meets the deployment server rule, the server is deployed in advance, and the step comprises the following steps:
judging whether the light on-off time of the current day is in the time range of the deployment server or not, and judging the current server identifier;
and if the light on/off time of the current day is in the time range of the deployment server and the server identifier is the first type identifier, automatically deploying the server in advance.
2. The street lamp peak capacity method based on regular linkage as claimed in claim 1, wherein the setting step of the lamp switching time comprises:
calculating sunrise and sunset times based on the coordinate parameters;
and setting the light on-off time according to the sunrise and sunset time and the advanced deployment time value.
3. The street lamp peak capacity method based on regular linkage as claimed in claim 2, wherein the setting step of the lamp switching time comprises:
collecting illuminance, wherein the time for collecting the illuminance is within a preset illumination adjusting time range within the sunrise and sunset time;
judging whether the illuminance reaches an illuminance threshold value;
and if the illuminance reaches the illuminance threshold, setting the light on-off time according to the illuminance, the sunrise and sunset time and the advanced deployment time value.
4. The method according to claim 1, wherein the server shutdown condition comprises a shutdown time threshold,
the step of shutting down when the server reaches a preset server shutting down condition after deployment comprises:
judging whether the working time of the server after deployment reaches the closing time threshold value;
and when the working time of the server after deployment reaches the closing time threshold, closing the server.
5. The method according to claim 4, wherein the server shutdown condition further comprises a server data access amount threshold,
the step of shutting down when the server reaches a preset server shutting down condition after deployment comprises:
judging whether the working time of the server after deployment reaches the closing time threshold value;
judging whether the data access amount of the current server reaches the server data access amount threshold value or not;
and if the data access amount of the current server reaches the server data access amount threshold value and the working time of the server after deployment reaches the closing time threshold value, closing the server.
6. The utility model provides a street lamp appearance peak device based on rule linkage which characterized in that includes:
the device comprises an initialization module, a peak load control module and a peak load control module, wherein the initialization module is used for initializing a lighting device peak load control rule which comprises a light switching rule, a deployment server rule, a coordinate parameter and a deployment time value in advance, and the light switching rule comprises light switching time;
the calculation module is used for calculating the light switching time of the current day based on the coordinate parameters, the advanced deployment time values and the light switching rules;
the deployment module is used for deploying the server in advance if the light on/off time of the current day meets the deployment server rule, and closing the server when the deployed server reaches a preset server closing condition;
the deployment server rule includes a time range for the deployment server and a server identification,
if the light on/off time of the current day meets the deployment server rule, the server is deployed in advance, and the deploying comprises the following steps:
judging whether the light on-off time of the current day is within the time range of the deployment server or not, and judging the current server identifier;
and if the light on/off time of the current day is in the time range of the deployment server and the server identifier is the first type identifier, automatically deploying the server in advance.
7. The regular linkage based street lamp peak-holding device according to claim 6, wherein the initialization module comprises:
the calculation submodule is used for calculating the sunrise and sunset time based on the coordinate parameter;
and the setting submodule is used for setting the light on-off time according to the sunrise and sunset time and the advanced deployment time value.
8. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and operable on the processor, the processor implementing the steps of the street lamp peak capacity method based on regular linkage according to any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program, which when executed by a processor implements the steps in the rule linkage based street lamp peak-containing method according to any one of claims 1 to 5.
CN202011444314.2A 2020-12-08 2020-12-08 Street lamp peak capacity method and device based on regular linkage and related equipment Active CN113163558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011444314.2A CN113163558B (en) 2020-12-08 2020-12-08 Street lamp peak capacity method and device based on regular linkage and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011444314.2A CN113163558B (en) 2020-12-08 2020-12-08 Street lamp peak capacity method and device based on regular linkage and related equipment

Publications (2)

Publication Number Publication Date
CN113163558A CN113163558A (en) 2021-07-23
CN113163558B true CN113163558B (en) 2022-09-13

Family

ID=76882532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011444314.2A Active CN113163558B (en) 2020-12-08 2020-12-08 Street lamp peak capacity method and device based on regular linkage and related equipment

Country Status (1)

Country Link
CN (1) CN113163558B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101900569A (en) * 2009-05-27 2010-12-01 佛山市顺德区顺达电脑厂有限公司 Pedestrian navigation path planning method and system thereof
EP2947970A2 (en) * 2014-05-23 2015-11-25 Lonestar Inventions L.P. Method and apparatus for controlling electrical power usage based on exact sun elevation angle and measured geographical location

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130082606A1 (en) * 2011-10-04 2013-04-04 Yehiel Viner Device and method for automatic calibration of illumination system and energy saving
WO2014147524A1 (en) * 2013-03-18 2014-09-25 Koninklijke Philips N.V. Methods and apparatus for information management and control of outdoor lighting networks
JP6719196B2 (en) * 2015-11-19 2020-07-08 株式会社ヴァレオジャパン Lighting equipment
CN108184301A (en) * 2017-12-29 2018-06-19 合肥大明节能科技股份有限公司 A kind of intelligent road-lamp switchs lamp control method
CN108882484B (en) * 2018-07-16 2020-03-17 湖州明朔光电科技有限公司 Wisdom street lamp highway section lighting control system
CN210274631U (en) * 2019-06-20 2020-04-07 重庆邮电大学 Intelligent street lamp centralized controller with integrated environment monitoring function
CN110719673A (en) * 2019-09-30 2020-01-21 张家港宏昌钢板有限公司 Outdoor lighting control method
CN111629501B (en) * 2020-05-27 2021-07-09 华南农业大学 Intelligent street lamp control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101900569A (en) * 2009-05-27 2010-12-01 佛山市顺德区顺达电脑厂有限公司 Pedestrian navigation path planning method and system thereof
EP2947970A2 (en) * 2014-05-23 2015-11-25 Lonestar Inventions L.P. Method and apparatus for controlling electrical power usage based on exact sun elevation angle and measured geographical location

Also Published As

Publication number Publication date
CN113163558A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
JP6430247B2 (en) Adaptively controlled outdoor lighting system and method of operation thereof
US9801248B2 (en) Apparatus and method of operating a luminaire
US10919522B2 (en) Automated exploitation of shade-giving structures
Cacciatore et al. Cost analysis of smart lighting solutions for smart cities
KR102127080B1 (en) Smart street lamp control system using lora communication
CN107013872A (en) A kind of energy-conserving road lamp, energy-saving street lamp control system and control method
CN114677617A (en) Intelligent street lamp control method and device based on intelligent illumination
CN115802559B (en) Intelligent illumination control method and device, computer equipment and storage medium
Fujdiak et al. Simulation of intelligent public light system in smart city
Shlayan et al. A novel illuminance control strategy for roadway lighting based on greenshields macroscopic traffic model
CN113163558B (en) Street lamp peak capacity method and device based on regular linkage and related equipment
Karthikeyan et al. Cloud based automatic street light monitoring system
CN115035671A (en) Forest fire prevention early warning method and device
CN113518499A (en) Big data-based intelligent lamp pole management method and device
CN110798932A (en) Street lamp control method, electronic device and computer-readable storage medium
CN115551142A (en) User programmable LED light control method, system and equipment
CN106163054A (en) A kind of regulate the method for lamplight brightness, server and terminal controller
Patarroyo et al. Revision of smart street lighting LED
CN115460745A (en) Street lamp control method, device, equipment and medium based on graph neural network structure
CN109951930A (en) A kind of method, equipment and the device of lamp terminal control
CN110111593B (en) Control method and device for intelligent lane line in area
CN115243430A (en) Street lamp control method and device, electronic equipment and computer readable storage medium
US20210315085A1 (en) Red light converter for conversion of inactive phytochrome
CN111343773B (en) Light control method, control system and cloud platform
CN106845672B (en) Load prediction method and device in power system

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