Intelligent tunnel lighting system of centralized controller

文档序号:1850197 发布日期:2021-11-16 浏览:23次 中文

阅读说明:本技术 一种集中控制器智能隧道照明系统 (Intelligent tunnel lighting system of centralized controller ) 是由 杨和良 龙永雄 郭大雄 于 2021-07-26 设计创作,主要内容包括:本发明涉及隧道照明技术领域,具体涉及一种集中控制器智能隧道照明系统,包括集中控制器和灯具,其特征在于:所述集中控制器运行流程有初始化接口端口和时钟,主循环阶段;所述主循环阶段包括与主控通信处理函数,与灯具通信处理函数,与灯具通信处理函数,与亮度仪通信处理函数,显示主函数,灯具串行线函数;所述与主控通信处理函数,函数先检测数据的正确性后,读取相关命令,针对不同命令执行对应操作;所述与灯具通信处理函数,接收集中控制器命令后向灯具发送不同命令对灯具操作;本发明具有智能指引限速、火警警示、障碍警示、隧道照明等多功能合一的智能照明系统。(The invention relates to the technical field of tunnel lighting, in particular to an intelligent tunnel lighting system with an integrated controller, which comprises the integrated controller and a lamp, and is characterized in that: the operation flow of the centralized controller comprises an initialization interface port, a clock and a main cycle stage; the main cycle stage comprises a master control communication processing function, a lamp communication processing function, a brightness meter communication processing function, a display main function and a lamp serial line function; the function detects the correctness of data, reads the related command and executes corresponding operation aiming at different commands; the function for communicating with the lamp is used for receiving the commands of the controller and then sending different commands to the lamp to operate the lamp; the intelligent lighting system has the functions of intelligent guiding speed limiting, fire warning, obstacle warning, tunnel lighting and the like.)

1. The utility model provides an integrated controller intelligence tunnel lighting system, includes integrated controller and lamps and lanterns, its characterized in that: the intelligent tunnel lighting system of the centralized controller is also provided with a control system;

a brightness meter: detecting the internal and external brightness of the tunnel and feeding back to the integrated controller;

a fire alarm: detecting a fire phenomenon in the tunnel;

obstacle devices: detecting obstacles in the tunnel;

the operation flow of the centralized controller comprises an initialization interface port, a clock and a main cycle stage;

the main cycle stage comprises a master control communication processing function, a lamp communication processing function, a brightness meter communication processing function, a display main function and a lamp serial line function;

the function detects the correctness of data, reads the related command and executes corresponding operation aiming at different commands;

the function for communicating with the lamp is used for receiving the commands of the controller and then sending different commands to the lamp to operate the lamp;

the function of communicating and processing with the brightness meter detects the data of the brightness meter at regular time, and processes the temperature adjustment and the light adjustment of the lamp after comparing the data;

the display main function displays the running state of the system in the background;

the lamp serial line function is used for processing the sending of serial data;

and the main cycle stage is also provided with serial port interruption and external interruption.

2. The centralized controller intelligent tunnel lighting system of claim 1, wherein: the initialization interface port comprises U1 master control communication, U2 sensor 1 communication, U3 sensor 2 communication, U4 display screen communication, IO1 obstacle detection, IO2 fire alarm detection and IO3 serial output.

3. The centralized controller intelligent tunnel lighting system of claim 1, wherein: the communication processing function with the master comprises the following steps:

s1: actively sending lamp voltage, current, service life and fault state information;

s2: interrupting the waiting master control access, and executing different operations aiming at different commands;

s3: collecting the lamp information after the operation is finished, distributing the address by the master control and returning to the step S1

S4: the master assigns an address and returns to perform step S1.

4. The intelligent tunnel lighting system of claim 1, wherein the master functions of lamp communication include information modification, active data sending, lamp parameter changing, data sending, lamp parameter accessing, and lamp addressing.

5. The intelligent tunnel lighting system of claim 1, wherein the function of communicating with the luminance meter specifically comprises the steps of:

s11, collecting the brightness difference between the inside and the outside of the tunnel;

s12, according to the formula: if the brightness difference is not equal to the set value, executing the step S13, otherwise, returning to the step S11;

and S13, changing the main illumination brightness of the transition section of the lamp, and returning to execute the step S11.

