CN113758450B - Train length measuring method and device, computer equipment and computer readable storage medium - Google Patents

Train length measuring method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN113758450B
CN113758450B CN202111056029.8A CN202111056029A CN113758450B CN 113758450 B CN113758450 B CN 113758450B CN 202111056029 A CN202111056029 A CN 202111056029A CN 113758450 B CN113758450 B CN 113758450B
Authority
CN
China
Prior art keywords
section
train
change information
segment
current position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111056029.8A
Other languages
Chinese (zh)
Other versions
CN113758450A (en
Inventor
杜运
胡谢华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Luxin Technology Co ltd
Original Assignee
Hangzhou Luxin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Luxin Technology Co ltd filed Critical Hangzhou Luxin Technology Co ltd
Priority to CN202111056029.8A priority Critical patent/CN113758450B/en
Publication of CN113758450A publication Critical patent/CN113758450A/en
Application granted granted Critical
Publication of CN113758450B publication Critical patent/CN113758450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Abstract

The embodiment of the invention discloses a method, a device, computer equipment and a computer readable storage medium for measuring the length of a train, wherein the method for measuring the length of the train comprises the following steps: the method comprises the steps of obtaining a running section set of the train, receiving the current position of the train and the corresponding time point sent by the train in real time, updating the section state in the running section set when section change information including section state change time is received, then determining the position of a section corresponding to the section change information, determining the current position of the train matched with the section change information according to all the received time points and the section state change time, and further calculating the length of the train and the number of train covers of the train according to the current position of the train and the position of the section corresponding to the section change information. Therefore, the dynamic quantity of the train is long, the number of the train carriages of the train is further determined, and freight accidents caused by manual operation errors are avoided.

Description

Train length measuring method and device, computer equipment and computer readable storage medium
Technical Field
The invention relates to the field of railways, in particular to a method, a device, computer equipment and a computer readable storage medium for measuring the length of a train.
Background
In the shunting operation process, shunting operation personnel carry out the operation of picking and hanging the train wagon according to a shunting operation plan so as to realize the marshalling and the ungluing of the train.
However, in the actual operation process, due to other reasons such as long train length and bad operation environment, errors may occur when shunting operation personnel take off and hang the train wagons, and the number of the train wagons connected with the train is incorrect; the condition that the number of the train carriages is incorrect is difficult to find in time after the train runs, so that freight accidents are easily caused.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a computer device and a computer readable storage medium for train length to improve the situation that it is difficult to find the incorrect number of train wagons after a train runs.
In a first aspect, an embodiment of the present invention provides a method for measuring train volume, which is applied to a server and includes:
acquiring a running section set of the train, wherein the running section set comprises at least one section with an occupied state and at least two sections with idle states;
receiving running information sent by a train in real time, wherein the running information comprises the current position of the train and a time point corresponding to the current position of the train;
updating the state of a corresponding section in the driving section set according to the received section change information, and determining the position of the section corresponding to the section change information, wherein the section change information comprises section state change time;
and determining the current position of the train matched with the section change information by using the section state change time and all time points, and calculating the length of the train and the number of train wagons of the train by using the position of the section corresponding to the section change information and the current position of the train matched with the section change information.
Optionally, in an implementation manner provided by the embodiment of the present invention, each section in the travel section set is sorted according to a travel route of the train, and the section change information includes first section change information and second section change information, where the first section change information is the section change information of the section with the smallest sequence number and an idle state, which is sorted after the section with an occupied state in the travel section set, and the second section change information is the section change information of the section with the smallest sequence number and an occupied state in the travel section set;
determining the current position of the train matched with the section change information by using the section state change time and all time points, and calculating the length of the train and the number of train wagons of the train by using the position of the section corresponding to the section change information and the current position of the train matched with the section change information, wherein the method comprises the following steps:
determining the current position of a first train matched with the first section change information and the current position of a second train matched with the second section change information by using the section change time of the first section change information, the section change time of the second section change information and all time points;
calculating a first distance according to the position of the section corresponding to the first section change information and the current position of the first train, and calculating a second distance according to the position of the section corresponding to the second section change information and the current position of the second train;
and obtaining the length of the train and the number of the train wagons by using the first distance and the second distance.
Further, in an implementation manner provided by the embodiment of the present invention, the method further includes:
and determining the operation mode of the train according to the first distance and the second distance, wherein the operation mode comprises a single machine operation mode, a train traction operation mode and a train propulsion operation mode.
Optionally, in an implementation manner provided by the embodiment of the present invention, the method further includes:
storing the length of the train to a train length set;
and if the length of the train length set is greater than or equal to the preset value, obtaining the standard length of the train according to the train length set.
Optionally, in an implementation manner provided by the embodiment of the present invention, the section change information further includes a number of a section corresponding to the section change information;
prior to the step of obtaining a set of travel sections of the train, the method further comprises:
constructing a section database, wherein the section database comprises the positions and section numbers of all sections;
determining the position of the section corresponding to the section change information, including:
and determining the position of the section corresponding to the section change information from the section database according to the number of the section corresponding to the section change information.
Optionally, in an implementation manner provided by the embodiment of the present invention, the driving information further includes a current speed of the train;
after the step of receiving the driving information transmitted by the train in real time, before the step of changing information according to the received section, the method further includes:
correcting the current position of the train corresponding to the time point by using the time point of the received running information of the train and the recently received running information;
and taking the corrected current position of the train as the current position of the train corresponding to the time point.
In a second aspect, an embodiment of the present invention provides a train length measuring device, which is applied to a server, and includes:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a running section set of a train, and the running section set comprises at least one section with an occupied state and at least two sections with idle states;
the receiving module is used for receiving running information sent by the train in real time, wherein the running information comprises the current position of the train and a time point corresponding to the current position of the train;
the determining module is used for updating the state of the corresponding section in the driving section set according to the received section change information and determining the position of the section corresponding to the section change information, wherein the section change information comprises section state change time;
and the calculation module is used for determining the current position of the train matched with the section change information by using the section state change time and all time points, and calculating the length of the train and the number of the train wagons of the train by using the position of the section corresponding to the section change information and the current position of the train matched with the section change information.
Optionally, in an implementation manner provided by the embodiment of the present invention, the section change information further includes a number of a section corresponding to the section change information;
the device still includes:
the construction module is used for constructing a section database, wherein the section database comprises the positions and section numbers of all sections;
the determining module is further configured to determine, from the segment database, a position of the segment corresponding to the segment change information according to the number of the segment corresponding to the segment change information.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the train length method disclosed in any one of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when running on a processor, executes the train length method disclosed in any one of the first aspect.
The train length measuring method provided by the embodiment of the invention is used for acquiring a running section set of a train and receiving running information which is sent by the train and comprises the current position of the train and a corresponding time point in real time; when receiving section change information including section state change time, updating a corresponding section state in the driving section set, and then determining the position of a section corresponding to the section change information; and determining the current position of the train matched with the section change information according to all the received time points and the section state change time, and further calculating the length of the train and the number of the train wagons according to the current position of the train and the position of the section corresponding to the section change information.
Therefore, the train quantity lengthening method provided by the embodiment of the invention realizes the dynamic quantity lengthening of the train, and further determines the number of train wagons of the train, thereby avoiding freight accidents caused by manual operation errors; and the section where the train is located, namely the position of the train is determined according to the received running information and section change information of the train, so that the dynamic positioning of the train is realized.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic flow chart illustrating a train length measuring method according to an embodiment of the present invention;
FIG. 2 illustrates a train operation schematic provided by an embodiment of the present invention;
FIG. 3 illustrates another schematic train driving diagram provided by an embodiment of the present invention;
FIG. 4 illustrates a schematic diagram of a locomotive provided by an embodiment of the present invention;
fig. 5 shows a schematic structural diagram of a train length measuring device provided by the embodiment of the invention.
Description of the main element symbols:
201 locomotive, 202 railroad car, 203 first wheel, 204 second wheel, 205 first section, 206 second section, 207 third section, 208 on-board positioning device, 209 fourth section, 210 fifth section, 211 sixth section, 212 third wheel.
300-train length measuring device, 310-acquisition module, 320-receiving module, 330-determination module and 340-calculation module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a train quantity length method according to an embodiment of the present invention, where the train quantity length method according to the embodiment of the present invention is applied to a server, and includes:
s110, acquiring a running section set of the train, wherein the running section set comprises at least one section with an occupied state and at least two sections with idle states.
Specifically, the train in an embodiment of the present invention includes a block train, which is composed of a locomotive for providing power to the train and a railroad car for consignment of goods.
It should be noted that, in the travel segment set provided in the embodiment of the present invention, if the travel segment set only includes three segments, and the segments whose states are idle include the segments before the segments whose states are occupied and the segments after the segments whose states are occupied. The status of a sector is occupied, indicating that a train is traveling on the sector, and the status of a sector is free, indicating that the sector is that the train has just left or is about to enter. Note that all the segments in the travel segment set are connected segments.
It is also understood that the travel zone set includes at least three zones and status information for each zone, and optionally, the travel zone set also includes location information for each zone.
Further, the travel section set may include only a section in which the state in which the train is traveling is occupied, and a section in which the upcoming state is vacant, indicating that the train has just left from this section when the state of the section changes from occupied to vacant; when the status of a sector changes from idle to occupied, it indicates that the train has just arrived in the sector.
Furthermore, the driving section set may further include all sections corresponding to the driving route of the train, that is, the sections representing that the train is to be driven in, driven out and driving, and the driving section set may be used to determine the driving condition of the train on the driving route.
And S120, receiving running information sent by the train in real time, wherein the running information comprises the current position of the train and a time point corresponding to the current position of the train.
Specifically, a locomotive of the train is installed with a vehicle-mounted positioning device, and the vehicle-mounted positioning device is used for sending running information to a server at preset time intervals, wherein the running information includes but is not limited to: the current position of the vehicle-mounted positioning equipment, namely the current position of the train, and the time point corresponding to the current position of the train. And after receiving the running information, the server analyzes and stores the current position of the train and the corresponding time point. It will be appreciated that after a period of train travel, the server stores a plurality of current train positions and corresponding points in time, for example: the server stores (P1, T1) and (P2, T2), wherein (P1, T1) indicates that the vehicle-mounted positioning equipment sends the running information to the server, the position of the train is P1 at the moment, the time point corresponding to P1 is T1, and the server stores (P1, T1); after a preset time interval, the vehicle-mounted positioning device sends the running information to the server again, the position of the train is P2, the time point corresponding to the P2 is T2, and the server stores the P2 and the T2 in the same way.
Optionally, in an implementation manner provided by the embodiment of the present invention, the vehicle-mounted positioning device includes an inertial navigation function. It can be understood that when the train runs to a section with a complex environment, signal obstacles such as buildings, pipelines and the like may exist around the section, and further, the on-board positioning device is influenced to acquire the position of the on-board positioning device and send running information, so that the amount of precision and the positioning precision are influenced. Therefore, in order to ensure the measuring length precision and the positioning precision, the embodiment of the invention reduces the signal interference of the surrounding environment of the section based on the inertial navigation function of the vehicle-mounted positioning equipment, thereby ensuring the measuring length precision and the positioning precision.
Further, in an implementation manner provided by the embodiment of the present invention, the vehicle-mounted positioning device includes a GNSS (Global Navigation Satellite System) vehicle-mounted positioner having an inertial Navigation function.
S130, updating the state of the corresponding section in the driving section set according to the received section change information, and determining the position of the section corresponding to the section change information, wherein the section change information comprises section state change time.
It can be understood that a common section monitoring method is that a railway monitoring device performs voltage monitoring on each insulation section, i.e., section, of a railway of a track to determine whether a train is driven in/out, and then generates section change information and sends the section change information to a server.
In the method for increasing the train volume provided by the embodiment of the invention, the railway monitoring equipment records the change time of the section besides the state change of the section. It should be noted that, the time of the railway monitoring device is synchronized with the time of the vehicle-mounted positioning device, and it can also be understood that the clock difference of the two types of time is the same.
Further, after receiving the section change information, the server determines the section corresponding to the section change information, that is, determines which section in the railway track has changed in state, so as to correspondingly update the sections in the travel section set. It should be understood that the section change information includes change information of at least one section, that is, only one section may have changed at a time, such as changing from occupied to vacant or from vacant to occupied, or both sections may have changed states, such as changing one section from occupied to vacant while changing the other section from vacant to occupied.
Optionally, when the railway monitoring device monitors that the section changes, the location of the section with the changed section state may be recorded together, and then the section change information sent to the server includes the location of the section corresponding to the section change information, so that the server can determine the section corresponding to the section change information after analyzing the section change information.
It is understood that the position of a segment includes at least the end position of the segment if the segment changes from occupied to free, and at least the start position of the segment if the segment changes from free to occupied; the position of a segment may also be understood as a set of position points of the segment, each point in the set of position points representing the position of the segment in question, and the set of position points representing the complete position of the segment in question.
In an implementation manner provided by the embodiment of the present invention, the section change information further includes a number of a section corresponding to the section change information;
prior to S110, the method further comprises:
constructing a section database, wherein the section database comprises the positions and section numbers of all sections;
further, S130 includes:
and determining the position of the section corresponding to the section change information from the section database according to the number of the section corresponding to the section change information.
Specifically, in this embodiment of the present invention, since the segment database pre-stores the positions and numbers of all the segments, the server can search from the segment database according to the numbers to determine the segment with the changed state when obtaining the segment number corresponding to the segment change information.
In this embodiment, the position of the segment includes a set of position points, each point in the set of position points represents the position of the segment, and the set of position points represents the complete position of the segment. And then after the server searches the corresponding section position in the section database according to the serial number, acquiring a point corresponding to the end point of the section of the position point set and/or a point corresponding to the starting point of the section based on the state change of the section.
Further, in an implementation manner provided by the embodiment of the present invention, the travel section set includes the number of each section, and when the number in the section change information is obtained, the travel section set may be updated according to the number.
And S140, determining the current position of the train matched with the section change information by using the section state change time and all time points, and calculating the length of the train and the number of train wagons by using the position of the section corresponding to the section change information and the current position of the train matched with the section change information.
Specifically, the server determines whether a time point, at which a time difference from the section state change time is smaller than a preset value, exists in all the travel information according to the section state change time in the section change information, and if so, determines that the current position of the train corresponding to the time point is matched with the section change information.
It is understood that, when there are a plurality of time points at which the time difference from the section state change time is smaller than the preset value, the time point at which the time difference is the smallest is selected.
Further, when the time difference between a certain time point and the section state change time is smaller than a preset value, the error between the time point and the section state change time can be ignored, and then the position of the locomotive of the train at the certain time point is determined.
Exemplarily, referring to fig. 2, fig. 2 shows a train driving schematic diagram provided by an embodiment of the present invention, which includes a locomotive 201, a railway wagon 202, a first wheel 203, a second wheel 204, a first section 205, a second section 206, and a third section 207, wherein an on-board positioning device 208 is installed in the locomotive 201, the arrow shown in the diagram is a driving direction of the train, that is, the driving direction of the train is from left to right, the second wheel 204 just drives away from the first section 205, a state of the first section 205 changes from occupied to idle, and states of the second section 206 and the third section 207 are occupied.
Further, the length of the train and the number of railroad cars may be calculated based on the position of the second section 206, the position of the third section 207, the position of the locomotive 201, and the position of the second wheel 204.
It will also be appreciated that the calculation of the number of wagons can be understood as: and subtracting the length of the locomotive from the length of the train, and dividing the length of each train wagon by the length of each train wagon to obtain the number of the train wagons. It should be noted that the length of the locomotive and the length of the railroad car are prestored in the server.
Therefore, the train length measuring method provided by the embodiment of the invention realizes the dynamic length of the train, further determines the number of train wagons of the train, and avoids freight accidents caused by manual operation errors; and the section where the train is located, namely the position of the train is determined according to the received running information and section change information of the train, so that the dynamic positioning of the train is realized.
Optionally, in an implementation manner provided by the embodiment of the present invention, each section in the driving section set is sorted according to a driving route of the train, and the section change information includes first section change information and second section change information, where the first section change information is the section change information of the section with the smallest sequence number and an empty state, which is sorted after the section with an occupied state in the driving section set, and the second section change information is the section change information of the section with the smallest sequence number and an occupied state in the driving section set;
further, S140 includes:
determining the current position of a first train matched with the first section change information and the current position of a second train matched with the second section change information by using the section change time of the first section change information, the section change time of the second section change information and all time points;
calculating a first distance according to the position of the section corresponding to the first section change information and the current position of the first train, and calculating a second distance according to the position of the section corresponding to the second section change information and the current position of the second train;
and obtaining the length of the train and the number of the train wagons by using the first distance and the second distance.
It is understood that the section corresponding to the first section change information indicates a section into which the train has just moved, and the section corresponding to the second section change information indicates a section from which the train has just moved. It is also understood that the server may include only the first section change information or only the second section change information among the section change information received at a certain time.
Further, the first distance represents a distance of the locomotive from a front-most pair of wheels of the train, and the second distance represents a distance of the locomotive from a rear-most pair of wheels of the train. Exemplarily, referring to fig. 3, fig. 3 shows another schematic running diagram of a train provided by an embodiment of the present invention, which includes a locomotive 201, a railroad car 202, a first wheel 203, a second wheel 204, a fourth zone 209, a fifth zone 210 and a sixth zone 211, wherein the locomotive 201 has a vehicle-mounted positioning device 208 installed therein, the direction of the arrow shown in the drawing is the running direction of the train, i.e., the running direction of the train is from left to right, the second wheel 204 just drives away from the fourth zone 209, the state of the fourth zone 209 changes from occupied to idle, the first wheel 203 just drives into the sixth zone 211, the state of the sixth zone 211 changes from idle to occupied, and the state of the fifth zone 210 is occupied. Fig. 3 and 2 show the same train running at different times.
Thus, based on a first distance between the locomotive 201 and the first wheel 203, a second distance between the locomotive 201 and the second wheel 204, and a location of the segment that is in the occupied state, a full length of the train and a number of railroad cars may be derived.
It will also be appreciated that the first distance is substantially less than the second distance and the first distance is substantially a difference in position between the onboard locating device 208 on the locomotive and the first wheel 203 on the locomotive, and thus in one embodiment of the present invention, the server has pre-stored therein a first locomotive distance between the onboard locating device locomotive of the train and the first pair of wheels of the locomotive and a second locomotive distance between the onboard locating device and the last pair of wheels of the locomotive, such that in a locomotive traction mode of operation, after the second distance is obtained, the train length may be obtained from the second distance and the first locomotive distance.
Further, in an implementation manner provided by the embodiment of the present invention, the method further includes:
and determining the operation mode of the train according to the first distance and the second distance, wherein the operation mode comprises a single machine operation mode, a train traction operation mode and a train propulsion operation mode.
It is to be understood that the stand-alone operation mode means that the train includes only locomotives, the locomotives not being connected to any railroad cars; the train traction operation mode and the train propulsion operation mode both indicate that the train comprises a locomotive and a train wagon, and in the train traction operation mode, the train wagon is positioned behind the locomotive and is pulled by the locomotive to move, as shown in fig. 2 and 3; in the train propelling operation mode, the train wagon is positioned in front of the locomotive and is propelled to move by the locomotive.
Specifically, referring to fig. 4, fig. 4 shows a schematic diagram of a locomotive provided by an embodiment of the present invention, including an on-board positioning device 208, a first wheel 203, and a third wheel 212. The server has pre-stored therein a first locomotive distance from the first wheel 203 of the on-board locating device 208 and a second locomotive distance from the on-board locating device 208 to the third wheel 212.
Further, when the sum of the first distance and the second distance is smaller than the value obtained by multiplying the sum of the first locomotive distance and the second locomotive distance by a first preset multiple, the operation mode of the train is determined to be a single-machine operation mode.
And when the difference between the first distance and the first locomotive distance is larger than the value obtained by multiplying the sum of the first locomotive distance and the second locomotive distance by a second preset multiple, determining the operation mode of the train as train traction operation.
And when the difference between the second distance and the second train distance is larger than the value obtained by multiplying the sum of the first locomotive distance and the second locomotive distance by a third preset multiple, determining the operation mode of the train as a train propelling operation mode.
Optionally, the first preset multiple is 1.2, and the second preset multiple and the third preset multiple are 0.5; it can be understood that the first preset multiple, the second preset multiple and the third preset multiple can be adjusted according to actual conditions.
Optionally, in an implementation manner provided in the embodiment of the present invention, the method further includes:
storing the length of the train to a train length set;
and if the size of the train length set is larger than or equal to a preset value, obtaining the standard length of the train according to the train length set.
It can be understood that due to factors such as the surrounding environment of the section, signal transmission attenuation, communication quality, data accuracy and the like, it cannot be guaranteed that the train length obtained each time is absolutely accurate, and a certain error may exist. Therefore, in the embodiment of the invention, the length of the train obtained each time is stored in the train length set, and when the number of the stored train lengths reaches a preset value and the length of the train length set is greater than or equal to the preset value, the standard length is calculated according to all the train lengths in the train length set; optionally, the calculation method includes, but is not limited to, averaging, taking the length with the highest frequency of occurrence, and taking the expected value.
Optionally, in an implementation manner provided by the embodiment of the present invention, the driving information further includes a current speed of the train;
after the step of receiving the driving information transmitted by the train in real time, before the step of changing information according to the received section, the method further includes:
correcting the current position of the train corresponding to the time point by using the time point of the received running information of the train and the recently received running information;
and taking the corrected current position of the train as the current position of the train corresponding to the time point.
Specifically, the correction process includes:
the time point of the received running information of the train is set as t1, the current position of the corresponding train is set as x1, the current position of the train in the running information received last time is set as x2, the time point is set as t2, and the current speed is set as v.
And calculating a train predicted position x3, wherein x3= (x 1+ (t 1-t 2) × v).
And judging whether the difference value of the x3 and the x1 is within a preset range, and if so, taking the x3 as the current position of the train corresponding to the t 1.
It can be understood that, in most running processes of the train, the running speed changes little, so that the train can be determined to run at a constant speed for a long time, and then the displacement variation of the train at preset time intervals is the same, thereby avoiding the problem of inaccurate positioning caused by signal attenuation and bad surrounding environment of the section of the vehicle-mounted positioning equipment.
Corresponding to the train length measuring method provided by the embodiment of the present invention, an embodiment of the present invention further provides a train length measuring device, referring to fig. 5, fig. 5 shows a schematic structural diagram of the train length measuring device provided by the embodiment of the present invention, the train length measuring device 300 provided by the embodiment of the present invention is applied to a server, and the train length measuring device 300 includes:
an obtaining module 310, configured to obtain a driving zone set of a train, where the driving zone set includes at least one zone in an occupied state and at least two zones in an idle state;
the receiving module 320 is configured to receive running information sent by a train in real time, where the running information includes a current position of the train and a time point corresponding to the current position of the train;
the determining module 330 is configured to update a state of a corresponding zone in the driving zone set according to the received zone change information, and determine a position of the zone corresponding to the zone change information, where the zone change information includes a zone state change time;
and the calculating module 340 is configured to determine the current position of the train matched with the section change information by using the section state change time and all time points, and calculate the length of the train and the number of train wagons connected to the train by using the position of the section corresponding to the section change information and the current position of the train matched with the section change information.
Optionally, in an implementation manner provided by the embodiment of the present invention, each section in the travel section set is sorted according to a travel route of the train, and the section change information includes first section change information and second section change information, where the first section change information is the section change information of the section with the smallest sequence number and an idle state, which is sorted after the section with an occupied state in the travel section set, and the second section change information is the section change information of the section with the smallest sequence number and an occupied state in the travel section set;
the calculation module 340 further includes:
the matching submodule is used for determining the current position of a first train matched with the first section change information and the current position of a second train matched with the second section change information by utilizing the section change time of the first section change information, the section change time of the second section change information and all time points;
the distance calculation submodule is used for calculating a first distance according to the position of the section corresponding to the first section change information and the current position of the first train, and calculating a second distance according to the position of the section corresponding to the second section change information and the current position of the second train;
and the length and number calculation submodule is used for obtaining the length of the train and the number of the train wagons connected with the train by utilizing the first distance and the second distance.
Further, in an implementation manner provided by the embodiment of the present invention, the apparatus further includes:
and the mode determining module is used for determining the operation mode of the train according to the first distance and the second distance, wherein the operation mode comprises a single machine operation mode, a train traction operation mode and a train propelling operation mode.
Optionally, in an implementation manner provided by the embodiment of the present invention, the apparatus further includes:
the storage module is used for storing the length of the train to a train length set;
and the standard calculation module is used for obtaining the standard length of the train according to the train length set if the length of the train length set is greater than or equal to a preset value.
Optionally, in an implementation manner provided by the embodiment of the present invention, the section change information further includes a number of a section corresponding to the section change information;
the device still includes:
the construction module is used for constructing a section database, wherein the section database comprises the positions and section numbers of all sections;
the determining module is further configured to determine, from the segment database, a position of the segment corresponding to the segment change information according to the number of the segment corresponding to the segment change information.
Optionally, in an implementation manner provided by the embodiment of the present invention, the driving information further includes a current speed of the train;
the device still includes:
the first correction module is used for correcting the current position of the train corresponding to the time point by using the time point of the received running information of the train and the latest received running information;
and the second correction module is used for taking the corrected current position of the train as the current position of the train corresponding to the time point.
It can be understood that the technical solution of the train quantity lengthening device disclosed in the embodiment of the present invention is used for implementing the train quantity lengthening method disclosed in the embodiment through the synergistic effect of each functional module, and the implementation solution and the beneficial effect related to the train quantity lengthening method are also applicable in the embodiment, and are not described herein again.
The embodiment of the invention also provides computer equipment which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program executes the train volume length method disclosed in the embodiment when running on the processor.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on a processor, the method for measuring train volume disclosed in the embodiment is executed.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can 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 smart phone, a personal computer, a server, or a network device, etc.) 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 various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (9)

