Train and self-adaptive speed measurement method and device thereof, storage medium and integrated circuit
Through the adaptive speed measurement method, the current speed of the train is calculated using speed sensors and sampling clocks, and the predicted average speed measurement method is used within the preset range, which solves the problems of large errors and high operating costs in the existing technology, and realizes accurate position detection and Cost reduction.
Patent Information
- Application Number
- CN202411243743.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2025-01-03
AI Technical Summary
In the existing train speed measurement technology, the instantaneous speed measurement method has a large error, and the orthogonal coding algorithm requires dual-channel sensors, which leads to high operating costs and when the accurate position cannot be detected, multiple transponders need to be set up to ensure safe operation.
Adaptive speed measurement method is adopted to obtain the speed pulse signal through the speed sensor, sample the clock and sample the number of clock cycles, calculate the current speed, and update the speed using the predicted average speed measurement method within the preset speed range to reduce the number of transponder arrangements.
It improves train speed detection accuracy and speed measurement application scenarios, improves position detection accuracy, and reduces operating costs.
Smart Images

Figure CN119239686A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of train speed measurement, and in particular to a train and its adaptive speed measurement method and device, storage medium, and integrated circuit. Background Art
[0002] Train position detection is a very important detection data in train operation. Generally, the train position is calculated by detecting the train speed.
[0003] In related technologies, the speed of a train is generally detected by instantaneous speed measurement methods, orthogonal coding algorithms, etc. However, the instantaneous speed measurement method has a large error because it only uses one pulse for calculation. The orthogonal coding algorithm requires the sensor to be dual-channel and limit the phase difference, which has high requirements for application scenarios. When the exact position of the train cannot be detected, more transponders need to be set up to ensure the safe operation of the train, which greatly increases the operating cost of the train. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first object of the present invention is to propose an adaptive speed measurement method for a train, which can improve the detection accuracy of the train speed and the application scenario of the speed measurement, thereby improving the position detection accuracy, and reducing the number of transponders to reduce the operating cost of the train.
[0005] A second object of the present invention is to provide a computer-readable storage medium.
[0006] A third objective of the present invention is to provide a programmable integrated circuit.
[0007] A fourth object of the present invention is to provide an adaptive speed measuring device for a train.
[0008] A fifth object of the present invention is to provide a train.
[0009] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes an adaptive speed measurement method for a train, wherein the train is provided with a speed sensor, and the method comprises: acquiring a speed pulse signal collected by the speed sensor; sampling the number of clock cycles in a speed pulse cycle in the speed pulse signal by a sampling clock; calculating the current speed of the train according to the number of clock cycles; when the current speed is not within a preset speed range, repeating the above steps to update the current speed of the train, and when the current speed is within the preset speed range, using a predicted average speed measurement method to further update the current speed of the train.
[0010] The adaptive speed measurement method of the train in the embodiment of the present invention first obtains the speed pulse signal collected by the speed sensor arranged on the train, and then samples the number of clock cycles in a speed pulse cycle in the speed pulse signal through the sampling clock, and calculates the current speed of the train through the formula conversion, and judges the current speed. If the current speed is not within the preset speed range, the current speed of the train is continued to be updated by the above method. If the current speed is within the preset speed range, the average value speed measurement method is used to further update the current speed of the train, thereby improving the detection accuracy of the train speed and the speed measurement application scenarios, thereby improving the position detection accuracy, and reducing the number of transponders arranged to reduce the operating cost of the train.
[0011] In some embodiments of the present invention, the current speed of the train is further updated by using a predicted average speed measurement method, including: obtaining a sampling period of the predicted average speed measurement method; determining the number of first clock periods contained in the sampling period and the number of second clock periods in a speed pulse period in the speed pulse signal according to the sampling period and the sampling clock; when the number of the second clock periods is less than the number of the first clock periods, predicting the number of clock periods in the next speed pulse period adjacent to the speed pulse period in the speed pulse signal to obtain a first prediction result, and accumulating the first prediction result with the number of clock periods in the sampled speed pulse period to obtain a first accumulation result; if the first accumulation result is still less than the first clock period, sampling the number of second clock periods in the next speed pulse period, and accumulating the number of second clock periods in multiple sampled speed pulse periods until the accumulation result is greater than or equal to the first clock period; calculating the average number of clock periods in each sampled speed pulse period according to the accumulation result and the number of sampled speed pulse periods; and replacing the number of clock periods with the average number of clock periods to calculate the current speed of the train.
[0012] In some embodiments of the present invention, the method also includes: when the second number of clock cycles is greater than or equal to the first number of clock cycles, or the first accumulated result is greater than or equal to the first number of clock cycles, directly calculating the current speed of the train based on the second number of clock cycles.
[0013] In some embodiments of the present invention, the number of clock cycles in the next speed pulse cycle adjacent to the speed pulse cycle in the speed pulse signal is predicted to obtain a first prediction result, including: assigning a value to the number of clock cycles in the next speed pulse cycle adjacent to the speed pulse cycle according to the number of clock cycles in the speed pulse cycle to obtain the first prediction result.
[0014] In some embodiments of the present invention, before further updating the current speed of the train using the predicted average speed measurement method, the method further includes: determining that an adaptive speed measurement function of the train is in an on state.
[0015] In some embodiments of the present invention, calculating the current speed of the train based on the number of clock cycles includes: calculating a first product of the number of clock cycles and pi, and calculating a second product of the clock cycle, wheel parameters of the train, and specification parameters of the speed sensor; calculating the current speed of the train based on the first product and the second product.
[0016] In some embodiments of the present invention, after acquiring the speed pulse signal collected by the speed sensor, the method further includes: performing filtering processing on the speed pulse signal.
[0017] In some embodiments of the present invention, the method further includes: when the current speed is greater than a preset speed, determining that the current speed is within the preset speed range; when the current speed is less than or equal to the preset speed, determining that the current speed is not within the preset speed range.
[0018] To achieve the above-mentioned purpose, a second aspect of the present invention proposes a computer-readable storage medium, which includes an adaptive speed measurement program for a train. When the adaptive speed measurement program for a train is executed by a processor, the adaptive speed measurement method for a train described in any of the above-mentioned embodiments is implemented.
[0019] The computer-readable storage medium of an embodiment of the present invention executes the adaptive speed measurement program of the train stored thereon through a processor, thereby improving the detection accuracy of the train speed and the application scenarios of the speed measurement, thereby improving the position detection accuracy, and reducing the number of transponders arranged to reduce the operating cost of the train.
[0020] To achieve the above-mentioned purpose, an embodiment of the third aspect of the present invention proposes a programmable integrated circuit, which includes a memory and a processor, wherein the memory stores an adaptive speed measurement program for a train, and when the adaptive speed measurement program for the train is executed by the processor, the adaptive speed measurement method for the train described in any of the above-mentioned embodiments is implemented.
[0021] The programmable integrated circuit of an embodiment of the present invention includes a memory and a processor. The processor executes the adaptive speed measurement program of the train stored in the memory, which can improve the detection accuracy of the train speed and the speed measurement application scenarios, thereby improving the position detection accuracy and reducing the number of transponders deployed to reduce the operating costs of the train.
[0022] To achieve the above-mentioned purpose, the fourth aspect of the present invention proposes an adaptive speed measuring device for a train, wherein the train is provided with a speed sensor, and the device comprises: an acquisition module, used to acquire a speed pulse signal collected by the speed sensor; a sampling module, used to sample the number of clock cycles in a speed pulse cycle in the speed pulse signal through a sampling clock; a calculation module, used to calculate the current speed of the train according to the number of clock cycles, and when the current speed is not within a preset speed range, repeat the above steps to update the current speed of the train, and when the current speed is within the preset speed range, use a predicted average speed measurement method to further update the current speed of the train.
[0023] The adaptive speed measuring device of the train in the embodiment of the present invention first obtains the speed pulse signal collected by the speed sensor arranged on the train through the acquisition module, and then uses the sampling module to sample the number of clock cycles in a speed pulse cycle in the speed pulse signal through the sampling clock, and calculates the current speed of the train through the formula conversion, and judges the current speed through the calculation module. If the current speed is not within the preset speed range, the current speed of the train is continued to be updated by the above method. If the current speed is within the preset speed range, the average value speed measurement method is used to further update the current speed of the train. Thereby, the detection accuracy of the train speed and the speed measurement application scenarios are improved, thereby improving the position detection accuracy, and reducing the number of transponders arranged to reduce the operating cost of the train.
[0024] To achieve the above-mentioned object, a fifth aspect of the present invention provides a train, which includes the adaptive speed measuring device of the train described in the above-mentioned embodiment.
[0025] The train of the embodiment of the present invention can improve the detection accuracy of the train speed and the speed measurement application scenarios through the adaptive speed measurement device of the train in the above embodiment, thereby improving the position detection accuracy and reducing the number of transponders arranged to reduce the operating cost of the train.
[0026] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a flow chart of a method for adaptive speed measurement of a train in one embodiment of the present invention;
[0028] Figure 2 is a flow chart of a method for adaptive speed measurement of a train in a specific embodiment of the present invention;
[0029] Figure 3 It is a schematic diagram of processing a speed pulse signal in a specific embodiment of the present invention;
[0030] Figure 4 is a schematic diagram of the structure of a programmable integrated circuit in an embodiment of the present invention;
[0031] Figure 5 1 is a structural block diagram of an adaptive speed measuring device for a train in an embodiment of the present invention;
[0032] Figure 6 1 is a structural block diagram of a train in an embodiment of the present invention. DETAILED DESCRIPTION
[0033] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0034] The train and its adaptive speed measurement method and device, storage medium, and integrated circuit according to the embodiments of the present invention are described below with reference to the accompanying drawings.
[0035] In the adaptive speed measurement method of the train of the present invention, the train is provided with a speed sensor, which can be arranged on the wheels of the train, and the running speed of the train is determined by detecting the wheel speed of the wheels. The speed sensor can be a pulse speed sensor. In addition, the adaptive speed measurement method of the present invention can be applied to an integrated circuit on the train, for example, it can be applied to an FPGA (Field Programmable Gate Array) of the train.
[0036] Figure 1 It is a flow chart of a method for adaptive speed measurement of a train in one embodiment of the present invention.
[0037] like Figure 1 The present invention proposes a method for adaptively measuring the speed of a train, the method comprising the following steps:
[0038] S10, obtaining a speed pulse signal collected by a speed sensor.
[0039] Specifically, the speed sensor can collect the wheel speed of the train. After the speed sensor collects the speed pulse signal, the speed pulse signal can be obtained through the integrated circuit. It should be noted that the speed sensor of the present embodiment can be selected according to the actual application scenario, and after the speed sensor is determined, some information in the speed pulse signal can be determined, such as the number of pulses in the speed pulse signal.
[0040] S20, sampling the number of clock cycles in one speed pulse cycle of the speed pulse signal by sampling the clock.
[0041] It can be understood that the processor used to execute the adaptive speed measurement method of this embodiment has a sampling clock, which is determined according to the model of the processor or the selection of the crystal oscillator in the processor, and is a fixed value. The clock period corresponding to the sampling clock is less than the speed pulse period in the speed pulse signal. The speed pulse period in the speed pulse signal can be sampled by the sampling clock, and the speed pulse period can be determined by the number of clock periods included in the sampled speed pulse period. For example, a speed pulse period includes N clock periods, and the clock period is T clk , then we can get the speed pulse period is N*T clk , wherein the clock cycle and the sampling clock are reciprocals of each other. In addition, in the sampling process of the speed pulse cycle in this embodiment, two adjacent rising edges or two adjacent falling edges can be defined as a speed pulse cycle.
[0042] S30, calculating the current speed of the train according to the number of clock cycles.
[0043] Specifically, train speed measurement is divided into contact measurement and non-contact measurement. The present invention uses contact measurement through a pulse speed sensor to measure the wheel speed of the train. After the speed sensor is determined, the speed pulse that can be generated per wheel rotation is fixed. Assuming that the wheel diameter in this embodiment is D, and the number of speed pulses that the speed sensor can generate per wheel rotation is M, then the calculation accuracy of the speed pulse period Tp corresponding to the speed pulse directly affects the accuracy of the current speed. And because the speed pulse period is sampled by a sampling clock, the speed pulse period can be determined according to the number of clock periods, and then the current speed of the train can be determined, that is, the current speed of the train can be calculated according to the number of clock periods, such as calculating the first product of the number of clock periods and pi, and calculating the second product of the clock period, the wheel parameters of the train and the specification parameters of the speed sensor, and then calculating the current speed of the train according to the first product and the second product. More specifically, according to the formula Calculate, where V w Indicates the current speed, N indicates the number of clock cycles, T clk represents the clock cycle, D and M represent the wheel parameter and the specification parameter of the speed sensor respectively. Among them, the wheel parameter D can be specifically the wheel diameter of the train, and the specification parameter M of the speed sensor can be specifically the number of speed pulses generated by the speed sensor when the wheel rotates one circle. According to the above formula, the calculation of the current speed can be specifically converted into the calculation of the number of clock cycles contained in a speed pulse cycle.
[0044] S40, when the current speed is not within the preset speed range, repeat the above steps to update the current speed of the train, and when the current speed is within the preset speed range, use the predicted average speed measurement method to further update the current speed of the train.
[0045] Specifically, after calculating the current speed, the present embodiment further determines the current speed to determine whether the current speed is within a preset speed range, and the preset speed range can be determined based on empirical data. It can be understood that within the preset speed range, the predicted average speed measurement method can better measure the train speed with higher accuracy, while within other speed ranges, the instantaneous speed measurement method can measure the train speed with higher accuracy. Therefore, the present embodiment also defines that when the current speed is not within the preset speed range, steps S10-S30 are repeated to update the current speed of the train, and when the current speed is within the preset speed range, the predicted average speed measurement method is used to further update the current speed of the train, thereby ensuring the calculation accuracy of the train speed to better determine the train's position information.
[0046] In some examples, the judgment of the preset speed range can be divided by preset speed. For example, when the current speed is greater than the preset speed, it is determined that the current speed is within the preset speed range; when the current speed is less than or equal to the preset speed, it is determined that the current speed is not within the preset speed range.
[0047] Of course, in other embodiments, multiple preset speeds may be set according to experimental data or actual application data, thereby dividing the preset speed ranges into multiple ranges, and limiting the speed measurement method corresponding to each preset speed range.
[0048] In some embodiments of the present invention, Figure 2 As shown, the predicted average speed measurement method is used to further update the current speed of the train, including:
[0049] S201, obtaining the sampling period of the predicted average value speed measurement method.
[0050] Specifically, the sampling period in this embodiment may include multiple speed pulse periods. The sampling period is a time period used to test the train speed, which can be specifically determined according to the upload speed of the train speed to ensure the real-time nature of the train speed collection.
[0051] S202, determining the number of first clock cycles contained in the sampling period and the number of second clock cycles in a speed pulse period of the speed pulse signal according to the sampling period and the sampling clock.
[0052] Specifically, after obtaining the sampling period, the number of first clock periods contained in the sampling period can be determined according to the sampling clock, and the sampling period can be divided by the clock period corresponding to the sampling clock to determine the number of first clock periods. And because the sampling period includes multiple speed pulse signals, the number of second clock periods in the speed pulse period can be further determined according to the sampling clock.
[0053] S203, when the number of the second clock cycles is less than the number of the first clock cycles, predict the number of clock cycles in the next speed pulse cycle adjacent to the speed pulse cycle in the speed pulse signal to obtain a first prediction result, and accumulate the first prediction result and the number of clock cycles in the sampled speed pulse cycle to obtain a first accumulated result.
[0054] Specifically, for the convenience of description, the speed pulse cycle in step S202 is regarded as the first speed pulse cycle in the speed pulse signal, see Figure 3 , where N0 represents the number of clock cycles in the first speed pulse cycle, N1 represents the number of clock cycles in the second speed pulse cycle, and so on, and Nset represents the number of clock cycles contained in the sampling cycle. It should be noted that, Figure 3 It is only a specific example. There may be a case where Nset is smaller than N0, etc. The predicted average value speed measurement method of this embodiment will make a detailed judgment during the execution process.
[0055] In this embodiment, if the second clock cycle number N0 is less than the first clock cycle number Nset, it means that the sampling period may include more than one speed pulse cycle. Therefore, the next speed pulse cycle is further predicted to predict the number of clock cycles included in the speed pulse cycle. Figure 3 As shown, the second speed pulse period is predicted. It should be noted that the prediction of the second speed pulse period may include taking the number of clock periods sampled by the first speed pulse period as the corresponding prediction result, that is, the first prediction result in this embodiment may be N0. After obtaining the first prediction result N0, the first prediction result N0 is further accumulated with the number of clock periods in the sampled speed pulse period to obtain a first accumulation result. In this embodiment, the number of clock periods in the sampled speed pulse period is the number of clock periods N0 in the first speed pulse period, and the first accumulation result is N0+N0.
[0056] S204, if the first accumulated result is still less than the first clock cycle number, sample the second clock cycle number in the next speed pulse cycle, and accumulate the second clock cycle numbers in multiple sampled speed pulse cycles until the accumulated result is greater than or equal to the first clock cycle number.
[0057] Specifically, after obtaining the first accumulated result through prediction and calculation, the first accumulated result is continued to be compared with the number of clock cycles contained in the sampling period. If the first accumulated result is still less than the number of clock cycles contained in the sampling period, it means that the sampling period may include more than two speed pulse periods. Therefore, both speed pulse periods need to be sampled. Since the first speed pulse period has been sampled, only the next speed pulse period needs to be sampled. After that, the first speed pulse period and the second speed pulse period that have been sampled are accumulated to obtain a second accumulated result. The second accumulated result is N0+N1, where N1 is the number of clock cycles contained in the second speed pulse period obtained after sampling.
[0058] More specifically, after completing the accumulation calculation of the sampled speed pulse periods to obtain the second accumulation result, the second accumulation result is judged to determine the difference between it and the number of clock periods included in the sampling period, and when it is determined that the second accumulation result is less than the number of clock periods included in the sampling period, the above steps S203-S204 are repeated to continue predicting and accumulating the number of clock periods in the next speed pulse period until the accumulation result is greater than or equal to the number of clock periods included in the sampling period.
[0059] To illustrate with a specific example, if the second accumulated result is still less than the number of clock cycles included in the sampling period, the number of clock cycles in the third speed pulse period is predicted. Specifically, the number of clock cycles in the second speed pulse period can be used as the prediction result of the third speed pulse period to obtain the second prediction result, which is N1. After the second prediction result is predicted, the second accumulated result is added to the second prediction result to obtain the third accumulated result, which is expressed as N0+N1+N1. The third accumulated result is compared with the number of clock cycles included in the sampling period. If the third accumulated result is greater than the number of clock cycles included in the sampling period, it means that the sum of the three speed pulse periods should exceed the sampling period, so there is no need to sample the third speed pulse period, and the second accumulated result N0+N1 is used as the output result.
[0060] S205, calculating the average number of clock cycles in each sampled speed pulse cycle according to the accumulation result and the number of sampled speed pulse cycles.
[0061] S206, calculating the current speed of the train by replacing the number of clock cycles with the average number of clock cycles.
[0062] Specifically, continuing with the above example, when the output result is the second accumulation result N0+N1, the average number of missing cycles corresponding to the first speed pulse cycle and the second speed pulse cycle can be calculated, that is, the quotient obtained by directly dividing the second accumulation result by two is used as the average number of clock cycles. After determining the average number of clock cycles within the sampled speed pulse cycle, the average number of clock cycles can be directly replaced by the current speed calculation formula The number of clock cycles in is used to calculate the current speed of the train.
[0063] In this embodiment, if the second clock cycle number is greater than or equal to the first clock cycle number, or the first accumulated result is greater than or equal to the first clock cycle number, the current speed of the train is directly calculated based on the second clock cycle number.
[0064] Specifically, if, when judging the number of the second clock cycles and the first accumulated result within the first speed pulse cycle, it is determined that the number of the second clock cycles is greater than or equal to the number of the first clock cycles, it also means that the first speed pulse cycle is greater than or equal to the sampling period, so the number of the second clock cycles can be directly replaced with the number of clock cycles in the current speed calculation formula to calculate the current speed of the train. Similarly, if the first accumulated result is greater than or equal to the number of the first clock cycles, it means that the sum of the first speed pulse cycle and the second speed pulse cycle is greater than or equal to the sampling period, so the number of the second clock cycles can also be directly replaced with the number of clock cycles in the current speed calculation formula to calculate the current speed of the train.
[0065] In some embodiments of the present invention, before further updating the current speed of the train using the predicted average speed measurement method, the method further includes: determining that an adaptive speed measurement function of the train is in an on state.
[0066] Specifically, Figure 3 As shown, there are multiple methods for measuring the speed of a train, including a single pulse measurement method, an average value measurement method, and an adaptive measurement method, and this embodiment specifically adopts an adaptive measurement method for measurement, that is, different measurement methods are adapted to different speed ranges. It should be noted that this embodiment needs to ensure that the adaptive speed measurement function of the train is turned on before using the predicted average value speed measurement method. Specifically, the corresponding speed measurement method can be selected before the speed measurement program is executed. Furthermore, in order to increase versatility, a switch can be set to select the single pulse speed measurement method, the average value speed measurement method, and the adaptive speed measurement method through switch selection.
[0067] In some embodiments of the present invention, Figure 3 As shown, after acquiring the speed pulse signal collected by the speed sensor, the adaptive speed measurement method further includes: filtering the speed pulse signal.
[0068] Specifically, this embodiment also performs filtering processing on the collected speed pulse signal to filter out interference signals in the speed pulse signal, thereby being able to further improve the collected train speed.
[0069] In summary, the adaptive speed measurement method of the train in the embodiment of the present invention can improve the detection accuracy of the train speed and the speed measurement application scenarios, thereby improving the position detection accuracy, and reducing the number of transponders deployed to reduce the operating cost of the train.
[0070] Furthermore, the present invention proposes a computer-readable storage medium, which includes an adaptive speed measurement program for a train. When the adaptive speed measurement program for a train is executed by a processor, the adaptive speed measurement method for a train in any of the above embodiments is implemented.
[0071] The computer-readable storage medium of an embodiment of the present invention executes the adaptive speed measurement program of the train stored thereon through a processor, thereby improving the detection accuracy of the train speed and the application scenarios of the speed measurement, thereby improving the position detection accuracy, and reducing the number of transponders arranged to reduce the operating cost of the train.
[0072] Figure 4 It is a schematic diagram of the structure of a programmable integrated circuit in an embodiment of the present invention.
[0073] Furthermore, if Figure 4 As shown, the present invention proposes a programmable integrated circuit 100, which includes a memory 101 and a processor 102. The memory 101 stores an adaptive speed measurement program for a train. When the adaptive speed measurement program for a train is executed by the processor 102, the adaptive speed measurement method for a train in any of the above embodiments is implemented.
[0074] The programmable integrated circuit of an embodiment of the present invention includes a memory and a processor. The processor executes the adaptive speed measurement program of the train stored in the memory, which can improve the detection accuracy of the train speed and the speed measurement application scenarios, thereby improving the position detection accuracy and reducing the number of transponders deployed to reduce the operating costs of the train.
[0075] Optionally, in this embodiment, the programmable integrated circuit 100 includes but is not limited to a field programmable gate array, and the corresponding implementation platform may be a dedicated integrated circuit, a dedicated standard product, a system on chip, a complex programmable logic device, etc.
[0076] Figure 5 It is a structural block diagram of an adaptive speed measuring device for a train in an embodiment of the present invention.
[0077] Furthermore, if Figure 5As shown, the present invention proposes an adaptive speed measuring device 200 for a train, wherein the train is provided with a speed sensor, and the adaptive speed measuring device 200 comprises: an acquisition module 201 , a sampling module 202 and a calculation module 203 .
[0078] Among them, the acquisition module 201 is used to acquire the speed pulse signal collected by the speed sensor; the sampling module 202 is used to sample the number of clock cycles in a speed pulse cycle in the speed pulse signal through the sampling clock; the calculation module 203 is used to calculate the current speed of the train according to the number of clock cycles, and when the current speed is not within the preset speed range, repeat the above steps to update the current speed of the train, and when the current speed is within the preset speed range, use the predicted average speed measurement method to further update the current speed of the train.
[0079] In some embodiments of the present invention, the calculation module 203 is specifically used to: obtain the sampling period of the predicted average speed measurement method; determine the number of first clock cycles contained in the sampling period and the number of second clock cycles in a speed pulse period in the speed pulse signal according to the sampling period and the sampling clock; when the number of the second clock cycles is less than the number of the first clock cycles, predict the number of clock cycles in the next speed pulse period adjacent to the speed pulse period in the speed pulse signal to obtain a first prediction result, and accumulate the first prediction result with the number of clock cycles in the sampled speed pulse period to obtain a first accumulated result; if the first accumulated result is still less than the first clock cycle number, sample the number of second clock cycles in the next speed pulse period, and accumulate the number of second clock cycles in multiple sampled speed pulse periods until the accumulated result is greater than or equal to the first clock cycle number; calculate the average number of clock cycles in each sampled speed pulse period according to the accumulated result and the number of sampled speed pulse periods; calculate the current speed of the train by replacing the number of clock cycles with the average number of clock cycles.
[0080] In some embodiments of the present invention, the calculation module 203 is also used to: when the number of second clock cycles is greater than or equal to the number of first clock cycles, or the first accumulated result is greater than or equal to the number of first clock cycles, directly calculate the current speed of the train based on the second clock cycle number.
[0081] In some embodiments of the present invention, the calculation module 203 is specifically used to assign a value to the number of clock cycles in the next adjacent speed pulse cycle according to the number of clock cycles in the speed pulse cycle, so as to obtain a first prediction result.
[0082] In some embodiments of the present invention, the adaptive speed measurement device 200 further includes a determination module, which is used to determine whether the adaptive speed measurement function of the train is in an on state before the calculation module 203 adopts the predicted average speed measurement method to further update the current speed of the train.
[0083] In some embodiments of the present invention, the calculation module 203 is specifically used to: calculate the first product of the number of clock cycles and pi, and calculate the second product of the clock cycle, the wheel parameters of the train and the specification parameters of the speed sensor; calculate the current speed of the train based on the first product and the second product.
[0084] In some embodiments of the present invention, the adaptive speed measurement device 200 further includes a filtering module. After the acquisition module 201 acquires the speed pulse signal collected by the speed sensor, the filtering module is used to perform filtering processing on the speed pulse signal.
[0085] In some embodiments of the present invention, the calculation module 203 is further used to: when the current speed is greater than the preset speed, determine that the current speed is within the preset speed range; when the current speed is less than or equal to the preset speed, determine that the current speed is not within the preset speed range.
[0086] It should be noted that the specific implementation of the adaptive speed measuring device for the train in this embodiment can refer to the specific implementation of the adaptive speed measuring method for the train in the above embodiment, and will not be described again here to avoid redundancy.
[0087] In summary, the adaptive speed measuring device of the train in the embodiment of the present invention can improve the detection accuracy of the train speed and the speed measurement application scenarios, thereby improving the position detection accuracy, and reducing the number of transponders arranged to reduce the operating cost of the train.
[0088] Figure 6 1 is a structural block diagram of a train in an embodiment of the present invention.
[0089] Furthermore, if Figure 6 As shown, the present invention proposes a train 300, which includes the adaptive speed measuring device 200 of the train in the above embodiment.
[0090] The train of the embodiment of the present invention can improve the detection accuracy of the train speed and the speed measurement application scenarios through the adaptive speed measurement device of the train in the above embodiment, thereby improving the position detection accuracy and reducing the number of transponders arranged to reduce the operating cost of the train.
[0091] In addition, other structures and functions of the train in the embodiment of the present invention are known to those skilled in the art and will not be described in detail here to reduce redundancy.
[0092] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0093] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0094] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0095] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0096] In addition, the terms "first", "second", etc. used in the embodiments of the present invention are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in the present embodiment. Therefore, the features defined by the terms "first", "second", etc. in the embodiments of the present invention can explicitly or implicitly indicate that the embodiment includes at least one of the features. In the description of the present invention, the word "multiple" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.
[0097] In the present invention, unless otherwise clearly specified or limited in the embodiments, the terms "installed", "connected", "connected" and "fixed" etc. in the embodiments should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integrated connection. It can be understood that it can also be a mechanical connection, an electrical connection, etc.; of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two elements, or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific implementation situation.
[0098] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0099] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for adaptively measuring train speed, characterized in that: The train is provided with a speed sensor, and the method comprises: Acquiring a speed pulse signal collected by the speed sensor; The number of clock cycles in one speed pulse cycle of the speed pulse signal is sampled by a sampling clock; Calculating the current speed of the train according to the number of clock cycles; When the current speed is not within the preset speed range, the above steps are repeated to update the current speed of the train. When the current speed is within the preset speed range, the predicted average speed measurement method is used to further update the current speed of the train.
2. The method for adaptively measuring train speed according to claim 1, characterized in that: The current speed of the train is further updated by using a predicted average speed measurement method, including: Obtaining the sampling period of the predicted average speed measurement method; Determine the number of first clock cycles contained in the sampling period and the number of second clock cycles in one speed pulse period of the speed pulse signal according to the sampling period and the sampling clock; When the number of the second clock cycles is less than the number of the first clock cycles, predicting the number of clock cycles in the next speed pulse cycle adjacent to the speed pulse cycle in the speed pulse signal to obtain a first prediction result, and accumulating the first prediction result and the number of clock cycles in the sampled speed pulse cycle to obtain a first accumulation result; If the first accumulated result is still less than the first number of clock cycles, sampling the number of second clock cycles in the next speed pulse cycle, and accumulating the number of second clock cycles in multiple sampled speed pulse cycles until the accumulated result is greater than or equal to the first number of clock cycles; Calculating the average number of clock cycles in each sampled speed pulse cycle according to the accumulated result and the number of sampled speed pulse cycles; The current speed of the train is calculated by replacing the number of clock cycles with the average number of clock cycles.
3. The method for adaptively measuring train speed according to claim 2, characterized in that: The method further comprises: When the second number of clock cycles is greater than or equal to the first number of clock cycles, or the first accumulated result is greater than or equal to the first number of clock cycles, the current speed of the train is directly calculated based on the second number of clock cycles.
4. The method for adaptively measuring train speed according to claim 2, characterized in that: Predicting the number of clock cycles in a next speed pulse cycle adjacent to the speed pulse cycle in the speed pulse signal to obtain a first prediction result includes: According to the number of clock cycles in the speed pulse cycle, the number of clock cycles in the next adjacent speed pulse cycle is assigned a value to obtain the first prediction result.
5. The method for adaptive speed measurement of a train according to claim 1, characterized in that: Before further updating the current speed of the train by using the predicted average speed measurement method, the method further includes: Determine whether the adaptive speed measurement function of the train is turned on.
6. The method for adaptively measuring train speed according to any one of claims 1 to 5, characterized in that: Calculating the current speed of the train according to the number of clock cycles includes: Calculating a first product of the number of clock cycles and pi, and calculating a second product of the clock cycle, wheel parameters of the train, and specification parameters of the speed sensor; The current speed of the train is calculated according to the first product and the second product.
7. The method for adaptively measuring train speed according to any one of claims 1 to 5, characterized in that: After acquiring the speed pulse signal collected by the speed sensor, the method further includes: The speed pulse signal is filtered.
8. The method for adaptively measuring train speed according to any one of claims 1 to 5, characterized in that: The method further comprises: When the current speed is greater than the preset speed, determining that the current speed is within the preset speed range; When the current speed is less than or equal to the preset speed, it is determined that the current speed is not within the preset speed range.
9. A computer-readable storage medium, characterized in that: It includes an adaptive speed measurement program for a train, and when the adaptive speed measurement program for a train is executed by a processor, the adaptive speed measurement method for a train described in any one of claims 1 to 8 is implemented.
10. A programmable integrated circuit, characterized in that: It comprises a memory and a processor, wherein the memory stores an adaptive speed measurement program of a train, and when the adaptive speed measurement program of the train is executed by the processor, the adaptive speed measurement method of the train described in any one of claims 1 to 8 is implemented.
11. An adaptive speed measuring device for a train, characterized in that: The train is provided with a speed sensor, and the device comprises: An acquisition module, used for acquiring a speed pulse signal collected by the speed sensor; A sampling module, used for sampling the number of clock cycles in one speed pulse cycle of the speed pulse signal through a sampling clock; A calculation module is used to calculate the current speed of the train according to the number of clock cycles, and when the current speed is not within a preset speed range, repeat the above steps to update the current speed of the train, and when the current speed is within the preset speed range, use a predicted average speed measurement method to further update the current speed of the train.
12. A train, characterized in that: The train includes the adaptive speed measuring device for the train as claimed in claim 11.
