Locomotive and ground data transmission system, vehicle-mounted data acquisition communication equipment and ground data acquisition communication equipment

By setting the processing priority of data packets in the locomotive-ground data transmission system and using the topic switch of the message queue server for data matching and delivery, the problem of slow data transmission speed in the traditional system is solved, and the priority processing and efficient transmission of important data are realized.

CN121126432APending Publication Date: 2025-12-12SHUOHUANG RAILWAY DEV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511385258.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-26
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

Traditional locomotive and ground data transmission systems struggle to achieve real-time and efficient transmission of critical data, especially under complex network conditions, resulting in slow data processing speeds and hindering production decision-making and equipment control.

Method used

By setting the processing priority of data packets in the data transmission system between the locomotive and the ground, and using the topic switch of the message queue server for matching and delivery, important data is ensured to be processed first.

Benefits of technology

This enabled the priority processing of critical data, improved the speed and efficiency of data transmission, and ensured the timeliness of production decisions and equipment control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121126432A_ABST
    Figure CN121126432A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of railway communication, and provides a locomotive and ground data transmission system, vehicle-mounted data acquisition communication equipment and ground data acquisition communication equipment. A vehicle-mounted data acquisition communication device of the system is used for acquiring various device data of a locomotive, assembling the data into a data message and setting a processing priority; issuing the data message after the processing priority is determined to a theme switch of a message queue server; a message queue server of the system is used for obtaining a first target theme queue in a theme switch according to a theme routing key attached to the data message; delivering the data message to a first target theme queue; a ground data acquisition communication device of the system is used for obtaining the data message in a first target theme queue after binding a theme routing key corresponding to the first target theme queue of a message queue server, and carrying out a data message processing task according to a processing priority. By adopting the system, the processing speed of important data messages which need to be processed preferentially can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of railway communication technology, in particular to a data transmission system between a locomotive and the ground, a vehicle-mounted data acquisition communication device, a ground data acquisition communication device, a computer readable storage medium and a computer program product. BACKGROUND

[0002] The informatization level of traditional heavy-duty electric locomotives is limited. The data generated by various subsystems during the operation of the locomotive is difficult to be efficiently transmitted to the ground to carry out real-time operation and maintenance business such as processing, analysis and display, because it is limited by the network signal condition along the line. Meanwhile, the on-demand, device control and device upgrade operations of the ground on the various data of the vehicle-mounted device are prone to be interrupted due to the physical location change of the locomotive, which makes it difficult to assist production decision-making and command.

[0003] In the traditional technical solution, the locomotive can interact with a message queue telemetry transmission (MQTT) server in real time with the collected data, and the ground acquisition device can obtain the locomotive collected data from the MQTT server for further processing. However, the above method cannot provide priority arrangement of the topic queue, and for some important data messages that need to be processed in priority, it is still necessary to queue or separately set a topic (Topic) to achieve, which is slow in processing speed. SUMMARY

[0004] Therefore, it is necessary to provide a data transmission system between a locomotive and the ground, a vehicle-mounted data acquisition communication device, a ground data acquisition communication device, a computer readable storage medium and a computer program product to solve the above technical problems.

[0005] In a first aspect, the present application provides a data transmission system between a locomotive and the ground, which comprises a vehicle-mounted data acquisition communication device of each locomotive, a message queue server and a ground data acquisition communication device.

[0006] The vehicle-mounted data acquisition communication device of each locomotive is configured to collect various device data on the locomotive, assemble the various device data into a data message according to a set data protocol between the vehicle and the ground, set a processing priority of the data message, and publish the data message with the set processing priority to a topic switch of the message queue server.

[0007] The message queue server is configured to match, in the topic switch, a topic mode to which the data message with the set processing priority is bound, according to a topic routing key attached to the data message with the set processing priority, to obtain a first target topic queue, and deliver the data message with the set processing priority to the first target topic queue.

[0008] The ground data acquisition communication device is configured to, after binding a topic routing key corresponding to a first target topic queue in a topic exchange of a message queue server, acquire the data message with a determined processing priority issued by the vehicle-mounted data acquisition communication device, and perform a data message processing task according to the processing priority.

[0009] In one of the embodiments, before publishing the data message with the determined processing priority to the topic exchange of the message queue server, the vehicle-mounted data acquisition communication device is further configured to send a login request message to the topic exchange of the message queue server.

[0010] The message queue server is configured to, in the topic exchange, match the login request message with a topic pattern bound to each topic queue according to a topic routing key attached to the login request message, to obtain a second target topic queue; and deliver the login request message to the second target topic queue.

[0011] The ground data acquisition communication device is configured to, after binding a topic routing key corresponding to a second target topic queue in a topic exchange of a message queue server, acquire the login request message issued by the vehicle-mounted data acquisition communication device in the second target topic queue; according to a set of registered data acquisition communication devices, confirm whether a unique identification code of the vehicle-mounted data acquisition communication device attached to the login request message is registered and allowed to be online; and if the unique identification code is registered and allowed to be online, send a login permission message to a corresponding target topic queue in the topic exchange of the message queue server.

[0012] The vehicle-mounted data acquisition communication device sends a data message after receiving the login permission message.

[0013] In one of the embodiments, the ground data acquisition communication device is further configured to collect data sent to a specified locomotive, assemble the data sent to the specified locomotive into a data message according to a set data protocol between the vehicle and the ground, and set a processing priority of the data message; and publish the data message with the determined processing priority to a topic exchange of a message queue server.

[0014] The message queue server is configured to, in the topic exchange, match the data message with a determined processing priority with a topic pattern bound to each topic queue according to a topic routing key attached to the data message with the determined processing priority, to obtain a third target topic queue; and deliver the data message with the determined processing priority to the third target topic queue.

[0015] The on-board data acquisition communication device of each locomotive is further configured to subscribe to receive the data messages with determined processing priorities issued by the ground data acquisition communication device in the third target topic queue of the binding topic exchange, and perform data message processing tasks according to the processing priorities.

[0016] In one of the embodiments, the ground data acquisition communication device is further configured to collect data to be sent to all locomotives, assemble the data to be sent to all locomotives into data messages according to a set data protocol between the ground and the locomotives, and set processing priorities of the data messages; and publish the data messages with determined processing priorities to corresponding topic queues in the fan exchange of the message queue server.

[0017] The on-board data acquisition communication device of each locomotive is further configured to subscribe to receive the data messages with determined processing priorities issued by the ground data acquisition communication device in each topic queue of the fan exchange, and perform data message processing tasks according to the processing priorities.

[0018] In one of the embodiments, the target on-board data acquisition communication device of the target locomotive is further configured to assemble a data message requesting to acquire the running conditions of the front and rear locomotives when the target locomotive needs to acquire the running conditions of the front and rear locomotives, and set a processing priority of the data message; and publish the data message with the determined processing priority to the topic exchange of the message queue server.

[0019] The message queue server is configured to match the data messages with determined processing priorities with topic patterns of each topic queue according to topic routing keys attached to the data messages with determined processing priorities in the topic exchange, to obtain a fourth target topic queue; and deliver the data messages with determined processing priorities to the fourth target topic queue.