6. The intelligent tunnel lighting system of claim 1, wherein the light fixture serial line function handles serial data transmission for green light pipeline mode, yellow light flashing mode, red light flashing mode, and addressing mode.

7. The intelligent centralized controller tunnel lighting system according to claim 1 or 5, wherein the luminance meter communication processing function is to slowly adjust the lamp luminance and color temperature.

8. The intelligent tunnel lighting system of centralized controller according to claim 1, wherein the centralized controller uses STM32F103RCT6 chip as a main control chip, 4 USART serial ports for transceiving, and the 485 chip is 65176 chip.

Technical Field

The invention relates to the technical field of tunnel lighting, in particular to an intelligent tunnel lighting system of an integrated controller.

Background

With the development of social economy and production, a great number of expressways appear, higher standards are provided for road construction technology, and the requirements for straight lines, gentle slopes, spacious road surfaces and the like are met. Therefore, when a road passes through a mountain area, the scheme of winding around the mountain is changed into a tunnel scheme in the past. The construction of the tunnel plays an important role in the aspects of improving the technical state of the road, shortening the running distance, improving the transport capacity, reducing accidents and the like. Because the black smoke that discharges and the dust that the vehicle was curled up still can reduce the visibility in the tunnel among the automobile driving process in the tunnel, the driver can not in time obtain road information, and the luminance difference is great inside and outside the tunnel, leads to the driver to go to easily produce black hole effect and white hole effect when the tunnel is imported and exported, produces serious influence to driver's vision, can reduce the driver in the twinkling of an eye to the nature controlled of vehicle, very easily takes place the traffic accident.

Meanwhile, the vision line in some extra-long tunnels is narrow, and road conditions such as uphill and downhill, curve and the like change, so that experience and technology of drivers are greatly checked, and the driving sight distance in the inner road of the curve is 150-200 meters, so that the situation acquisition and discovery of the drivers are delayed, the chances of response and measure taking of the drivers are reduced, when a traffic accident happens in the front, a rear driver cannot take corresponding measures in time, and a secondary traffic accident is easy to happen. And the lamp maintenance in the tunnel is to manually maintain whether the lamp fails, so that the hidden danger of the lamp cannot be found in time.

Disclosure of Invention

The invention aims to solve the problems and provides an intelligent tunnel lighting system with an integrated controller, wherein the integrated controller controls lamps in a tunnel to have the functions of guiding speed limitation, fire alarm warning, obstacle warning and tunnel lighting so as to guide and remind a driver of road information in front and make corresponding measures in time, and meanwhile, the integrated controller can adjust the brightness and color temperature of the lamps, so that the brightness inside and outside the tunnel is equal, the black hole effect and white hole effect generated when the driver enters and exits the tunnel are eliminated, and traffic accidents are avoided.

The utility model provides an integrated controller intelligence tunnel lighting system, includes integrated controller and lamps and lanterns, its characterized in that: the intelligent tunnel lighting system of the centralized controller is also provided with a control system;

a brightness meter: detecting the internal and external brightness of the tunnel and feeding back to the integrated controller;

a fire alarm: detecting a fire phenomenon in the tunnel;

obstacle devices: detecting obstacles in the tunnel;

the operation flow of the centralized controller comprises an initialization interface port, a clock and a main cycle stage;

the main cycle stage comprises a master control communication processing function, a lamp communication processing function, a brightness meter communication processing function, a display main function and a lamp serial line function;

the function detects the correctness of data, reads the related command and executes corresponding operation aiming at different commands;

the function for communicating with the lamp is used for receiving the commands of the controller and then sending different commands to the lamp to operate the lamp;

the function of communicating and processing with the brightness meter detects the data of the brightness meter at regular time, and processes the temperature adjustment and the light adjustment of the lamp after comparing the data;

the display main function displays the running state of the system in the background;

the lamp serial line function is used for processing the sending of serial data;

and the main cycle stage is also provided with serial port interruption and external interruption.

Specifically, the initialization interface port has U1 master control communication, U2 sensor 1 communication, U3 sensor 2 communication, U4 display screen communication, IO1 obstacle detection, IO2 fire alarm detection and IO3 serial output.

Specifically, the processing function for communication with the master controller includes the following steps:

s1: actively sending lamp voltage, current, service life and fault state information;

s2: interrupting the waiting master control access, and executing different operations aiming at different commands;

s3: collecting the lamp information after the operation is finished, and the master control allocates an address and returns to execute the step S1;

s4: the master assigns an address and returns to perform step S1.

Specifically, the main function of communication with the lamp comprises the functions of actively sending data to change relevant parameters of the lamp after information modification, sending data to access parameters of the lamp and addressing the lamp.

Specifically, the communication function with the luminance meter specifically includes the following steps:

s11, collecting the brightness difference between the inside and the outside of the tunnel;

s12, according to the formula: if the brightness difference is not equal to the set value, executing the step S13, otherwise, returning to the step S11;

and S13, changing the main illumination brightness of the transition section of the lamp, and returning to execute the step S11.

Specifically, the lamp serial line function processes sending of serial data in a green light running mode, a yellow light flashing mode, a red light flashing mode and an addressing mode.

The luminance meter communication processing function is used for slowly adjusting the luminance and the color temperature of the lamp.

Preferably, the centralized controller uses an STM32F103RCT6 chip as a main control chip, 4 paths of USART serial ports are used for receiving and transmitting, and a 485 chip adopts a 65176 chip.

The invention has the following beneficial effects:

1. the system can automatically detect barriers in the tunnel, and control the yellow lamp flashing mode of the lamp of the road section to remind a driver of the fact that the road condition in front of the driver is decelerated and slowly driven to safely pass through the yellow lamp flashing mode, and meanwhile, the system can automatically detect a fire alarm in the tunnel, and the red lamp of the whole tunnel flashes to inform that vehicles outside the tunnel are forbidden to pass through the red lamp and the red fire alarm is actively reported.

2. The system collects the difference between the inner brightness and the outer brightness of the tunnel and automatically and slowly adjusts the brightness of the lamps in the tunnel, so that the difference between the inner brightness and the outer brightness of the tunnel is within a set value interval, the black hole and white hole effects generated when a driver enters and exits the tunnel are eliminated, and the driving safety is improved.

3. Can automatic acquisition lamps and lanterns voltage, electric current, life-span and fault condition send the backstage to inform the staff, make things convenient for the maintenance of lamps and lanterns in the tunnel, reduce the manual work and patrol and examine, raise the efficiency.

Drawings

Fig. 1 is a flow chart of the operation of the centralized controller according to the present invention.

FIG. 2 is a flow chart of the operation of the communication function with the master control according to the present invention.

FIG. 3 is a flow chart of the communication function between the lamp and the present invention.

FIG. 4 is a flow chart of the communication function between the present invention and the luminance meter.

Fig. 5 is a serial line function operation flow of the lamp according to the present invention.

Detailed Description

The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited to these examples.

As shown in fig. 1, an intelligent tunnel lighting system of centralized controller includes centralized controller and lamps and lanterns, its characterized in that: the intelligent tunnel lighting system of the centralized controller is also provided with a control system;

a brightness meter: detecting the internal and external brightness of the tunnel and feeding back to the integrated controller;

a fire alarm: detecting a fire phenomenon in the tunnel;

obstacle devices: detecting obstacles in the tunnel;

the operation flow of the centralized controller comprises an initialization interface port, a clock and a main cycle stage;

the main cycle stage comprises a master control communication processing function, a lamp communication processing function, a brightness meter communication processing function, a display main function and a lamp serial line function;

the function detects the correctness of data, reads the related command and executes corresponding operation aiming at different commands;

the function for communicating with the lamp is used for receiving the commands of the controller and then sending different commands to the lamp to operate the lamp;

the function of communicating and processing with the brightness meter detects the data of the brightness meter at regular time, and processes the temperature adjustment and the light adjustment of the lamp after comparing the data;

the display main function displays the running state of the system in the background;

the lamp serial line function is used for processing the sending of serial data;

the main cycle stage is also provided with serial port interruption and external interruption for continuously detecting data entry, when the external interruption detects signals input by the fire alarm instrument or the obstacle instrument, the centralized controller immediately interrupts the running of the current program and runs a corresponding red fire alarm active alarm or yellow obstacle active alarm command, the lamp is adjusted to be in a corresponding 'fire alarm mode' or 'yellow light alarm mode' running mode, corresponding preparation is made in time, and meanwhile background workers are informed.

