Log data processing method and device for speed measurement and distance measurement of vehicle, electronic equipment and storage medium

By batch sending and formatting log message groups, combined with acknowledgment and storage mechanisms, the problem of low log data processing efficiency in vehicle speed and distance measurement systems is solved, achieving efficient log data storage and retrieval, and supporting rapid fault analysis.

CN120977033APending Publication Date: 2025-11-18CRSC URBAN RAIL TRANSIT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510895659.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

In existing vehicle speed and distance measurement systems, log data processing efficiency is low, resulting in slow and cumbersome fault analysis, making it difficult to quickly identify anomalies in the speed and distance measurement system.

Method used

By sending log message groups in batches, deleting corresponding data with acknowledgment messages, resending unacknowledged data, and combining formatting and storage, the log message reception time and the corresponding board number are used for storage and retrieval.

Benefits of technology

It improves the efficiency of log data transmission, reduces the probability of data loss, enhances storage and retrieval efficiency, and facilitates fault analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120977033A_ABST
    Figure CN120977033A_ABST
Patent Text Reader

Abstract

The invention provides a log data processing method and device for vehicle speed and distance measurement, electronic equipment and a storage medium, and relates to the technical field of data processing. Wherein the efficiency of sending the log data is improved by sending the log messages in batches (sending the log message group). The corresponding log data is deleted according to the confirmation message, the probability of mistaken deletion of the log data is reduced, the corresponding log data can be retransmitted when the confirmation message is not received in a certain time window, and the probability of loss of the log data in the transmission process is reduced. According to the method, the log message group is formatted and then stored, so that the storage efficiency of the log data is improved. The log message is stored according to the receiving time of the log message and the serial number of the board card to which the log message belongs, so that subsequent retrieval and export of the log message are facilitated, and the retrieval efficiency of the log data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and in particular to a log data processing method and device for speed and distance measurement of a vehicle, an electronic device and a storage medium. BACKGROUND

[0002] With the development of urban rail transit signal systems, speed and distance measurement systems are also developing rapidly. Speed and distance measurement algorithms based on multiple sensors have become the mainstream. Speed and distance measurement algorithms based on multiple sensors improve the accuracy of speed and distance measurement, but also increase the possibility of abnormality of speed and distance measurement systems. Once the speed and distance measurement system fails, the operation of the train will be greatly affected. How to quickly analyze the cause of the speed and distance measurement system failure is a big challenge for the application of multi-sensor speed and distance measurement algorithm.

[0003] After the distance measurement system fails, the driver and the ground train dispatching generally confirm it, and then the on-site engineering and technical personnel download the on-site vehicle driving log from the vehicle's recording board, and then hand it over to the background developer for fault analysis. With the increase in the number of sensors and the limitation of hardware device speed, the time length of log download increases significantly, reducing the speed of vehicle fault problem analysis.

[0004] Currently, in the speed and distance measurement system, the increase in the number of sensors leads to an increase in the amount of log data. The time interval of the log that can be stored by using the traditional recording board to store the log becomes shorter, and the time to export the log of a specified time interval becomes longer. At the same time, the sensor types, sensor quantities and on-site engineering configuration parameters of different projects are different. The manual adaptation of different projects to analyze the problem is slow and cumbersome, which brings challenges to the analysis of vehicle fault problems.

[0005] In summary, the existing log data processing efficiency of the speed and distance measurement of the vehicle is low, which leads to low analysis efficiency of the vehicle fault problem. SUMMARY

[0006] The present application provides a log data processing method, device, electronic device and storage medium for speed and distance measurement of a vehicle, to overcome the defect of low log data processing efficiency of speed and distance measurement of a vehicle in the prior art, and to achieve the goal of improving the processing efficiency of log data for speed and distance measurement of a vehicle.

[0007] In a first aspect, the present application provides a log data processing method for vehicle speed and distance measurement, applied to a log message adaptation end, comprising: receiving a log message group sent by a log message agent end, the log message group being composed of multiple log messages with the same generation time period, each log message comprising log data of vehicle speed and distance measurement, a board card number to which the log message belongs, a log message sending time and a generation time period; after confirming that the log message group is complete, sending a confirmation message that the log message group has been received to the log message agent end, so that the log message agent end deletes corresponding log data based on the confirmation message; and performing format processing on the log message group, and sending the formatted log message group to a storage end, so that the storage end stores log messages in the log message group based on a receiving time of the log message and the board card number to which the log message belongs.