[0020] The ground data acquisition communication device is further configured to acquire the data messages issued by the on-board data acquisition communication device in the fourth topic queue of the topic exchange, assemble vehicle information of other running locomotives on the front and rear lines according to the running direction of the target locomotive into a data message according to a set data protocol between the ground and the locomotives, and set a processing priority of the data message; and publish the data message with the determined processing priority to a fifth topic queue of the topic exchange of the message queue server to the on-board data acquisition communication device of the target locomotive.

[0021] The target on-board data acquisition communication device of the target locomotive is further configured to, after binding the topic routing key of the fifth topic queue in the binding topic exchange and subscribing to the data message sent by the ground data acquisition communication device, acquire the car types and car numbers of other running locomotives on the front and rear lines of the running direction, determine a target topic routing key according to the car types and car numbers of the other running locomotives on the front and rear lines of the running direction, bind a target topic queue corresponding to the target topic routing key in the message queue server, and receive real-time data of the other running locomotives on the front and rear lines of the running direction.

[0022] In one of the embodiments, the on-board data acquisition communication device of each locomotive or the ground data acquisition communication device is further configured to, when in a low-priority data message processing state and the estimated processing time of a low-priority data message processing task is greater than the set response time of a high-priority data message processing task, split the low-priority data message processing task into a plurality of low-priority data message processing subtasks, and set a checkpoint after each low-priority data message processing subtask ends.

[0023] At the checkpoint, the state of a high-priority queue in the message queue server is queried.

[0024] If there is an unprocessed high-priority data message processing task in the high-priority queue, the current low-priority data message processing task is paused, and the high-priority data message processing task is switched to.

[0025] When the high-priority data message processing task is completed, the low-priority data message processing task is resumed from the checkpoint.

[0026] In one of the embodiments, the splitting of the low-priority data message processing task into a plurality of low-priority data message processing subtasks includes:

[0027] The data processing link of the low-priority data message processing task is acquired.

[0028] According to the data processing link, the low-priority data message processing task is split into a plurality of low-priority data message processing subtasks.

[0029] In one of the embodiments, the resuming of the low-priority data message processing task from the checkpoint includes:

[0030] Record information at the checkpoint is acquired, and the record information includes a task identifier, a progress indicator, context data, and a checkpoint generation time.

[0031] According to the task identifier, the progress indicator, and the context data in the record information, the low-priority data message processing task is resumed.

[0032] In a second aspect, the application further provides a vehicle-mounted data acquisition communication device. The vehicle-mounted data acquisition communication device is included in the locomotive-to-ground data transmission system.

[0033] In a third aspect, the application further provides a ground data acquisition communication device. The ground data acquisition communication device is included in the locomotive-to-ground data transmission system.

[0034] In a fourth aspect, the application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the above-mentioned embodiments.

[0035] In a fifth aspect, the application further provides a computer program product. The computer program product includes a computer program, and the computer program is executed by a processor to implement the above-mentioned embodiments.

[0036] The locomotive-to-ground data transmission system includes a vehicle-mounted data acquisition communication device of each locomotive, a message queue server, and a ground data acquisition communication device. The vehicle-mounted data acquisition communication device of each locomotive is configured to collect various device data on the locomotive, assemble the various device data into a data message according to a set data protocol between the vehicle and the ground, set a processing priority of the data message, and publish the data message with the set processing priority to a topic exchange of the message queue server. The message queue server is configured to match the data message with the set processing priority to a topic mode of a first target topic queue according to a topic routing key attached to the data message with the set processing priority in the topic exchange, and obtain the data message with the set processing priority from the first target topic queue. The ground data acquisition communication device is configured to obtain the data message with the set processing priority from the first target topic queue after binding a topic routing key corresponding to the first target topic queue in the topic exchange of the message queue server, and perform a data message processing task according to the processing priority. The vehicle-mounted data acquisition communication device sets the processing priority of the data message, and then publishes the data message with the set processing priority to the topic exchange of the message queue server, so that the ground data acquisition communication device performs the data message processing task according to the processing priority. Thus, the important data message that needs to be processed in priority can be processed in priority, and the processing speed of the important data message that needs to be processed in priority is improved. BRIEF DESCRIPTION OF DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the following will briefly introduce the drawings needed to be used in the description of the embodiments of the present application or the related art. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other related drawings can be obtained based on these drawings without any creative effort.

[0038] Figure 1 An application environment diagram of a data transmission system between a locomotive and the ground in an embodiment;

[0039] Figure 2 A flowchart of splitting a low-priority data packet processing task in an embodiment;

[0040] Figure 3 A flowchart of resuming a low-priority data packet processing task from a checkpoint in an embodiment;

[0041] Figure 4 An internal structure diagram of a vehicle-mounted data acquisition communication device in an embodiment;

[0042] Figure 5 An internal structure diagram of a ground data acquisition communication device in an embodiment. DETAILED DESCRIPTION

[0043] In order to make the objects, technical solutions and advantages of the present application clearer, the following will further describe the present application in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.

[0044] It should be noted that the terms "first", "second", and the like used in the present application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "include" and "have" and any variations thereof used in the present application are intended to cover non-exclusive inclusion. The term "multiple" used in the present application refers to two and more than two. The term "and / or" used in the present application refers to one of the solutions, or any combination of multiple solutions.

[0045] The data transmission system between a locomotive and the ground provided by the embodiments of the present application can be applied to, for example, Figure 1The locomotive and the ground data transmission system include a vehicle-mounted data acquisition communication device of each locomotive, a message queue server, and a ground data acquisition communication device; the vehicle-mounted data acquisition communication device of each locomotive is used to acquire various device data on the locomotive, assemble the various device data into a data message according to a set data protocol between the vehicle and the ground, and set a processing priority of the data message; the data message with the determined processing priority is published to a subject exchange of the message queue server; the message queue server is used to match the data message with the determined processing priority with a subject mode bound to each subject queue according to a subject routing key attached to the data message with the determined processing priority, to obtain a first target subject queue; the data message with the determined processing priority is delivered to the first target subject queue; and the ground data acquisition communication device is used to obtain the data message with the determined processing priority issued by the vehicle-mounted data acquisition communication device in the first target subject queue after binding a subject routing key corresponding to the first target subject queue in the subject exchange of the message queue server, and perform a data message processing task according to the processing priority.

[0046] The message queue server can be an Advanced Message Queuing Protocol (AMQP) based message queue server, for example, a Rabbit Message Queue (RabbitMQ) server.

[0047] After the vehicle-mounted data acquisition communication device of each locomotive starts running, the vehicle-mounted data acquisition communication device can connect the ground message queue server through an agreed account, password and key, publish the data message to the subject exchange of the message queue server after authentication, and declare a subject routing key to be delivered by the subject exchange.

[0048] The vehicle-mounted data acquisition communication device of each locomotive can acquire various device data on the locomotive through a network bus and a vehicle-mounted communication protocol, assemble the various device data into a binary data message according to a set data protocol between the vehicle and the ground, and set a processing priority of the data message; for example, the processing priority of the data message can be graded according to a 0-10 processing priority level, and the processing priority order of the data message can be calibrated. The data message with the determined processing priority can be published to the subject exchange of the message queue server.

