Data transmission method, apparatus, device, storage medium, and program product
By adding identification information and integrating data messages into rail transit vehicles, the network burden caused by the mixed use of old and new versions of the system was resolved, enabling efficient cross-carriage data transmission and ground network interaction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENSHUO RAILWAY BRANCH CHINA SHENHUA ENERGY
- Filing Date
- 2026-03-31
- Publication Date
- 2026-06-05
AI Technical Summary
When old and new versions of onboard systems are used together in rail transit locomotives and rolling stock, it leads to problems such as increased burden on the onboard network and data transmission pollution.
By adding identification information to older data packets, compatible packets are generated and integrated with newer packets. After compression, the data is transmitted between carriages and finally sent to the ground network, reducing the burden on the vehicle network.
It enables data compatibility transmission between different system versions, reduces the burden on the vehicle network, and improves data transmission efficiency and reliability.
Smart Images

Figure CN122160399A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of rail communication technology, and in particular to a data transmission method, apparatus, device, storage medium, and program product. Background Technology
[0002] Rail transit locomotives and rolling stock are equipped with various types of onboard systems, which often need to go through a period of replacement between old and new versions. When some old systems are used together with newer versions, the onboard network is easily overloaded and contaminated when data is transmitted between carriages. Summary of the Invention
[0003] Therefore, it is necessary to provide a data transmission method, apparatus, equipment, storage medium, and program product that can be compatible with both new and old versions of the system for cross-carriage data transmission and reduce the burden on the vehicle network, in order to address the aforementioned technical problems.
[0004] In a first aspect, this application provides a data transmission method, including:
[0005] Acquire the initial data message of the target carriage in the train; the initial data message includes a first type message and a second type message;
[0006] Add identification information matching the second type of message to the first type of message to obtain a compatible message that is compatible with the second type of message;
[0007] The compatible message and the second type message are integrated into the first car data message of the target car, and the first car data message is sent to other cars in the train;
[0008] Receive second-car data packets sent by the other carriages;
[0009] The data packets from the first carriage and the data packets from the second carriage are integrated into a train data packet for the train, and the train data packet is sent to the ground network.
[0010] In one embodiment, the step of adding identification information matching the second type of message to the first type of message to obtain a compatible message compatible with the second type of message includes:
[0011] Determine the header and trailer of the first type of message;
[0012] An identifier field matching the second type of message is added before the message header, and a check field is added after the message tail to obtain a compatible message that is compatible with the second type of message.
[0013] In one embodiment, obtaining the initial data packet of the target carriage in the train includes:
[0014] Establish communication connections with each subsystem in the target carriage;
[0015] Through the communication connection, initial data packets sent by each of the subsystems are received; the type of the initial data packet matches the protocol version of the subsystem.
[0016] In one embodiment, sending the data packet from the first carriage to other carriages in the train includes:
[0017] The data packets from the first carriage are compressed to obtain compressed packets.
[0018] The compressed message is sent to other carriages in the train via multicast communication.
[0019] In one embodiment, the step of integrating the first carriage data packet and the second carriage data packet into the train data packet of the train includes:
[0020] Determine the identification information in the first carriage data message and the second carriage data message;
[0021] The identification information is removed from the first carriage data packet and the second carriage data packet respectively to obtain the first retained data packet and the second retained data packet;
[0022] By integrating data of the same type from the first reserved data message and the second reserved data message, the train data message of the train is obtained.
[0023] In one embodiment, the method further includes:
[0024] Identify the target subsystem in the target carriage; the data packet sent by the target subsystem is the first type of packet;
[0025] Obtain calibration configuration information that matches the target subsystem;
[0026] The target subsystem is calibrated based on the calibration configuration information.
[0027] Secondly, this application also provides a data transmission apparatus, comprising:
[0028] The initial message acquisition module is used to acquire the initial data message of the target carriage in the train; the initial data message includes a first type message and a second type message;
[0029] The identification information adding module is used to add identification information matching the second type of message to the first type of message to obtain a compatible message that is compatible with the second type of message;
[0030] The message integration and forwarding module is used to integrate the compatible message and the second type message into the first car data message of the target car, and send the first car data message to other cars in the train;
[0031] The carriage message receiving module is used to receive second carriage data messages sent by the other carriages;
[0032] The message integration and transmission module is used to integrate the data messages from the first carriage and the data messages from the second carriage into a train data message for the train, and to send the train data message to the ground network.
[0033] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0034] Acquire the initial data message of the target carriage in the train; the initial data message includes a first type message and a second type message;
[0035] Add identification information matching the second type of message to the first type of message to obtain a compatible message that is compatible with the second type of message;
[0036] The compatible message and the second type message are integrated into the first car data message of the target car, and the first car data message is sent to other cars in the train;
[0037] Receive second-car data packets sent by the other carriages;
[0038] The data packets from the first carriage and the data packets from the second carriage are integrated into a train data packet for the train, and the train data packet is sent to the ground network.
[0039] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0040] Acquire the initial data message of the target carriage in the train; the initial data message includes a first type message and a second type message;
[0041] Add identification information matching the second type of message to the first type of message to obtain a compatible message that is compatible with the second type of message;
[0042] The compatible message and the second type message are integrated into the first car data message of the target car, and the first car data message is sent to other cars in the train;
[0043] Receive second-car data packets sent by the other carriages;
[0044] The data packets from the first carriage and the data packets from the second carriage are integrated into a train data packet for the train, and the train data packet is sent to the ground network.
[0045] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0046] Acquire the initial data message of the target carriage in the train; the initial data message includes a first type message and a second type message;
[0047] Add identification information matching the second type of message to the first type of message to obtain a compatible message that is compatible with the second type of message;
[0048] The compatible message and the second type message are integrated into the first car data message of the target car, and the first car data message is sent to other cars in the train;
[0049] Receive second-car data packets sent by the other carriages;
[0050] The data packets from the first carriage and the data packets from the second carriage are integrated into a train data packet for the train, and the train data packet is sent to the ground network.
[0051] The aforementioned data transmission method, apparatus, equipment, storage medium, and program product acquire initial data packets from a target carriage in a train; the initial data packets include a first type of packet and a second type of packet; identification information matching the second type of packet is added to the first type of packet to obtain a compatible packet compatible with the second type of packet; the compatible packet and the second type of packet are integrated into a first carriage data packet for the target carriage, and the first carriage data packet is sent to other carriages in the train; second carriage data packets sent by other carriages are received; the first carriage data packets and the second carriage data packets are integrated into a train data packet for the train, and... Train data packets are sent to the ground network. Data packets transmitted in the carriages using different version protocols have different types. Identification information is added to the first type of packet. The identification information can be used to identify the data source of the first type of packet. The resulting compatible packet is integrated with the second type of packet to enable cross-carriage transmission of data packets. The first type of packet of the target carriage is transmitted to other carriages and integrated with the second type of packet of other carriages again before being sent to the ground network, completing the data interaction between the train and the ground. The first type of packet is processed before being transmitted across carriages, which reduces the burden on the on-board network. Attached Figure Description
[0052] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0053] Figure 1 This is an application environment diagram of a data transmission method in one embodiment;
[0054] Figure 2 This is a schematic diagram of the structural composition of the in-vehicle intelligent center in one embodiment;
[0055] Figure 3 This is a flowchart illustrating a data transmission method in one embodiment;
[0056] Figure 4 This is a topology diagram of an in-vehicle system in one embodiment;
[0057] Figure 5 This is a schematic diagram illustrating the process of integrating the data packets from the first carriage and the data packets from the second carriage into a train data packet in one embodiment.
[0058] Figure 6 This is a flowchart illustrating the data transmission method in another embodiment;
[0059] Figure 7 This is a flowchart illustrating the data transmission method in yet another embodiment;
[0060] Figure 8 This is a structural block diagram of a data transmission device in one embodiment;
[0061] Figure 9 This is an internal structural diagram of a computer device in one embodiment;
[0062] Figure 10 This is a diagram of the internal structure of a computer device in another embodiment. Detailed Implementation
[0063] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0064] It should be noted that the terms "first," "second," etc., used in this 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 "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0065] The data transmission method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on a cloud or other network server. Terminal 102 acquires the initial data packets from the target carriage in the train; the initial data packets include a first type of packet and a second type of packet; it adds identification information matching the second type of packet to the first type of packet to obtain a compatible packet; it integrates the compatible packet and the second type of packet into a first carriage data packet for the target carriage and sends the first carriage data packet to other carriages in the train; it receives second carriage data packets sent by other carriages; it integrates the first carriage data packet and the second carriage data packet into a train data packet for the train and sends the train data packet to the ground network. Terminal 102 can be, but is not limited to, various onboard devices, personal computers, laptops, smartphones, tablets, etc. Server 104 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0066] In one exemplary embodiment, terminal 102 is an on-board device installed in each carriage of a rail train. It is designed with a 4U standard height and 24R standard width chassis and can also be called an on-board intelligent center. Figure 2 This is a schematic diagram of the structural composition of the in-vehicle intelligent center in one embodiment, such as... Figure 2 As shown, the in-vehicle intelligent center includes one processor board (4R standard width), one Ethernet switch board (4R standard width), one MVB (Multifunction Vehicle Bus) board (4R standard width), one wireless board (8R standard width), one power supply board (4R standard width), and also includes one... Figure 2 The base plate is not shown in the image.
[0067] The processor board is primarily responsible for the core business of the system. It is the data aggregation, processing and distribution center, and has the highest control authority. It realizes real-time calculation of logic, fault protection, communication scheduling, log recording and maintenance functions.
[0068] An Ethernet switching board can be a two-layer managed switch with functions such as system status monitoring, traffic statistics, port rate limiting, port isolation, port mirroring, port aggregation, and broadcast storm suppression.
[0069] The MVB board is primarily responsible for MVB bus data processing and exchanges data with the processor board via the PCI (Peripheral Component Interconnect) bus. This enables the vehicle's intelligent center to have MVB communication capabilities.
[0070] The wireless board supports all network communication standards, including 5G wireless communication, while being backward compatible with 4G / 3G / 2G standards. It enables wireless data transmission from train to ground and from ground to train, and can be connected to other dedicated communication systems to achieve wireless data transmission through the WLAN (Wireless Local Area Network) channel of other communication systems.
[0071] The power board has power-off protection and energy storage functions, and can convert the input 110V voltage into the 12V operating voltage required by each board.
[0072] The onboard intelligent center, as the centralized platform for collecting information from the entire vehicle, collects and aggregates information from the train, enabling unified information transmission and managing train information communication and data recording. Its main functions include collecting, analyzing, processing, and recording train status, safety, and other information to achieve big data storage of train information. This is accomplished through two-way data interaction between the train and the ground, data file compression, and data file download. It provides data support for train operation, inspection, and maintenance, and offers practical data support for train design reference.
[0073] In one exemplary embodiment, such as Figure 3 As shown, a data transmission method is provided, which is applied to... Figure 1 The following steps are used as an example of the terminal in the example, including steps 302 to 310.
[0074] Step 302: Obtain the initial data message of the target carriage in the train.
[0075] The target carriage refers to the carriage equipped with the onboard intelligent center. A train may include multiple interconnected carriages, each housing an onboard intelligent center using onboard equipment. For each onboard intelligent center, the carriage where it is installed is the target carriage, and the other carriages in the train are considered other carriages. The initial data packets are data packets sent by the various subsystems within the target carriage.
[0076] Figure 4 This is a topology diagram of an in-vehicle system in one embodiment, such as... Figure 4 As shown, carriages A, B, and C can all use the same system topology. The onboard intelligent center is connected to a dedicated onboard network, which can be used for cross-carriage data packet transmission. Each carriage contains multiple subsystems, such as... Figure 4 Subsystems A and B are connected to the onboard intelligent control center. The data transmitted by these subsystems can include train control data, door control data, video surveillance data, and air conditioning system control data. For example, subsystem A is the air conditioning control subsystem, and subsystem B is the door control subsystem. The protocol version for subsystems of the same type remains consistent within each carriage. The dedicated onboard network is a local area network used for communication between the onboard intelligent control centers in each carriage. Multiple onboard intelligent control centers can be connected via network cables through an onboard switch. The network port used by the onboard intelligent control center for communication on the dedicated onboard network can be configured in loopback mode. Message data from this carriage and other carriages are all obtained from the dedicated onboard network using a unified interface.
[0077] The initial data message includes Type 1 and Type 2 messages. The initial data message refers to the data message obtained directly from the target carriage. Type 1 and Type 2 messages refer to two types of messages with different protocol types. Because the various subsystems in the target carriage may use different protocol versions, there will be differences between old and new versions. Type 1 messages are sent by subsystems using the older version of the protocol, while Type 2 messages are sent by subsystems using the newer version of the protocol. Type 2 messages using the newer version of the protocol contain a clear source of the carriage number and basic information.
[0078] For example, the initial data packets sent by each subsystem of the target carriage in the train are obtained, and the initial data packets sent by the subsystem using the old version of the protocol are identified as the first type of packet, and the initial data packets sent by the subsystem using the new version of the protocol are identified as the second type of packet.
[0079] In one embodiment, obtaining initial data packets from a target carriage in a train includes: establishing communication connections with each subsystem in the target carriage; receiving initial data packets sent by each subsystem through the communication connections; and matching the type of the initial data packets with the protocol version of the subsystem.
[0080] The communication connection between the vehicle-mounted intelligent center and the subsystems can include an MVB connection. After the vehicle-mounted intelligent center is powered on, it can establish MVB connections with each subsystem and exchange data through these connections. Each subsystem sends its initial data packets to the vehicle-mounted intelligent center, which processes them. The type of the initial data packet matches the protocol version of the subsystem; that is, if the subsystem's protocol version is older, the initial data packet is a type 1 packet, and if the subsystem's protocol version is newer, the initial data packet is a type 2 packet. The communication connection method between the vehicle-mounted intelligent center and the subsystems can be selected according to actual conditions, and this embodiment does not impose specific limitations on it.
[0081] Step 304: Add identification information matching the second type of message to the first type of message to obtain a compatible message that is compatible with the second type of message.
[0082] Identification information facilitates the identification of the data source and basic information of Type 1 messages. By adding identification information, compatible messages can be sent to other carriages, and the data source of the message can also be determined through the identification information, achieving compatibility with the new version of Type 2 messages.
[0083] For example, an identifier position is determined in the first type of message, and identification information is added to the identifier position in the first type of message to obtain a compatible message that is compatible with the second type of message. The identifier position can be arbitrarily selected in the first type of message, and this embodiment does not impose specific restrictions on it.
[0084] In one embodiment, adding identification information matching the second type of message to the first type of message to obtain a compatible message compatible with the second type of message includes: determining the message header and message trailer of the first type of message; adding an identifier field matching the second type of message before the message header and adding a check field after the message trailer to obtain a compatible message compatible with the second type of message.
[0085] The message header refers to the position of the first character in a Type 1 message, and the message trailer refers to the position of the last character. The identifier field is used to identify the data source and basic information of the Type 1 message. The checksum field is used to verify the Type 1 message. Adding an identifier field before the first character of a Type 1 message creates a header for a compatible message; identifying the header of the compatible message allows you to obtain information about the data source of the Type 1 message. Adding a checksum field after the last character of a Type 1 message allows you to check the integrity of the compatible message.
[0086] Optionally, the identifier field is 18 bytes long and includes the protocol version of the first type of message, the source system host ID, the message type, the source system code, the master / slave flag, the data area length, and reserved fields. The check field includes CRC (Cyclic Redundancy Check) characters. The source system host ID is used to distinguish different devices within the same subsystem, and the source system code is used to distinguish subsystems. The message type can include intelligent maintenance messages and fault messages. The master / slave flag is suitable for situations where multiple devices send the same data; for inapplicable situations, different characters can be used to represent the master and slave devices. The data area length indicates the message length of the first type of message. Reserved fields can be used for other extended functions.
[0087] Step 306: Integrate the compatible message and the second type message into a first car data message for the target car, and send the first car data message to other cars in the train.
[0088] The first carriage data message refers to the message sent out by the entire target carriage. The first carriage data message is obtained by integrating compatible messages and second-type messages at the carriage level. For example, the status data in the compatible messages and second-type messages is parsed to obtain numerical values or switch quantities representing the carriage status. Integrity and rationality checks are then performed to confirm the integrity of the compatible messages and second-type messages, and to mark abnormal and invalid data that exceeds reasonable limits. After verification, the values representing the same type of status information in the carriage can be summarized to obtain the first carriage data message.
[0089] In one embodiment, sending a data packet from the first carriage to other carriages in the train includes: compressing the data packet from the first carriage to obtain a compressed packet; and sending the compressed packet to other carriages in the train via multicast communication.
[0090] Compression processing can employ the Zilb algorithm. Multicast communication refers to sending one copy of data to multiple receivers through a one-to-many transmission mode, significantly saving network bandwidth and reducing server load. Compared to unicast and broadcast, which require copying multiple copies of data, multicast can precisely locate the target receiving group, avoiding redundant traffic. For example, in in-vehicle video transmission, one media stream can be simultaneously distributed to all carriage displays, reducing network congestion. During compression processing, a default compression strategy can be used to compress the data packets from the first carriage, resulting in compressed packets. The default compression strategy includes a defined compression ratio and compression speed. If the data volume of the first carriage's data packets is large, other compression strategies can be used to adjust the compression ratio and compression speed. After compression, header information can be added to the compressed packet header according to the type of in-vehicle network to facilitate correct decompression by the receiver. The in-vehicle intelligent center in each carriage can access the dedicated in-vehicle network for data exchange between carriages. Through multicast communication, the onboard intelligent center in the target carriage compresses the data packets from the first carriage into compressed packets and sends them to the onboard dedicated network. Other carriages can receive the compressed packets through the onboard dedicated network.
[0091] Step 308: Receive the second carriage data message sent by other carriages.
[0092] The second carriage data message refers to the carriage-level data message obtained by integrating data from other carriages. Other carriages can use the same integration method as the target carriage to obtain the second carriage data message, compress it, and send it via multicast communication to the onboard dedicated network. The onboard intelligent center of the target carriage also receives the second carriage data message through the onboard dedicated network.
[0093] Step 310: The data packets from the first carriage and the second carriage are integrated into a train data packet, and the train data packet is sent to the ground network.
[0094] The lead and tail cars of a train can be selected as target cars for train-level data integration and data interaction with the ground network. Redundant transmission of train data improves data transmission reliability. Both the lead and tail cars can obtain data packets from other cars via a dedicated onboard network and integrate them with their own data packets to obtain the train data packets. During train-level data integration, timestamp alignment is performed to correct the time difference between the data packets from the first car and those from each of the second cars, and the integrity and validity of the first and second car data packets are verified. After verification, similar status information within the train is summarized to obtain the train data packets, such as door opening / closing status and car temperature status. Compressed second car data packets can be decompressed to restore their original state. The onboard intelligent centers of the lead and tail cars can forward the train data packets to the ground network via wireless communication.
[0095] In the aforementioned data transmission method, the initial data packet of the target carriage in the train is obtained; the initial data packet includes a first type of packet and a second type of packet; identification information matching the second type of packet is added to the first type of packet to obtain a compatible packet compatible with the second type of packet; the compatible packet and the second type of packet are integrated into a first carriage data packet of the target carriage, and the first carriage data packet is sent to other carriages in the train; second carriage data packets sent by other carriages are received; the first carriage data packet and the second carriage data packet are integrated into a train data packet of the train, and the train data packet is sent to other carriages in the train. Data packets transmitted in the carriages using different versions of protocols have different types. Identification information is added to the first type of packet to identify the data source of the first type of packet. The resulting compatible packet is integrated with the second type of packet to enable cross-carriage transmission of data packets. The first type of packet in the target carriage is transmitted to other carriages and integrated again with the second type of packet in other carriages before being sent to the ground network, completing the data interaction between the train and the ground. The first type of packet is processed before being transmitted across carriages, reducing the burden on the onboard network.
[0096] In one exemplary embodiment, such as Figure 5 As shown, the data packets from the first carriage and the second carriage are integrated into the train data packets of the train, including steps 502 to 506.
[0097] Step 502: Determine the identification information in the data packets of the first carriage and the second carriage.
[0098] The subsystems contained in each carriage of the train are of the same type and use the same protocol version. The data packets of the first carriage and the data packets of the second carriage can be integrated in the same way. The identification information is added in the same position in the compatible packets. The header and tail of the compatible packets in the data packets of the first carriage and the data packets of the second carriage can be identified, and the characters of a specific number of bytes in the header or tail are determined as the identification information.
[0099] Step 504: Remove the identification information from the first carriage data packet and the second carriage data packet respectively to obtain the first reserved data packet and the second reserved data packet.
[0100] The first and second reserved data packets are packets after removing the identification information. Adding the identification information does not affect the original content of the first type of packet; the identification information can be removed before forwarding the train data packet to the ground network. After determining the location of the identification information and the number of bytes it contains, the characters at the corresponding byte positions can be removed from the packet to obtain the first and second reserved data packets, respectively.
[0101] Step 506: Integrate data of the same type in the first reserved data message and the second reserved data message to obtain the train data message.
[0102] The integration of data of the same type in messages can include both numerical data aggregation and logical data aggregation. Numerical data aggregation can include methods such as aggregating data from each carriage to the train level through numerical calculations and performing numerical statistics. Logical data aggregation can summarize the logical control states of each carriage to the train level, representing the overall system state of the train. For example, summarizing the door opening and closing states of each carriage to the train level determines whether the train doors are properly locked.
[0103] In this embodiment, by removing the identification information from the data packet, the initial content of the packet using the old version protocol can be restored, avoiding the impact of the additional information on packet forwarding and subsequent parsing processes.
[0104] In one exemplary embodiment, such as Figure 6 As shown, the method also includes steps 602 to 606.
[0105] Step 602: Identify the target subsystem in the target carriage.
[0106] Step 604: Obtain calibration configuration information that matches the target subsystem.
[0107] Step 606: Based on the calibration configuration information, calibrate the target subsystem.
[0108] The target subsystem refers to the subsystem that sends data packets of type 1, and the target subsystem uses an older version of the transmission protocol. Protocol version information for each subsystem in the target carriage can be extracted. Based on this information, the older or newer protocol version of each subsystem can be determined, and the subsystem using the older protocol version is identified as the target subsystem. Calibration configuration information is used to calibrate the target subsystem. This information can be obtained from a configuration file. The configuration file may contain calibration information for various subsystems in the carriage. Calibrating the target subsystem allows it to identify type 1 packets as older protocol packets, facilitating the addition of identification information.
[0109] In this embodiment, by calibrating the target subsystem, the type of protocol version used by each subsystem can be determined, which facilitates the addition of identification information to the first type of messages using the old version protocol and improves processing efficiency.
[0110] In one exemplary embodiment, such as Figure 7 As shown, the method also includes steps S1 to S6.
[0111] Step S1: Distinguish between the new and old subsystems and calibrate the old subsystem.
[0112] Step S2: The old and new subsystems each transmit data packets to the onboard intelligent center of their respective carriages.
[0113] Step S3: The onboard intelligent center processes the data packets transmitted by the aging subsystems and adds identification information. The aging subsystems are directly connected to the onboard intelligent center or unicast, without polluting the onboard dedicated network. Each onboard intelligent center collects all the data in its carriage and then exchanges data through the intelligent center's dedicated onboard network.
[0114] Step S4: The vehicle intelligent center sends data packets from both the old and new subsystems to the dedicated vehicle network via multicast communication. Both the old and new subsystem data packets can be compressed using the zlib algorithm before transmission.
[0115] Step S5: The onboard intelligent center of the first and last vehicles obtains the whole vehicle data message from the onboard dedicated network.
[0116] Step S6: After removing the identification information from the data packets, the onboard intelligent centers of the first and last vehicles forward the data packets to the ground.
[0117] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0118] Based on the same inventive concept, this application also provides a data transmission apparatus for implementing the data transmission method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, specific limitations in one or more data transmission apparatus embodiments provided below can be found in the limitations of the data transmission method described above, and will not be repeated here.
[0119] In one exemplary embodiment, such as Figure 8 As shown, a data transmission device 800 is provided, including an initial message acquisition module 801, an identification information addition module 802, a message integration and forwarding module 803, a carriage message receiving module 804, and a message integration and sending module 805, wherein:
[0120] The initial message acquisition module 801 is used to acquire the initial data message of the target carriage in the train; the initial data message includes a first type message and a second type message.
[0121] The identification information adding module 802 is used to add identification information matching the second type of message to the first type of message to obtain a compatible message that is compatible with the second type of message.
[0122] The message integration and forwarding module 803 is used to integrate compatible messages and second-type messages into a first-carriage data message for the target carriage, and send the first-carriage data message to other carriages in the train.
[0123] The carriage message receiving module 804 is used to receive second carriage data messages sent by other carriages.
[0124] The message integration and transmission module 805 is used to integrate the data messages of the first carriage and the data messages of the second carriage into the train data message and send the train data message to the ground network.
[0125] In an exemplary embodiment, the identification information adding module 802 is further configured to: determine the message header and message trailer of the first type of message; add an identification field matching the second type of message before the message header, and add a verification field after the message trailer to obtain a compatible message compatible with the second type of message.
[0126] In an exemplary embodiment, the initial message acquisition module 801 is further configured to: establish a communication connection with each subsystem in the target carriage; receive initial data messages sent by each subsystem through the communication connection; and match the type of the initial data message with the protocol version of the subsystem.
[0127] In an exemplary embodiment, the message integration and forwarding module 803 is further configured to: compress the data message of the first carriage to obtain a compressed message; and send the compressed message to other carriages in the train via multicast communication.
[0128] In an exemplary embodiment, the message integration and transmission module 805 is further configured to: determine the identification information in the first carriage data message and the second carriage data message; remove the identification information from the first carriage data message and the second carriage data message respectively to obtain the first reserved data message and the second reserved data message; and integrate data of the same type in the first reserved data message and the second reserved data message to obtain the train data message of the train.
[0129] In an exemplary embodiment, the data transmission device 800 further includes a system calibration configuration module, configured to: identify a target subsystem in a target carriage; identify that the data packet sent by the target subsystem is a first type of packet; obtain calibration configuration information matching the target subsystem; and calibrate the target subsystem based on the calibration configuration information.
[0130] Each module in the aforementioned data transmission device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0131] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores initial data messages. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a data transmission method.
[0132] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 10 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a data transmission method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0133] Those skilled in the art will understand that Figure 9 and Figure 10The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0134] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0135] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0136] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0137] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0138] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0139] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A data transmission method, characterized in that, The method includes: Acquire the initial data message of the target carriage in the train; the initial data message includes a first type message and a second type message; Add identification information matching the second type of message to the first type of message to obtain a compatible message that is compatible with the second type of message; The compatible message and the second type message are integrated into the first car data message of the target car, and the first car data message is sent to other cars in the train; Receive second-car data packets sent by the other carriages; The data packets from the first carriage and the data packets from the second carriage are integrated into a train data packet for the train, and the train data packet is sent to the ground network.
2. The method according to claim 1, characterized in that, The step of adding identification information matching the second type of message to the first type of message to obtain a compatible message compatible with the second type of message includes: Determine the header and trailer of the first type of message; An identifier field matching the second type of message is added before the message header, and a check field is added after the message tail to obtain a compatible message that is compatible with the second type of message.
3. The method according to claim 1, characterized in that, The acquisition of the initial data message of the target carriage in the train includes: Establish communication connections with each subsystem in the target carriage; Through the communication connection, initial data packets sent by each of the subsystems are received; the type of the initial data packet matches the protocol version of the subsystem.
4. The method according to claim 1, characterized in that, The step of sending the data packet from the first carriage to other carriages in the train includes: The data packets from the first carriage are compressed to obtain compressed packets. The compressed message is sent to other carriages in the train via multicast communication.
5. The method according to claim 1, characterized in that, The step of integrating the first carriage data message and the second carriage data message into the train data message of the train includes: Determine the identification information in the first carriage data message and the second carriage data message; The identification information is removed from the first carriage data packet and the second carriage data packet respectively to obtain the first retained data packet and the second retained data packet; By integrating data of the same type from the first reserved data message and the second reserved data message, the train data message of the train is obtained.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: Identify the target subsystem in the target carriage; the data packet sent by the target subsystem is the first type of packet; Obtain calibration configuration information that matches the target subsystem; The target subsystem is calibrated based on the calibration configuration information.
7. A data transmission device, characterized in that, The device includes: The initial message acquisition module is used to acquire the initial data message of the target carriage in the train; the initial data message includes a first type message and a second type message; The identification information adding module is used to add identification information matching the second type of message to the first type of message to obtain a compatible message that is compatible with the second type of message; The message integration and forwarding module is used to integrate the compatible message and the second type message into the first car data message of the target car, and send the first car data message to other cars in the train; The carriage message receiving module is used to receive second carriage data messages sent by the other carriages; The message integration and transmission module is used to integrate the data messages from the first carriage and the data messages from the second carriage into a train data message for the train, and to send the train data message to the ground network.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.