The related commands of the centralized controller correspond to the following operations:

command Setting main illumination brightness of lamp Setting the main lighting color temperature of a lamp Setting concentrator addresses Setting lamp address Setting lamp stroboscopic rate
Operation of Adjusting white light target dimming value Adjusting color temperature target value of dual color temperature Modifying memory address data Sending luminaire address-writing data Sending lamp stroboscopic data

Data collection Red fire alarm initiative prepare Active report for yellow obstacle Setting lamp group number Set concentrator group number Setting tunnel speed limit
Sending a lamp information collection command Red fire alarm initiative prepare Active report for yellow obstacle Sending lamp group number data Set concentrator group number Setting green light operating parameters

Setting green light running distance Setting simultaneous operating parameters of green lamps Setting the lamp arrangement distance of the lamp Setting the current time of the controller Setting controller time Mode of operation
Setting green light operating parameters Setting green light operating parameters Setting green light operating parameters Sending controller time Changing time in memory Changing operating modes

Centralized controller for setting tunnel head station Setting controller control mode Setting the brightness of a three-color lamp
Centralized controller for setting tunnel head station Changing controller mode, double-color temperature lamp mode and four-in-one lamp mode Changing the dimming value of red, green and yellow

The operation mode of the lamp is as follows:

1. "speed limit guidance mode" under road safety: the green light will flow forward at a rate-limiting speed.

The flow state of the green light can be set by adjusting the parameters;

speed limiting speed: the speed at which the green light flows can be set.

Arranging lamp spacing: the green light lighting time is different between different light distribution intervals, and the flow speed can be ensured to be consistent between different light distribution intervals by setting and changing parameters.

Group-to-group spacing: the distance between the green lamps in each set of flow can be set by changing parameters.

The number of green lamps in each group: the parameter can set the number of green lamps in a group, can set 2 lamps to flow forward together, can also set 3 lamps and the like.

2. "fire alarm mode" under fire alarm: when a fire alarm is detected in the tunnel, all lamps in the whole tunnel are stroboscopically synchronized in red, and the stroboscopic rate is increased.

May be set to 30/min, 60/min to prompt vehicles outside the tunnel not to enter the tunnel to ensure safety.

3. The yellow light warning mode under the road obstacle: when the road in the tunnel is detected to have an obstacle, the lamp of the road section twinkles in yellow.

The strobe rate can be set to 30 times/minute, 60 times/minute, indicating that the vehicle is passing slowly and safely.

The initialization interface port comprises U1 master control communication, U2 sensor 1 communication, U3 sensor 2 communication, U4 display screen communication, IO1 obstacle detection, IO2 fire alarm detection and IO3 serial output.

The main control communication function detects the correctness of the data, reads the related command and performs different operations aiming at different commands. The functions include: setting the main lighting brightness of the lamp, setting the main lighting color temperature of the lamp, setting the address of a concentrator and the like.

As shown in fig. 2, the communication with the master processing function includes the steps of:

s1: actively sending lamp voltage, current, service life and fault state information;

s2: interrupting the waiting master control access, and executing different operations aiming at different commands;

s3: collecting lamp information after the operation is finished;

s4: the master assigns an address and returns to perform step S1.

As shown in fig. 3, the master function for communicating with the lamp includes actively sending data to change relevant parameters of the lamp, sending data to access parameters of the lamp, and performing an addressing function of the lamp after information modification.

And after the information is modified, actively sending data with the lamp communication main function to change the serial flow time frequency and the stroboscopic time frequency corresponding to the lamp and adjust the brightness of the lamp.

When the lamp communication main function receives a data collection command of the centralized controller, the lamp communication main function sends data to access lamp parameters at a time interval of 1s, and the serial port interrupts to wait for lamp information feedback and stores the data.

When the lamp communication main function receives a lamp address setting command of the centralized controller, the lamp communication main function sends an addressing start frame, the serial line is changed into an addressing mode, addressing data are sent after 20ms, the data frame comprises a start address, and the address +1 is sent every 20ms later.