[0008] In one embodiment, after receiving the log message group sent by the log message agent end, the method further comprises: when it is confirmed that the log message group is not complete, waiting for the log message agent end to resend the log message group; if the log message group resended by the log message agent end is received, and after it is confirmed that the resended log message group is complete, sending a confirmation message that the resended log message group has been received to the log message agent end; and if the resended log message group is not received within a first waiting time window, discarding the incomplete log message group.

[0009] In one embodiment, the format processing on the log message group comprises: based on the board card number to which the log message belongs, the log message sending time, the generation time period of the log message, the log message type, the log message length and the log data, obtaining each formatted log message; and based on all the formatted log messages corresponding to the log message group, obtaining the formatted log message group.

[0010] In a second aspect, the present application further provides a log data processing method for vehicle speed and distance measurement, applied to a log message agent end, comprising: sending a log message group to a log message adaptation end, the log message group being composed of multiple log messages with the same generation time period, each log message comprising log data of vehicle speed and distance measurement, a board card number to which the log message belongs, a log message sending time and a generation time period; receiving a confirmation message that the log message group has been received sent by the log message adaptation end, so as to delete corresponding log data based on the confirmation message; wherein the confirmation message is sent by the log message adaptation end after confirming that the log message group is complete; and after the log message adaptation end performs format processing on the log message group and sends the formatted log message group to a storage end, the storage end stores log messages in the log message group based on a receiving time of the log message and the board card number to which the log message belongs.

[0011] In one embodiment, after sending the log message group to the log message adaptation end, the method further includes: if no acknowledgement message is received within a second waiting time window, re-sending the log message group to the log message adaptation end.

[0012] In a third aspect, the application further provides a log data processing method for speed and distance measurement of a vehicle, applied to a storage end, including: receiving a formatted log message group sent by a log message adaptation end; wherein the formatted log message group is obtained based on the log message adaptation end formatting a log message group; the log message group is sent by a log message agent end to the log message adaptation end, and the log message group is composed of multiple log messages with the same generation time period, each log message including log data for speed and distance measurement of the vehicle, a board card number to which the log message belongs, a log message sending time and a generation time period; when the log message adaptation end confirms that the log message group is complete, sending an acknowledgement message that the log message group has been received to the log message agent end, so that the log message agent end deletes corresponding log data based on the acknowledgement message; and storing the log messages in the log message group based on the receiving time of the log message and the board card number to which the log message belongs.

[0013] In one embodiment, after storing the log messages in the log message group based on the receiving time of the log message and the board card number to which the log message belongs, the method further includes: receiving a query instruction sent by a management personnel, the query instruction including a query time and a query board card number; retrieving and outputting the log message based on the query time and the query board card number; and the log message is used to calculate the speed, distance and working state of each sensor of the vehicle.

[0014] In a fourth aspect, the application provides a log data processing system for speed and distance measurement of a vehicle, including a log message adaptation end, a log message agent end and a storage end; the log message agent end is configured to send a log message group to the log message adaptation end, the log message group being composed of multiple log messages with the same generation time period, each log message including log data for speed and distance measurement of the vehicle, a board card number to which the log message belongs, a log message sending time and a generation time period; the log message adaptation end is configured to send an acknowledgement message that the log message group has been received to the log message agent end when it confirms that the log message group is complete; the log message agent end is further configured to delete corresponding log data based on the acknowledgement message; the log message adaptation end is further configured to format the log message group, and send a formatted log message group to the storage end; and the storage end is configured to store the log messages in the log message group based on the receiving time of the log message and the board card number to which the log message belongs.

[0015] In a fifth aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the log data processing method for vehicle speed and distance measurement according to any of the above aspects when executing the computer program.

[0016] In a sixth aspect, the present application provides a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the log data processing method for vehicle speed and distance measurement according to any of the above aspects.

[0017] The log data processing method for vehicle speed and distance measurement, the device, the electronic device, and the storage medium provided by the present application improve the efficiency of sending log data by sending log messages in batches (sending a group of log messages). The present application reduces the probability of erroneous deletion of log data by deleting corresponding log data according to a confirmation message. The present application reduces the probability of loss of log data in the transmission process by retransmitting corresponding log data if no confirmation message is received within a certain time window. The present application improves the storage efficiency of log data by formatting the group of log messages before storing. The present application stores log messages according to the receiving time of the log messages and the board card number to which the log messages belong, which facilitates subsequent retrieval and export of log messages and improves the retrieval efficiency of log data. BRIEF DESCRIPTION OF DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present application or the prior art, the following will briefly introduce the drawings needed in the embodiments or the prior art description. Obviously, the drawings described below are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.

[0019] Figure 1 is one of the flowcharts of the log data processing method for vehicle speed and distance measurement provided by the present application.

[0020] Figure 2 is a structural schematic diagram of the log data processing system for vehicle speed and distance measurement provided by the present application.

[0021] Figure 3 is another flowchart of the log data processing method for vehicle speed and distance measurement provided by the present application.

[0022] Figure 4 is a third flowchart of the log data processing method for vehicle speed and distance measurement provided by the present application.

[0023] Figure 5 is a fourth flowchart of the log data processing method for vehicle speed and distance measurement provided by the present application.

[0024] Figure 6 is a structural schematic diagram of an electronic device provided by the present application. DETAILED DESCRIPTION

[0025] In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the drawings in the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0026] The log data processing method, device and electronic equipment for speed measurement and distance measurement of a vehicle of the present application will be described below. Figures 1-6 The log data processing method, device and electronic equipment for speed measurement and distance measurement of a vehicle of the present application will be described below.

[0027] Figure 1 is one of flowcharts of the log data processing method for speed measurement and distance measurement of a vehicle provided by the present application. As shown in Figure 1 The log data processing method for speed measurement and distance measurement of a vehicle, applied to a log message adaptation end, comprises steps S100 to S300, and each step is specifically as follows.

[0028] S100: receiving a log message group sent by a log message agent end.

[0029] The log message group is composed of a plurality of log messages with the same generation time period, and each log message comprises log data for speed measurement and distance measurement of a vehicle, a board card number to which the log message belongs, a log message sending time and a generation time period.

[0030] As shown in Figure 2 The log data processing system for speed measurement and distance measurement of a vehicle of the present application comprises speed measurement boards, sending buffer zones, a log message agent end, a log message adaptation end, a storage end, a running reproduction end and a man-machine interface. A plurality of speed measurement boards are installed in a vehicle. After a vehicle-mounted speed measurement and distance measurement program in the speed measurement boards generates log data, the log data is no longer managed by the recording board, but is stored in a designated sending buffer zone through a high-speed Controller Area Network (CAN) bus. The log data in each sending buffer zone is managed by a unified log message agent end, and the log message agent end sends the log messages in each sending buffer zone to the log message adaptation end through a vehicle-ground wireless network.

[0031] The log message sent by the log message agent contains log data of speed measurement and ranging of the original recorded vehicle, a message identifier (MID) of the log message, a board identifier (BID) to which the log message belongs, a log message sending time, and a generation time period (for example, a log message serial number, the serial number ranges from 0 to 255, and the serial number is counted from 0 again when exceeding 255) of the log message. Each speed measurement board corresponds to a globally unique BID, log messages generated by the same speed measurement board have a unique MID, and log messages generated by the vehicle-mounted speed measurement and ranging program in the same running period have the same log message serial number (the generation time period of the log message). The log message agent sends the log message in a batch sending manner, that is, a group of log messages with the same log message serial number (the generation time period of the log message) is sent at a time. Through the batch sending manner, the input / output (I / O) amount of the hardware network card of the log message agent can be effectively reduced, and the sending efficiency of the log message can be improved.

[0032] S200: When it is confirmed that the log message group is complete, a confirmation message that the log message group has been received is sent to the log message agent, so that the log message agent deletes the corresponding log data based on the confirmation message.

[0033] After the log message agent receives the log message group, the corresponding log message group is managed through the generation time period (the log message serial number). If the log message group is complete, a confirmation message corresponding to the log message group is sent to the log message agent. The confirmation message includes the board identifier (MID) to which all log messages in the log message group belong, the number (BID) of the log message, and the message confirmation time of the log message group.

[0034] After the log message agent sends a group of log messages to the log message agent, the corresponding log data in the sending buffer is not immediately deleted, but is deleted after receiving the confirmation message sent by the log message agent.

[0035] S300: The log message group is formatted, and the formatted log message group is sent to the storage end, so that the storage end stores the log messages in the log message group based on the receiving time of the log message and the board identifier to which the log message belongs.

[0036] The log message agent formats all log messages in the log message group for which the confirmation message has been sent, and obtains a formatted log message group.

[0037] The log message agent transmits the formatted log message group to the storage end through a gigabit Ethernet for persistent storage.

[0038] After receiving the formatted log message group, the storage end classifies and compresses the formatted log messages within the group based on their reception time and the board number to which they belong. For example, the formatted log messages are stored in log files named "Reception time of the first log message - Board number to which the log message belongs.txt". When the size of each log file exceeds 1MB, it is compressed. The compressed log files are named in the format "Reception time of the first log message - Board number to which the log message belongs.txt.gz", and the compressed log files are managed uniformly.

[0039] The vehicle speed and distance measurement log data processing method provided in this invention improves the efficiency of log data transmission by sending log messages in batches (sending log message groups). This invention deletes corresponding log data based on confirmation messages, reducing the probability of erroneous deletion. If no confirmation message is received within a certain time window, the corresponding log data can be retransmitted, reducing the probability of log data loss during transmission. This invention improves log data storage efficiency by formatting log message groups before storage. This invention stores log messages based on their reception time and the board number to which they belong, facilitating subsequent retrieval and export of log messages, and improving log data retrieval efficiency.

[0040] Based on the above embodiments, after receiving the log message group sent by the log message broker, the following steps are also included: When it is confirmed that the log message group is incomplete, wait for the log message broker to resend the log message group; If a log message group is received from the log message broker and the retransmitted log message group is confirmed to be complete, an acknowledgment message indicating that the retransmitted log message group has been received is sent to the log message broker. If a retransmitted log message group is not received within the first waiting time window, the incomplete log message group is discarded.

[0041] like Figure 3 As shown, if the log message adapter confirms that the log message group is incomplete, it waits for the log message broker to retransmit the log message group within the first waiting time window. If the log message adapter receives the retransmitted log message group from the log message broker and confirms that the retransmitted log message group is complete, it sends an acknowledgment message to the log message broker confirming that the retransmitted log message group has been received.

[0042] If the log message adapter does not receive the retransmitted log message group from the log message broker within the first waiting time window, the incomplete log message group is discarded.

[0043] Meanwhile, the log message adaptation end records the MID and BID of the log message in the log message group for which the confirmation message has been sent, and does not process the log message with the same MID and BID in the future, preventing repeated processing of the log message due to the confirmation timeout retransmission mechanism.

[0044] The present application improves the reception efficiency of the log message and reduces the probability of missing the log message by confirming the integrity of the log message and determining whether to receive the retransmitted log message group.

[0045] Based on the above embodiment, the log message group is formatted, including the following steps: Based on the board card number to which the log message belongs, the log message sending time, the log message generation time period, the log message type, the log message length and the log data, the formatted log message is obtained. Based on all the formatted log messages corresponding to the log message group, the formatted log message group is obtained.

[0046] After receiving a complete log message group and sending a confirmation message, the log message adaptation module formats each log message in the log message group. Based on the board card number to which the log message belongs, the log message sending time, the log message generation time period, the log message type, the log message length and the log data, the formatted log message is obtained. Based on all the formatted log messages corresponding to the log message group, the formatted log message group is obtained.

[0047] For example, a formatted log message is 1 022 I1 1019D3866 0008 019D3866FFFFFFFB. Among them, from left to right, "1" represents the board card number to which the formatted log message belongs, "022" represents the generation time period of the formatted log message (log message serial number, the serial number is counted from 0 when it exceeds 255), "I1" represents the type of the formatted log message, "1019D3866" represents the sending time of the formatted log message, "0008" represents the length of the formatted log message, and "019D3866FFFFFFFB" represents the formatted log data.

