Disclosure of Invention
The invention provides a railway train running early warning method, a railway train running early warning device, electronic equipment and a storage medium, which are used for solving the problem that the prior art cannot accurately calculate the actual railway distance between a railway train running and a mobile terminal and realizing accurate early warning of approach of the railway train running.
The invention provides a railway running early warning method, which comprises the following steps:
acquiring a first railway line of a railway train running towards early warning terminal equipment and a second railway line where the early warning terminal equipment is located;
according to the first railway line and the second railway line, determining a line switching point for switching a railway train running towards the early warning terminal equipment to the railway line where the early warning terminal equipment is located;
and calculating the actual railway distance between the railway train running to the early warning terminal equipment and the early warning terminal equipment according to the line switching point, and sending railway train running approach early warning information to the early warning terminal equipment when the actual railway distance is less than or equal to the early warning distance of the early warning terminal equipment.
Optionally, calculating an actual railway distance between the railway train driving to the early warning terminal device and the early warning terminal device according to the line switching point includes:
according to the position information of the line switching point, determining a first distance between a railway train running driving to the early warning terminal device and the line switching point, and determining a second distance between the early warning terminal device and the line switching point;
and calculating the actual railway distance between the railway train running towards the early warning terminal equipment and the early warning terminal equipment according to the first distance and the second distance.
Optionally, the method further includes:
according to the line information of the first railway line and the line information of the second railway line, determining a railway line set which needs to be switched when the railway running towards the early warning terminal equipment is switched to the railway line where the early warning terminal equipment is located;
sequentially determining the line switching points of two adjacent railway lines in the railway line set according to the line switching sequence of the railway train running towards the early warning terminal equipment to obtain a line switching point set;
according to the position information of each line switching point in the line switching point set, determining a third distance between a railway train driving to the early warning terminal equipment and the line switching point of the railway line where the early warning terminal equipment is located, and determining a second distance between the early warning terminal equipment and the line switching point; and calculating the actual railway distance between the railway train running to the early warning terminal equipment and the early warning terminal equipment according to the third distance and the second distance.
Optionally, the method further includes:
and calculating the estimated time of the railway vehicle driving to the early warning terminal equipment to reach the position of the early warning terminal equipment according to the actual railway distance and the driving speed of the railway vehicle driving to the early warning terminal equipment, and sending the estimated time to the early warning terminal equipment.
Optionally, the method further includes:
determining each railway line connected with the early warning terminal equipment according to the position information of the early warning terminal equipment;
and determining the railway train running towards the early warning terminal equipment on each railway line connected with the early warning terminal equipment according to the running information reported by each railway train at regular time.
Optionally, the determining, according to the position information of the early warning terminal device, each railway line connected to the early warning terminal device includes:
acquiring a railway line code where the early warning terminal device is located;
and determining each railway line connected with the early warning terminal equipment according to the railway line codes.
Optionally, the determining, according to the running information reported at regular time by each railway train, the railway train running towards the early warning terminal device on each railway route connected to the early warning terminal device includes:
determining the railway train which normally runs on each railway line connected with the early warning terminal equipment according to the running information reported by each railway train at regular time;
and determining the railway train running towards the early warning terminal equipment according to the running direction of the railway train running normally on each railway line connected with the early warning terminal equipment.
The invention also provides a railway train running early warning device, comprising:
the early warning system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a first railway line of a railway train running towards early warning terminal equipment and a second railway line where the early warning terminal equipment is located;
the first processing module is used for determining a line switching point of a railway train running towards the early warning terminal equipment to be switched to a railway line where the early warning terminal equipment is located according to the first railway line and the second railway line;
and the second processing module is used for calculating the actual railway distance between the railway train running towards the early warning terminal equipment and the early warning terminal equipment according to the line switching point, and sending railway train running approaching early warning information to the early warning terminal equipment when the actual railway distance is less than or equal to the early warning distance of the early warning terminal equipment.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the railway train warning method.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of pre-warning of railroad traffic as described in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, carries out the steps of the method of warning of railroad traffic as described in any one of the above.
The invention provides a railway train running early warning method, a device, electronic equipment and a storage medium, which are characterized in that a first railway line of a railway train running towards early warning terminal equipment and a second railway line where the early warning terminal equipment is located are firstly obtained, then the railway train running towards the early warning terminal equipment is determined to be switched to a line switching point of the railway line where the early warning terminal equipment is located according to the first railway line and the second railway line, so that the actual railway distance between the railway train running towards the early warning terminal equipment and the early warning terminal equipment is calculated according to the line switching point, and when the actual railway distance is smaller than or equal to the early warning distance of the early warning terminal equipment, railway train running approaching early warning information is sent to the early warning terminal equipment. Therefore, when the railway train and the terminal equipment are not on the same railway line, the method firstly determines the line switching point of the railway train driven to the early warning terminal equipment and switched to the railway line where the early warning terminal equipment is located, then respectively determines the distance between the railway train and the line switching point and the distance between the terminal equipment and the line switching point based on the position information of the line switching point, and further can obtain the actual distance between the railway train and the terminal equipment on the railway by using a distance summation mode. The method and the device carry out the railway train approaching early warning according to the actual railway distance between the railway train driving to the early warning terminal device and the early warning terminal device, compared with the existing longitude and latitude calculation mode, the method and the device can more accurately calculate the actual railway distance between the railway train driving to the early warning terminal device and the early warning terminal device on the railway, thereby improving the accuracy of the railway train driving early warning and avoiding early warning false alarm. In addition, compared with the existing radio station early warning mode, when the railway vehicle approaches the terminal equipment after multiple line changes, accurate early warning can be carried out through the actual distance between the railway vehicle and the early warning terminal equipment on the railway, and the defect that whether the terminal equipment is early warned or not cannot be judged due to the fact that the railway vehicle changes the line for multiple times is overcome.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the method for early warning of railway train operation provided by the invention comprises the following steps:
step 101: acquiring a first railway line of a railway train running towards early warning terminal equipment and a second railway line where the early warning terminal equipment is located;
in the step, firstly, the railway train running towards the early warning terminal device is determined, then, the first railway line where the railway train running is located at present is determined based on the running information reported by the railway train running at regular time, and the second railway line where the early warning terminal device is located is obtained.
Step 102: according to the first railway line and the second railway line, determining a line switching point for switching a railway train running towards the early warning terminal equipment to the railway line where the early warning terminal equipment is located;
in this step, when the railway line on which the railway vehicle driving to the early warning terminal device is located and the railway line on which the early warning terminal device is located are different railway lines, the railway vehicle driving to the early warning terminal device is determined to be switched to the line switching point of the railway line on which the early warning terminal device is located according to the line information of the railway line on which the railway vehicle driving to the early warning terminal device is located and the line information of the railway line on which the early warning terminal device is located.
Step 103: and calculating the actual railway distance between the railway train running to the early warning terminal equipment and the early warning terminal equipment according to the line switching point, and sending railway train running approach early warning information to the early warning terminal equipment when the actual railway distance is less than or equal to the early warning distance of the early warning terminal equipment.
In this step, according to the position information of the line switching point, a first distance between the railway train driving to the early warning terminal device and the line switching point is determined, and a second distance between the early warning terminal device and the line switching point is determined. And finally, calculating the actual railway distance between the railway train running driving to the early warning terminal equipment and the early warning terminal equipment according to the first distance and the second distance. The railway train-running early warning system can set early warning distance according to the actual running condition of the terminal equipment, when the actual railway distance between the railway train and the early warning terminal equipment is smaller than or equal to the early warning distance of the early warning terminal equipment, railway train-running approach early warning information is sent to the early warning terminal equipment, and when the actual railway distance between the railway train and the early warning terminal equipment is larger than the early warning distance of the early warning terminal equipment, the railway train-running approach early warning information is not sent to the early warning terminal equipment.
The invention provides a railway train running early warning method, which comprises the steps of firstly obtaining a first railway line of a railway train running towards early warning terminal equipment and a second railway line where the early warning terminal equipment is located, then determining a line switching point of the railway train running towards the early warning terminal equipment and the railway line where the early warning terminal equipment is located according to the first railway line and the second railway line, so that the actual railway distance between the railway train running towards the early warning terminal equipment and the early warning terminal equipment is calculated according to the line switching point, and when the actual railway distance is smaller than or equal to the early warning distance of the early warning terminal equipment, sending railway train running approach early warning information to the early warning terminal equipment. Therefore, when the railway train and the terminal equipment are not on the same railway line, the method firstly determines the line switching point of the railway train driven to the early warning terminal equipment and switched to the railway line where the early warning terminal equipment is located, then respectively determines the distance between the railway train and the line switching point and the distance between the terminal equipment and the line switching point based on the position information of the line switching point, and further can obtain the actual distance between the railway train and the terminal equipment on the railway by using a distance summation mode. The method and the device carry out the railway train approaching early warning according to the actual railway distance between the railway train driving to the early warning terminal device and the early warning terminal device, compared with the existing longitude and latitude calculation mode, the method and the device can more accurately calculate the actual railway distance between the railway train driving to the early warning terminal device and the early warning terminal device on the railway, thereby improving the accuracy of the railway train driving early warning and avoiding early warning false alarm. In addition, compared with the existing radio station early warning mode, when the railway vehicle approaches the terminal equipment after multiple line changes, accurate early warning can be carried out through the actual distance between the railway vehicle and the early warning terminal equipment on the railway, and the defect that whether the terminal equipment is early warned or not cannot be judged due to the fact that the railway vehicle changes the line for multiple times is overcome.
Based on the content of the foregoing embodiment, in this embodiment, calculating an actual railway distance between a railway train driving to the early warning terminal device and the early warning terminal device according to the line switching point includes:
according to the position information of the line switching point, determining a first distance between a railway train running driving to the early warning terminal device and the line switching point, and determining a second distance between the early warning terminal device and the line switching point;
and calculating the actual railway distance between the railway train running towards the early warning terminal equipment and the early warning terminal equipment according to the first distance and the second distance.
In this embodiment, it should be noted that, in the time-division situation discussion of calculating the actual railway distance between the railway train and the early warning terminal device, the first situation is that the railway train approaches the early warning terminal device on the line where the early warning terminal device is located, and at this time, the distance between the railway train running to the early warning terminal device and the early warning terminal device can be calculated according to the position information of the railway train running to the early warning terminal device and the position information of the early warning terminal device. For example, the distance between the railway train running to the early warning terminal device and the early warning terminal device is calculated according to the kilometer post of the railway train running and the kilometer post of the early warning terminal device. And the other situation is that the railway vehicle drives to the railway line where the early warning terminal equipment is located on other railway lines at present, and at the moment, the line switching point of the railway vehicle switched to the railway line where the early warning terminal equipment is located is determined firstly. Specifically, the line switching point is determined according to the information of the current railway line of the railway train and the information of the railway line of the early warning terminal device. After the line switching point is determined, the distance between the railway train running driving to the early warning terminal device and the line switching point and the distance between the line switching point and the early warning terminal device can be determined according to the position information of the line switching point, and the actual railway distance between the railway train running and the early warning terminal device can be obtained by adding the two distances. Compared with the existing longitude and latitude calculation mode, the method can more accurately calculate the actual distance between the railway train running to the early warning terminal equipment and the early warning terminal equipment on the railway, thereby improving the accuracy of the early warning of the railway train running and avoiding the false warning. In addition, compared with the existing radio station early warning mode, when the railway train approaches the terminal equipment after multiple line changes, accurate early warning can be carried out through the actual distance between the railway train and the early warning terminal equipment on the railway, and the defect that whether the terminal equipment is early warned or not cannot be judged due to the fact that the railway train changes the line for multiple times is avoided.
Based on the content of the foregoing embodiment, in this embodiment, the method further includes:
according to the line information of the first railway line and the line information of the second railway line, determining a railway line set which needs to be switched when the railway running towards the early warning terminal equipment is switched to the railway line where the early warning terminal equipment is located;
sequentially determining the line switching points of two adjacent railway lines in the railway line set according to the line switching sequence of the railway train running towards the early warning terminal equipment to obtain a line switching point set;
according to the position information of each line switching point in the line switching point set, determining a third distance between a railway train driving to the early warning terminal equipment and the line switching point of the railway line where the early warning terminal equipment is located, and determining a second distance between the early warning terminal equipment and the line switching point; and calculating the actual railway distance between the railway train running to the early warning terminal equipment and the early warning terminal equipment according to the third distance and the second distance.
In this embodiment, it should be noted that, when a railway vehicle needs to make multiple line changes to drive into a railway line where an early warning terminal device is located, a railway line set that the railway vehicle needs to be switched before being switched to the railway line where the early warning terminal device is located needs to be determined, then line switching points of two adjacent railway lines are sequentially determined according to a line switching sequence of the railway vehicle driving to the early warning terminal device, a line switching point set is obtained, a distance between the railway vehicle driving to the early warning terminal device and the line switching point of the railway line where the early warning terminal device is located is determined according to position information of each line switching point in the line switching point set, and a distance between the line switching point and the early warning terminal device is determined. And finally, adding the two distances to obtain the actual railway distance between the railway train and the early warning terminal equipment. For example, the current route where a railway vehicle is currently located is S1, the route where the railway vehicle enters the warning terminal device needs to be sequentially switched from the route S1 to the route S2, then switched from the route S2 to the route S3, and finally switched from the route S3 to the route S4 where the warning terminal device is located, then the set of railway routes that the railway vehicle needs to be switched over at this time is { S1, S2, S3, S4}, and further, the route switching points of two adjacent railway routes are sequentially determined, for example, the switching points a of S1 and S2, the switching points B of S2 and S3, and the switching points C of S3 and S4 are determined, and then the set of route switching points is { a, B, C }. According to the position information of A, B, C, the actual railway distance from A to C can be obtained through calculation, then the actual railway distance from A to C and the actual railway distance from C to the early warning terminal device are calculated, and the actual railway distance from A to C, the actual railway distance from A to C and the actual railway distance from C to the early warning terminal device are added to obtain the actual railway distance from A to C and the early warning terminal device. Therefore, the method and the device are suitable for the condition that the railway vehicle reaches the early warning terminal device after changing the line for many times, can accurately calculate the actual railway distance between the railway vehicle and the early warning terminal device, and accordingly perform early warning, and have strong practicability.
Based on the content of the above embodiment, in this embodiment, the estimated time of the railway vehicle driving to the early warning terminal device reaching the position of the early warning terminal device is calculated according to the actual railway distance and the driving speed of the railway vehicle driving to the early warning terminal device, and the estimated time is sent to the early warning terminal device.
In this embodiment, optionally, after the actual railway distance between the railway vehicle and the early warning terminal device is obtained through calculation, the estimated time of the railway vehicle running to the early warning terminal device reaching the early warning terminal device may be calculated according to the current running speed reported by the railway vehicle, and the estimated time is sent to the early warning terminal device, so that related personnel are reminded to stop the current operation, and a coping operation is executed.
Based on the content of the foregoing embodiment, in this embodiment, the method further includes:
determining each railway line connected with the early warning terminal equipment according to the position information of the early warning terminal equipment;
and determining the railway train running towards the early warning terminal equipment on each railway line connected with the early warning terminal equipment according to the running information reported by each railway train at regular time.
In this embodiment, it should be noted that, due to the criss-cross of the railway line, a plurality of line switching points may exist in the current railway line where the early warning terminal device is located, that is, a situation that other plurality of railway lines merge into the current railway line exists. In order to accurately calculate the actual railway distance between the railway train and the terminal equipment, the invention firstly obtains the position information of the early warning terminal equipment, and then determines each railway line connected with the early warning terminal equipment according to the position information of the terminal equipment. The position information of the early warning terminal device may include one or more of a railway line code where the early warning terminal device is located, a kilometer post of a railway line where the early warning terminal device is located, and a longitude and latitude of the early warning terminal device, wherein the longitude and latitude of the early warning terminal device may be converted into a corresponding line code and a kilometer post, which are not repeated herein. The terminal device according to the present invention may be a device providing voice and/or data connectivity, a handheld device with wireless connection capability, or other physical devices connected to a wireless modem. In different systems, the names of the terminal devices may also differ, and the wireless terminal devices may be mobile terminal devices such as mobile telephones (or "cellular" telephones) and computers with mobile terminal devices, e.g., portable, pocket, hand-held, computer-included, or vehicle-mounted mobile devices, that exchange language and/or data with a radio access network.
In this embodiment, it should be noted that the existing longitude and latitude calculation method and the existing wireless radar calculation method cannot determine whether the railway vehicle will drive to the terminal device, so that false alarm is easily caused, and normal construction operation of the terminal device is affected. Therefore, in the step, the railway traffic driving to the early warning terminal device is determined on each railway line connected with the early warning terminal device through the running information reported by each railway traffic running on the railway line at regular time, the non-approaching railway traffic departing from the terminal device is eliminated, the subsequent calculated amount is reduced, and the early warning efficiency of the railway traffic is improved. The running information reported by the railway vehicle can comprise one or more of position information, running speed and running direction of the railway vehicle, the position information of the railway vehicle can comprise one or more of a railway line code where the railway vehicle is located, a kilometer post of a railway line where the railway vehicle is located and longitude and latitude of the railway vehicle, and the longitude and latitude of the railway vehicle can be converted into corresponding line codes and kilometer posts.
Based on the content of the foregoing embodiment, in this embodiment, the determining, according to the location information of the early warning terminal device, each railway line connected to the early warning terminal device includes:
acquiring a railway line code where the early warning terminal device is located;
and determining each railway line connected with the early warning terminal equipment according to the railway line codes.
In this embodiment, optionally, each railway line connected to the early warning terminal device may be determined according to the railway line code where the early warning terminal device is located, and further, according to the railway line code where the early warning terminal device is located and the kilometer scale of the early warning terminal device, an early warning trend of the early warning terminal device is determined, for example, in fig. 8, L1 and L2 are early warning trends of the early warning terminal device, the kilometer scale of the early warning terminal device is K50+0000 kilometer, the early warning trend of the railway line where the early warning terminal device is located is K65+000 kilometer-K50 +0000 kilometer-K35 +000 kilometer, and further, in the early warning trend of K65+000 kilometer-K50 +0000 kilometer-K35 +000 kilometer, another railway line incorporated into the railway line where the early warning terminal device is located is determined, for example, the railway line corresponding to the early warning trend of L3 in fig. 9. In this embodiment, each railway line connected to the early warning terminal device is determined, so as to more accurately obtain the railway train approaching to the early warning terminal device, rather than the railway train running on the line on which the early warning terminal device is located, thereby expanding the early warning analysis range.
Based on the content of the foregoing embodiment, in this embodiment, the determining, according to the running information reported at regular time by each railway train, the railway train running towards the early warning terminal device on each railway route connected to the early warning terminal device includes:
determining the railway train which normally runs on each railway line connected with the early warning terminal equipment according to the running information reported by each railway train at regular time;
and determining the railway train running towards the early warning terminal equipment according to the running direction of the railway train running normally on each railway line connected with the early warning terminal equipment. In this embodiment, it can be determined whether the railway vehicle is currently moving close to the early warning terminal device or moving away from the early warning terminal device according to the driving direction in the driving information reported by the railway vehicle, so that the railway vehicle close to the early warning terminal device is selected to perform subsequent distance calculation, the railway vehicle away from the early warning terminal device is eliminated, and the effect of reducing the calculated amount is achieved.
The following is illustrated by way of specific examples:
the first embodiment is as follows:
in the embodiment, the railway lines are criss-cross, and if the terminal device (mobile device or other devices) is dangerous when walking or stopping on the railway line, the early warning system can inform the mobile device or the devices of early warning and protection by calculating the approach of railway vehicles.
In this embodiment, the warning to the terminal device requires calculating the distance between the locomotive and the terminal device and the expected time of use twice before and after. The calculated distance is divided into the following cases:
a: when the railway travelling crane and the terminal equipment are on the same line, the distance between the railway travelling crane and the terminal equipment can be obtained by directly subtracting the kilometer posts of the railway travelling crane and the kilometer posts of the terminal equipment;
b: when the railway train and the terminal device are not on the same line, the distance from the railway train to the line switching point needs to be calculated, and the distance from the line switching point to the terminal device needs to be calculated.
The situation A is shown in FIG. 3, wherein the line A is the line where the terminal device is located, the line S1 is the line segment, the point a is the terminal device, and the L1 is the actual railway distance between the railway train and the terminal device. In the case B, as shown in fig. 4, 5, 6 and 7, in fig. 4, the line a is the route of the terminal device, S1 is the line segment on the line B, point a is the terminal device, point B is the switching point of the line a and the line B, L1 is the distance from the point B to the terminal device, the line B is the tie line, S2 is the line segment on the line a, and L2 is the distance from the railway train to the point B, and the actual railway distance between the railway train and the terminal device at this time is L1+ L2. In fig. 5, a line a is a route where the terminal device is located, S1 is a line segment on a line B, a point a is the terminal device, a point B is a switching point of the line a and the line B, L1 is a distance from the terminal device at the point B, the line B is a tie line, S2 is a line segment on the line a, and L2 is a distance from the railway train to the point B, where an actual railway distance between the railway train and the terminal device is L1+ L2. In fig. 6, line a is the route where the terminal device is located, line S1 is the line segment on line B, point a is the switching point, point L2 is the distance from point B to the terminal device, line C is the tie line of line B, and line L1 is the distance from the railway train to point a, and at this time, the actual railway distance between the railway train and the terminal device is L1+ L2. In fig. 7, S1 is a line segment on the E-line, point i is a switching point, L2 is a distance from point i to the terminal device, and L1 is a distance from the railway vehicle to point i. The actual railway distance between the railway train and the terminal equipment is L1+ L2.
In this embodiment, optionally, the early warning trend of the terminal device of the line is obtained according to the line code and the kilometer post where the terminal device is located, for example, as shown in fig. 8, when the terminal device is located at K50+000 kilometers on the line L1, the early warning trend of the terminal device is two directions of 65000 to 50000 and 35000 to 50000, where K50+000 kilometers indicates a specific position on the railway line, and the distance from the position to the start point of the railway line is 50 kilometers.
In the embodiment, as shown in fig. 9, the switching point is searched again in the two trends, if there is a switching point at K10+000 kilometer posts of the Line1 Line found in 65000 to 50000, the warning trend attribute of the terminal device is added with K45+000 to K20+000 of Line2, and the other trends are analogized until the specified warning distance range, that is, the safe distance between the railway vehicles and the terminal device is calculated.
In the embodiment, the switching point in each trend is calculated, the distance from the switching point to the terminal device is calculated, only the distance from the railway train to the switching point is calculated in each early warning trend, and the distance from the switching point to the terminal device is added, so that the actual railway distance between the railway train and the terminal device is obtained, and finally the distance time can be calculated according to the current running speed of the railway train.
Therefore, compared with the trend of calculating the distance by latitude and longitude, the railway driving early warning method provided by the invention has the advantages that the distance value is more accurately calculated, and the false alarm rate is lower. Compared with the early warning of radio station equipment, the early warning device is not influenced by weather, natural environment factors, radio station interference and the like, can accurately calculate the early warning trend, the distance, the predicted arrival time and the like for the railway train which is switched to be close for two or three times, and has more accurate calculation trend.
Example two:
in this embodiment, as shown in fig. 2, the present invention provides a railway train warning system, which operates as follows: reading line configuration information after starting up, initializing a system interface, acquiring position information of early warning terminal equipment, and determining each railway line set connected with the early warning terminal equipment; the method comprises the steps of receiving running information reported by each railway running at regular time, then determining the railway running to the early warning terminal device, further calculating the actual railway distance between the railway running and the early warning terminal device, judging according to the actual railway distance, not sending early warning information when the actual railway distance is larger than the early warning distance of the early warning terminal device, and sending the early warning information when the actual railway distance is smaller than or equal to the early warning distance of the early warning terminal device.
The railway traffic early warning device provided by the invention is described below, and the railway traffic early warning device described below and the railway traffic early warning method described above can be referred to correspondingly.
As shown in fig. 10, the railway train warning device provided by the invention comprises:
the early warning system comprises anacquisition module 1, a display module and a control module, wherein the acquisition module is used for acquiring a first railway line of a railway train running towards early warning terminal equipment and a second railway line where the early warning terminal equipment is located;
the first processing module 2 is configured to determine, according to the first railway line and the second railway line, a line switching point at which a railway train traveling toward the early warning terminal device is switched to the railway line on which the early warning terminal device is located;
and the second processing module 3 is configured to calculate an actual railway distance between the railway train running to the early warning terminal device and the early warning terminal device according to the line switching point, and send railway train running approach early warning information to the early warning terminal device when the actual railway distance is less than or equal to the early warning distance of the early warning terminal device.
In this embodiment, a railway train running to the early warning terminal device is determined, then a first railway line where the railway train running is currently located is determined based on running information reported at regular time by the railway train running, and a second railway line where the early warning terminal device is located is obtained.
In this embodiment, when the railway line where the railway vehicle driving to the early warning terminal device is located and the railway line where the early warning terminal device is located are different railway lines, the railway vehicle driving to the early warning terminal device is determined to be switched to the line switching point of the railway line where the early warning terminal device is located according to the line information of the railway line where the railway vehicle driving to the early warning terminal device is located and the line information of the railway line where the early warning terminal device is located.
In the embodiment, according to the position information of the line switching point, a first distance between the railway train running to the early warning terminal device and the line switching point is determined, and a second distance between the early warning terminal device and the line switching point is determined. And finally, calculating the actual railway distance between the railway train running driving to the early warning terminal equipment and the early warning terminal equipment according to the first distance and the second distance. The railway train-running early warning system can set early warning distance according to the actual running condition of the terminal equipment, when the actual railway distance between the railway train and the early warning terminal equipment is smaller than or equal to the early warning distance of the early warning terminal equipment, railway train-running approach early warning information is sent to the early warning terminal equipment, and when the actual railway distance between the railway train and the early warning terminal equipment is larger than the early warning distance of the early warning terminal equipment, the railway train-running approach early warning information is not sent to the early warning terminal equipment.
The invention provides a railway train running early warning device, which comprises a first railway line of a railway train running towards early warning terminal equipment and a second railway line where the early warning terminal equipment is located, wherein the railway train running towards the early warning terminal equipment is determined to be switched to a line switching point of the railway line where the early warning terminal equipment is located according to the first railway line and the second railway line, so that the actual railway distance between the railway train running towards the early warning terminal equipment and the early warning terminal equipment is calculated according to the line switching point, and when the actual railway distance is smaller than or equal to the early warning distance of the early warning terminal equipment, railway train running approach early warning information is sent to the early warning terminal equipment. Therefore, when the railway train and the terminal equipment are not on the same railway line, the method firstly determines the line switching point of the railway train driven to the early warning terminal equipment and switched to the railway line where the early warning terminal equipment is located, then respectively determines the distance between the railway train and the line switching point and the distance between the terminal equipment and the line switching point based on the position information of the line switching point, and further can obtain the actual distance between the railway train and the terminal equipment on the railway by using a distance summation mode. The method and the device carry out the railway train approaching early warning according to the actual railway distance between the railway train driving to the early warning terminal device and the early warning terminal device, compared with the existing longitude and latitude calculation mode, the method and the device can more accurately calculate the actual railway distance between the railway train driving to the early warning terminal device and the early warning terminal device on the railway, thereby improving the accuracy of the railway train driving early warning and avoiding early warning false alarm. In addition, compared with the existing radio station early warning mode, when the railway vehicle approaches the terminal equipment after multiple line changes, accurate early warning can be carried out through the actual distance between the railway vehicle and the early warning terminal equipment on the railway, and the defect that whether the terminal equipment is early warned or not cannot be judged due to the fact that the railway vehicle changes the line for multiple times is overcome.
Fig. 11 illustrates a physical structure diagram of an electronic device, and as shown in fig. 11, the electronic device may include: a processor (processor)1110, a communication Interface (Communications Interface)1120, a memory (memory)1130, and acommunication bus 1140, wherein theprocessor 1110, thecommunication Interface 1120, and thememory 1130 communicate with each other via thecommunication bus 1140.Processor 1110 may invoke logic instructions inmemory 1130 to perform a railway train warning method comprising: acquiring a first railway line of a railway train running towards early warning terminal equipment and a second railway line where the early warning terminal equipment is located; according to the first railway line and the second railway line, determining a line switching point for switching a railway train running towards the early warning terminal equipment to the railway line where the early warning terminal equipment is located; and calculating the actual railway distance between the railway train running to the early warning terminal equipment and the early warning terminal equipment according to the line switching point, and sending railway train running approach early warning information to the early warning terminal equipment when the actual railway distance is less than or equal to the early warning distance of the early warning terminal equipment.
In addition, the logic instructions in thememory 1130 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer readable storage medium, when the computer program is executed by a processor, a computer can execute the railway train warning method provided by the above methods, and the method includes: acquiring a first railway line of a railway train running towards early warning terminal equipment and a second railway line where the early warning terminal equipment is located; according to the first railway line and the second railway line, determining a line switching point for switching a railway train running towards the early warning terminal equipment to the railway line where the early warning terminal equipment is located; and calculating the actual railway distance between the railway train running to the early warning terminal equipment and the early warning terminal equipment according to the line switching point, and sending railway train running approach early warning information to the early warning terminal equipment when the actual railway distance is less than or equal to the early warning distance of the early warning terminal equipment.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the method for warning of railway train operation provided by the above methods, the method including: acquiring a first railway line of a railway train running towards early warning terminal equipment and a second railway line where the early warning terminal equipment is located; according to the first railway line and the second railway line, determining a line switching point for switching a railway train running towards the early warning terminal equipment to the railway line where the early warning terminal equipment is located; and calculating the actual railway distance between the railway train running to the early warning terminal equipment and the early warning terminal equipment according to the line switching point, and sending railway train running approach early warning information to the early warning terminal equipment when the actual railway distance is less than or equal to the early warning distance of the early warning terminal equipment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.