The main function of communication with the lamp is mainly to send different commands to the lamp to operate the lamp after receiving different commands of the centralized controller, such as dimming commands, stroboscopic commands and the like. There is also the operation of calculating the sending time (flow rate of the light fixture) and sending timing in series and programming the light fixture. And no matter under what circumstances the main lighting white light can all be bright constantly and throw light on, can automatic calculation online time and collect the voltage current parameter feedback of lamps and lanterns to centralized control ware when lamps and lanterns received the order, through showing that the master function shows system operating condition, the interior road condition of tunnel and the voltage, electric current, life-span, the fault state information of lamps and lanterns at the background, the managers of being convenient for in time masters the interior road condition of tunnel and lamps and lanterns information, makes things convenient for managers to take effectual measure and reduces the artifical maintenance amount of labour.

As shown in fig. 4, the communication function with the luminance meter specifically includes the following steps:

s11, collecting the brightness difference between the inside and the outside of the tunnel;

s12, according to the formula: if the brightness difference is not equal to the set value, executing the step S3, otherwise, returning to the step S1;

and S13, changing the main illumination brightness of the transition section of the lamp, and returning to execute the step S1.

Specifically, the brightness meter communication processing function mainly detects data of the brightness meter at regular time, then compares the data and adjusts the temperature and the light of the lamp, and the brightness and the color temperature of the lamp are slowly adjusted during temperature adjustment and light adjustment, so that the influence of discomfort of eyes of a driver caused by instantaneous change of the brightness is avoided.

As shown in fig. 5, the serial line function of the luminaire handles serial data transmission in green light pipeline mode, yellow light flashing mode, red light flashing mode, and addressing mode.

And the serial processing function is mainly used for processing the transmission of serial data, such as serial transmission time interval and length of a green light pipeline mode, timing transmission when an address is written and the like.

The green light flowing mode comprises the following procedures:

a1, adjusting the serial sending time according to the speed-limiting speed,

a2, the first controller sends green light pipeline serial data, the head code is 100us +1 and 50us signals,

a3, defining time according to the set stream interval, retransmitting the serial data after timing is finished, and returning to execute a2 after transmission.

The yellow light flashing mode comprises the following procedures:

b1, sending yellow light flashing serial data, 200us +1 head codes and 50us signals,

b2, timing by the lamp in 2 minutes, timing by the centralized controller, and sending data again for synchronization at the moment that the timing is 0 after 2 minutes, and returning to execute b 1.

The red light flashing mode comprises the following procedures:

c1, sending red light flashing serial data, 300us +1 head code 50us signals,

and c2, performing stroboscopic timing of the lamp in 2 minutes, simultaneously timing by the centralized controller, and sending data again for synchronization at the moment that the timing is 0 after 2 minutes, and returning to execute c 1.

The addressing mode comprises the following procedures:

d1, sending addressed serial data, header 1ms +1 200us signals,

d2, 30ms later the serial output line is pulled low,

d3, and 7s after transmission, the serial green light running mode is changed.

The specific centralized controller takes an STM32F103RCT6 chip as a main control chip, 4 paths of USART serial ports are used for receiving and transmitting, and a 485 chip adopts a 65176 chip.

The invention has the following beneficial effects:

1. the system can automatically detect barriers in the tunnel, and control the yellow lamp flashing mode of the lamp of the road section to remind a driver of the fact that the road condition in front of the driver is decelerated and slowly driven to safely pass through the yellow lamp flashing mode, and meanwhile, the system can automatically detect a fire alarm in the tunnel, and the red lamp of the whole tunnel flashes to inform that vehicles outside the tunnel are forbidden to pass through the red lamp and the red fire alarm is actively reported.

2. The system collects the difference between the inner brightness and the outer brightness of the tunnel and automatically and slowly adjusts the brightness of the lamps in the tunnel, so that the difference between the inner brightness and the outer brightness of the tunnel is within a set value interval, the black hole and white hole effects generated when a driver enters and exits the tunnel are eliminated, and the driving safety is improved.

3. Can automatic acquisition lamps and lanterns voltage, electric current, life-span and fault condition send the backstage to inform the staff, make things convenient for the maintenance of lamps and lanterns in the tunnel, reduce the manual work and patrol and examine, raise the efficiency.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于环境光源的城市道路照明工程用灯光控制系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!