[0049] The message queue server can match the data message with the determined processing priority with a subject mode bound to each subject queue according to a subject routing key attached to the data message with the determined processing priority in the subject exchange, take a subject queue corresponding to a subject mode matched with the data message with the determined processing priority as a first target subject queue, and deliver the data message with the determined processing priority to the first target subject queue.

[0050] The subject routing key format of the data message sent by the locomotive to the ground is: data. device type. l2g. locomotive type. locomotive number. AB section of the locomotive.

[0051] In addition, the locomotive can send control type messages to the ground. The subject routing key format of the control type message sent by the locomotive to the ground is: ctrl. l2g. locomotive type. locomotive number. AB section of the locomotive.

[0052] The ground data acquisition communication device can obtain the data message with determined processing priority issued by the on-board data acquisition communication device in the first target subject queue after binding the subject routing key corresponding to the first target subject queue in the subject exchange of the message queue server, and perform data message processing tasks according to the processing priority corresponding to each data message and the content of each data message, such as data message analysis, storage, distribution and other business operations.

[0053] The ground data acquisition communication device can bind various target subject queues in the subject exchange of the message queue server, and can obtain all data messages issued by the locomotive in real time. The ground data acquisition communication device can subscribe to data messages of multiple locomotives at the same time through the message queue server, for example, the ground data acquisition communication device binds the subject routing key data. l2g. gps. HDX1. *. a, and can obtain the positioning data of all a-section cars.

[0054] The above data transmission system between the locomotive and the ground, the on-board data acquisition communication device first sets the processing priority of the data message, and then publishes the data message with determined processing priority to the subject exchange of the message queue server, so that the ground data acquisition communication device performs data message processing tasks according to the processing priority, which can realize the priority processing of important and priority processing data messages, and improve the processing speed of important and priority processing data messages.

[0055] In one of the embodiments, before publishing the data message with determined processing priority to the topic exchange of the message queue server, the vehicle-mounted data acquisition communication device is further configured to send a login request message to the topic exchange of the message queue server; the message queue server is configured to match the login request message with a topic pattern bound to each topic queue in the topic exchange according to a topic routing key attached to the login request message, to obtain a second target topic queue; and deliver the login request message to the second target topic queue; the ground data acquisition communication device is configured to, after binding the topic routing key corresponding to the second target topic queue in the topic exchange of the message queue server, acquire the login request message issued by the vehicle-mounted data acquisition communication device in the second target topic queue; confirm whether the unique identification code of the vehicle-mounted data acquisition communication device attached to the login request message is registered and allowed to be online according to a registered device set of the data acquisition communication; if the unique identification code is registered and allowed to be online, send a login permission message to the corresponding target topic queue in the topic exchange of the message queue server; and the vehicle-mounted data acquisition communication device is configured to, after receiving the login permission message, send a data message.

[0056] Before publishing the data message with determined processing priority to the topic exchange of the message queue server, the vehicle-mounted data acquisition communication device can send a login request message to the topic exchange of the message queue server.

[0057] The message queue server can match the login request message with a topic pattern bound to each topic queue in the topic exchange according to a topic routing key attached to the login request message, to obtain a second target topic queue; and deliver the login request message to the second target topic queue.

[0058] After binding the topic routing key corresponding to the second target topic queue in the topic exchange of the message queue server, the ground data acquisition communication device acquires the login request message issued by the vehicle-mounted data acquisition communication device in the second target topic queue; confirms whether the unique identification code (factory-attached) of the vehicle-mounted data acquisition communication device attached to the login request message is registered and allowed to be online by accessing a registered device set of the data acquisition communication stored in the device database; if the unique identification code is registered and allowed to be online, sends a login permission message to the corresponding target topic queue in the topic exchange of the message queue server; and the vehicle-mounted data acquisition communication device, after receiving the login permission message, starts to prepare to send the acquired binary data message.

[0059] For example, the A-section positioning device of the HXD1 model 0001 locomotive generates data in real time, the on-board data acquisition communication device collects and assembles the data into a data message, and then connects to the ground message queue server through a mobile communication technology dedicated or public network, publishes the data message to the topic exchange machine of the message queue server, and routes the key to the topic queue of the data.l2g.gps.HXD1.0001.a topic, and after receiving the response from the message queue server, the subsequent data message can be processed and issued.

[0060] In this embodiment, before publishing the data message with the determined processing priority to the topic exchange machine of the message queue server, the on-board data acquisition communication device sends a login request message to the topic exchange machine of the message queue server, and the ground data acquisition communication device confirms whether the unique identification code of the on-board data acquisition communication device attached in the login request message is registered and allowed to be online according to the set of registered data acquisition communication devices; if the unique identification code is registered and allowed to be online, a login permission message is sent to the corresponding target topic queue in the topic exchange machine of the message queue server, so that the on-board data acquisition communication device sends the data message after receiving the login permission message. The login permission message can be used to verify the legitimacy of the on-board data acquisition communication device and prevent illegal devices from accessing the message queue server to obtain locomotive data or perform malicious operations.

[0061] In one embodiment, the ground data acquisition communication device is also used to collect data sent to a specified locomotive, assemble the data sent to the specified locomotive into a data message according to the set data protocol between the vehicle and the ground, and set the processing priority of the data message; publish the data message with the determined processing priority to the topic exchange machine of the message queue server; the message queue server is used to match the data message with the determined processing priority with the topic mode bound to each topic queue in the topic exchange machine according to the topic routing key attached to the data message with the determined processing priority, to obtain a third target topic queue; deliver the data message with the determined processing priority to the third target topic queue; and the on-board data acquisition communication device of each locomotive is also used to subscribe to receive the data message with the determined processing priority issued by the ground data acquisition communication device in the third target topic queue after binding the topic routing key of the third target topic queue in the topic exchange machine, and perform data message processing tasks according to the processing priority.

[0062] The ground data acquisition communication device can collect data sent to a specified locomotive, such as weather, geological warning, front and rear vehicle position, speed and working condition data, assemble the data sent to the specified locomotive into a data message according to the set data protocol between the vehicle and the ground, and set the processing priority of the data message; publish the data message with the determined processing priority to the topic exchange machine of the message queue server.

[0063] The data message of which the ground needs locomotive to process preferentially, such as emergency situation of line disaster or front vehicle breakdown and the like, can be graded according to the priority degree of 0-10 when sending the data message, the processing priority order of the data message is labeled, and the data message of which the processing priority is determined can be published to the topic exchange of the message queue server.

[0064] The message queue server can match the data message of which the processing priority is determined with the topic mode of the topic queue according to the topic routing key attached to the data message of which the processing priority is determined, obtain a third target topic queue, and deliver the data message of which the processing priority is determined to the third target topic queue.

[0065] The topic routing key format of the data message sent by the ground to the locomotive is data.g2l.data type.current vehicle model.current vehicle number.current vehicle AB section.

[0066] In addition, the ground can send control type message to the locomotive, and the topic routing key format of the control type message sent by the ground to the locomotive is ctrl.g2l.current vehicle model.current vehicle number.current vehicle AB section.

[0067] The on-board data acquisition communication equipment of each locomotive can subscribe to receive the data message of which the processing priority is determined issued by the ground data acquisition communication equipment in the third target topic queue of the binding topic exchange after the topic routing key of the third target topic queue, and perform data message processing task according to the processing priority.

[0068] Since the on-board data acquisition communication equipment of each locomotive has bound the topic routing key of the third target topic queue in the topic exchange after starting to run, after the ground data acquisition communication equipment publishes the data message to the corresponding topic queue in the message queue server, the on-board data acquisition communication equipment can immediately subscribe to receive the data message of which the processing priority is determined issued by the ground data acquisition communication equipment in the third target topic queue, and perform data message processing task according to the processing priority.

[0069] The locomotive can further perform corresponding data analysis, early warning display, adjustment of driving strategy and the like after subscribing to the data published by the ground, and the locomotive adopts different topic channels when issuing data to the ground and receiving data from the ground.

[0070] In the embodiment, the ground data acquisition communication equipment sets the processing priority of the data message first, and then publishes the data message of which the processing priority is determined to the topic exchange of the message queue server, so that the on-board data acquisition communication equipment performs data message processing task according to the processing priority, which can realize the priority processing of important and priority processing required data message, and improve the processing speed of important and priority processing required data message.

[0071] In one of the embodiments, the ground data acquisition communication device is further configured to collect data to be sent to all locomotives, assemble the data to be sent to all locomotives into a data message according to a set data protocol between the locomotives and the ground, and set a processing priority of the data message; publish the data message with the determined processing priority to a corresponding topic queue in a fan switch of a message queue server; and the on-board data acquisition communication device of each locomotive is further configured to subscribe to receive the data message with the determined processing priority issued by the ground data acquisition communication device in each topic queue of the fan switch, and perform a data message processing task according to the processing priority.

[0072] The ground data acquisition communication device can collect data to be sent to all locomotives, assemble the data to be sent to all locomotives into a data message according to a set data protocol between the locomotives and the ground, and set a processing priority of the data message; without defining a topic routing key, a fan switch is used to publish the data message; specifically, the data message with the determined processing priority is published to a corresponding topic queue in a fan switch of a message queue server.

[0073] The on-board data acquisition communication device of each locomotive can subscribe to receive the data message with the determined processing priority issued by the ground data acquisition communication device in each topic queue of the fan switch, and perform a data message processing task according to the processing priority.

[0074] In this embodiment, the ground data acquisition communication device needs to publish a large amount of data messages to the locomotives, without defining a topic routing key, and can achieve this by binding a fan switch.

[0075] In one of the embodiments, the target on-board data acquisition communication device of the target locomotive is further configured to assemble a data packet for requesting the operation information of the front and rear locomotives and set a processing priority of the data packet when the target locomotive needs to acquire the operation information of the front and rear locomotives; and publish the data packet with the determined processing priority to a topic exchange of a message queue server.

[0076] The target on-board data acquisition communication device of the target locomotive can assemble a data packet for requesting the operation information of the front and rear locomotives and set a processing priority of the data packet when the target locomotive needs to acquire the operation information of the front and rear locomotives.

[0077] The message queue server can match the data packet with the determined processing priority with a topic mode bound with each topic queue according to a topic routing key attached to the data packet with the determined processing priority in the topic exchange, obtain a fourth target topic queue, and deliver the data packet with the determined processing priority to the fourth target topic queue.

[0078] Ground-based data acquisition and communication equipment can acquire data packets sent by vehicle-mounted data acquisition and communication equipment in the fourth theme queue of the theme switch. After identifying the vehicle information of other locomotives on the lines before and after the target locomotive's direction of travel using a specific algorithm, it assembles the vehicle information into data packets according to the set data protocol between the vehicle and the ground, and sets the processing priority of the data packets. The data packets with determined processing priorities are then published to the fifth theme queue of the theme switch of the message queue server and sent to the vehicle-mounted data acquisition and communication equipment of the target locomotive.

[0079] After binding the target locomotive's onboard data acquisition and communication equipment to the topic routing key of the fifth topic queue in the topic switch, it can subscribe to data packets sent by the ground data acquisition and communication equipment, and obtain the model and car number of other locomotives on the lines before and after the direction of operation; based on the model and car number of other locomotives on the lines before and after the direction of operation, it determines the target topic routing key; binds to the target topic queue corresponding to the target topic routing key in the message queue server, and receives real-time data from other locomotives on the lines before and after the direction of operation.

[0080] Among them, the vehicle-mounted data acquisition and communication equipment can subscribe to the required devices separately through the device type in the topic routing key. For example, when executing a certain strategy, if it requires positioning data of the preceding and following vehicles, data from the Locomotive Kilometer Recorder (LKJ) and the Train Control and Management System (TCMS), since the data generation frequency of these devices may be inconsistent, the data generated by each type of device can be subscribed to separately. That is, the topic routing keys such as data.l2g.gps.preceding and following vehicle model.preceding and following vehicle number.preceding and following vehicle A / B sections, data.l2g.lkj.preceding and following vehicle model.preceding and following vehicle number.preceding and following vehicle A / B sections, and data.l2g.tcms.preceding and following vehicle model.preceding and following vehicle number.preceding and following vehicle A / B sections can be bound separately.

[0081] In this embodiment, when the target locomotive's onboard data acquisition and communication equipment needs to obtain the operating status of locomotives in front and behind, it can obtain the model and car number of other locomotives on the front and behind lines in the direction of operation through the ground data acquisition and communication equipment, determine the target topic routing key, bind the target topic queue corresponding to the target topic routing key in the message queue server, and receive real-time data from other locomotives on the front and behind lines in the direction of operation, thereby realizing data interaction between locomotives.

[0082] In one of the embodiments, the on-board data acquisition communication device of each locomotive or the ground data acquisition communication device is further configured to, when in the low-priority data message processing state and the estimated processing time of the low-priority data message processing task is greater than the set response time of the high-priority data message processing task, split the low-priority data message processing task into a plurality of low-priority data message processing subtasks; set a checkpoint after each low-priority data message processing subtask is completed; at the checkpoint, query the high-priority queue state in the message queue server; if there is an unprocessed high-priority data message processing task in the high-priority queue, suspend the current low-priority data message processing task and switch to the high-priority data message processing task; and when the high-priority data message processing task is completed, resume the low-priority data message processing task from the checkpoint.

[0083] After the processing priority order of the data messages is determined according to the processing priority level grading from 0 to 10, the processing priority order of the data messages can be further graded, for example, the data messages with the processing priority of 0 and 1 can be determined as high-priority data messages, and the data messages other than the data messages with the processing priority of 0 and 1 can be determined as low-priority data messages.

[0084] The on-board data acquisition communication device of each locomotive or the ground data acquisition communication device can determine the estimated processing time of the low-priority data message processing task according to the data volume or the historical processing time of the low-priority data message when processing the low-priority data message.

[0085] The low-priority data message processing task can be split into a plurality of low-priority data message processing subtasks when in the low-priority data message processing state and the estimated processing time of the low-priority data message processing task is greater than the set response time of the high-priority data message processing task; and the set response time of the high-priority data message processing task can be determined according to actual conditions.

[0086] A checkpoint can be set after each low-priority data message processing subtask is completed; at the checkpoint, the high-priority queue state in the message queue server can be queried; if there is an unprocessed high-priority data message processing task in the high-priority queue, the current low-priority data message processing task can be suspended and switched to the high-priority data message processing task; and when the high-priority data message processing task is completed, the low-priority data message processing task can be resumed from the checkpoint.

[0087] For example, the log batch uploading task (low-priority data packet processing task) of the vehicle-mounted data acquisition communication device is divided into three low-priority data packet processing subtasks of "reading log -> compression -> fragmented uploading", and a checkpoint is set after the end of each low-priority data packet processing subtask. After the completion of the "compression" low-priority data packet processing subtask, the state of the high-priority queue in the message queue server is queried. If there is an unprocessed collision warning task (high-priority data packet processing task) in the high-priority queue, the current low-priority data packet processing task is suspended, and the collision warning task is switched to. When the collision warning task is completed, the "fragmented uploading" low-priority data packet processing subtask is resumed from the checkpoint.

[0088] In this embodiment, the state of the high-priority queue in the message queue server is queried at the checkpoint. If there is an unprocessed high-priority data packet processing task in the high-priority queue, the current low-priority data packet processing task is suspended, and the high-priority data packet processing task is switched to. When the high-priority data packet processing task is completed, the low-priority data packet processing task is resumed from the checkpoint, which can avoid the situation that the high-priority data packet processing task is not responded in time due to the long processing time of the low-priority data packet processing task.

[0089] In one of the embodiments, the low-priority data packet processing task is divided into a plurality of low-priority data packet processing subtasks, and the specific steps are as shown in Figure 2 The data processing link of the low-priority data packet processing task is obtained in step S201, and the low-priority data packet processing task is divided into a plurality of low-priority data packet processing subtasks according to the data processing link in step S202.

[0090] The low-priority data packet processing task can be divided into a plurality of low-priority data packet processing subtasks according to the data processing link of the low-priority data packet processing task.

[0091] For example, the vehicle-mounted log processing task (low-priority data packet processing task) usually includes six data processing links of "local reading -> format verification -> compression -> fragmentation -> encryption -> uploading", so the vehicle-mounted log processing task can be divided into six low-priority data packet processing subtasks according to the six data processing links.

[0092] In this embodiment, the low-priority data packet processing task can be divided into a plurality of low-priority data packet processing subtasks according to the data processing link of the low-priority data packet processing task, which can ensure that the low-priority data packet processing subtask only processes a single link, and the output result can be independently stored, providing a basis for subsequent subtask recovery.

[0093] In one of the embodiments, the low-priority data packet processing task is resumed from the checkpoint, and the specific steps are as follows Figure 3 As shown in the figure: step S301, obtaining the record information at the checkpoint; the record information includes task identification, progress index, context data, and checkpoint generation time; step S302, resuming the low-priority data packet processing task according to the task identification, progress index, and context data in the record information.

[0094] The checkpoint set after the end of each low-priority data packet processing subtask has corresponding record information. Among them, the record information at the checkpoint includes task identification, progress index, context data, and checkpoint generation time.

[0095] The low-priority data packet processing task can be resumed according to the task identification, progress index, and context data in the record information at the checkpoint.

[0096] In this embodiment, the low-priority data packet processing task can be quickly and periodically resumed according to the task identification, progress index, and context data in the record information at the checkpoint.

[0097] In order to better understand the above method, an application embodiment of a locomotive and ground data transmission system of the present application is described in detail below.

[0098] The informatization level of traditional heavy-haul electric locomotives is limited, and the data generated by various subsystems during locomotive operation is difficult to be efficiently transmitted to the ground to carry out real-time operation and maintenance business such as processing, analysis, and display, because it is limited by the network signal conditions along the line. At the same time, the on-demand, device control, and device upgrade operations of various data of the device on the ground are also prone to be interrupted due to the physical location change of the locomotive, which makes it difficult to assist production decision-making and command.

[0099] In the traditional locomotive and ground data transmission method, a custom data protocol is designed based on the Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) protocols to initiate transmission communication from the locomotive to the ground, which is prone to packet loss, ground processing delay, and other problems.

[0100] The locomotive and ground data transmission system provided in this embodiment mainly solves the data transmission problems of locomotive data interaction, locomotive data interaction, and remote control related business in complex network operation scenarios, and mainly involves the following technical problems:

[0101] (1) In a conventional transmission control protocol-based train-ground transmission technical solution, the transmission control protocol can guarantee the reliability of data transmission to a certain extent, but brings high overhead, high delay, and possibly insufficient bandwidth utilization, and for scenarios with many on-board devices, it is difficult for the ground server to load the resources required by a large number of transmission control protocol connections;

[0102] (2) In a conventional user datagram protocol-based train-ground transmission technical solution, the user datagram protocol can bring convenient connectionless communication services, but the problem of high packet loss rate under unreliable network conditions cannot be solved, and the accuracy of data delivery cannot be guaranteed, which is not suitable for scenarios with high real-time and accuracy requirements;

[0103] (3) A conventional middleware solution such as message queue telemetry transport (MQTT) cannot provide priority arrangement at the queue or topic level, and for some important and priority data messages (messages), it still needs to be queued or set up a separate topic to achieve, and for globally consumed data, it cannot be broadcasted and distributed, and for some line faults, disasters, and other data that need to be processed in priority or globally in rail transit, it is difficult to adapt well.

[0104] The locomotive and ground data transmission system provided in the embodiment is an architecture based on an advanced message queuing protocol (AMQP) and its message middleware, and the locomotive can interact with the ground AMQP message queue server in real time, and the ground data acquisition communication device further processes the data obtained from the message queue server. In the system, a Rabbit message queue (RabbitMQ) server is used as a carrier of the AMQP message queue. The locomotive and ground data transmission system includes a vehicle-mounted data acquisition communication device of each locomotive, a message queue server, and a ground data acquisition communication device (including a ground data acquisition communication program). Usually, each locomotive has a set of vehicle-mounted data acquisition communication devices.

[0105] (I) Train-ground data interaction

[0106] The locomotive and ground data interaction transmission mode and steps are as follows:

[0107] (1) Train-to-ground data transmission

[0108] Various equipment data on the locomotive as a data source, through the network bus and vehicle communication protocol by vehicle data acquisition communication equipment on the car after the collection, in accordance with the set data protocol between the train and ground order assembled into complete binary data packet, and through the communication with the message queue server to complete the train and ground bidirectional data and control message interaction;

[0109] 1) After the vehicle data acquisition communication equipment starts running, through the agreed account, password and key, connect the ground message queue server, after authentication, publish the data message to the topic exchange, and declare the topic routing key required by the topic exchange, the format of the topic routing key is as follows:

[0110] a) The topic routing key format of the data message sent by the ground to the locomotive is: data.g2l.data type.car type.car number.car AB section, the topic routing key format of the control message sent by the ground to the locomotive is: ctrl.g2l.car type.car number.car AB section, which is bound by the vehicle data acquisition communication equipment subscription;

[0111] b) The topic routing key format of the data message sent by the locomotive to the ground is: data.device type.l2g.car type.car number.car AB section, the topic routing key format of the control message sent by the locomotive to the ground is: ctrl.l2g.car type.car number.car AB section, which is bound by the ground data acquisition program subscription;

[0112] c) The data message published by broadcast mode does not need to define the topic routing key, and uses the fan-shaped exchange to publish data.

[0113] 2) The vehicle data acquisition communication equipment sends a login request message to the corresponding ctrl.l2g.car type.car number.car AB section topic routing key in the topic exchange of the message queue server, and the ground data acquisition program subscribes to the corresponding topic routing key, obtains the message of the corresponding topic queue, and verifies it. In the login request message, the unique identification code (factory self-provided) of the vehicle data acquisition communication equipment is attached;

[0114] 3) The ground data acquisition communication equipment confirms whether the unique identification code exists and is allowed to be online by accessing the registered equipment set of the data acquisition communication stored in the equipment database, if yes, sends a login permission message to the topic queue of the topic exchange of the message queue server, and the routing key is ctrl.g2l.target car type.target car number.target AB section;

[0115] 4) After receiving the login permission message, the vehicle-mounted data acquisition communication device starts to prepare to send the collected binary data message, sends the data message to the topic exchange of the message queue server on the ground, and the corresponding topic routing key is: data.l2g.device type.car model.car number.car AB section; for example, the A section positioning device of HXD1 car model 0001 locomotive generates real-time data, which is collected and assembled into a data message by the vehicle-mounted data acquisition communication device, connected to the message queue server on the ground through mobile communication technology special or public network, and published to the topic queue with the routing key data.l2g.gps.HXD1.0001.a in the topic exchange of the message queue server. After receiving the response from the message queue server, the subsequent data message can be processed;

[0116] 5) The ground data acquisition communication device binds the corresponding topic routing key in the topic exchange of the message queue server to realize the distribution of data messages to the target topic queue (such as data.l2g.gps.HXD1.0001.a) of the corresponding vehicle-mounted device, so that all data transmitted by the locomotive can be obtained in real time. The ground data acquisition communication device can subscribe to the data of multiple locomotives at the same time through the message queue server (such as binding the topic routing key data.l2g.gps.HXD1.*.a to collect the positioning data of all a section cars), and further complete subsequent processing such as analysis, storage, distribution, etc. after collecting the data;

[0117] 6) The data message of the locomotive that needs to be processed by the ground in priority, such as serious fault, etc. needs to be processed immediately. When sending the data message, the processing priority needs to be set, the priority order needs to be determined according to the priority level of 0-10, and the data message needs to be delivered to the topic exchange or fan-shaped exchange for priority processing by the ground;

[0118] The ground and the locomotive are completely decoupled when transmitting data, and there is no direct connection. They can independently transmit and receive data according to their own hardware and software processing capacity, and freely adjust the data processing rate.

[0119] (2) Ground-to-vehicle data transmission

[0120] Some data generated by the ground, such as weather along the line, geological warning, position and speed of front and rear cars, working condition, etc. need to be transmitted to the specified locomotive or all locomotives in operation in time for timely adjustment of the driving control strategy.

[0121] 1) All kinds of data need to be sent to the designated locomotive from the ground, and after collecting on the ground, the complete data message is assembled according to the set data protocol between the vehicle and the ground, and the data message is published to the topic exchange of the message queue server by the ground data acquisition communication equipment, and the specific topic routing key is bound, and the format is data.g2l.data type.target vehicle type.target vehicle number.target AB section;

[0122] 2) All kinds of data need to be sent to the locomotive from the ground, and after collecting on the ground, the complete data message is assembled according to the set data protocol between the vehicle and the ground, and the data message is published to the fanout exchange of the message queue server without specifying the topic routing key;

[0123] 3) The data message needs to be processed by the ground locomotive, such as line disaster or front car failure stop and other emergency situations, when sending data message, the processing priority needs to be formulated, and the priority order is determined according to 0-10 priority level, and delivered to the topic exchange or fanout exchange for priority processing by the locomotive;

[0124] 4) Since the vehicle-mounted data acquisition communication equipment has been bound to the topic exchange corresponding to the routing key of data.g2l.data type.current vehicle type.current vehicle number.current vehicle AB section, and the corresponding fanout exchange, after the ground data acquisition communication equipment publishes the data message to the corresponding topic queue in the message queue server, the vehicle-mounted data acquisition communication equipment can immediately subscribe to receive the latest data from the ground;

[0125] After the locomotive subscribes to the data published by the ground, it can further perform corresponding data analysis, early warning display, and adjustment of driving strategy. The locomotive issues data to the ground and receives data from the ground, which adopts different topic channels. Data messages or control messages that need to be published in a large area can be implemented by binding fanout exchange. Therefore, the data between vehicles does not interfere with each other, and the vehicle-mounted data acquisition communication equipment can perform concurrent or serial processing according to its own hardware and software capabilities.

[0126] (II) Vehicle-to-vehicle data interaction

[0127] During the driving process of the locomotive, part of the driving control strategy needs to be adjusted in real time according to the running situation of the front and rear vehicles. The data interaction transmission method and steps between locomotives are as follows:

[0128] 1) When the vehicle-mounted data acquisition communication equipment of each locomotive is running normally, it publishes data in real time to the topic data.l2g.equipment type.current vehicle type.current vehicle number.current vehicle AB section by connecting the message queue server, and the message queue server provides a binding entrance for the topic exchange;

[0129] 2) The ground data acquisition communication device identifies the running direction of the target locomotive and the information of other vehicles running on the front and rear lines through a specific algorithm, assembles the corresponding binary data message according to the set data protocol between the ground and the vehicle, and publishes the target locomotive through the corresponding topic queue of the data.g2l.data type.target vehicle type.target vehicle number.target AB section routing key;

[0130] 3) After the target vehicle-mounted data acquisition communication device subscribes to the front and rear vehicle information message data sent by the ground data acquisition communication device, it can obtain the locomotive type and vehicle number information existing in front and rear of the running direction;

[0131] 4) The vehicle-mounted data acquisition communication device can receive real-time data of the front and rear vehicles by binding the topic queue in the message queue server data.l2g.front vehicle device type.front vehicle type.front vehicle number.front vehicle AB section routing key and data.l2g.rear vehicle device type.rear vehicle type.rear vehicle number.rear vehicle AB section routing key;

[0132] 5) Among them, the vehicle-mounted data acquisition communication device can subscribe to the required equipment through the device type in the topic routing key, for example, when executing a certain strategy, the positioning data of the front and rear vehicles, the train operation monitoring device (Locomotive Kilometer Recorder, LKJ) data, the train control and management system (Train Control and Management System, TCMS) data and other different equipment data are required. Since the frequency of these equipment data may not be consistent, the data generated by each type of equipment can be subscribed to, that is, the topic routing keys data.l2g.gps.front and rear vehicle type.front and rear vehicle number.front and rear vehicle AB section, data.l2g.lkj.front and rear vehicle type.front and rear vehicle number.front and rear vehicle AB section, data.l2g.tcms.front and rear vehicle type.front and rear vehicle number.front and rear vehicle AB section can be bound respectively;

[0133] (Three) Remote control of equipment

[0134] 1) After the vehicle-mounted data acquisition communication device starts running, it connects to the ground message queue server through the agreed account, password and key, and binds to the topic queue of the corresponding topic routing key in the topic exchange, that is, the ground sends control type messages to the corresponding topic queue, and the topic routing key format is: ctrl.g2l.this vehicle type.this vehicle number.this vehicle AB section;

[0135] 2) The ground data acquisition communication device acquires the control instruction issued from the ground application system, for example, adjusts the data transmission frequency, on-demand specific data, etc., according to the data protocol agreed between the vehicle and the ground, packages into specific binary control messages, and sends to the topic queue bound by the routing key ctrl.g2l.target vehicle type.target vehicle number.target AB section;

[0136] 3) After the vehicle-mounted data acquisition communication device subscribes to the control instruction issued by the ground, the corresponding control operation is performed, and after the control is completed, the control result response is sent to the message queue server ctrl.l2g. The vehicle type of this vehicle, the vehicle number of this vehicle, and the AB section topic queue of this vehicle sends the control result response;

[0137] The ground data acquisition communication program can obtain the corresponding control result by subscribing to the control response corresponding to the topic issued by the target control locomotive, and can continue to feed back to the application layer to realize the closed loop of control result issuance and response;

[0138] The locomotive and ground data transmission system provided by the embodiment has the following beneficial effects:

[0139] (1) Improve the concurrency and quality of data transmission

[0140] When transmitting data through the message queue server, the vehicle-mounted data acquisition communication device and the ground data acquisition communication device can be completely decoupled, which is beneficial to improve the concurrency of the overall system. The high-level message queue protocol supports the setting of the quality of service (QoS) level by nature to ensure different levels of message reliability and guarantee the reliability of message transmission.

[0141] (2) Enhance the expansibility of vehicle-ground interactive communication

[0142] After the vehicle-mounted data is issued to the ground, it does not directly interact with the ground program, but is decoupled through the message queue server, which can support more data application programs. Through the topic switch and sector switch data distribution mode, the required data can be obtained without being limited by the traditional ground independent program data acquisition and customized data distribution mode, and the expansibility is stronger.

[0143] The locomotive and ground data transmission system provided by the embodiment needs to have the following conditions:

[0144] (1) The ground server has a public Internet Protocol (IP) address, which generally adopts a Network Address Translation (NAT) conversion mode, that is, the public Internet Protocol is mapped to the Internet Protocol address of a certain service in the internal network through a series of security devices. The vehicle-mounted data acquisition communication device needs to be able to communicate with the public network, and in general, a directional white list mode is adopted, that is, it can only communicate with the public Internet Protocol address of the ground server,

[0145] (2) A ground message queue server is built, and a corresponding port is opened;

[0146] (3) The vehicle-mounted data acquisition communication device needs to have the ability to communicate with the ground RabbitMQ message queue server based on the Advanced Message Queuing Protocol (AMQP), and after connecting to the ground RabbitMQ message queue server, it subscribes to the topic queue in the RabbitMQ message queue server and sends the collected vehicle-mounted data to the corresponding topic queue in the ground RabbitMQ message queue server.

[0147] (4) The ground data acquisition communication device also needs to have the ability to communicate with the ground RabbitMQ message queue server based on the AMQP, and after connecting to the ground RabbitMQ message queue server, it subscribes to the topic queue bound in different exchanges in the RabbitMQ message queue server for consumption, and sends control commands to the corresponding topic queue in the ground RabbitMQ message queue server.

[0148] The data transmission system between the locomotive and the ground provided by the embodiment mainly solves the data transmission problem of locomotive data interaction, vehicle-to-vehicle data interaction and remote control related business in complex network operation scenarios. Therefore, in addition to the RabbitMQ message middleware mentioned in the embodiment, KAFKA can also be used as a message middleware. Both of them are distributed message delivery systems that support high throughput and message persistence. That is, the commonly used KAFKA message queue and its corresponding protocol are used as a message middleware to transmit data. A KAFKA cluster is established on the ground, and the locomotive transmits data under different topics by connecting the KAFKA cluster.

[0149] However, after considering the application scenarios and comparing the advantages and disadvantages of RabbitMQ and KAFKA, it is concluded that RabbitMQ has the following advantages:

[0150] (1) Flexible message routing

[0151] RabbitMQ supports multiple message routing patterns such as Direct Exchange, Topic Exchange, Fanout Exchange, and Headers Exchange, making it more flexible in handling complex message routing requirements.

[0152] (2) Multi-protocol support

[0153] RabbitMQ supports multiple protocols such as Advanced Message Queuing Protocol (AMQP), Message Queuing Telemetry Transport (MQTT), and Simple Text Oriented Messaging Protocol (STOMP), making it easier to integrate with different systems and services.

[0154] (3) Asynchronous communication

[0155] RabbitMQ is more suitable for asynchronous communication, task queues, order processing, and other scenarios in enterprise-level application development, especially in cases where message reliability and transactionality are highly required.

[0156] (4) Low latency

[0157] RabbitMQ typically has low latency when processing small amounts of messages, responding faster and being suitable for scenarios with extremely high real-time requirements and relatively small message volumes.

[0158] It should be understood that although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the direction of the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless explicitly stated in this article, the execution of these steps has no strict order restriction, and these steps can be executed in other orders. Moreover, as described above, at least part of the steps in the flowchart involved in each embodiment can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately executed with other steps or steps or stages in other steps. It can be understood that the steps in different embodiments can be freely combined as needed, and various non-contradictory schemes formed by the combination are within the scope of protection of the present application.

[0159] In an exemplary embodiment, a vehicle-mounted data acquisition communication device is provided. The vehicle-mounted data acquisition communication device is included in the data transmission system between the locomotive and the ground in the above-mentioned embodiments, and its internal structure diagram can be as shown in Figure 4 The vehicle-mounted data acquisition communication device includes a processor, a memory, an input / output interface (I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the vehicle-mounted data acquisition communication device is used to provide computing and control capabilities. The memory of the vehicle-mounted data acquisition communication device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The input / output interface of the vehicle-mounted data acquisition communication device is used to exchange information between the processor and external devices. The communication interface of the vehicle-mounted data acquisition communication device is used to communicate with external terminals through network connection.

[0160] In an exemplary embodiment, a ground data acquisition communication device is provided. The ground data acquisition communication device is included in the data transmission system between the locomotive and the ground in the above-mentioned embodiments, and its internal structure diagram can be as shown in Figure 5 The ground data acquisition communication device includes a processor, a memory, an input / output interface (I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the ground data acquisition communication device is used to provide computing and control capabilities. The memory of the ground data acquisition communication device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The input / output interface of the ground data acquisition communication device is used to exchange information between the processor and external devices. The communication interface of the ground data acquisition communication device is used to communicate with external terminals through network connection.

[0161] Those skilled in the art can understand that Figure 4 and Figure 5 The structures shown in the above-mentioned embodiments are only block diagrams of part of the structures related to the scheme of the present application, and do not constitute a limitation on the vehicle-mounted data acquisition communication device and the ground data acquisition communication device to which the scheme of the present application is applied. The specific vehicle-mounted data acquisition communication device and the ground data acquisition communication device can include more or fewer components than those shown in the figures, or combine certain components, or have a different arrangement of components.

[0162] In one embodiment, a computer readable storage medium is provided, and a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to implement the steps in the above embodiments.

[0163] In one embodiment, a computer program product is provided, and the computer program product comprises a computer program, and the computer program is executed by a processor to implement the steps in the above embodiments.

[0164] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of the related data need to comply with the relevant provisions.

[0165] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiment methods. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., without being limited thereto.

[0166] The technical features of the above embodiments can be combined in any manner. To make the description concise, all possible combinations of the technical features in the above embodiments are not described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.

[0167] The above-described embodiments are merely illustrative of several embodiments of the present application, and the description is relatively specific and detailed, but should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of protection of the present application should be subject to the appended claims.

Claims

1. A data transmission system for a locomotive and the ground, characterized in that, The system comprises a vehicle-mounted data acquisition communication device of each locomotive, a message queue server and a ground data acquisition communication device; The vehicle-mounted data acquisition communication device of each locomotive is used for collecting various device data on the locomotive, assembling the various device data into a data message according to a set data protocol between the vehicle and the ground, setting a processing priority of the data message, and publishing the data message with the set processing priority into a subject exchange of the message queue server; The message queue server is used for matching the data message with the set processing priority with a subject mode bound with each subject queue according to a subject routing key attached to the data message with the set processing priority in the subject exchange, obtaining a first target subject queue, and delivering the data message with the set processing priority to the first target subject queue; The ground data acquisition communication device is used for obtaining the data message with the set processing priority issued by the vehicle-mounted data acquisition communication device in the first target subject queue after binding a subject routing key corresponding to the first target subject queue in the subject exchange of the message queue server, and performing a data message processing task according to the processing priority.

2. The system of claim 1, wherein, Before the data message with the set processing priority is published into the subject exchange of the message queue server, the vehicle-mounted data acquisition communication device is further used for sending a login request message into the subject exchange of the message queue server; The message queue server is used for matching the login request message with the subject mode bound with each subject queue according to a subject routing key attached to the login request message in the subject exchange, obtaining a second target subject queue, and delivering the login request message to the second target subject queue; The ground data acquisition communication device is used for obtaining the login request message issued by the vehicle-mounted data acquisition communication device in the second target subject queue after binding a subject routing key corresponding to the second target subject queue in the subject exchange of the message queue server, and confirming whether a unique identification code of the vehicle-mounted data acquisition communication device attached to the login request message is registered and allowed to be online according to a set of registered data acquisition communication devices, and sending a login permission message to a corresponding target subject queue in the subject exchange of the message queue server if the unique identification code is registered and allowed to be online; The vehicle-mounted data acquisition communication device sends the data message after receiving the login permission message.

3. The system of claim 1, wherein, The ground data acquisition communication device is further used for collecting data sent to a specified locomotive, assembling the data sent to the specified locomotive into a data message according to the set data protocol between the vehicle and the ground, setting a processing priority of the data message, and publishing the data message with the set processing priority into the subject exchange of the message queue server; The message queue server is used for matching the data message with the set processing priority with the subject mode bound with each subject queue according to a subject routing key attached to the data message with the set processing priority in the subject exchange, obtaining a third target subject queue, and delivering the data message with the set processing priority to the third target subject queue; The on-board data acquisition communication device of each locomotive is further configured to, after binding the topic routing key of the third target topic queue in the topic exchange, subscribe to receive the data message with the determined processing priority sent by the ground data acquisition communication device in the third target topic queue, and perform a data message processing task according to the processing priority.

4. The system of claim 1, wherein, The ground data acquisition communication device is further configured to collect data sent to all locomotives, assemble the data sent to all locomotives into a data message according to a set data protocol between the ground and the locomotives, and set a processing priority of the data message; and publish the data message with the determined processing priority to a corresponding topic queue in a fan-shaped exchange of the message queue server. The on-board data acquisition communication device of each locomotive is further configured to subscribe to receive the data message with the determined processing priority sent by the ground data acquisition communication device in each topic queue of the fan-shaped exchange, and perform a data message processing task according to the processing priority.

5. The system of claim 1, wherein, The target on-board data acquisition communication device of the target locomotive is further configured to, when the target locomotive needs to obtain the running conditions of the front and rear locomotives, assemble a data message requesting to obtain the running condition information of the front and rear locomotives, and set a processing priority of the data message; and publish the data message with the determined processing priority to the topic exchange of the message queue server. The message queue server is configured to, in the topic exchange, match the data message with the determined processing priority with a topic pattern bound to each topic queue according to a topic routing key attached to the data message with the determined processing priority, to obtain a fourth target topic queue; and deliver the data message with the determined processing priority to the fourth target topic queue. The ground data acquisition communication device is further configured to obtain the data message sent by the on-board data acquisition communication device in the fourth topic queue of the topic exchange, identify vehicle information of other running locomotives on the front and rear lines in the running direction of the target locomotive, assemble the vehicle information into a data message according to a set data protocol between the ground and the locomotives, and set a processing priority of the data message; and publish the data message with the determined processing priority to a fifth topic queue of the topic exchange of the message queue server and send the data message to the on-board data acquisition communication device of the target locomotive. The target on-board data acquisition communication device of the target locomotive is further configured to, after binding the topic routing key of the fifth topic queue in the topic exchange, subscribe to the data message sent by the ground data acquisition communication device, and obtain the vehicle type and number of other running locomotives on the front and rear lines in the running direction. The target topic routing key is determined according to the vehicle type and number of other running locomotives on the front and rear lines in the running direction. The target topic queue corresponding to the target topic routing key in the message queue server is bound, and real-time data of other running locomotives on the front and rear lines in the running direction is received.

6. The system of claim 1, wherein, The on-board data acquisition communication device of each locomotive or the ground data acquisition communication device is further configured to, when in the low-priority data message processing state and the estimated processing time of the low-priority data message processing task is greater than the set response time of the high-priority data message processing task, split the low-priority data message processing task into a plurality of low-priority data message processing subtasks; a checkpoint is set after each low-priority data message processing subtask ends; at the checkpoint, the state of the high-priority queue in the message queue server is queried; if there is an unprocessed high-priority data message processing task in the high-priority queue, the current low-priority data message processing task is suspended and switched to the high-priority data message processing task; when the high-priority data message processing task is completed, the low-priority data message processing task is resumed from the checkpoint.

7. The system of claim 6, wherein, The low-priority data message processing task is split into a plurality of low-priority data message processing subtasks, including: acquiring a data processing link of the low-priority data message processing task; according to the data processing link, the low-priority data message processing task is split into a plurality of low-priority data message processing subtasks.

8. The system of claim 6, wherein, The low-priority data message processing task is resumed from the checkpoint, including: acquiring record information at the checkpoint; the record information includes a task identifier, a progress indicator, context data, and a checkpoint generation time; according to the task identifier, the progress indicator, and the context data in the record information, the low-priority data message processing task is resumed.

9. A vehicle-mounted data acquisition and communication device, characterized by comprising: The on-board data acquisition communication device is an on-board data acquisition communication device included in the data transmission system between the locomotive and the ground according to any one of claims 1 to 8.

10. A ground data-sampling communication device, comprising: The ground data acquisition communication device is a ground data acquisition communication device included in the data transmission system between the locomotive and the ground according to any one of claims 1 to 8.