[0048] The present application obtains the formatted log message according to the board card number to which the log message belongs, the log message sending time, the log message generation time period, the log message type, the log message length and the log data, ensures the integrity and format uniformity of the formatted log message, and facilitates the subsequent storage of the formatted log message.

[0049] As Figure 4As shown, the present application also provides a method for processing log data of vehicle speed and distance measurement, which is applied to a log message agent and includes steps S400-S500.

[0050] S400: sending a log message group to a log message adapter.

[0051] The log message group is composed of multiple log messages with the same generation time period, and each log message includes log data of vehicle speed and distance measurement, a board card number to which the log message belongs, log message sending time, and a generation time period.

[0052] The log message agent sends the log messages in each sending buffer to the log message adapter through a train-ground wireless network. The log message contains original recorded log data of vehicle speed and distance measurement, a log message number (MID), a board card number (BID) to which the log message belongs, log message sending time, and a generation time period of the log message (log message serial number, the serial number ranges from 0 to 255, and the serial number exceeds 255 and is counted from 0 again). Each speed measurement board corresponds to a globally unique BID, log messages generated by the same speed measurement board have a unique MID, and log messages generated by the vehicle-mounted speed and distance measurement program in the same running period have the same log message serial number (the generation time period of the log message). When sending the log message, the log message agent adopts a batch sending mode, and sends a group of log message groups with multiple log messages having the same log message serial number (the generation time period of the log message) at a time.

[0053] S500: receiving a confirmation message that a log message group sent by the log message adapter has been received, and deleting corresponding log data based on the confirmation message.

[0054] The confirmation message is sent by the log message adapter after confirming the completeness of the log message group. After the log message adapter performs format processing on the log message group and sends the formatted log message group to a storage end, the storage end stores the log messages in the log message group based on the receiving time of the log message and the board card number to which the log message belongs.

[0055] After receiving the log message group, the log message adapter manages the corresponding log message group through the generation time period (the log message serial number). If the log message group is complete, the log message adapter sends a confirmation message corresponding to the log message group to the log message agent. The confirmation message includes all board card numbers (MID) to which the log messages in the log message group belong, log message numbers (BID), and message confirmation time of the log message group.

[0056] After the log message agent sends a group of log messages to the log message adapter, the corresponding log data in the sending buffer is not immediately deleted, but waits until the confirmation message sent by the log message adapter is received, and then the log data corresponding to the confirmation message is deleted.

[0057] The log message adapter formats all log messages in the log message group for which the confirmation message has been sent, to obtain a formatted log message group. The log message adapter transmits the formatted log message group to the storage end through a gigabit Ethernet for persistent storage.

[0058] After the storage end receives the formatted log message group, the formatted log messages in the formatted log message group are classified and stored and compressed according to the receiving time of the log message and the card number to which the log message belongs.

[0059] The log data processing method for speed measurement and distance measurement of a vehicle provided by the embodiment of the present application improves the efficiency of sending log data by sending log messages in batches (sending a group of log messages). The present application reduces the probability of erroneous deletion of log data by deleting the corresponding log data according to the confirmation message. The present application is beneficial to improving the storage efficiency of log data by storing the log message group after formatting, and the corresponding log data can be re-sent within a certain time window without receiving the confirmation message, thereby reducing the probability of loss of log data in the transmission process. The present application stores the log message according to the receiving time of the log message and the card number to which the log message belongs, which facilitates subsequent retrieval and export of the log message and improves the retrieval efficiency of the log data.

[0060] Based on the above embodiment, after sending the log message group to the log message adapter, the method further includes: if the confirmation message is not received within the second waiting time window, re-sending the log message group to the log message adapter.

[0061] After the log message agent sends the log message to the log message adapter, if the log message agent does not receive the confirmation message sent by the log message adapter within the second waiting time window, it is determined that the log message group is timed out. The log message agent re-sends the corresponding log message group to the log message adapter. If the same group of log messages fails to be confirmed again, the log data corresponding to the log message group is deleted, and message re-sending is not performed.