1. The train length measuring method is applied to a server and comprises the following steps:
acquiring a running section set of a train, wherein the running section set comprises at least one section with an occupied state and at least two sections with idle states, and each section in the running section set is sequenced according to a running route of the train;
receiving running information sent by the train in real time, wherein the running information comprises the current position of the train and a time point corresponding to the current position of the train;
updating the state of a corresponding section in the driving section set according to the received section change information, and determining the position of the section corresponding to the section change information, wherein the section change information comprises section state change time, the section change information comprises first section change information and second section change information, the first section change information is the section change information of the section which is sequenced after the section with the occupied state and has the minimum sequence number and the free state in the driving section set, and the second section change information is the section change information of the section with the minimum sequence number and the occupied state in the driving section set;
determining the current position of the train matched with the section change information by using the section state change time and all the time points, and calculating the length of the train and the number of train wagons of the train by using the position of the section corresponding to the section change information and the current position of the train matched with the section change information;
the determining, by using the section state change time and all the time points, a current position of the train matched with the section change information, and calculating, by using a position of a section corresponding to the section change information and a current position of the train matched with the section change information, a length of the train and a number of train wagons of the train, including:
determining the current position of a first train matched with the first section change information and the current position of a second train matched with the second section change information by using the section change time of the first section change information, the section change time of the second section change information and all the time points;
calculating a first distance according to the position of the section corresponding to the first section change information and the current position of the first train, and calculating a second distance according to the position of the section corresponding to the second section change information and the current position of the second train;
and obtaining the length of the train and the number of the train wagons by using the first distance and the second distance.
2. The method of claim 1, further comprising:
and determining the operation mode of the train according to the first distance and the second distance, wherein the operation mode comprises a single machine operation mode, a train traction operation mode and a train propulsion operation mode.
3. The method of claim 1, further comprising:
storing the length of the train to a train length set;
and if the length of the train length set is greater than or equal to a preset value, obtaining the standard length of the train according to the train length set.
4. The method according to claim 1, wherein the section change information further includes a number of a section to which the section change information corresponds;
prior to the step of obtaining a set of travel sections of the train, the method further comprises:
constructing a section database, wherein the section database comprises the positions and section numbers of all sections;
the determining the position of the section corresponding to the section change information includes:
and determining the position of the section corresponding to the section change information from the section database according to the number of the section corresponding to the section change information.
5. The method of claim 1, wherein the driving information further includes a current speed of the train;
after the step of receiving the driving information transmitted by the train in real time, and before the step of changing information according to the received section, the method further includes:
correcting the current position of the train corresponding to the time point by using the time point of the received running information of the train and the running information received last time;
and taking the corrected current position of the train as the current position of the train corresponding to the time point.
6. The utility model provides a train length measuring device which is characterized in that, is applied to the server, includes:
the train control system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a running section set of a train, the running section set comprises at least one section with an occupied state and at least two sections with idle states, and each section in the running section set is sorted according to a running route of the train;
the receiving module is used for receiving running information sent by the train in real time, wherein the running information comprises the current position of the train and a time point corresponding to the current position of the train;
a determining module, configured to update a state of a corresponding segment in the driving segment set according to received segment change information, and determine a position of the segment corresponding to the segment change information, where the segment change information includes segment state change time, the segment change information includes first segment change information and second segment change information, the first segment change information is the segment change information of the segment with the smallest sequence number and an idle state, which is sequenced after the segment with the smallest sequence number and an occupied state in the driving segment set, and the second segment change information is the segment change information of the segment with the smallest sequence number and an occupied state in the driving segment set;
the calculation module is used for determining the current position of the train matched with the section change information by using the section state change time and all the time points, and calculating the length of the train and the number of the train carriages of the train by using the position of the section corresponding to the section change information and the current position of the train matched with the section change information;
the calculation module further comprises:
the matching submodule is used for determining the current position of a first train matched with the first section change information and the current position of a second train matched with the second section change information by utilizing the section change time of the first section change information, the section change time of the second section change information and all the time points;
the distance calculation submodule is used for calculating a first distance according to the position of the section corresponding to the first section change information and the current position of the first train, and calculating a second distance according to the position of the section corresponding to the second section change information and the current position of the second train;
and the length and number calculation submodule is used for obtaining the length of the train and the number of the train wagons by utilizing the first distance and the second distance.
7. The apparatus according to claim 6, wherein the section change information further includes a number of a section to which the section change information corresponds;
the device further comprises:
the system comprises a construction module, a database management module and a database management module, wherein the construction module is used for constructing a section database, and the section database comprises the positions and section numbers of all sections;
the determining module is further configured to determine, from the segment database, a position of the segment corresponding to the segment change information according to the number of the segment corresponding to the segment change information.
8. A computer arrangement, characterized by comprising a memory and a processor, the memory storing a computer program which, when run on the processor, performs the train length method according to any one of claims 1-5.
9. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when run on a processor, performs the train length method according to any one of claims 1-5.
CN202111056029.8A 2021-09-09 2021-09-09 Train length measuring method and device, computer equipment and computer readable storage medium Active CN113758450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111056029.8A CN113758450B (en) 2021-09-09 2021-09-09 Train length measuring method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111056029.8A CN113758450B (en) 2021-09-09 2021-09-09 Train length measuring method and device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113758450A CN113758450A (en) 2021-12-07
CN113758450B true CN113758450B (en) 2023-03-24

