Automatic lamp searching method for rail transit fire emergency evacuation indication system
By designing automatic search and fault detection functions of lamps in the rail transit fire evacuation system, the problems of cumbersome address settings and difficulty in fault detection in the existing system are solved, the construction efficiency and intelligence of the system are improved, and the workload and cost are reduced. .
Patent Information
- Application Number
- CN202510037984.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-02-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing rail transit fire evacuation system has problems such as cumbersome address settings, prone to errors, long inspection time, and difficulty in detecting faults in production, installation and debugging, daily inspections, and lamp replacement, resulting in large workloads and low efficiency.
An automatic search method for lamps for rail transit fire emergency evacuation indication system is designed. By designing independent loop control in the system hardware, the address of the meter mark and the number of meter marks is combined into one, and the meter marks can be set and the address is consistent with the meter marks. , realize automatic search and layout of system addresses. At the same time, the infrared receiving circuit of the lighting lamp and the automatic detection circuit of the digital tube code segment fault are used to realize the setting of the lighting lamp address and the automatic detection of the number of meters, reducing manual operation.
The workload of lamp address copying, controller interface layout, daily inspection and lamp replacement has been greatly reduced, the system construction efficiency and intelligence level have been improved, and production and maintenance costs have been reduced.
Smart Images

Figure CN119450849A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rail transit fire fighting, and in particular to an automatic lamp searching method of a rail transit fire fighting emergency evacuation indication system. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] In the prior art, the evacuation system includes a controller (including a computer and monitoring software, a display), the controller is connected to the power supply through a communication line, and the power supply is connected to the lamp through the communication line (such as Figure 1 As shown in the figure, the lamps include evacuation indicator lamps (hereinafter referred to as indicator lamps) and emergency lighting lamps (hereinafter referred to as lighting lamps). In the underground section of the subway, considering the dense population, in order to improve the escape efficiency and avoid panic, evacuation indicator lamps with meter marks (hereinafter referred to as meter marks) are installed to display the distance between the current position and the safe exit. At the same time, lighting lamps are installed. When an abnormal situation occurs, people in the section can know their position clearly, avoid panic, and escape quickly with the help of the lighting provided by the lighting lamps.
[0004] The current system production and installation and debugging process is as follows: the lamps come with their own addresses when they leave the factory. To prevent address conflicts, the address bits are relatively long, up to 32 bits, and the corresponding value is 4,294,967,296. After the meter mark lamp is installed, the meter mark number is set using the meter mark setter according to the actual distance on site, and the address of the current lamp and the set meter mark number are recorded in the paper drawing. After the lighting lamp is installed, the address code is recorded in the paper drawing. The designer designs the interface of the monitoring host in the monitoring room, places the lamps in the corresponding positions in the drawing one by one, and enters the addresses of the meter mark lamps and lighting lamps and the meter mark number corresponding to the meter mark lamp. After the entry is completed, the controller sends the lamp information to the corresponding power supply, and the power supply shakes hands with the lamp based on this information. The deployment of the entire system is completed. After the installation and debugging is completed, the power supply inspects the lamp status, and transmits the returned status and the status of the power supply itself to the monitoring host, and the monitoring host displays the corresponding information on the interface based on these status parameters.
[0005] However, the above system has the following problems: (1) Production stage: The address of the lamps needs to be set before they leave the factory, which takes up a lot of work and also brings workload to warehousing, delivery and other links.
[0006] (2) Problem 1 during the on-site debugging phase: After the meter mark number is set on site, the address code and the set meter mark number need to be manually copied. This is a large workload and is prone to copying errors, which often requires rework and results in a large workload.
[0007] (3) Problem 2 during the on-site debugging phase: The lighting fixture only has address information and is installed at a high location. Copying the address is a huge workload and is easy to make mistakes.
[0008] (4) Problem 3 during the on-site debugging phase: During the system host layout phase, the corresponding lamps need to be placed in the corresponding positions in the drawings, and then the corresponding lamps need to be found according to the copied meter mark lamp addresses and meter mark numbers and then entered one by one, which is a lot of work. After entering, the lamp interface must display both the address and the meter mark number. First, there is too much data to display, and second, it is difficult to distinguish.
[0009] (5) Problem 1 during operation: The lamp address has many digits, which results in a long inspection time (because the address is confirmed first during the inspection).
[0010] (6) Problem 2 in the operation phase: After the system is installed, the communication anomalies of the lamps and the lamp's own faults (such as the open circuit or short circuit of the arrowhead's lamp beads) can be detected and uploaded. However, due to the large number of digital tubes and considerations from the perspective of cost and power consumption, the current digital tubes are all dynamic displays. If the digital tube code segment is abnormal, the current lamps cannot be detected and manual inspections must be carried out during nighttime shutdowns, which brings a large workload.
[0011] (7) Maintenance and replacement: If the above-mentioned lamps have problems and need to be replaced, the efficiency of on-site search is low if they are searched by address. In addition, on-site replacement requires setting two numbers: address and meter mark number.
[0012] (8) Others: The power supply has a maximum of 8 circuits. The current general solution is to use centralized control for the 8 circuits or divide them into two circuits at most (each circuit is responsible for 4 lines). First, assuming that the address can be automatically searched, all circuits need to be searched at once, which is inefficient. Second, the circuits are tightly coupled, and an abnormality in one circuit will cause other circuits to fail to work. Third, it is difficult to distinguish and find the lamps on the on-site circuits. Summary of the invention
[0013] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a method for automatically searching for lamps in a rail transit fire emergency evacuation indication system. The present invention greatly reduces the workload of lamp address copying, controller interface layout, daily inspection, and lamp replacement, and improves the efficiency of system construction and the intelligence level of the system.
[0014] In order to achieve the above object, the present invention adopts the following technical solution: The first aspect of the present invention designs the system hardware, including independent circuit control of power supply and lamps, combining the address of meter mark lamps with the number of meter marks, and the lamps can be set with meter marks and the meter marks are consistent with the addresses. This is the basis for realizing automatic search and layout of system addresses.
[0015] The system hardware is used to realize the circuit design of lamps with intelligent functions, including the lighting control circuit and the automatic detection circuit of the digital tube code segment fault of the meter mark lamp; The lighting lamp control circuit comprises: a first single chip computer and a first power supply connected thereto, an infrared receiving circuit, a first transistor and an LED driving circuit, wherein the base of the first transistor is connected to the first single chip computer, the collector of the first transistor is connected to the LED driving circuit, the emitter of the first transistor is grounded, and the infrared receiving circuit is connected to the LED driving circuit; The automatic detection circuit for the digital tube code segment fault of the meter standard lamp includes: a second single-chip microcomputer and a second power supply connected to it, two voltage-dividing networks, two 8-to-1 switches and a meter standard lamp control circuit, each voltage-dividing network is connected to the meter standard lamp control circuit, and the voltage-dividing network is connected to the 8-to-1 switch.
[0016] Furthermore, each meter-mark lamp control circuit includes an input resistor, a second transistor, a meter-mark lamp and an output resistor, one end of the input resistor is connected to the second single-chip microcomputer, and the other end is connected to the base of the second transistor, the emitter of the second transistor is grounded, the collector of the second transistor is connected to one end of the meter-mark lamp, the other end of the meter-mark lamp is connected to one end of the output resistor, and the other end of the output resistor is connected to the second single-chip microcomputer.
[0017] Furthermore, the meter-mark lamp control circuit is designed with a digital tube driving circuit for detecting each code segment and alarming when a code segment is abnormal.
[0018] Furthermore, the LED driving circuit is used to drive the lighting lamp, and the lighting lamp meter mark setting control software is designed. After the lighting lamp receives the meter mark information, the remote control transmits the set meter mark number, and the lighting lamp parses the received data. If it is judged to be a meter mark signal, if so, the IS timer is turned on, and the lamp is continuously controlled to light up in a mode of lighting for 1S and off for 1S according to the received data, and the timer is turned off; if it is judged not to be a meter mark signal, the set number is continuously lit, and after observing that the number is correct, a confirmation signal is transmitted. After the lamp receives the confirmation signal, the bit is stored in the EEROM as the address; the global variable of the number of received data is +1, and the operation is performed in sequence until the 4-digit meter mark number is set, and the variable of the number of received bits is cleared to 0.
[0019] The second aspect of the present invention designs automatic address search and automatic lamp layout, and the implementation process includes: The controller sends a broadcast command, and when it determines that the communication is normal, it first performs a range search, and then a precision search; The range search is: searching the left and right sides of each lamp; The precise search is as follows: starting from the center value, searching in the left and right ranges by decreasing 1 in sequence until the lamp is found; after the first lamp is successfully searched, subsequent lamps are searched in sequence according to the known standard spacing of lamps.
[0020] Furthermore, the range search also includes: the left search range of the first lamp is Lm1×k1 to Lm1, and the right search range is Lm1+1 to Lm1×k2; the left search range of the second lamp is the actual number of meters of the first lamp successfully searched, Lm1+1 to Lm1+S(T), and the right search range is Lm1+S(T)+1 to Lm1+2S(T)-1, and subsequent lamps are searched in turn according to the above principles; wherein Lm1 represents the starting position of the lamp, k1 ranges from [0,1], k2 ranges from [1,2], S represents the known standard spacing of meter-marked lamps, and T represents the known standard spacing of lighting lamps.
[0021] Furthermore, the precise search also includes: calculating the distance L between the second lamp and the first lamp in the drawing, and the search range of the second lamp is the known meter mark number of the first lamp and twice the calculated interval; that is, the range of the first range search is Lm1+1 to Lm1+L, and the range of the second range search is Lm1+L+1 to Lm1+L×2; searching according to the above method; and so on, until all lamps are searched; wherein Lm1 represents the starting position of the lamp.
[0022] Furthermore, after the search is completed, including: If M = P, Q = 0, the search is completely successful, and the number of lamps matches the drawing, the lamp addresses are assigned and stored in the database; If M+Q=P, the search is complete, the actual number of lamps is consistent with the number on the drawing, the correct M lamps are assigned values and written into the database, and the remaining Q lamps are waiting for user confirmation. After on-site inspection, repair and replacement, search again for the lamps that were abnormal in the first search, and after the search is successful, the values are assigned and stored in the database; If M>P, the search is successful, and the actual number of lamps is greater than the number in the drawing, the monitoring software automatically adds MP lamps, and assigns the meter mark numbers in sequence and stores them in the database; Among them, M represents the number of searched lamps, P represents the number of read lamps, and Q represents the number of abnormal lamps in the search process.
[0023] Furthermore, the method also includes: drawing a CAD drawing and reading a scale; searching for a controller, determining a position, searching for a power supply position, and storing the position in a database; determining the communication line connected to the power supply, finding the first lamp connected to the power supply along the first line, and recording the coordinates; calculating an estimated distance based on the coordinates and the scale; searching for lamps connected to the current circuit in turn until the last lamp is found, recording the coordinates, calculating the distance, and storing the position in a database; searching all circuits and all power supplies according to the above method; replacing the icons of all devices in the CAD drawing with icons in the system; calling an automatic lamp address search program, opening each circuit of each power supply in turn, searching for lamps, searching for lamps according to the calculated distance and the algorithm until the search is completed and stored in a database; automatically placing lamps at corresponding positions in the drawing and displaying the actual number of meters based on the database serial number, actual return address, and number of meters.
[0024] The third aspect of the present invention is to design a meter mark lamp code segment fault automatic detection technology, including: The normal sampling voltage of the meter mark lamp is the difference between the output voltage of the microcontroller port and the sampling voltage at the lower end of the resistor. If the difference is compared with the specified threshold, the error should not exceed 10%; if the detection voltage is approximately equal to 0, the code segment is judged to be open circuit; if the detection voltage is approximately equal to the port output voltage, the code segment is judged to be short circuit.
[0025] Compared with the prior art, the present invention has the following beneficial effects: 1. The meter-marked lamps and lighting lamps use the set meter-marked number as the lamp address. The lamps do not need to set long addresses when they leave the factory, which improves production efficiency and reduces the workload of address code management for storage, transportation, and on-site installation of lamps. At the same time, it reduces the complexity of lamp addresses and indirectly improves the efficiency of lamp inspection.
[0026] 2. The present invention designs a coding principle for the system. After the lamp has set the meter mark number and searched successfully, the system automatically associates the control, power supply, and loop information and forms a unique address within the system.
[0027] 3. The meter mark setting function is added to the lighting lamp, and an infrared receiving circuit is added. Only 4 digits are required for setting, and the number of meter marks can be set with reference to the relative position of the meter mark lamp. Considering the increased cost of designing a bidirectional circuit and the limited number of uses, information feedback is realized through the lighting's own lighting and extinguishing function, and the address setting and confirmation of the lighting lamp is realized at a low cost.
[0028] 4. A single-loop control circuit is designed in the power supply to realize the association between lamps and loops, which can realize the control of a single loop, and the searched lamps and loops can correspond one to one.
[0029] 5. Based on the above work, the controller calculates the position of the floor plan lamps and is used to design an address search strategy for meter-marked lamps and lighting lamps with on-site meter-marked numbers (addresses), to achieve automatic search of lamp addresses, and to use range search and precise search in combination to improve the search speed while ensuring that no lamp is missed.
[0030] 6. After the controller confirms the meter mark information of all lamps, it will add the related information, and then combine it with the plane drawing to automatically place the lamp icon at the corresponding position and display the address information of the lamp, realizing the functions of controller monitoring interface lamps, automatic layout, automatic alignment, and automatic assignment.
[0031] 7. The present invention realizes automatic monitoring and alarm of digital tube code segment anomalies. Taking into account the dynamic scanning of the digital tube, the time left for a single code segment is short. In order to improve the detection accuracy, an interval sampling method is adopted (it can also be supplemented by static sampling seat detection during nighttime shutdown to further improve the accuracy), thereby improving the detection accuracy.
[0032] 8. Through the above work, the workload of lamp address copying, controller interface layout, daily inspection, and lamp replacement is greatly reduced, and the efficiency of system construction and the intelligence level of the system are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0034] Figure 1 It is a circuit diagram of a communication loop in an existing evacuation system shown in the present invention; Figure 2 This is a plan view of the layout of lamps in a certain section of a subway shown in the present invention; Figure 3 is a circuit diagram of a lighting lamp control circuit shown in the present invention; Figure 4 The circuit diagram of the automatic detection circuit of the digital tube code segment fault shown in the present invention is Figure 5 It is a flow chart of the confirmation procedure after the lighting lamp receives the meter mark information shown in the present invention. DETAILED DESCRIPTION
[0035] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0036] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0037] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0038] Embodiment 1 like Figure 3 , Figure 4 As shown, this embodiment provides a rail transit fire emergency evacuation indication system, including: a lighting control circuit and a digital tube code segment fault automatic detection circuit of a meter mark light, the lighting control circuit includes: a first single-chip microcomputer and a first power supply, an infrared receiving circuit, a first transistor and an LED driving circuit connected thereto, the base of the first transistor is connected to the first single-chip microcomputer, the collector of the first transistor is connected to the LED driving circuit, the emitter of the first transistor is grounded, and the infrared receiving circuit is connected to the LED driving circuit; The automatic detection circuit for the tube code segment fault of the meter-standard lamp includes: a second single-chip microcomputer and a second power supply connected thereto, two voltage-dividing networks, two 8-to-1 switches and a meter-standard lamp control circuit, each voltage-dividing network is connected to the meter-standard lamp control circuit, and the voltage-dividing network is connected to the 8-to-1 switch.
[0039] Furthermore, each meter-mark lamp control circuit includes an input resistor, a second transistor, a meter-mark lamp and an output resistor, one end of the input resistor is connected to the second single-chip microcomputer, and the other end is connected to the base of the second transistor, the emitter of the second transistor is grounded, the collector of the second transistor is connected to one end of the meter-mark lamp, the other end of the meter-mark lamp is connected to one end of the output resistor, and the other end of the output resistor is connected to the second single-chip microcomputer.
[0040] The present embodiment is described in detail below: like Figure 3 As shown, the power supply is provided with 8 loops, each loop is provided with a communication circuit and a control circuit, which is controlled by a single-chip microcomputer. Each loop circuit is a conventional two-wire communication circuit and no special description is given here.
[0041] The power supply of the present invention is provided with 8 loops, and each loop is controlled separately. On this basis, the system constructs the address of the lamp in the entire subway monitoring system, making its address unique. For example, on the basis of the known meter mark number (there may be the same meter mark number at each station), the address of the lamp in the system is unique by increasing the number of loops, power supply address, and controller address. However, in the actual search process, a unique address is not required, only the address of the corresponding loop is required, which greatly improves the search efficiency.
[0042] The system considers the address setting of all devices. Considering the three-level architecture of the system, there is only one site controller, no more than 100 power supplies, the total number of meter markers and lighting lamps will not exceed 1,000, and the number of meter markers and lighting lamps carried by a single power supply will not exceed 256. Therefore, the proposed address coding principle is: There are no more than 32 controllers on a line, so the address is set to 5 bits, with a maximum of 32; There are no more than 16 power supplies in one site, so the address is set to 4 bits, with a maximum of 16; The number of circuits of a power supply does not exceed 8, so the number of power supply circuits is set to 3 digits, with a maximum of 8; The number of lamp types does not exceed 128, so the lamp type is set to 8 bits, with a maximum of 128; The maximum meter mark of the lamp can be displayed as 9999, but the actual maximum is 3000m, so the meter mark of the lamp is set to 12 digits, with a maximum of 4096, which meets the requirements; After the above address encoding, the address of the lamp in the loop is only 12 bits, and the address in the system is 32 bits, so the uniqueness is guaranteed.
[0043] The present invention takes into account that the meter mark number of the meter mark lamp is unique, so the meter mark lamp uses the meter mark number as the address (the meter mark number is set on site, the highest number is 9999, and only 14 digits are required, and the lamp automatically stores the meter number as the address). In this way, the address and the meter mark number are combined into one, the number of digits of the address is also reduced, and there is no need to set the address at the factory, thereby reducing the corresponding workload of debugging, warehousing, delivery, and on-site installation.
[0044] In the controller design interface, enter the 5-digit address of the controller, and then enter the power supply address and the corresponding 7-digit loop code. The system will recalculate the address information according to the following principles to ensure that the address is unique in the entire system. The address of the power supply in the system is the controller address (5-digit) + power supply address (4-digit). The address of the lamp in the controller is the controller address (5-digit) + power supply address (4-digit) + loop code (3-digit) + lamp type (8-digit) + lamp address (12-digit).
[0045] After the above top-level design, although the address of the lamp in the controller is very complex, for the power supply, the address of each loop lamp is 12 bits, and it only cares about the address (12 bits) corresponding to a certain loop lamp during inspection. Therefore, the inspection time is shorter and the inspection speed is improved.
[0046] Embodiment 2 This embodiment provides a method for automatically searching for lamps in a rail transit fire emergency evacuation indication system, which is applied to the rail transit fire emergency evacuation indication system described in Embodiment 1, and includes: The controller sends a broadcast command, and when it determines that the communication is normal, it first performs a range search, and then a precision search; The range search is: searching the left and right sides of each lamp; The precise search is as follows: starting from the center value, searching in the left and right ranges by decreasing 1 in sequence until the lamp is found; after the first lamp is successfully searched, subsequent lamps are searched in sequence according to the known standard spacing of lamps.
[0047] The present embodiment is described in detail below: 1. Automatically read drawing information and realize automatic layout function Import CAD drawings, read the scale, and read the block information (manual assistance is required to determine the controller, power supply, evacuation indicator light, variable evacuation exit, safety exit, and emergency lighting).
[0048] Search for the controller, determine the location, search for the power supply (sub-controller) location, and store it in the database; determine the communication line connected to the power supply (loop, coded in order from top to bottom and from left to right, each power supply has a maximum of 8 loops), find the first lamp connected to it along the first line, and record the coordinates; calculate the estimated distance based on the coordinates and scale; search for the lamps connected to this loop in turn until the last lamp is found, record the coordinates, calculate the distance, and store it in the database; search all loops and all power supplies according to the above method; replace the icons of all devices with icons in the system; call the automatic search for lamp addresses, open each loop of each power supply in turn, search for lamps, search for lamps according to the calculated distance and algorithm, until the search is completed and stored in the database; according to the database serial number, actual return address, and number of meters, automatically place lamps at the corresponding positions in the drawing and display the actual number of meters.
[0049] For example, Figure 2 As shown, the power supply has 3 circuits, including 2 circuits for lighting lamps and 1 circuit for meter mark lamps. The distance from the first circuit of the power supply output to the first lighting lamp is 50m, the layout interval of the lighting lamps is 10m, and the total length of the circuit is 550m. The distance from the second circuit of the power supply output to the first lighting lamp is 55m, the layout interval of the lighting lamps is 10m, and the total length of the circuit is 555m. The distance from the third circuit of the power supply output to the first meter mark lamp is 50m, the layout interval of the meter mark lamps is 10m, and the total length of the line is 550m.
[0050] In order to solve the heavy workload caused by manual layout and manual entry of addresses and meter numbers, the controller is designed with an automatic layout function, which can realize automatic positioning and layout of lamps.
[0051] 2. Implementation of lighting lamp meter standard setting Hardware: See Figure 3The infrared receiving and control schematic diagram of the lighting lamp includes a power supply, a single-chip microcomputer, an infrared receiving circuit, an LED driving circuit, a transistor and a light-emitting diode group; wherein, the single-chip microcomputer is provided with an infrared signal receiving port and an LED driving control port, the infrared signal receiving port is connected to the infrared receiving circuit, the LED driving control port is connected to the base of the transistor, the collector of the transistor is connected to the LED driving circuit, the LED driving circuit is connected to the light-emitting diode group, the light-emitting diode group and the infrared receiving circuit are both connected to the emitter of the transistor, the emitter of the transistor is grounded, and the power supply is connected to the single-chip microcomputer, the infrared receiving circuit and the LED driving circuit.
[0052] The present invention adds a conventional infrared receiving circuit, and the signal is transmitted to the single-chip microcomputer for receiving the setting of the meter mark number. A transistor Q1 controlled by the single-chip microcomputer is provided for controlling the on and off of the lighting circuit.
[0053] The lighting lamp did not have the meter mark function before. The lighting lamp of the present invention adds a very low-cost infrared receiving circuit, and then can also receive the address setting. The success of the reception is confirmed by controlling the number of times the lamp is lit through specially designed software. In this way, the lighting lamp does not need to set the address at the factory, and the on-site address is basically consistent with the actual distance. By comparing it with the meter mark number of the evacuation indicator light, the corresponding lamp can be quickly found, reducing the search workload when the lamp fails and facilitating identification.
[0054] Software: Design lighting meter mark setting control software, lighting meter mark information after receiving the confirmation process flow chart, see Figure 5 The basic process is: the remote control transmits the set meter mark number (refer to the meter mark number of the nearest meter mark lamp), the lighting lamp parses the received data, if it is judged to be a meter mark signal, if so, turn on the IS timer, according to the received data, the lamp is continuously controlled to light up in a mode of 1S on and 1S off, and the timer is turned off; if it is judged not to be a meter mark signal, the set number is continuously lit, and after the human eye observes that the number is correct, a confirmation signal is transmitted. After receiving the confirmation signal, the lamp stores the bit in the EEROM as the address. The global variable of the number of received data is increased by 1, and the operation is carried out in sequence until the 4-digit meter mark number is set, and the variable of the number of received bits is cleared to 0.
[0055] 3. Controller automatically searches for lamp addresses and implements automatic layout The controller automatically searches for lamps and automatically locates the program flow chart. The basic process is as follows: First, the controller sends a command, and the power control circuit 1 enters the search mode.
[0056] (1) The controller first sends a broadcast command, and then determines whether the communication is normal through the reply signal. If the communication is normal, it performs subsequent search work.
[0057] (2) The controller first calculates or reads various data, including: Read the number of lamps P Search lamp quantity M=0 The number of abnormal lamps in the search process Q=0 The starting position of the lamp Lm1 calculated according to the drawing The lamp end position Lmn calculated according to the drawing Known standard spacing S of meter lamps Known standard spacing T of lighting lamps (3) Search - range search and precise search Range search: In order to improve the search efficiency of the first lamp (the position of the first lamp is not very certain) and to avoid missing lamps, the program will first perform a range search. The basic method is: the left search range of the first lamp is Lm1×0.4 (settable) to Lm1, and the right search range is Lm1+1 to Lm1×1.6 (settable); the left search range of the second lamp is the actual number of meters of the first lamp that was successfully searched, Lm1+1 to Lm1+S (T), and the right search range is Lm1+S (T) +1 to Lm1+2S (T) -1. Subsequent lamps are searched in accordance with the above principles; Precise search: If multiple lamps respond, or the lamp meter number is not in the center value, you need to search accurately. The basic method is to start from the center value and search in the left and right ranges by subtracting 1 until the lamp is found.
[0058] After the first lamp is successfully searched, the subsequent lamps can be searched in sequence according to the known standard spacing of the lamps. The search can be performed by range search first, and then precision search, to ensure that no lamps are missed.
[0059] Calculate the distance L between the second lamp and the first lamp in the drawing. The search range of the second lamp is the known meter mark number of the first lamp (if the first lamp is not found, start from Lm1+1, and so on, all start searching from the standard meter mark number of the previous lamp that has not been searched) and twice the calculated interval. That is, the range of the first range search is Lm1+1 to Lm1+L, and the range of the second range search is Lm1+L+1 to Lm1+L×2. Search according to the above method. And so on, until the Pth lamp is searched.
[0060] Due to the complexity of the project, the location and quantity of lamps installed on site may change slightly (generally they will increase, not decrease). The above search method can ensure that no meter numbers are missed in the lamp search.
[0061] The address of the lamp is set on site using the remote control. The controller is designed with an automatic address search function. The loop controller of the power supply is designed to control a total of 8 loops individually. In this way, the controller can control each loop of each power supply in turn, search for the lamp address according to the designed search method, and match the searched address (meter number) with the lamp position in the drawing one by one, automatically assign values, and automatically display the meter number (address) of the lamp on the interface.
[0062] The search for lamps can be done using the most primitive method, such as starting from 1 and searching for lamps in units of 1 meter. Although lamps will not be missed, it takes a long time and is inefficient. Therefore, a fast search method is designed in the system. The location of the lamps can be basically determined by the number of lamps known in the controller drawing, the initial distance calculated according to the scale, the standard interval, and the special interval. That is, the controller sends an address range, and those who respond will search one by one within this range. Otherwise, the search range will be further expanded until the lamp is found.
[0063] (4) After the search is completed, the judgment, adjustment and lamp value assignment are stored in the database: If M = P, Q = 0, it proves that the search is successful and the number of lamps matches the drawing. Assign the lamp addresses and store them in the database.
[0064] If M+Q=P, it means that the search is complete and the actual number of lamps matches the number on the drawings. The search results are displayed on the screen, the correct M lamps are assigned values and written into the database, and the remaining Q lamps are waiting for user confirmation. After on-site inspection, repair and replacement, search again (only search for lamps with abnormalities in the first search). After a successful search, the values are stored in the database.
[0065] If M>P, it proves that the search is completely successful, and the actual number of lamps is greater than the number in the drawing, the monitoring software will automatically add MP lamps, and assign the meter numbers in sequence and store them in the database.
[0066] If you replace a lamp, since the meter number is the address and the meter number of the lighting lamp is based on the meter lamp, it is very efficient to find the corresponding lamp on site. And after the lamp is replaced, you only need to reset the meter number of the lamp on site. The system will automatically shake hands with the lamp.
[0067] 4. Realization of automatic detection function of code segment fault of meter mark lamp digital tube Hardware: See Figure 4, the single-chip microcomputer adds a voltage divider network and two 8-to-1 switches on the basis of the conventional digital tube driving circuit, respectively connecting the code segment control output port and the voltage at the lower end of the driving resistor. And connected to the two AD ports of the single-chip microcomputer. Specifically, the rail transit fire emergency evacuation indication system includes: a single-chip microcomputer, two sets of voltage divider networks and 8-to-1 switch combinations connected to each other, several parallel lamp control circuits and power supplies, the single-chip microcomputer is respectively connected to the voltage divider network, the 8-to-1 switch, the lamp control circuit and the power supply; the voltage divider network is connected to the lamp control circuit; each of the lamp control circuits includes an input resistor (R9-R16), a transistor (Q1-Q8), an LED (LED1-LED8) and an output resistor, one end of the input resistor is connected to the single-chip microcomputer, the other end is connected to the base of the transistor, the emitter of the transistor is grounded, the collector of the transistor is connected to one end of the output resistor, and the other end of the output resistor is connected to the single-chip microcomputer. Among them, the single-chip microcomputer is provided with an 8-to-1 control port, AD detection port 1, AD detection port 2, a code segment control port and a digital tube control port. The 8-to-1 control port is connected to an 8-to-1 switch, AD detection port 1 is connected to a voltage divider network, AD detection port 2 is connected to another voltage divider network, the code segment control port is connected to a voltage divider network and an output resistor, and the digital tube control port is connected to an input resistor.
[0068] Software: Initialize open circuit threshold V0, short circuit threshold V s , sampling times k=0; number of digital tubes i=0, digital tube segment j=0; turn on the driver of the ith digital tube; turn on the 10ms timer; send the 8-way analog switch that controls the ith digital tube and the jth digital tube segment to turn on the corresponding channel, and turn on the 1ms timer; collect the voltage across the resistor and store it in the array ij, if the 1ms timing is up, then j+1, when j>7, k+1, when k>the specified number of times, calculate the sampling average value; compare with the threshold value to give the result.
[0069] Specifically, there are 8 digital tubes, and the display time of each digital tube is 10ms. Considering that the real-time requirement of the detection is very low, two 8-way switches are used to collect the output voltage of the microcontroller port and the lower end voltage of the resistor connected to it within 10ms, and store them in the corresponding array. Considering that the sampling time is short each time, it is collected once each time it is lit, and a total of 18 samples are collected. Then the maximum and minimum values are removed, and the remaining 16 data are averaged. Then judge the port output voltage. If the voltage is abnormal, it means that there is a problem with the port itself. If the port voltage is normal, calculate the difference between the port voltage and the lower end voltage of the corresponding resistor, and judge the state of each code segment of the digital tube based on the voltage difference.
[0070] The normal sampling voltage should be: IR = MCU port output voltage - resistor lower end sampling voltage, and the error compared with the specified threshold should not exceed 10%. If the detection voltage is approximately equal to 0, it can be judged that the code segment is open circuit, and if the detection voltage is approximately equal to the port output voltage, it can be judged that the code segment is short circuit.
[0071] The meter mark light is designed with a digital tube drive circuit that can detect each code segment and alarm when the code segment is abnormal, eliminating the need for manual inspection.
[0072] More specifically, considering that the real-time requirements for meter mark detection are very low, based on the abnormalities found in dynamic monitoring, static self-test can be started when the line is shut down at night, and the display time of each digital tube can be extended to 1S, and then calculated and judged according to the above method. If there is still a problem, the fault can be confirmed and displayed on the monitoring interface.
[0073] In this embodiment, the voltage divider network adopts an existing voltage divider circuit, and its specific circuit structure is not an improvement point of the present invention.
[0074] In addition to the AD sampling method described in the present invention, a differential amplifier can also be used, but it is not as flexible as the AD sampling method in the present invention. Different thresholds can be set according to different LEDs, which is convenient for design and debugging.
[0075] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A rail transit fire emergency evacuation indication system, characterized in that: include: Lighting lamp control circuit and meter mark lamp digital tube code segment fault automatic detection circuit; The lighting lamp control circuit comprises: a first single chip computer and a first power supply connected thereto, an infrared receiving circuit, a first transistor and an LED driving circuit, wherein the base of the first transistor is connected to the first single chip computer, the collector of the first transistor is connected to the LED driving circuit, the emitter of the first transistor is grounded, and the infrared receiving circuit is connected to the LED driving circuit; The automatic detection circuit for the digital tube code segment fault of the meter standard lamp includes: a second single-chip microcomputer and a second power supply connected to it, two voltage-dividing networks, two 8-to-1 switches and a meter standard lamp control circuit, each voltage-dividing network is connected to the meter standard lamp control circuit, and the voltage-dividing network is connected to the 8-to-1 switch.
2. The rail transit fire emergency evacuation indication system according to claim 1 is characterized in that: Each meter-mark lamp control circuit includes an input resistor, a second transistor, a meter-mark lamp and an output resistor. One end of the input resistor is connected to the second single-chip microcomputer, and the other end is connected to the base of the second transistor. The emitter of the second transistor is grounded, and the collector of the second transistor is connected to one end of the meter-mark lamp. The other end of the meter-mark lamp is connected to one end of the output resistor, and the other end of the output resistor is connected to the second single-chip microcomputer.
3. The rail transit fire emergency evacuation indication system according to claim 1, characterized in that: The meter mark lamp control circuit is designed with a digital tube driving circuit for detecting each code segment and alarming when the code segment is abnormal.
4. The rail transit fire emergency evacuation indication system according to claim 1, characterized in that: The LED driving circuit is used to drive the lighting lamp. A lighting lamp meter mark setting control software is designed. After the lighting lamp receives the meter mark information, the remote control transmits the set meter mark number. The lighting lamp parses the received data. If it is judged to be a meter mark signal, if so, the IS timer is turned on, and the lamp is continuously controlled to light up in a mode of lighting for 1S and extinguishing for 1S according to the received data, and the timer is turned off; if it is judged not to be a meter mark signal, the set number is continuously lit, and after observing that the number is correct, a confirmation signal is transmitted. After the lamp receives the confirmation signal, the bit is stored in the EEROM as the address; the global variable of the number of received data is +1, and the operation is performed in sequence until the 4-digit meter mark number is set, and the variable of the number of received bits is cleared to 0.
5. A method for automatically searching for lamps in a rail transit fire emergency evacuation indication system, characterized in that: The rail transit fire emergency evacuation indication system applied to any one of claims 1 to 4 comprises: The controller sends a broadcast command, and when it determines that the communication is normal, it first performs a range search, and then a precision search; The range search is: searching the left and right sides of each lamp; The precise search is as follows: starting from the center value, searching in the left and right ranges by decreasing 1 in sequence until the lamp is found; after the first lamp is successfully searched, subsequent lamps are searched in sequence according to the known standard spacing of lamps.
6. The automatic lamp search method of the rail transit fire emergency evacuation indication system according to claim 5 is characterized in that: The range search also includes: the left search range of the first lamp is Lm1×k1 to Lm1, and the right search range is Lm1+1 to Lm1×k2; the left search range of the second lamp is the actual number of meters of the first lamp successfully searched, Lm1+1 to Lm1+S(T), and the right search range is Lm1+S(T)+1 to Lm1+2S(T)-1, and subsequent lamps are searched in accordance with the above principles; wherein Lm1 represents the starting position of the lamp, k1 ranges from [0,1], k2 ranges from [1,2], S represents the known standard spacing of meter-standard lamps, and T represents the known standard spacing of lighting lamps.
7. The automatic lamp search method of the rail transit fire emergency evacuation indication system according to claim 5 is characterized in that: The precise search also includes: calculating the distance L between the second lamp and the first lamp in the drawing, the search range of the second lamp is the known meter mark number of the first lamp and twice the calculated interval; that is, the range of the first range search is Lm1+1 to Lm1+L, and the range of the second range search is Lm1+L+1 to Lm1+L×2; searching according to the above method; and so on, until all lamps are searched; wherein Lm1 represents the starting position of the lamp.
8. The automatic lamp search method of the rail transit fire emergency evacuation indication system according to claim 5 is characterized in that: After searching, including: If M = P, Q = 0, the search is completely successful, and the number of lamps matches the drawing, the lamp addresses are assigned and stored in the database; If M+Q=P, the search is complete, the actual number of lamps is consistent with the number on the drawing, the correct M lamps are assigned values and written into the database, and the remaining Q lamps are waiting for user confirmation. After on-site inspection, repair and replacement, search again for the lamps that were abnormal in the first search, and after the search is successful, the values are assigned and stored in the database; If M > P, the search is successful, and the actual number of lamps is greater than the number in the drawing, the monitoring software automatically adds MP lamps, and assigns the meter mark numbers in sequence and stores them in the database; Among them, M represents the number of searched lamps, P represents the number of read lamps, and Q represents the number of abnormal lamps in the search process.
9. The automatic lamp search method of the rail transit fire emergency evacuation indication system according to claim 5, characterized in that: The method also includes: drawing a CAD drawing and reading a scale; searching for a controller, determining a position, searching for a power supply position, and storing the position in a database; determining a communication line connected to the power supply, finding the first lamp connected to the power supply along the first line, and recording the coordinates; calculating an estimated distance according to the coordinates and the scale; searching for lamps connected to the current loop in sequence until the last lamp is found, recording the coordinates, calculating the distance, and storing the position in a database; searching all loops and all power supplies according to the above method; replacing the icons of all devices in the CAD drawing with icons in the system; calling an automatic lamp address search program, opening each loop of each power supply in sequence, searching for lamps, searching for lamps according to the calculated distance and an algorithm until the search is completed and stored in a database; automatically placing lamps at corresponding positions in the drawing and displaying the actual number of meters according to the database serial number, actual return address, and number of meters.
10. The automatic lamp search method of the rail transit fire emergency evacuation indication system according to claim 5, characterized in that: The method also includes: the normal sampling voltage of the meter mark lamp is the difference between the output voltage of the microcontroller port and the sampling voltage at the lower end of the resistor. If the error between the difference and the specified threshold value is not more than 10%; if the detection voltage is approximately equal to 0, the code segment is judged to be open-circuited; if the detection voltage is approximately equal to the port output voltage, the code segment is judged to be short-circuited.
Citation Information
Patent Citations
Address setting information processing method, lamp and lamp address setting method
CN108429664A
Centralized control type fire-fighting indicating lamp debugging method
CN113507774A
Double-router communication module of fire-fighting emergency evacuation system
CN115134980A
Lamp batch searching and DMX512 address setting method
CN116566951A
Tunnel evacuation indicating lamp with distance display function
CN211930919U