[0062] The present application reduces the possibility of loss of log data through the confirmation message and the timeout re-sending mechanism, and enhances the reliability of log data transmission.

[0063] As shown in Figure 5 The present application also provides a log data processing method for speed measurement and distance measurement of a vehicle, applied to a storage end, including steps S600 to S700, and each step is specifically as follows.

[0064] S600: receiving the formatted log message group sent by the log message adaptation end.

[0065] The formatted log message group is obtained based on the log message adaptation end formatting the log message group; the log message group is sent by the log message agent end to the log message adaptation end, and the log message group is composed of multiple log messages with the same generation time period. Each log message includes log data of speed and distance measurement of a vehicle, a board card number to which the log message belongs, a log message sending time, and a generation time period. When the log message adaptation end confirms that the log message group is complete, the log message adaptation end sends a confirmation message that the log message group has been received to the log message agent end, so that the log message agent end deletes corresponding log data based on the confirmation message.

[0066] The log message agent end sends the log messages in each sending buffer to the log message adaptation end through a train-ground wireless network. When sending the log messages, the log message agent end adopts a batch sending mode to send a group of log messages including multiple log messages with the same log message serial number (generation time period of the log message), at a time.

[0067] After receiving the log message group, the log message adaptation end manages the corresponding log message group through the generation time period (log message serial number, serial number range: 0-255, and serial number exceeding 255 is counted from 0 again). If the log message group is complete, the log message adaptation end sends a confirmation message corresponding to the log message group to the log message agent end.

[0068] After the log message agent end sends a group of log messages to the log message adaptation end, the log message agent end does not immediately delete the corresponding log data in the sending buffer, but waits to receive the confirmation message sent by the log message adaptation end, and then deletes the log data corresponding to the confirmation message.

[0069] The log message adaptation end formats all log messages in the log message group for which the confirmation message has been sent, to obtain a formatted log message group. The log message adaptation end transmits the formatted log message group to the storage end through a gigabit Ethernet for persistent storage.

[0070] S700: storing the log messages in the log message group based on the receiving time of the log message and the board card number to which the log message belongs.

[0071] After receiving the formatted log message group, the storage end stores and compresses the formatted log messages in the formatted log message group based on the receiving time of the log message and the board card number to which the log message belongs.

[0072] The log data processing method for speed and distance measurement of a vehicle provided by the embodiment of the application improves the efficiency of sending log data by sending log messages in batches (sending a group of log messages). The application deletes corresponding log data according to a confirmation message, reduces the probability of false deletion of log data, and can resend corresponding log data within a certain time window without receiving a confirmation message, thereby reducing the probability of loss of log data in the transmission process. The application stores the group of log messages after formatting processing, which is conducive to improving the storage efficiency of log data. The application stores log messages according to the receiving time of the log messages and the card number to which the log messages belong, facilitates subsequent retrieval and export of log messages, and improves the retrieval efficiency of log data.

[0073] Based on the above embodiment, after storing the log messages in the group of log messages based on the receiving time of the log messages and the card number to which the log messages belong, the following steps are further included: Receiving a query instruction sent by a management personnel, the query instruction including a query time and a query card number; Retrieving and outputting log messages based on the query time and the query card number; the log messages are used to calculate the speed, distance and working state of each sensor of the vehicle.

[0074] The management personnel (engineering and technical personnel) generates a query instruction according to the query time and the query card number, and sends the query instruction to the storage end. The storage end retrieves the stored log messages according to the query time and the query card number, and sends the retrieved log messages to the running reproduction end.

[0075] The vehicle of the application includes a train. The running reproduction end calculates the speed and distance of the train according to the retrieved log messages, and further reproduces the running process of the vehicle. For example, the running reproduction end calculates the speed and distance of the train according to the retrieved log messages, outputs the time-speed value curve of each sensor of the train, the time-distance value curve of each sensor, the real-time slope value within each speed and distance measurement program running period, the output data (for example, the estimated speed of the train, the estimated position of the train, the working state of the sensor, etc.) within each speed and distance measurement program running period, and the key intermediate data (the original data of each sensor, the estimated speed of each sensor, the estimated position of each sensor, etc.) within each speed and distance measurement program running period. The output of the running reproduction end can be visually displayed through a human-computer interface, and the on-site management personnel can quickly analyze the fault problems in the running process of the train through the data provided in the human-computer interface.

[0076] The application retrieves log messages according to the query time and the query card number, improves the retrieval efficiency of log messages, and further improves the efficiency of calculating the speed and distance of the vehicle, which is conducive to improving the efficiency of analyzing the fault problems in the running process of the train.

[0077] The log data processing system for vehicle speed and distance measurement provided by the present application is described below, and the log data processing system for vehicle speed and distance measurement described below can be referred to in correspondence with the log data processing method for vehicle speed and distance measurement described above.

[0078] As shown in Figure 2 A log data processing system for vehicle speed and distance measurement comprises a log message adaptation end, a log message agent end and a storage end.

[0079] The log message agent end is configured to send a log message group to the log message adaptation end, the log message group comprising a plurality of log messages with the same generation time period, each log message comprising log data for vehicle speed and distance measurement, a board card number to which the log message belongs, a log message sending time and a generation time period.

[0080] The log message adaptation end is configured to send a confirmation message that the log message group has been received to the log message agent end after confirming that the log message group is complete.

[0081] The log message agent end is further configured to delete corresponding log data based on the confirmation message.

[0082] The log message adaptation end is further configured to perform format processing on the log message group and send the formatted log message group to the storage end.

[0083] The storage end is configured to store the log messages in the log message group based on a log message receiving time and a board card number to which the log message belongs.

[0084] The log data processing system for vehicle speed and distance measurement provided by the present application sends log messages in batches (sends a log message group), thereby improving the efficiency of sending log data. The present application deletes corresponding log data based on a confirmation message, thereby reducing the probability of erroneous deletion of log data. The corresponding log data can be resent within a certain time window without receiving a confirmation message, thereby reducing the probability of loss of log data during transmission. The present application stores the log message group after format processing, thereby facilitating the storage efficiency of log data. The present application stores log messages based on a log message receiving time and a board card number to which the log message belongs, thereby facilitating subsequent retrieval and export of log messages and improving the retrieval efficiency of log data.

[0085] Figure 6 An example of an entity structure diagram of an electronic device is shown in Figure 6As shown, the electronic device can include a processor 610, a communications interface 620, a memory 630 and a communications bus 640, wherein the processor 610, the communications interface 620 and the memory 630 complete the communication with each other through the communications bus 640. The processor 610 can invoke the logic instructions in the memory 630 to execute the log data processing method of the speed and distance measurement of the vehicle described above.

[0086] In addition, the logic instructions in the memory 630 described above can be realized in the form of a software function unit and sold or used as an independent product, which can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.

[0087] In yet another aspect, the present application also provides a non-transitory computer readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the log data processing method of the speed and distance measurement of the vehicle provided by the above-mentioned methods.

[0088] The device embodiments described above are only schematic, wherein the units shown as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, i.e. they can be located in one place, or distributed on multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment scheme. Those skilled in the art can understand and implement it without creative labor.

[0089] Those skilled in the art can clearly understand the technical solutions of the various embodiments from the above description of the embodiments, and the various embodiments can be implemented by means of software with the necessary general hardware platforms, and of course, can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that makes a contribution, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0090] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for processing log data from vehicle speed and distance measurement, characterized in that, Applied to log message adapters, including: The log message group sent by the log message agent is received. The log message group consists of multiple log messages with the same generation time period. Each log message includes log data of vehicle speed measurement and distance measurement, board number to which the log message belongs, log message sending time and generation time period. Once the log message group is confirmed to be complete, a confirmation message indicating that the log message group has been received is sent to the log message broker, so that the log message broker can delete the corresponding log data based on the confirmation message. The log message group is formatted and then sent to the storage terminal, so that the storage terminal can store the log messages in the log message group based on the log message reception time and the board number to which the log message belongs.

2. The method for processing vehicle speed and distance measurement log data according to claim 1, characterized in that, After receiving the log message group sent by the log message agent, the system further includes: When it is confirmed that the log message group is incomplete, wait for the log message broker to resend the log message group; If a log message group is received from the log message agent and the retransmitted log message group is confirmed to be complete, a confirmation message indicating that the retransmitted log message group has been received is sent to the log message agent. If the retransmitted log message group is not received within the first waiting time window, the incomplete log message group is discarded.

3. The method for processing vehicle speed and distance measurement log data according to claim 1, characterized in that, The formatting process for the log message group includes: Based on the board number to which the log message belongs, the log message sending time, the log message generation time period, the log message type, the log message length, and the log data, obtain each formatted log message; Based on all the formatted log messages corresponding to the log message group, obtain the formatted log message group.

4. A method for processing log data from vehicle speed and distance measurement, characterized in that, Applied to log message brokers, including: Send a log message group to the log message adapter. The log message group consists of multiple log messages with the same generation time period. Each log message includes log data of vehicle speed measurement and distance measurement, the board number to which the log message belongs, the log message sending time, and the generation time period. The system receives an acknowledgment message from the log message adapter indicating that the log message group has been received, and deletes the corresponding log data based on the acknowledgment message. The acknowledgment message is sent by the log message adapter after confirming the integrity of the log message group. When the log message adapter formats the log message group and sends the formatted log message group to the storage end, the storage end stores the log messages in the log message group based on the log message's reception time and the board number to which the log message belongs.

5. The method for processing vehicle speed and distance measurement log data according to claim 4, characterized in that, After sending the log message group to the log message adapter, the following steps are included: If the confirmation message is not received within the second waiting time window, the log message group is retransmitted to the log message adapter.

6. A method for processing log data from vehicle speed and distance measurement, characterized in that, Applications on the storage side include: The system receives a formatted log message group sent by the log message adapter. The formatted log message group is obtained after the log message adapter performs formatting processing on the log message group. The log message group is sent from the log message proxy to the log message adapter. The log message group consists of multiple log messages with the same generation time period. Each log message includes vehicle speed and distance measurement log data, the board number to which the log message belongs, the log message sending time, and the generation time period. When the log message adapter confirms that the log message group is complete, it sends a confirmation message to the log message proxy indicating that the log message group has been received, so that the log message proxy can delete the corresponding log data based on the confirmation message. Log messages in the log message group are stored based on the log message reception time and the board number to which the log message belongs.

7. The method for processing vehicle speed and distance measurement log data according to claim 6, characterized in that, After storing the log messages in the log message group based on the log message reception time and the board number to which the log message belongs, the method further includes: Receive query instructions sent by administrators, the query instructions including query time and query board number; The log message is retrieved and output based on the query time and query board number; the log message is used to calculate the vehicle's speed, distance, and the working status of each sensor.

8. A log data processing system for vehicle speed and distance measurement, characterized in that, This includes the log message adapter, log message broker, and storage: The log message agent is used to send a log message group to the log message adapter. The log message group consists of multiple log messages with the same generation time period. Each log message includes log data of vehicle speed measurement and distance measurement, the board number to which the log message belongs, the log message sending time, and the generation time period. The log message adapter is used to send a confirmation message that the log message group has been received to the log message broker after confirming that the log message group is complete. The log message broker is also used to delete the corresponding log data based on the confirmation message; The log message adapter is also used to format the log message group and send the formatted log message group to the storage end. The storage terminal is used to store log messages in the log message group based on the log message reception time and the board number to which the log message belongs.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the log data processing method for speed and distance measurement of the vehicle as described in any one of claims 1 to 3. Alternatively, when the processor executes the computer program, it implements the log data processing method for speed and distance measurement of the vehicle as described in any one of claims 4 to 5. Alternatively, when the processor executes the computer program, it implements the log data processing method for speed and distance measurement of the vehicle as described in any one of claims 6 to 7.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the log data processing method for speed measurement and distance measurement of the vehicle as described in any one of claims 1 to 3. Alternatively, when the computer program is executed by the processor, it implements the log data processing method for speed and distance measurement of the vehicle as described in any one of claims 4 to 5. Alternatively, when the computer program is executed by a processor, it implements the log data processing method for speed and distance measurement of the vehicle as described in any one of claims 6 to 7.