Family

ID=78794427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111056029.8A Active CN113758450B (en) 2021-09-09 2021-09-09 Train length measuring method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113758450B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111551122A (en) * 2020-06-30 2020-08-18 上海振华重工(集团)股份有限公司 Train wagon number and length measuring system and method based on laser radar

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004271255A (en) * 2003-03-06 2004-09-30 Railway Technical Res Inst Train own-vehicle position detection method and train own-vehicle position detection system
DE102006062559B4 (en) * 2006-12-29 2014-10-16 Deutsches Zentrum für Luft- und Raumfahrt e.V. Method for measuring a maximum train length
AU2015202191B2 (en) * 2010-03-18 2016-04-28 Knorr-Bremse Systeme Fur Schienenfahrzeuge Gmbh Method and device for train length detection
CN109239748A (en) * 2017-07-10 2019-01-18 比亚迪股份有限公司 Train running information acquisition methods and device based on GNSS
CN210852477U (en) * 2019-05-31 2020-06-26 北京全路通信信号研究设计院集团有限公司 Fiber grating sensing axle counting system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111551122A (en) * 2020-06-30 2020-08-18 上海振华重工(集团)股份有限公司 Train wagon number and length measuring system and method based on laser radar

Also Published As

Publication number Publication date
CN113758450A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CA2530299C (en) Method and system for compensating for wheel wear on a train
US5129605A (en) Rail vehicle positioning system
US6311109B1 (en) Method of determining train and track characteristics using navigational data
JP5312597B2 (en) Automatic train control device and train control method
CN107709136B (en) Method and device for determining driving authorization for a rail vehicle
EP0791518A1 (en) Rail navigation system
US6970774B2 (en) Method and system for compensating for wheel wear on a train
US6701228B2 (en) Method and system for compensating for wheel wear on a train
US20130090801A1 (en) Vehicle location identification systems and methods
AU2019203608B2 (en) Train-service management device, system, and method
CN101980912A (en) System and method for verifying a distributed power train setup
GB2541710A (en) Locating train events on a railway network
CN102745213A (en) High speed railway train scheduling system capable of prompting front road condition and method thereof
JPWO2017195316A1 (en) On-vehicle apparatus and method for calculating the occupied range of trains
CN103223956A (en) Device and scaling method for scaling fault position by online vehicle-mounted rail fracture monitoring
CN110203253A (en) A kind of free-standing virtual transponder implementation method
US20090271052A1 (en) Automatic estimation of train characteristics
CN113758450B (en) Train length measuring method and device, computer equipment and computer readable storage medium
AU2007200972A1 (en) System and method for verifying the integrity of a train
RU2422315C1 (en) System for locomotive movement control during shunting operations
CN114435430A (en) Method, system, device and medium for compensating and correcting positioning error of transponder
JP2006006030A (en) Drive pattern creation device, vehicle speed control device and vehicle drive support device
EP2386459A2 (en) Train location system
RU2446069C1 (en) Train control system
CN113548094B (en) Train positioning and coupling method and system based on multiple sensors

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant