A Distributed Power Management Method for Railway Tunnel Lighting Based on RFID Control
The RFID-controlled distributed energy management system addresses the issue of manual lighting control in railway tunnels by automatically turning off lights and optimizing energy use, reducing waste and enhancing management.
Patent Information
- Application Number
- CN202410923277.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2044-07-10
AI Technical Summary
In the prior art, railway tunnel lighting control mainly relies on manual operation buttons, resulting in the lamps being often not turned off, resulting in waste of electricity and the inability to effectively manage the use of electricity.
The distributed power management method for railway tunnel lighting based on RFID control is adopted. By dividing sections in the length direction of the tunnel, using distributed power management nodes and RFID units, the card swiping information of the operators is monitored and managed in real time, the lamp switch is automatically controlled, and the power consumption is calculated in real time, distributed power management is realized.
It realizes intelligent management of railway tunnel lighting, reduces electricity waste, improves the refined management efficiency of power use, and achieves the effect of energy conservation and emission reduction.
Smart Images

Figure CN118899949B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of lighting power management, and particularly relates to a distributed power management method for railway tunnel lighting controlled by RFID. Background Art
[0002] In an electrified railway tunnel, a plurality of lighting fixtures are installed at intervals along the length of the tunnel. For inspection personnel, construction personnel, maintenance personnel of different specialties, etc., when working in the tunnel, the control of tunnel lighting is mainly achieved by the on-site manual + mechanical button control method, that is: the operating personnel control the lighting fixtures on-site through the power switch box set at the tunnel entrance and the lighting control box in the tunnel. This method of lighting control through the mechanical structure of buttons and manual operation mainly has the following problems: often, after the operating personnel leave the working section, they forget to turn off the tunnel lighting fixtures, resulting in a large amount of waste of electric energy; moreover, it is impossible to count the electric energy and manage the users of tunnel lighting. Summary of the Invention
[0003] Aiming at the defects existing in the prior art, the present invention provides a distributed power management method for railway tunnel lighting controlled by RFID, which can effectively solve the above problems.
[0004] The technical solution adopted by the present invention is as follows:
[0005] The present invention provides a distributed power management method for railway tunnel lighting controlled by RFID, including the following steps:
[0006] Step S1, establishing a distributed power management architecture for railway tunnel lighting, the distributed power management architecture for railway tunnel lighting including a remote control center and n distributed power management nodes; specifically, the railway tunnel is sequentially divided into n lighting sections along the length direction, namely: the 1st lighting section, the 2nd lighting section,..., the nth lighting section; for the ith lighting section, i = 1, 2,..., n, the ith head RFID unit is arranged at the starting position of the ith lighting section, the ith end RFID unit is arranged at the ending position of the ith lighting section, and the ith distributed power management device is arranged at the middle position of the ith lighting section; the ith distributed power management device includes an ith central processor, an ith front near-field RFID unit, an ith rear near-field RFID unit, an ith DIDO control unit, an ith network switching unit, a 1st transmission port and a 2nd transmission port; the ith central processor is respectively connected to the ith front near-field RFID unit, the ith rear near-field RFID unit, the ith DIDO control unit, the ith network switching unit, the 1st transmission port and the 2nd transmission port;
[0007] Among them, the first transmission port is used to connect to the i-th head-end RFID unit and receive the card-swipe information of the operator collected by the i-th head-end RFID unit; the second transmission port is used to connect to the i-th end RFID unit and receive the card-swipe information of the operator collected by the i-th end RFID unit; the i-th front-section near-field RFID unit is used to collect the card-swipe information of the operator for the front-section lighting section; the i-th rear-section near-field RFID unit is used to collect the card-swipe information of the operator for the rear-section lighting section; the i-th DIDO control unit is used to control the on and off of the lamps in the i-th lighting section; the i-th network switching unit is used to synchronize messages with the other n - 1 distributed power management devices and communicate with the remote control center; the i-th distributed power management device forms the i-th distributed power management node.
[0008] Step S2, the remote control center uniformly conducts card-issuing authorization management. Each work card has the following authorization information: the operator, the working tunnel, the authorized duration, and the total electricity consumption for the work.
[0009] Step S3, each i-th distributed power management device controls the lamps in the i-th lighting section to be turned on or off in real time according to the situation of the operators in the i-th lighting section, and calculates the total electricity used in the i-th lighting section in real time. Specifically:
[0010] Step S3.1, the i-th distributed power management device controls and manages the front-section area and the rear-section area of the i-th lighting section respectively. Specifically, the method of Step S3.2 is used to control and manage the front-section area of the i-th lighting section, and the electricity consumption P of the front-section area is statistically obtained. i前 ; the method of Step S3.3 is used to control and manage the rear-section area of the i-th lighting section, and the electricity consumption P of the rear-section area is statistically obtained. i后 ; then, the method of Step S3.4 is used to obtain the total electricity consumption P of the i-th lighting section. i总 ;
[0011] Step S3.2, control and manage the front-section area of the i-th lighting section, and statistically obtain the electricity consumption P of the front-section area. i前 :
[0012] Step S3.2.1, the i-th head-end RFID unit and the i-th front-section near-field RFID unit are respectively located at both ends of the front-section area of the i-th lighting section.
[0013] Step S3.2.2, the i-th central processor maintains and updates the queue of the lighting lamp off moments in real time. The specific maintenance method is as follows:
[0014] Step S3.2.2.1. Initially, when there is no operator in the front section area of the i-th lighting section, the queue of lighting fixture closing times is empty. At this time, the lighting fixtures in the front section area of the i-th lighting section are in the off state.
[0015] Step S3.2.2.2. When the i-th head RFID unit or the i-th front near-field RFID unit reads the card-swipe information of operator p1, it is determined whether there is an item of the lighting fixture closing time of operator p1 in the queue of lighting fixture closing times. If not, Step S3.2.2.3 is executed; if so, Step S3.2.2.4 is executed.
[0016] Step S3.2.2.3. It represents that operator p1 makes the first card swipe in the front section area of the i-th lighting section. Therefore, this card swipe is for the lighting-on control. First, it is determined whether the lighting fixtures in the front section area of the current i-th lighting section are in the on state. If so, they continue to be maintained; if not, the lighting fixtures in the front section area of the i-th lighting section are turned on. Then, the authorized duration h1 of operator p1 and the first card-swipe time t11 are read, and the lighting fixture closing time T1 = h1 + t11 of operator p1 is calculated and added to the queue of lighting fixture closing times. At the same time, the queue of lighting fixture closing times is sorted in ascending order according to each lighting fixture closing time. Then, Step S3.2.2.5 is executed.
[0017] Step S3.2.2.4. It represents that operator p1 makes the second card swipe in the front section area of the i-th lighting section. Therefore, this card swipe is for the active lighting-off control. Moreover, it represents that operator p1 has not reached its authorized duration h1 since the first card swipe in the front section area of the i-th lighting section. Therefore, it is determined whether there are other items of lighting fixture closing times of operators in the current queue of lighting fixture closing times except for the item of the lighting fixture closing time of operator p1. If there are, the item of the lighting fixture closing time of operator p1 is deleted from the current queue of lighting fixture closing times, and the queue of lighting fixture closing times is updated to be sorted in ascending order according to each lighting fixture closing time. Then, Step S3.2.2.5 is executed; if not, the lighting fixtures in the front section area of the i-th lighting section are turned off, then the queue of lighting fixture closing times is initialized to be empty, and Step S3.2.2.1 is executed again.
[0018] Step S3.2.2.5. When the time at the end of the sorted queue of lighting fixture closing times is reached, the lighting fixtures in the front section area of the i-th lighting section are turned off, then the queue of lighting fixture closing times is initialized to be empty, and Step S3.2.2.1 is executed again.
[0019] By controlling the turning on and off of the lighting fixtures in the front section area of the i-th lighting section, the electric energy consumed by the lighting fixtures is statistically obtained in real time, and the electric energy P used in the front section area is obtained. i前 ;
[0020] Step S3.3, control and manage the rear section area of the i-th lighting section, and statistically obtain the electric energy P used in the rear section area. i后 ;
[0021] The i-th rear near-field RFID unit and the i-th end RFID unit are respectively located at both ends of the rear section area of the i-th lighting section; the i-th central processing unit detects and calculates the card-swipe information of the i-th rear near-field RFID unit and the i-th end RFID unit, and statistically obtains the electric energy P used in the rear section area through the lighting fixture off-time queue that is maintained and updated in real time. i后 ;
[0022] Step S3.4, use the following formula to obtain the total electric energy P used in the i-th lighting section. i总 :
[0023] P i总 = P i前 + P i后
[0024] Thus, the total electric energy P used in the i-th lighting section is obtained. i总 .
[0025] Step S4, each i-th distributed electric energy management device synchronizes the lighting parameters and the total electric energy used in the i-th lighting section to the other n - 1 distributed electric energy management devices in real time; so that the i-th distributed electric energy management device can obtain the electric energy usage conditions of the other n - 1 distributed electric energy management devices in real time, and further calculate the total electric energy used in the tunnel in real time.
[0026] Step S5, therefore, when the remote control center sends a query message for the total electric energy used in the tunnel to any distributed electric energy management device, the remote control center can obtain the total electric energy used in the tunnel.
[0027] Preferably, when statistically obtaining the electric energy P i前 used in the front section area of the i-th lighting section and the electric energy P i后 used in the rear section area, it further includes:
[0028] Whenever the lighting fixtures in the front section area of the i-th lighting section last from the on-time to the off-time, assuming the on-time is t 00 , and the off-time is t 0end , and the effective current during this time period is the distributed resistance is R, then use the following formula to obtain at t00 from t 0end to the electrical energy P therebetween:
[0029]
[0030] Wherein: W represents the load power of the lighting fixtures in the front section area of the i-th lighting section.
[0031] Preferably, in step S4, each distributed electrical energy management device adopts a decentralized distributed global control and monitoring signal synchronization mechanism.
[0032] Preferably, step S4 is specifically as follows:
[0033] Step S4.1, for the i-th head-end RFID unit, the i-th end RFID unit and the i-th distributed electrical energy management device arranged in the i-th lighting section, the i-th distributed electrical energy management device serves as the host, and the i-th head-end RFID unit and the i-th end RFID unit serve as external modbus slaves of the i-th distributed electrical energy management device; the i-th distributed electrical energy management device forms a cluster with the other n - 1 distributed electrical energy management devices, and the i-th distributed electrical energy management device needs to synchronize the telemetry signal, the telecontrol signal and the teleindication signal of the i-th lighting section to the other n - 1 distributed electrical energy management devices in the cluster; wherein, the telemetry signal is the voltage, current signal and card-swipe information of the i-th lighting section collected; the teleindication signal is the status quantity signal of the lamp switch state of the i-th lighting section collected; the telecontrol signal is the signal for controlling the switch state of the lamps in the i-th lighting section received from the remote control center, and the signal for controlling the switch state of the lamps in the i-th lighting section from the card-swipe of the operator;
[0034] Step S4.2, the i-th distributed electrical energy management device establishes an uplink communication management class and a downlink communication management class;
[0035] Step S4.3, the i-th distributed electrical energy management device synchronizes the teleindication signal to the cluster through the uplink communication management class;
[0036] Step S4.4, the i-th distributed electrical energy management device synchronizes the telecontrol signal and the telemetry signal to the cluster through the downlink communication management class.
[0037] Preferably, step S4.3 is specifically as follows:
[0038] Step S4.3.1, the uplink communication management class of the i-th distributed electrical energy management device includes a primary thread communication class and a standby communication thread class;
[0039] Step S4.3.2, under normal circumstances, the i-th distributed electrical energy management device realizes synchronizing the teleindication signal to other clusters through the primary thread communication class;
[0040] Step S4.3.3, the i-th distributed power management device determines whether it has an abnormality. If so, it switches from the primary thread communication class to the standby communication thread class, then the standby communication thread class becomes the primary thread communication class, and realizes synchronizing the remote signaling signal to other clusters.
[0041] Among them, the method for the i-th distributed power management device to determine whether it has an abnormality is as follows:
[0042] Step S4.3.3.1, the i-th distributed power management device maintains a node status table in the form of a linked list. The node status table is used to maintain the node information of each node in the entire cluster, including: node IP, node port, node serial number, and the status of node survival or inactivation; among them, the node serial number starts from 1 and is numbered in the order of nodes joining the cluster; when a new node joins the cluster, the node status table is updated.
[0043] Among them, the i-th distributed power management device uses the following formula to obtain the survival or inactivation status of each other node: the i-th distributed power management device regularly sends a broadcast heartbeat frame in the form of a broadcast heartbeat frame, and determines whether a response frame of this node is received within the timeout period corresponding to each node; if received, update the status of this node to the survival state; otherwise, update the status of this node to the inactivation state; among them, the timeout period corresponding to each node is the node serial number of this node * 10 milliseconds, so as to regularly detect the survival or inactivation status of the other n - 1 nodes.
[0044] Step S4.3.3.2, the i-th distributed power management device calculates in real time according to the node status table whether the ratio of the number of nodes in the survival state to the total number of nodes in the cluster at the current moment is lower than the set ratio; if not, it means that the status of the i-th distributed power management device is normal; if so, it means that the status of the i-th distributed power management device is abnormal.
[0045] Preferably, in step S4.3.3, when the number of times of switching from the primary thread communication class to the standby communication thread class exceeds 3 times, the set ratio in step S4.3.3.2 is increased.
[0046] Preferably, in step S4.3.3, the i-th distributed power management device switches from the primary thread communication class to the standby communication thread class, specifically as follows:
[0047] Step A1, the primary thread communication class of the i-th distributed power management device has a primary ready state, a primary running state, and a primary termination state; the standby communication thread class has a standby ready state, a standby running state, and a standby termination state.
[0048] Step A2: When synchronizing telecontrol signals to other clusters through the primary thread communication class, essentially, the primary ready state and the primary running state of the primary thread communication class are enabled simultaneously; the standby ready state and the standby running state of the standby communication thread class are enabled simultaneously;
[0049] When the primary running state synchronizes the received telecontrol signals to other cluster nodes, it sends them to the primary ready state and the standby ready state simultaneously; the primary ready state and the standby ready state store the telecontrol signals respectively; meanwhile, the primary ready state periodically detects whether the primary running state and the standby running state are normal; if the primary ready state detects that the primary running state is abnormal and the standby running state is normal, perform the primary-standby switching operation in Step A3; or, when the i-th distributed power management device determines that it is abnormal, it actively sends a primary-standby switching instruction to the primary thread communication class and performs the primary-standby switching operation in Step A3;
[0050] Step A3: Primary-standby switching operation:
[0051] Start the standby running state. The standby running state synchronizes the telecontrol signals to other clusters by reading the telecontrol signals stored in the standby ready state; meanwhile, kill the primary running state and the primary ready state to make them enter the primary termination state. When the primary thread communication class is repaired, recreate the primary running state and the primary ready state.
[0052] Preferably, in Step S4.4, the i-th distributed power management device synchronizes the telecommand signals and the telemetry signals to the cluster through the downlink communication management class, specifically:
[0053] Step S4.4.1: The downlink communication management class of the i-th distributed power management device is provided with three circular queues, a primary Modbus master class, a standby Modbus master class, and a message synchronization cluster; among them, the three circular queues are Queue A, Queue B, and Queue C respectively;
[0054] When the downlink communication management class receives the telecommand signals and the telemetry signals, it sends them all to Queue A; Queue A retains the telecommand signals and sends the telemetry signals to Queue B; the priority of Queue A is higher than that of Queue B;
[0055] Step S4.4.2: The primary Modbus master class, according to the priorities of Queue A and Queue B, as long as there are telecommand signals in Queue A, reads the telecommand signals and sends them to the corresponding slave and the message synchronization cluster simultaneously to achieve the control of the slave signals and message synchronization; when Queue A is empty, the primary Modbus master class reads the telemetry signals in Queue B and sends the telemetry signals to the message synchronization cluster to achieve message synchronization; when an exception occurs in Queue A, all the telecommand signals stored in Queue A are sent to Queue C; when an exception occurs in Queue B, all the telecommand signals stored in Queue B are sent to Queue C for fault troubleshooting through Queue C;
[0056] Among them, the primary and standby switching strategy for the primary Modbus master class and the standby Modbus master class is as follows:
[0057] Entry strategy for the primary Modbus master class and the standby Modbus master class: At startup, the primary Modbus master class and the standby Modbus master class are started simultaneously. The primary Modbus master class actively sends Modbus polling frames to the slave devices. After receiving the Modbus polling frames, the slave devices send Modbus response frames to both the primary Modbus master class and the standby Modbus master class at the same time. The primary Modbus master class obtains and parses the Modbus response frames returned by the slave devices, and pushes the parsed Modbus response data into the data persistence layer for storage in memory. The standby Modbus master class then determines whether it has received the Modbus response frames returned by the slave devices within the specified time. If not, it is inferred that the primary Modbus master class has failed, or there is a fault in the communication link between the primary Modbus master class and the slave devices. Therefore, the standby Modbus master class is switched to the primary Modbus master class to achieve primary-standby switching.
[0058] A distributed power management method for railway tunnel lighting based on RFID control provided by the present invention has the following advantages:
[0059] A distributed power management method for railway tunnel lighting based on RFID control provided by the present invention utilizes technologies such as communication technology, embedded technology, and distributed communication algorithms to develop a set of railway tunnel lighting control and distributed power management devices that adopt RFID technology, distributed information processing mechanisms, and power management strategy calculations. After the devices are deployed, the tunnel lighting usage durations of each section are synchronized through the distributed information processing mechanism; combined with the power management strategy, that is, through the topological distribution of tunnel lighting fixtures and the parameters of the fixtures, relevant configurations are carried out for different segmented intervals, so as to realize the power calculation of different sections and ultimately achieve the power management of the entire tunnel; through the power management mechanism, by means of RFID data storage, energy-saving strategies are implemented for different operators, and ultimately the effect of energy conservation and emission reduction is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 It is a diagram showing the device layout method for two lighting sections of a railway tunnel provided by the present invention;
[0061] Figure 2 It is a structural diagram of the distributed power management device provided by the present invention;
[0062] Figure 3 It is an actual device diagram of the distributed power management device provided by the present invention;
[0063] Figure 4 The flow chart of the inspection personnel swiping cards in two lighting sections of the railway tunnel provided by the present invention;
[0064] Figure 5 The schematic diagram of the micro-power fuzzy compensation algorithm provided by the present invention;
[0065] Figure 6 The schematic diagram of the main thread communication class switching to the standby communication thread class provided by the present invention;
[0066] Figure 7 The detailed structure diagram of the message synchronization of each distributed power management device provided by the present invention;
[0067] Figure 8 The schematic diagram of sending the remote control signal and the telemetry signal to the cluster synchronization through the downlink communication management class provided by the present invention;
[0068] Figure 9 The schematic diagram of the primary and standby switching strategy of the primary modbus host class and the standby modbus host class provided by the present invention. Detailed implementation manners
[0069] In order to make the technical problems, technical solutions and beneficial effects solved by the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0070] The present invention provides a railway tunnel lighting distributed power management method based on RFID control, including the following steps:
[0071] Step S1, establishing a railway tunnel lighting distributed power management architecture, where the railway tunnel lighting distributed power management architecture includes a remote control center and n distributed power management nodes;
[0072] Specifically, the railway tunnel is sequentially divided into n lighting sections along the length direction, namely: the first lighting section, the second lighting section,..., the nth lighting section; for the ith lighting section, i = 1, 2,..., n, the ith head RFID unit is arranged at the starting position of the ith lighting section, the ith end RFID unit is arranged at the end position of the ith lighting section, and the ith distributed power management device is arranged at the middle position of the ith lighting section.
[0073] For example, as Figure 1 shown, taking the railway tunnel divided into two lighting sections along the length direction as an example, the first lighting section is Figure 1 the section from k0 to k2 in; the second lighting section is Figure 1The section from k2 to k4, with each lighting section having a length of 500 meters. At the starting position k0, the middle position k1, and the ending position k2 of the first lighting section, a first head-end RFID unit, a first distributed power management device, and a first tail-end RFID unit are respectively arranged. Through the first head-end RFID unit, the first distributed power management device, and the first tail-end RFID unit, the control of the lamps in the first lighting section is realized. By the same principle, at the starting position k2, the middle position k3, and the ending position k4 of the second lighting section, a second head-end RFID unit, a second distributed power management device, and a second tail-end RFID unit are respectively arranged. Through the second head-end RFID unit, the second distributed power management device, and the second tail-end RFID unit, the control of the lamps in the second lighting section is realized.
[0074] As Figure 2 shown, for the distributed power management device of each lighting section, taking the i-th distributed power management device as an example, the i-th distributed power management device includes an i-th central processor, an i-th front-section near-field RFID unit, an i-th rear-section near-field RFID unit, an i-th DIDO control unit, an i-th network switching unit, a first transmission port, and a second transmission port; the i-th central processor is respectively connected to the i-th front-section near-field RFID unit, the i-th rear-section near-field RFID unit, the i-th DIDO control unit, the i-th network switching unit, the first transmission port, and the second transmission port;
[0075] wherein, the first transmission port is used to connect to the i-th head-end RFID unit and receive the worker card-swipe information collected by the i-th head-end RFID unit; the second transmission port is used to connect to the i-th tail-end RFID unit and receive the worker card-swipe information collected by the i-th tail-end RFID unit; the i-th front-section near-field RFID unit is used to collect the worker card-swipe information of the worker for the front-section lighting section; the i-th rear-section near-field RFID unit is used to collect the worker card-swipe information of the worker for the rear-section lighting section; the i-th DIDO control unit is used to control the on and off of the lamps in the i-th lighting section; the i-th network switching unit is used to synchronize messages with the other n - 1 distributed power management devices and communicate with the remote control center; the i-th distributed power management device forms the i-th distributed power management node;
[0076] In practical applications, the distributed power management device includes an LCD liquid crystal display circuit, an Ethernet circuit, an RS485 communication circuit, a core CPU circuit, etc.
[0077] For each distributed power management device, a front near-field RFID unit and a rear near-field RFID unit are configured to collect the card-swipe information of the operating personnel respectively. As Figure 3 shown, it is the specific structure diagram of the distributed power management device. In the present invention, two near-field RFID units are arranged through the device structure, and the distance between them is 120 mm. This distance ensures that there is no signal crosstalk phenomenon when the RF card is swiped. At the same time, by setting the coil size of the identification card to XXXX, the RFID RF card can be identified within a radius of 8 mm of the RFID reader of the near-field RFID unit, ensuring that the operating personnel arrive at the scene and perform the card-swipe action to turn on or turn off the lighting; by means of non-contact card swiping, when operating the tunnel lighting, there is no need to open the device, there is no fatigue problem of mechanical buttons, and there is no influence of dust on the sensor.
[0078] By setting a far-field RFID unit, it can be connected to the device through the far-field RFID unit interface to realize the card-swipe action of the operating personnel at positions such as the tunnel entrance.
[0079] Step S2, the remote control center uniformly conducts card issuing and authorization management. Each operation card has the following authorization information: the operating party, the operating tunnel, the authorization duration, and the total operating power.
[0080] Therefore, in the present invention, when the operating personnel enter the tunnel, they carry an operation card, which can also be called an inspection card. The opening or closing control of the lamps in different lighting sections is realized by swiping the card. The specific control logic will be described in detail in the following steps.
[0081] As a specific embodiment, the operation cards are uniformly authorized by the remote control center, and the corresponding professionals or construction personnel can control the lighting. The authorization information includes the following: the operating party, the operating tunnel, the authorization duration (for delaying the automatic closing of the lighting), the total operating power, and the service life.
[0082] After authorization, the authorized card will allocate 32 bytes of storage space to store the previous authorization information and relevant card-swipe information, etc. The following table shows a specific principle of the authorized card:
[0083]
[0084]
[0085] Step S3, each i-th distributed power management device controls the lamps in the i-th lighting section to be turned on or off in real time according to the situation of the operating personnel in the i-th lighting section, and calculates the total power used in the i-th lighting section in real time. Specifically:
[0086] Step S3.1. The i-th distributed power management device controls and manages the front section area and the rear section area of the i-th lighting section respectively. Specifically, the method of step S3.2 is adopted to control and manage the front section area of the i-th lighting section, and the power P consumed by the front section area is statistically obtained. i前 The method of step S3.3 is adopted to control and manage the rear section area of the i-th lighting section, and the power P consumed by the rear section area is statistically obtained. i后 Then, the method of step S3.4 is adopted to obtain the total power P consumed by the i-th lighting section. i总 ;
[0087] Step S3.2. Control and manage the front section area of the i-th lighting section, and statistically obtain the power P consumed by the front section area. i前 :
[0088] Step S3.2.1. The i-th head-end RFID unit and the i-th front-section near-field RFID unit are respectively located at both ends of the front section area of the i-th lighting section.
[0089] Step S3.2.2. The i-th central processing unit maintains and updates the lighting fixture off-time queue in real time. The specific maintenance method is as follows:
[0090] Step S3.2.2.1. Initially, when there are no operators in the front section area of the i-th lighting section, the lighting fixture off-time queue is empty. At this time, the lighting fixtures in the front section area of the i-th lighting section are in the off state.
[0091] Step S3.2.2.2. When the i-th head-end RFID unit or the i-th front-section near-field RFID unit reads the card-swipe information of the p1 operator, it is judged whether there is a lighting fixture off-time item of the p1 operator in the lighting fixture off-time queue. If not, step S3.2.2.3 is executed; if so, step S3.2.2.4 is executed.
[0092] Step S3.2.2.3. It means that the p1 operator swipes the card for the first time in the front section area of the i-th lighting section. Therefore, this card swipe is for the lighting-on control. Therefore, first, it is judged whether the lighting fixtures in the front section area of the i-th lighting section are in the on state at present. If so, they continue to be maintained; if not, the lighting fixtures in the front section area of the i-th lighting section are turned on. Then, the authorized duration h1 of the p1 operator and the first card-swipe moment t11 are read, and the lighting fixture off-time T1 of the p1 operator is calculated as T1 = h1 + t11, and T1 = h1 + t11 is added to the lighting fixture off-time queue. At the same time, the lighting fixture off-time queue is sorted in ascending order according to each lighting fixture off-time; then step S3.2.2.5 is executed.
[0093] Step S3.2.2.4 indicates that the operator p1 swiped the card for the second time in the front section of the i-th lighting section. Therefore, this card swipe is for the active light-off control. Moreover, it represents that since the operator p1 swiped the card for the first time in the front section of the i-th lighting section, the authorized duration h1 has not been reached yet. Thus, it is determined whether there are lighting fixture off-time items of other operators in the current lighting fixture off-time queue, excluding the lighting fixture off-time item of the operator p1. If there are, the lighting fixture off-time item of the operator p1 is deleted from the current lighting fixture off-time queue, and the lighting fixture off-time queue is updated to sort the lighting fixture off-times in ascending order from smallest to largest. Then, step S3.2.2.5 is executed. If not, the lighting fixtures in the front section of the i-th lighting section are turned off. Then, the lighting fixture off-time queue is initialized to be empty, and step S3.2.2.1 is executed again.
[0094] Step S3.2.2.5: When the time at the end of the sorted lighting fixture off-time queue is reached, the lighting fixtures in the front section of the i-th lighting section are turned off. Then, the lighting fixture off-time queue is initialized to be empty, and step S3.2.2.1 is executed again.
[0095] By controlling the turning on and off of the lighting fixtures in the front section of the i-th lighting section, the electric energy consumed by the lighting fixtures is statistically obtained in real time, and the electric energy P used in the front section is obtained. i前 ;
[0096] To facilitate the understanding of step S3.2, further explanations are provided below:
[0097] In the present invention, for operator p1, when he needs to work in the front-section area of the i-th lighting section, he can use his authorized work card to swipe at the i-th head-end RFID unit or the i-th front-section near-field RFID unit. This is the first card swipe, which is for turning on the lights. When he swipes the card, if there are no other operators in the front-section area of the i-th lighting section at this time, the lighting fixture is in the off state. Therefore, when operator p1 swipes the card for the first time, the lighting fixture in the front-section area of the i-th lighting section is turned on to provide lighting for operator p1. Assume that there is always only one operator p1 in the front-section area of the i-th lighting section. Then, the logic for turning off the lights is divided into two cases: First, from the moment the lights are turned on, if operator p1 swipes the card again at the i-th head-end RFID unit or the i-th front-section near-field RFID unit before the authorized duration of his work card is reached, this is the second card swipe. At this time, it is the signal for operator p1 to actively turn off the lights, indicating that his work is completed and he needs to leave the front-section area of the i-th lighting section. Therefore, the lights in the front-section area of the i-th lighting section are actively controlled to be turned off. Second, from the moment the lights are turned on, if operator p1 never makes the second card swipe, then when the authorized duration of his work card is reached, the lights in the front-section area of the i-th lighting section are actively controlled to be turned off. This setting method, on the one hand, can avoid the waste of electric energy caused by operators leaving the work section and forgetting to swipe the card to turn off the lights. On the other hand, it authorizes and manages the electric energy used by each operator, thus realizing refined intelligent management.
[0098] When there are multiple operators in the front-section area of the i-th lighting section, first, when each operator works in the front-section area of the i-th lighting section, he needs to perform the action of swiping the card at the i-th head-end RFID unit or the i-th front-section near-field RFID unit to turn on the lights. However, assume that when operator p1 performs the action of swiping the card to turn on the lights, since there are already other operators in the front-section area of the i-th lighting section, the lights are already in the on state at this time. Therefore, the lights remain on. But it is necessary to focus on studying when the lights are turned off to meet the lighting and lighting management requirements of multiple operators. Therefore, the present invention adopts the method of a lighting fixture off-time queue to calculate the off-time of the lighting fixture.
[0099] Step S3.3, control and manage the rear-section area of the i-th lighting section, and statistically obtain the electric energy P used in the rear-section area i后 ;
[0100] The i-th rear-section near-field RFID unit and the i-th end RFID unit are respectively located at both ends of the rear-section area of the i-th lighting section; the i-th central processing unit detects and calculates the card-swipe information of the i-th rear-section near-field RFID unit and the i-th end RFID unit, and statistically obtains the electric energy P used in the rear-section area through the lighting fixture off-time queue that is maintained and updated in real time.i后 ;
[0101] Specifically, the electrical energy P used in the rear section area i后 has the same principle as the electrical energy P used in the front section area i前 , so it will not be elaborated here.
[0102] Step S3.4, using the following formula, obtain the total electrical energy P used in the i-th lighting section i总 :
[0103] P i总 = P i前 + P i后
[0104] Thus, obtain the total electrical energy P used in the i-th lighting section i总 .
[0105] In the present invention, all electrical energy calculations are carried out within the distributed electrical energy management device of this lighting section. At the same time, each time the RF card is used to turn on, turn off, or delay the turn-off of the tunnel lighting, the remaining power of the corresponding RF card will be sent to the remote control center. In addition, the electrical energy counted by the distributed electrical energy management device of each lighting section needs to be synchronized in real time to the distributed electrical energy management devices of each other lighting section, so that the distributed electrical energy management devices of all lighting sections in the tunnel form a cluster. Each distributed electrical energy management device in this cluster can obtain the total electrical energy of the tunnel in real time through the electrical energy of each lighting section.
[0106] Furthermore, when counting the electrical energy P i前 used in the front section area and the electrical energy P i后 used in the rear section area of the i-th lighting section, it further includes:
[0107] Whenever the lighting fixtures in the front section area of the i-th lighting section last from the on moment to the off moment, assuming the on moment is t 00 , and the off moment is t 0end , and the effective current during this time period is the distributed resistance is R, then using the following formula, obtain the electrical energy P between t 00 and t 0end :
[0108]
[0109] Where: W represents the load power of the lighting fixtures in the front section area of the i-th lighting section.
[0110] The above algorithm is the micro electrical energy fuzzy compensation algorithm for the tunnel, which uses the real-time current integration of the box transformer to complete the fuzzy compensation algorithm for electrical energy feedback, improving the accuracy of electrical energy calculation.
[0111] Step S4. Each i-th distributed power management device synchronizes the lighting parameters and the total power consumed in the i-th lighting section to the other n - 1 distributed power management devices in real time, so that the i-th distributed power management device can obtain the power consumption of the other n - 1 distributed power management devices in real time, and then calculate the total power consumed in the tunnel in real time.
[0112] Step S5. Therefore, when the remote control center sends a query message for the total power consumed in the tunnel to any distributed power management device, the remote control center can obtain the total power consumed in the tunnel.
[0113] In the present invention, each distributed power management device adopts a decentralized distributed global control and monitoring signal synchronization mechanism.
[0114] Specifically, in the present invention, the distributed power management devices in all lighting sections form a cluster, and each distributed power management device is a node in the cluster. Moreover, the positioning function of each distributed power management device can be realized, that is, by configuring the kilometer markers for each distributed power management device installed in the tunnel, when the operator swipes the card for identification, the kilometer marker data of the tunnel where the card is swiped will be recorded, and at the same time, it can be mapped to the longitude and latitude through the kilometer marker.
[0115] The lighting-related signal messages include: the tele-signals of the opening and closing of the tunnel lighting in the front / back sections of section 1, section 2, …, section n; the remote control signals for the opening and closing of the tunnel lighting in the front / back sections of section 1, section 2, …, section n; the telemetry of the card number, card swiping time, card swiping location, lighting power turned on after card swiping, number of working groups after card swiping, and remaining time for lighting to turn on after card swiping in the front / back sections of section 1, section 2, …, section n. All distributed power management devices obtain all data of section 1, section 2, …, section n of the whole tunnel through the distributed synchronization information and store them in the main body.
[0116] Among them, the message format is: node type + target IP + source IP + target node name + source node name + valid time + message content.
[0117] The message content adopts the ASDU of IEC104. The tele-signal adopts the time-tagged single-point tele-signal of M_SP_TB_1, the remote control adopts the double command with time-tag CP56Time2a of C_DC_TA_1, and the telemetry adopts the scaled value with time-tag CP56Time2a of M_ME_TE_1.
[0118] In the present invention, Step S4 is specifically as follows:
[0119] Step S4.1: For the i-th head-end RFID unit, the i-th tail-end RFID unit, and the i-th distributed power management device arranged in the i-th lighting section, the i-th distributed power management device serves as the host, and the i-th head-end RFID unit and the i-th tail-end RFID unit serve as external Modbus slaves of the i-th distributed power management device; the i-th distributed power management device forms a cluster with the other n - 1 distributed power management devices. The i-th distributed power management device needs to synchronize the telemetry signals, telecontrol signals, and teleprotection signals of the i-th lighting section to the other n - 1 distributed power management devices in the cluster. Among them, the telemetry signals are the voltage, current signals, and card-swipe information collected from the i-th lighting section; the telecontrol signals are the status quantity signals of the lamp switch states collected from the i-th lighting section; the teleprotection signals are the signals received from the remote control center for controlling the on / off states of the lamps in the i-th lighting section, and the signals from the card-swipe of the operator for controlling the on / off states of the lamps in the i-th lighting section.
[0120] Step S4.2: The i-th distributed power management device establishes an uplink communication management class and a downlink communication management class; as Figure 7 shown, it is the detailed structure diagram for message synchronization of each distributed power management device.
[0121] Step S4.3: The i-th distributed power management device synchronizes the telecontrol signals to the cluster through the uplink communication management class.
[0122] Specifically, Step S4.3 is as follows:
[0123] Step S4.3.1: The uplink communication management class of the i-th distributed power management device includes a primary thread communication class and a standby communication thread class.
[0124] Step S4.3.2: Under normal circumstances, the i-th distributed power management device realizes synchronizing the telecontrol signals to other clusters through the primary thread communication class.
[0125] Step S4.3.3: The i-th distributed power management device determines whether it has an abnormality. If so, it switches from the primary thread communication class to the standby communication thread class, and the standby communication thread class becomes the primary thread communication class, and realizes synchronizing the telecontrol signals to other clusters.
[0126] Among them: The method for the i-th distributed power management device to determine whether it has an abnormality is:
[0127] Step S4.3.3.1, the i-th distributed power management device maintains a node status table in the form of a linked list. The node status table is used to maintain the node information of each node in the entire cluster, including: node IP, node port, node serial number, and the status of node survival or inactivation; among them, the node serial number starts from 1 and is numbered in the order of nodes joining the cluster; when a new node joins the cluster, the node status table is updated.
[0128] Among them, the i-th distributed power management device uses the following formula to obtain the survival or inactivation status of each other node: the i-th distributed power management device periodically sends a broadcast heartbeat frame in the form of a broadcast heartbeat frame and judges whether a response frame of this node is received within the timeout period corresponding to each node; if received, update this node to the survival state; otherwise, update this node to the inactivation state; among them, the timeout period corresponding to each node is the node serial number of this node * 10 milliseconds, so as to periodically detect the survival or inactivation status of the other n - 1 nodes.
[0129] Step S4.3.3.2, the i-th distributed power management device calculates in real time according to the node status table whether the ratio of the number of nodes in the survival state to the total number of nodes in the cluster at the current moment is lower than the set ratio; if not, it means that the status of the i-th distributed power management device is normal; if so, it means that the status of the i-th distributed power management device is abnormal. In step S4.3.3, when the number of times of switching from the primary thread communication class to the standby communication thread class exceeds 3 times, the set ratio in step S4.3.3.2 is reduced.
[0130] Step S4.3.3, the i-th distributed power management device switches from the primary thread communication class to the standby communication thread class, as Figure 6 shown, is the schematic diagram of switching from the primary thread communication class to the standby communication thread class. Specifically:
[0131] Step A1, the primary thread communication class of the i-th distributed power management device has a primary ready state, a primary running state, and a primary termination state; the standby communication thread class has a standby ready state, a standby running state, and a standby termination state.
[0132] Step A2, when synchronizing telecontrol signals to other clusters through the primary thread communication class, in essence, the primary ready state and the primary running state of the primary thread communication class are enabled at the same time; the standby ready state and the standby running state of the standby communication thread class are enabled at the same time.
[0133] When the primary operating state synchronizes the received telecontrol signals to other cluster nodes, it simultaneously sends them to the primary ready state and the standby ready state; the primary ready state and the standby ready state respectively store the telecontrol signals; meanwhile, the primary ready state periodically detects whether the primary operating state and the standby operating state are normal; if the primary ready state detects that the primary operating state is abnormal and the standby operating state is normal, then perform the primary-standby switching operation in step A3; or, when the i-th distributed power management device determines that it is abnormal, it actively sends a primary-standby switching instruction to the primary thread communication class and performs the primary-standby switching operation in step A3.
[0134] Step A3, primary-standby switching operation:
[0135] Start the standby operating state. The standby operating state reads the telecontrol signals stored in the standby ready state and synchronizes the telecontrol signals to other clusters; meanwhile, kill the primary operating state and the primary ready state to make them enter the primary termination state, and then create the primary operating state and the primary ready state again when the primary thread communication class is repaired.
[0136] Step S4.4, the i-th distributed power management device synchronizes the telecommand signals and telemetry signals to the cluster through the downlink communication management class.
[0137] Step S4.4, the i-th distributed power management device synchronizes the telecommand signals and telemetry signals to the cluster through the downlink communication management class. As Figure 8 shown, it is the schematic diagram of synchronizing the telecommand signals and telemetry signals to the cluster through the downlink communication management class. Specifically:
[0138] Step S4.4.1, the downlink communication management class of the i-th distributed power management device is provided with three circular queues, a primary Modbus master class, a standby Modbus master class, and a message synchronization cluster; among them, the three circular queues are queue A, queue B, and queue C respectively;
[0139] When the downlink communication management class receives the telecommand signals and telemetry signals, it sends them all to queue A; queue A retains the telecommand signals and sends the telemetry signals to queue B; the priority of queue A is higher than that of queue B;
[0140] Step S4.4.2: The primary Modbus master class reads the remote control signal from the A queue as long as there is a remote control signal in the A queue according to the priorities of the A queue and the B queue. Meanwhile, it sends the signal to the corresponding slave and the message synchronization cluster to control the slave signal and achieve message synchronization. When the A queue is empty, the primary Modbus master class reads the telemetry signal from the B queue and sends the telemetry signal to the message synchronization cluster to achieve message synchronization. When an exception occurs in the A queue, all the remote control signals stored in the A queue are sent to the C queue. When an exception occurs in the B queue, all the remote control signals stored in the B queue are sent to the C queue for troubleshooting through the C queue.
[0141] Among them, the primary-backup switching strategy of the primary Modbus master class and the standby Modbus master class is as Figure 9 shown, including:
[0142] The entry strategies of the primary Modbus master class and the standby Modbus master class: At startup, the primary Modbus master class and the standby Modbus master class are started simultaneously. The primary Modbus master class actively sends a Modbus polling frame to the slave. After receiving the Modbus polling frame, the slave sends a Modbus response frame to both the primary Modbus master class and the standby Modbus master class. The primary Modbus master class obtains and parses the Modbus response frame returned by the slave and pushes the parsed Modbus response data into the data persistence layer for storage in memory. The standby Modbus master class determines whether it receives the Modbus response frame returned by the slave within the specified time. If not, it is speculated that the primary Modbus master class has a fault or the communication link between the primary Modbus master class and the slave has a fault. Therefore, the standby Modbus master class is switched to the primary Modbus master class to achieve primary-backup switching.
[0143] The message processing mechanism of the message synchronization cluster provided by the present invention uses an uplink communication management class and a downlink communication management class to synchronize different messages respectively, improving the real-time performance of message synchronization. At the same time, both the uplink communication management class and the downlink communication management class adopt a primary-backup switching strategy to improve the reliability of message synchronization.
[0144] A distributed power management method for railway tunnel lighting based on RFID control provided by the present invention utilizes technologies such as communication technology, embedded technology, and distributed communication algorithms to develop a set of railway tunnel lighting control and distributed power management devices that adopt RFID technology, distributed information processing mechanisms, and power management strategy calculations. After the devices are deployed, regardless of whether it is a short tunnel or a long tunnel, and regardless of how many segmented intervals there are in the tunnel, the devices in each segmented interval can control the lighting of any section or the lighting of the entire tunnel; through the means of near-field RFID, accurately locate and manage the positions of inspection, construction, and maintenance personnel in the tunnel and their usage of tunnel lighting. At the same time, the management layer can view the usage of tunnel lighting through any one of the distributed power management devices; synchronize the usage duration of tunnel lighting in each section through the distributed information processing mechanism; combine the power management strategy, that is, based on the topological distribution of tunnel lighting fixtures and the parameters of the fixtures, perform relevant configurations for different segmented intervals, so as to realize the power calculation of different sections and ultimately achieve the power management of the entire tunnel; through the power management mechanism and the RFID data storage means, implement energy-saving strategies for different operators and ultimately achieve the effect of energy conservation and emission reduction.
[0145] The above is only the preferred implementation manner of the present invention. It should be noted that for those of ordinary skill in the art of this technology, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.
Claims
1. A distributed power management method for railway tunnel lighting based on RFID control, characterized in that, Including the following steps: Step S1, establish a distributed power management architecture for railway tunnel lighting. The distributed power management architecture for railway tunnel lighting includes a remote control center and n distributed power management nodes. Specifically, the railway tunnel is sequentially divided into n lighting sections along the length direction, namely: the 1st lighting section, the 2nd lighting section,..., the nth lighting section. For the ith lighting section, where i = 1, 2,..., n, the ith head RFID unit is arranged at the starting position of the ith lighting section, the ith tail RFID unit is arranged at the ending position of the ith lighting section, and the ith distributed power management device is arranged at the middle position of the ith lighting section; The ith distributed power management device includes an ith central processor, an ith front near-field RFID unit, an ith rear near-field RFID unit, an ith DI / DO control unit, an ith network switching unit, a 1st transmission port, and a 2nd transmission port. The ith central processor is respectively connected to the ith front near-field RFID unit, the ith rear near-field RFID unit, the ith DI / DO control unit, the ith network switching unit, the 1st transmission port, and the 2nd transmission port; Among them, the 1st transmission port is used to connect to the ith head RFID unit and receive the worker card-swipe information collected by the ith head RFID unit. The 2nd transmission port is used to connect to the ith tail RFID unit and receive the worker card-swipe information collected by the ith tail RFID unit. The ith front near-field RFID unit is used to collect the worker card-swipe information of the worker in the front lighting section. The ith rear near-field RFID unit is used to collect the worker card-swipe information of the worker in the rear lighting section. The ith DI / DO control unit is used to control the on and off of the lamps in the ith lighting section. The ith network switching unit is used to synchronize messages with the other n - 1 distributed power management devices and communicate with the remote control center. The ith distributed power management device forms the ith distributed power management node; Step S2, the remote control center uniformly conducts card issuing and authorization management. Each work card has the following authorization information: the operating party, the operating tunnel, the authorized duration, and the total operating power; Step S3, each ith distributed power management device controls the lamps in the ith lighting section to be turned on or off in real time according to the situation of the workers in the ith lighting section, and calculates the total power used in the ith lighting section in real time. Specifically: Step S3.1: The i-th distributed power management device controls and manages the front section and the rear section of the i-th lighting section respectively. Specifically, the method of Step S3.2 is used to control and manage the front section of the i-th lighting section, and the power consumption P used in the front section is obtained through statistics i前 ; The method of Step S3.3 is used to control and manage the rear section of the i-th lighting section, and the power consumption P used in the rear section is obtained through statistics i后 ; Then, the method of Step S3.4 is used to obtain the total power consumption P used in the i-th lighting section i总 ; Step S3.2, control and manage the front section area of the i-th lighting section, and statistically obtain the electric energy P used in the front section area i前 : Step S3.2.1, the ith head RFID unit and the ith front near-field RFID unit are respectively located at both ends of the front area of the ith lighting section; Step S3.2.2, the ith central processor maintains and updates the lighting lamp off-time queue in real time. The specific maintenance method is: Step S3.2.2.1, initially, when there are no workers in the front area of the ith lighting section, the lighting lamp off-time queue is empty. At this time, the lighting lamps in the front area of the ith lighting section are in the off state; Step S3.2.2.2: When the i-th head-end RFID unit or the i-th front-section near-field RFID unit reads the card-swipe information of operator p1, determine whether there is an item of the lighting fixture turn-off time of operator p1 in the lighting fixture turn-off time queue. If not, execute Step S3.2.2.3; if so, execute Step S3.2.2.4; Step S3.2.2.3: It represents that operator p1 swipes the card for the first time in the front-section area of the i-th lighting section. Therefore, this card swipe is for the lighting-on control. First, determine whether the lighting fixtures in the front-section area of the current i-th lighting section are in the on state. If so, keep them on; if not, turn on the lighting fixtures in the front-section area of the i-th lighting section. Then, read the authorized duration h1 of operator p1 and the first card-swipe time t11, calculate the lighting fixture turn-off time T1 of operator p1 as T1 = h1 + t11, and add T1 = h1 + t11 to the lighting fixture turn-off time queue. At the same time, sort the lighting fixture turn-off time queue in ascending order of each lighting fixture turn-off time. Then execute Step S3.2.2.5; Step S3.2.2.4: It represents that operator p1 swipes the card for the second time in the front-section area of the i-th lighting section. Therefore, this card swipe is for the active lighting-off control. And it represents that operator p1 has not reached the authorized duration h1 after the first card swipe in the front-section area of the i-th lighting section. Therefore, determine whether there are other operators' lighting fixture turn-off time items in the current lighting fixture turn-off time queue except for the lighting fixture turn-off time item of operator p1. If so, delete the lighting fixture turn-off time item of operator p1 from the current lighting fixture turn-off time queue, update the lighting fixture turn-off time queue, and sort the lighting fixture turn-off time queue in ascending order of each lighting fixture turn-off time. Then execute Step S3.2.2.5; if not, turn off the lighting fixtures in the front-section area of the i-th lighting section, then initialize the lighting fixture turn-off time queue to be empty, and then return to execute Step S3.2.2.1; Step S3.2.2.5: When reaching the last time in the sorted lighting fixture turn-off time queue, turn off the lighting fixtures in the front-section area of the i-th lighting section, then initialize the lighting fixture turn-off time queue to be empty, and then return to execute Step S3.2.2.1; By controlling the turning on and off of the lighting fixtures in the front section of the i-th lighting section, the electric energy consumed by the lighting fixtures is statistically obtained in real time, and the electric energy P used in the front section is obtained. i前 ; Step S3.3, control and manage the rear section area of the i-th lighting section, and statistically obtain the electrical energy P consumed by the rear section area i后 ; The i-th rear-section near-field RFID unit and the i-th end RFID unit are respectively located at both ends of the rear-section area of the i-th lighting section; the i-th central processor detects and calculates the card-swipe information of the i-th rear-section near-field RFID unit and the i-th end RFID unit, and statistically obtains the electric energy P used in the rear-section area through the lighting fixture shutdown time queue that is maintained and updated in real time. i后 ; Step S3.4, use the following formula to obtain the total electric energy P used in the i-th lighting section i总 : P i总 = P i前 + P i后 Thus, the total electric energy P used in the i-th lighting section is obtained i总 ; Step S4: Each i-th distributed power management device synchronizes the lighting parameters and the total power used in the i-th lighting section to the other n - 1 distributed power management devices in real time; thus enabling the i-th distributed power management device to obtain the power usage of the other n - 1 distributed power management devices in real time, and then calculating the total power used in the tunnel in real time; Step S5: Therefore, when the remote control center sends a query message for the total power used in the tunnel to any distributed power management device, the remote control center can obtain the total power used in the tunnel.
2. The distributed power management method for railway tunnel lighting based on RFID control according to claim 1, characterized in that When counting the electric energy P used in the front section area of the i-th lighting section i前 and the electric energy P used in the rear section area i后 it also includes: Whenever the lighting fixture in the front section area of the i-th lighting section is on from the turn-on time to the turn-off time, assuming the turn-on time is t 00 , and the turn-off time is t 0end , the effective current during this time period is If the distributed resistance is R, then using the following formula, the electrical energy P between t 00 and t 0end can be obtained: Where: W represents the load power of the lighting fixtures in the front section of the i-th lighting section.
3. A distributed power management method for railway tunnel lighting based on RFID control according to claim 1, characterized in that, In step S4, each distributed power management device adopts a decentralized distributed global control and monitoring signal synchronization mechanism.
4. A distributed power management method for railway tunnel lighting based on RFID control according to claim 3, characterized in that Step S4 is specifically as follows: Step S4.1: For the i-th head-end RFID unit, the i-th end RFID unit, and the i-th distributed power management device arranged in the i-th lighting section, the i-th distributed power management device serves as the host, and the i-th head-end RFID unit and the i-th end RFID unit serve as external modbus slaves of the i-th distributed power management device; the i-th distributed power management device forms a cluster with the other n - 1 distributed power management devices. The i-th distributed power management device needs to synchronize the telemetry signals, telecontrol signals, and remote signaling signals of the i-th lighting section to the other n - 1 distributed power management devices in the cluster. Among them, the telemetry signals are the voltage, current signals, and card-swipe information collected from the i-th lighting section; the telecontrol signals are the state quantity signals of the lamp switch states collected from the i-th lighting section; the remote signaling signals are the signals for controlling the switch states of the lamps in the i-th lighting section received from the remote control center, and the signals for controlling the switch states of the lamps in the i-th lighting section from the card-swipe of the operator. Step S4.2: The i-th distributed power management device establishes an uplink communication management class and a downlink communication management class. Step S4.3: The i-th distributed power management device synchronizes the remote signaling signals to the cluster through the uplink communication management class. Step S4.4: The i-th distributed power management device synchronizes the remote control signals and telemetry signals to the cluster through the downlink communication management class.
5. A distributed power management method for railway tunnel lighting based on RFID control according to claim 4, characterized in that Step S4.3 is specifically as follows: Step S4.3.1: The uplink communication management class of the i-th distributed power management device includes a primary thread communication class and a backup communication thread class. Step S4.3.2: Under normal circumstances, the i-th distributed power management device synchronizes the remote signaling signals to other clusters through the primary thread communication class. Step S4.3.3: The i-th distributed power management device determines whether it has an abnormality. If so, it switches from the primary thread communication class to the backup communication thread class, and the backup communication thread class becomes the primary thread communication class, and then synchronizes the remote signaling signals to other clusters. Where: The method for the i-th distributed power management device to determine whether it has an abnormality is as follows: Step S4.3.3.1: The i-th distributed power management device maintains a node status table in the form of a linked list. The node status table is used to maintain the node information of each node in the entire cluster, including: node ip, node port, node serial number, and the status of node survival or inactivation. Among them, the node serial number starts from 1 and is numbered in the order of node joining the cluster. When a new node joins the cluster, the node status table is updated. Among them, the i-th distributed power management device uses the following formula to obtain the status of each other node being alive or inactivated: The i-th distributed power management device regularly sends a broadcast heartbeat frame in the form of a broadcast heartbeat frame, and determines whether a response frame of this node is received within the timeout period corresponding to each node; if received, update this node to the alive state; otherwise, update this node to the inactivated state; among them, the timeout period corresponding to each node is the node number of this node * 10 milliseconds, thereby regularly detecting the status of the other n-1 nodes being alive or inactivated. Step S4.3.3.2, the i-th distributed power management device calculates in real time according to the node status table whether the ratio of the number of nodes in the alive state to the total number of cluster nodes at the current moment is lower than the set ratio; if not, it means that the status of the i-th distributed power management device is normal; if so, it means that the status of the i-th distributed power management device is abnormal.
6. The distributed power management method for railway tunnel lighting based on RFID control according to claim 5, characterized in that, In step S4.3.3, when the number of times of switching the primary communication thread class to the standby communication thread class exceeds 3 times, the set ratio in step S4.3.3.2 is increased.
7. A distributed power management method for railway tunnel lighting based on RFID control according to claim 5, characterized in that Step S4.3.3, the i-th distributed power management device switches from the primary communication thread class to the standby communication thread class, specifically: Step A1, the primary communication thread class of the i-th distributed power management device has a primary ready state, a primary running state, and a primary terminated state; the standby communication thread class has a standby ready state, a standby running state, and a standby terminated state. Step A2, when synchronizing the tele-signal to other clusters through the primary communication thread class, in essence, the primary ready state and the primary running state of the primary communication thread class are enabled simultaneously; the standby ready state and the standby running state of the standby communication thread class are enabled simultaneously. The primary running state sends the received tele-signal to the primary ready state and the standby ready state simultaneously when synchronizing it to other cluster nodes. The primary ready state and the standby ready state store the tele-signal respectively; at the same time, the primary ready state regularly detects whether the primary running state and the standby running state are normal respectively. If the primary ready state detects that the primary running state is abnormal and the standby running state is normal, perform the primary-standby switching operation in step A3; or, when the i-th distributed power management device determines that it is abnormal, actively send a primary-standby switching instruction to the primary communication thread class and perform the primary-standby switching operation in step A3. Step A3, the primary-standby switching operation: Start the standby running state, and the standby running state synchronizes the tele-signal to other clusters by reading the tele-signal stored in the standby ready state; at the same time, kill the primary running state and the primary ready state to make them enter the primary terminated state, and then create the primary running state and the primary ready state again when the primary communication thread class is repaired.
8. A distributed power management method for railway tunnel lighting based on RFID control according to claim 4, characterized in that Step S4.4, the i-th distributed power management device synchronizes the remote control signal and the telemetry signal to the cluster through the downlink communication management class, specifically: Step S4.4.1, the downlink communication management class of the i-th distributed power management device is provided with three circular queues, a primary modbus master class, a standby modbus master class, and a message synchronization cluster; among them, the three circular queues are queue A, queue B, and queue C respectively. When the downlink communication management class receives a remote control signal and a telemetry signal, both are sent to Queue A; Queue A retains the remote control signal and sends the telemetry signal to Queue B; the priority of Queue A is higher than that of Queue B; Step S4.4.2: The primary modbus host class, according to the priorities of Queue A and Queue B, as long as there is a remote control signal in Queue A, reads the remote control signal and simultaneously sends it to the corresponding slave and the message synchronization cluster to control the slave signal and achieve message synchronization; when Queue A is empty, the primary modbus host class reads the telemetry signal in Queue B and sends the telemetry signal to the message synchronization cluster to achieve message synchronization; when an exception occurs in Queue A, all the remote control signals stored in Queue A are sent to Queue C; when an exception occurs in Queue B, all the remote control signals stored in Queue B are sent to Queue C for troubleshooting through Queue C; Among them, the primary and standby switching strategy of the primary modbus host class and the standby modbus host class is: The entry strategy of the primary modbus host class and the standby modbus host class: At startup, the primary modbus host class and the standby modbus host class are started simultaneously. The primary modbus host class actively sends a modbus poll frame to the slave. After receiving the modbus poll frame, the slave sends a modbus response frame to both the primary modbus host class and the standby modbus host class at the same time; the primary modbus host class obtains and parses the modbus response frame returned by the slave and pushes the parsed modbus response data into the data persistence layer and stores it in memory; the standby modbus host class determines whether it receives the modbus response frame returned by the slave within the specified time. If not, it is inferred that the primary modbus host class has a fault or the communication link between the primary modbus host class and the slave has a fault. Therefore, the standby modbus host class is switched to the primary modbus host class to achieve primary and standby switching.
Citation Information
Patent Citations
Corridor lighting system based on intelligent analysis and calculation processing of big data
CN108591887A
Novel energy-saving tunnel lighting control system and design method thereof
CN108650734A