Train length calculation method, storage medium and device
The train length is calculated through the insulating section of the front and rear of the vehicle, and the time stamp and speed sensor pulse count are used to solve the problem of inaccurate calculation of train length, improve safety and accuracy, and provide technical support for unmanned railways.
Patent Information
- Application Number
- CN202111661386.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2041-12-30
AI Technical Summary
The existing train length calculation method is inaccurate, resulting in train positioning errors, posing safety hazards, and the existing equipment is expensive to install and repair, so it cannot work in high temperature or occlusion environments.
The front and rear of the vehicle pass through the insulating sections continuously, the time stamp collection and recording, the locomotive speed and acceleration calculation are used, and the train length is calculated based on the changes in the interlocking field state of the ground station. The pulse count is collected using high-precision photoelectric sensors to approximate the train displacement in segments.
It improves the accuracy of train length calculation, reduces operating costs, enhances the safety of train operation, and provides technical support for the unmanned industrial railways.
Smart Images

Figure CN114417259B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial railways, and in particular to a train length calculation method, storage medium, and equipment. Background Art
[0002] With the development of railways, China's industrial railways are striding towards intelligence and less-manned operation. Obtaining accurate train length is a technical prerequisite for precise train positioning, locomotive safety control, and unmanned locomotive driving.
[0003] There are three main methods for calculating train length:
[0004] 1. The train length is calculated based on the driver's input of train formation information. However, since train formations are not fixed, there is no guarantee that the number entered by the driver will be correct each time. Inaccurate train length will lead to calculation errors at the front end of the train, posing a safety hazard to driving.
[0005] 2. Adding electronic couplings, transponders and other equipment on the locomotive and carriage ends to detect the length of the train. This requires the installation of a large number of devices, which is costly and difficult to maintain. In addition, this electromagnetic equipment will not work reliably in high-temperature molten iron or steel areas.
[0006] 3. Install high-precision GPS positioning equipment at the front and rear ends of the locomotive and calculate the train length using the positioning points on the station yard GIS map. This method cannot be used because GPS cannot be positioned in industrial railway blast furnace areas or obstructed environments such as buildings, so the train length cannot be calculated at this time. Summary of the Invention
[0007] The present invention provides a train length calculation method, system and device, which can solve at least one of the technical problems in the background technology.
[0008] To achieve the above object, the present invention adopts the following technical solutions:
[0009] A train length calculation method is provided, wherein the train length is calculated by calculating the displacement of the train by continuously passing the front and rear ends of the train through insulating joints; specifically, the method includes:
[0010] By collecting records with timestamps, collecting locomotive speed, calculating acceleration and collecting pulse counts of the speed sensor at the current moment, and detecting changes in the interlocking field status of the ground station, the front and rear ends of the train pass through the same insulating joint continuously, and then the train length is calculated through the locomotive displacement.
[0011] It further includes a time synchronization unit, an interlocking status acquisition unit and a train length calculation unit;
[0012] The time synchronization unit completes system time synchronization, the current embodiment system timestamp collection and recording, locomotive speed collection, locomotive acceleration calculation and the current collection speed sensor pulse count record;
[0013] The interlocking status acquisition unit completes the assignment of the target track segment array DestAreaNum[2] and the time stamp record of the front and rear ends of the train passing through the same insulation joint continuously;
[0014] The train length calculation unit completes the calculation of the train length of this round. If the acceleration value of this round is outside the threshold range, the train length calculation will not be performed.
[0015] Furthermore, the train length calculation method includes calculating the train length as L0. When the front end of the train passes through the insulating joint J at time t00, due to delays in signals, communications, and logical processing, this embodiment will not be able to detect and process it until time t10. During this period, the distance traveled by the train is set to d1. Similarly, when the rear end of the train leaves the insulating joint J at time t20, this embodiment will not be able to detect and process it until time t30. During this period, the distance traveled by the train is set to d2. In the time interval [t10, t30], the distance traveled by the train is L. The train length is then:
[0016] L0=L-d2+d1+delta1+delta2 (1)
[0017] It should be noted that delta1 and delta2 are the lengths of the restricted areas at the front and rear ends of the train respectively;
[0018] Furthermore, the train travel distance L is calculated: when the embodiment detects the occupancy information of the next track section where the front end of the train is located at time t10, the pulse count of the speed sensor is collected as N1. When the idle information of the track section where the current head of the train is located is detected at time t30, the pulse count of the speed sensor is collected as N2. A single pulse represents that the train travel distance is r, then:
[0019] L=(N2-N1)*r (2)
[0020] Furthermore, the calculation of d1 includes using a segmented approximate calculation method. Since the embodiment calculates the train length once every 100ms, the T1 time interval is divided into n-1 100ms time slots. Until the last nth time slot is less than 100ms, the train speed in the last time slot is approximately assumed to be equal to the speed of the second-to-last 100ms time slot, thereby inferring the train displacement in the last time slot.
[0021]
[0022] in Separate locomotives from t 10 The displacement at each sampling moment calculated forward in time is the product of the pulse difference of adjacent speed sensors and the distance traveled by the single pulse train.
[0023] Furthermore, calculation d2 is also included: Similar to the calculation method for d1, a segmented approximate calculation method is used. Since the train length is calculated once every 100ms in this embodiment, the T2 time interval is divided into n-1 100ms time slots. Until the last nth time slot is less than 100ms, the train speed in the last time slot is approximately assumed to be equal to the speed of the second-to-last 100ms time slot, thereby inferring the train displacement in the last time slot.
[0024]
[0025] in Separate locomotives from t 20 The train displacement at each sampling moment calculated forward in time is the product of the pulse difference between adjacent speed sensors and the distance traveled by the single pulse train.
[0026] In another aspect, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.
[0027] On the other hand, the present invention further discloses a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.
[0028] It can be seen from the above technical solution that the present invention calculates the train length by calculating the displacement of the train by continuously passing the front and rear ends of the train through insulating joints, so as to solve the problem of inaccurate train length in the prior art. Since the train length is automatically calculated, there is no need for manual input of the number of vehicles, which greatly reduces the error rate of the train length, enhances the safety of train operation, and provides technical support for the future unmanned industrial railway.
[0029] Specifically, the present invention provides a method for calculating train length, which calculates the train length by calculating the displacement of the train by the front and rear ends of the train passing through the insulating joint continuously. The current embodiment system collects and records timestamps, collects locomotive speed, calculates acceleration, and collects pulse counts of the speed sensor at the current moment. It uses the detection of changes in the state of the ground station interlocking field, and the front and rear ends of the train pass through the same insulating joint continuously to calculate the train length through the locomotive displacement.
[0030] The present invention calculates the train length during operation, improves the accuracy of train length calculation while taking operating costs into consideration, enhances the safety of train operation, and provides technical support for the future unmanned industrial railway. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flow chart of the overall steps of the present invention;
[0032] Figure 2 It is a schematic diagram of calculating the train length of the present invention. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.
[0034] like Figure 1 As shown, the train length calculation method described in this embodiment calculates the train length by calculating the train displacement by the front and rear ends of the train passing through the insulating joint continuously; specifically, by collecting records with timestamps, collecting the locomotive speed, calculating the acceleration and collecting the pulse count of the speed sensor at the current moment, and using the detection of the state change of the ground station interlocking field, the front and rear ends of the train pass through the same insulating joint continuously, and then the train length is calculated by the locomotive displacement.
[0035] The train length calculation method of this embodiment is provided with a time synchronization unit, an interlocking state acquisition unit and a train length calculation unit;
[0036] Among them, the time synchronization unit completes system time synchronization, the current embodiment system timestamp collection and recording, locomotive speed collection, locomotive acceleration calculation and the current collection speed sensor pulse count record;
[0037] The interlocking status acquisition unit completes the assignment of the target track segment array DestAreaNum[2] and the time stamp record of the front and rear ends of the train passing through the same insulation joint continuously;
[0038] The train length calculation unit completes the calculation of the train length of this round. If the acceleration value of this round is outside the threshold range, the train length calculation will not be performed.
[0039] The following are specific instructions:
[0040] like Figure 1 As shown, the overall step flow chart specifically includes steps S1 to S3:
[0041] S1, time synchronization unit;
[0042] It should be noted that this unit completes the time synchronization between the ground interlocking status acquisition system and the train length calculation module of this embodiment, ensuring the synchronization of interlocking status acquisition. The train length calculation module performs time synchronization work regularly, and performs time synchronization work when the train length calculation S3 is not performed. This embodiment performs time synchronization work every 5 minutes; this unit also completes the system timestamp acquisition and recording of the current embodiment, the speed acquisition of the locomotive, the calculation of the acceleration, and the pulse count of the speed sensor collected at the current moment.
[0043] S2, interlocking status acquisition unit;
[0044] It should be noted that this unit completes the acquisition of the timestamps of the front and rear ends of the train through the same insulation node. Specifically, it is obtained by collecting the interlocking status changes of the front and rear ends of the train. According to the interlocking status data, the track section number where the front end of the train is currently located and the next track section number ahead of the train are obtained and recorded in the static target track section array DestAreaNum[2].
[0045] The front end of the train refers to the front end of the train in the direction of travel. The front end of the train is obtained through the timestamp of the insulation node as DestAreaNum[1], which is the time when the track section next to the track section where the front end of the train is located is occupied;
[0046] The tail end of the train refers to the end in the opposite direction of the train's running direction. The tail end of the train is obtained through the timestamp of the insulation node, which is DestAreaNum[0], that is, the time when the track section where the front end of the train is located is idle;
[0047] The static array value is only obtained again when the locomotive changes its running direction or S3 is calculated or the track segment status change in this round exceeds the threshold value and no state change is made. The track segment number where the front end of the current train is located and the next track segment number ahead are recorded in the static array. In this embodiment, the state change threshold time is set to 120s, that is, when the track segment DestAreaNum[1] is detected to be occupied and the track segment DestAreaNum[0] is not detected to be idle after 120s, the static target track segment array is reassigned.
[0048] S3, train length calculation unit;
[0049] It should be noted that this unit completes the train length calculation and determines the locomotive acceleration before calculating the length, filtering out inaccurate train length calculations at abnormal speeds. In this embodiment, the acceleration threshold is set to 10m / s2, that is, the train length calculation is not performed for this round that exceeds this threshold, and the target track segment array element is reset to an invalid value of 0xffff.
[0050] If the acceleration value of this round is within the threshold range, the track section array value is valid and the detection status change of the front and rear ends of the train is within the change threshold time setting of 120 seconds, then follow the attached Figure 2 Calculate the vehicle length; if the above conditions are not met, jump to step S1 to continue the next round of inspection and judgment.
[0051] like Figure 2As shown in the diagram of train length calculation, the train length is L0. When the front end of the train passes through the insulating joint J at time t00, due to delays in signals, communications, and logical processing, this embodiment will not detect and process it until time t10. During this period, the distance traveled by the train is set to d1. Similarly, when the rear end of the train leaves the insulating joint J at time t20, this embodiment will not detect and process it until time t30. During this period, the distance traveled by the train is set to d2. In the time interval [t10, t30], the distance traveled by the train is L. The train length is then:
[0052] L0=L-d2+d1+delta1+delta2 (1)
[0053] It should be noted that delta1 and delta2 are the lengths of the restricted areas at the front and rear of the train, respectively. This value is the restricted length between the locomotive and the car body, which is a constant.
[0054] The response time [t00, t10] when the front end of the train passes through the insulation joint is recorded as T1; the response time [t20, t30] when the rear end of the train passes through the insulation joint is recorded as T2.
[0055] It should be noted that T1 and T2 are the response times for detecting the station status of the target track section in the embodiment, which are fixed times.
[0056] To calculate L0, you need to calculate L, d1, and d2.
[0057] ① Calculation of L: When the embodiment detects the occupied track section DestAreaNum[1] at time t10, the pulse count of the acquisition speed sensor is N1. When the idle track section DestAreaNum[0] is detected at time t30, the pulse count of the acquisition speed sensor is N2. The distance traveled by the single pulse train is r. Then:
[0058] L=(N2-N1)*r (2)
[0059] It should be noted that the frequency pulse is an inherent property of the locomotive's inherent speed sensor. This embodiment uses a high-precision photoelectric sensor because it uses the pulse principle and has an accuracy of 0.001 mm. The single-pulse train heading distance is constant.
[0060] ② Calculation of d1: Using a segmented approximate calculation method, since the train length is calculated once every 100ms in this embodiment, the T1 time interval is divided into n-1 100ms time slots. Until the last nth time slot is less than 100ms, the train speed in the last time slot is approximately equal to the speed of the second-to-last 100ms time slot. This is used to infer the train displacement in the last time slot.
[0061]
[0062] in Separate locomotives from t 10 The displacement at each sampling moment is calculated forward from time, and each displacement value is the product of the pulse difference of adjacent speed sensors and the distance traveled by the single pulse train.
[0063] ③ Calculation of d2: Similar to the calculation method for d1, a segmented approximate calculation method is used. Since the train length is calculated once every 100ms in this embodiment, the T2 time interval is divided into n-1 100ms time slots. Until the last nth time slot is less than 100ms, the train speed in the last time slot is approximately equal to the speed of the second-to-last 100ms time slot. This is used to infer the train displacement in the last time slot.
[0064]
[0065] in Separate locomotives from t 20 The train displacement at each sampling moment calculated forward in time, each displacement value is the product of the pulse difference of adjacent speed sensors and the single pulse train travel distance value.
[0066] In specific applications, this solution understands the software application module as an APP, which includes three units S1-S3. The software application executes S1 to S3 once every 100ms.
[0067] Among them, the insulation joint is an inherent device on the railway track, which is used to divide the track into multiple track sections. When the insulation joint is over (pressurized), the track section is occupied; when leaving, the track section of the insulation joint is idle; the front end and the rear end of the train are represented by the target track section array DestAreaNum[2]; the target track section array DestAreaNum[2] needs to be reset to an invalid value 0xffff when the train changes its running direction;
[0068] S3 of this embodiment emphasizes that no calculation will be performed when the acceleration is abnormal or exceeds the time threshold. The purpose is to filter out the train length under abnormal conditions, at which time the train length is inaccurate. This embodiment uses the collected pulse quantity to calculate the displacement instead of directly using the speed to calculate the displacement, mainly because the direct instantaneous speed error is large and easy to calculate errors; the pulse quantity is used for high accuracy; this example calculates the train length by calculating the displacement of the train through the insulating joint continuously by the front and rear of the train to solve the problem of inaccurate train length in the existing technology, which further improves the safety of driving and provides technical support for the future safety control and unmanned operation of industrial railway locomotives.
[0069] In another aspect, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.
[0070] On the other hand, the present invention further discloses a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.
[0071] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the train length calculation methods in the above embodiments.
[0072] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts of the above method.
[0073] The embodiment of the present application further provides an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus.
[0074] Memory for storing computer programs;
[0075] The processor is used to implement the above-mentioned train length calculation method when executing the program stored in the memory.
[0076] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0077] The communication interface is used for communication between the above electronic device and other devices.
[0078] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located remote from the processor.
[0079] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0080] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0081] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0082] Each embodiment in this specification is described in a related manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For related parts, refer to the description of the method embodiment.
[0083] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for calculating train length, characterized in that: The train length is calculated by calculating the train displacement by continuously passing the front and rear ends of the train through the insulating joints; specifically, By collecting records with timestamps, collecting train speed, calculating acceleration, and collecting pulse counts of the speed sensor at the current moment, and detecting changes in the interlocking yard status of the ground station, the front and rear ends of the train pass through the same insulating joint continuously, and then the train length is calculated based on the train displacement; The train length calculation method includes a time synchronization unit, an interlocking state acquisition unit and a train length calculation unit; Among them, the time synchronization unit completes system time synchronization, current system timestamp collection and recording, train speed collection, train acceleration calculation and current acquisition speed sensor pulse count record; The interlocking status acquisition unit is used to complete the assignment of the target track segment array DestAreaNum[2] and the time stamp record of the front and rear ends of the train passing through the same insulation joint continuously; The train length calculation unit completes the calculation of the train length of this round. If the acceleration value of this round is outside the threshold range, the train length calculation will not be performed; The train length calculation steps are as follows: Assume the train length is L0. The front end of the train passes through the insulating joint J at time t00 and can only be detected and processed at time t10. During this period, the distance traveled by the train is set to d1. Similarly, when the rear end of the train leaves the insulating joint J at time t20, it can only be detected and processed at time t30. The distance traveled by the train is set to d2. In the time interval [t10, t30], the distance traveled by the train is L, so the length is: ; delta1 and delta2 are the intrusion lengths of the front and rear ends of the train, respectively. This value is the intrusion length between the train head and the car body, which is a constant. Assume that the response time [t00, t10] of the front end of the train passing through the insulation joint is recorded as T1; the response time [t20, t30] of the rear end of the train passing through the insulation joint is recorded as T2; T1 and T2 are the response times for detecting the station status of the target track section, which are fixed times; The steps to calculate L are as follows: When the DestAreaNum[1] track section occupancy information is detected at time t10, the pulse count of the speed sensor is N1. When the DestAreaNum[0] track section vacancy information is detected at time t30, the pulse count of the speed sensor is N2. The distance traveled by the single pulse train is r, then: ; Frequency pulse is an inherent property of the train's inherent speed sensor. Using a high-precision photoelectric sensor, the distance traveled by a single pulse train is constant.
2. The train length calculation method according to claim 1, characterized in that: The time synchronization unit completes system time synchronization specifically including: Complete the time synchronization between the ground interlocking status acquisition system and the train length calculation module, ensure the synchronization of interlocking status acquisition and the regular time synchronization of the train length calculation module, and perform time synchronization when no train length calculation is performed.
3. The train length calculation method according to claim 1, characterized in that: The interlocking status acquisition unit obtains the interlocking status changes by collecting data from the front and rear ends of the train. Based on the interlocking status data, the track section number where the front end of the train is currently located and the next track section number ahead of the train are obtained and recorded in the static target track section array DestAreaNum[2]. The front end of the train refers to the front end of the train in the direction of travel. The front end of the train obtains DestAreaNum[1] through the timestamp of the insulation node, which is the time when the next track section of the track section where the front end of the train is located is occupied; The tail end of the train refers to the end opposite to the train's running direction. The tail end of the train is obtained through the insulation node timestamp as DestAreaNum[0], which is the time when the track section where the front end of the train is located is idle; The static array value is only obtained again when the train changes its running direction or the train length calculation unit is completed, or when the track segment status change in this round exceeds the threshold value and no status change occurs. The track segment number where the current front end of the train is located and the next track segment number ahead are recorded in the static array.
4. The train length calculation method according to claim 1, characterized in that: The train length calculation steps are as follows, further comprising calculating d1: using a segmented approximate calculation method, assuming that the train length is calculated once in a 100ms cycle, the T1 time interval is divided into n-1 100ms time slots, until the last nth time slot is less than 100ms, and the train speed in the last time slot is approximately assumed to be equal to the speed of the second-to-last 100ms time slot, thereby inferring the train displacement in the last time slot; ; in Trains from The displacement at each sampling moment is calculated forward from time to time, and each displacement value is the product of the pulse difference of adjacent speed sensors and the distance traveled by the single pulse train.
5. The train length calculation method according to claim 1, characterized in that: The calculation of d2 is also included: using a segmented approximate calculation method, assuming that the train length is calculated once every 100ms, the T2 time interval is divided into n-1 100ms time slots, until the last n-th time slot is less than 100ms. The speed in the last time slot is approximately equal to the speed of the second-to-last 100ms time slot, and the train displacement in the last time slot is thus calculated; ; in Trains from The train displacement at each sampling moment calculated forward in time, each displacement value is the product of the pulse difference of adjacent speed sensors and the distance traveled by the single pulse train.
6. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 5.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Locomotive position monitoring and safety controlling device based on track circuit and control method thereof
CN103129586A
High-speed non-communication train tracking method and system and area controller
CN110920678A
Computing the length of a railway vehicle or a train of such vehicles
US5036478A