CN111836233B - Data transmission method, communication device, and storage medium - Google Patents

Data transmission method, communication device, and storage medium Download PDF

Info

Publication number
CN111836233B
CN111836233B CN201910310121.9A CN201910310121A CN111836233B CN 111836233 B CN111836233 B CN 111836233B CN 201910310121 A CN201910310121 A CN 201910310121A CN 111836233 B CN111836233 B CN 111836233B
Authority
CN
China
Prior art keywords
vehicle
data frame
transmitted
identifier
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910310121.9A
Other languages
Chinese (zh)
Other versions
CN111836233A (en
Inventor
张立琛
石勇
王延超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Dalian R&D Co Ltd
Original Assignee
CRRC Dalian R&D Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRRC Dalian R&D Co Ltd filed Critical CRRC Dalian R&D Co Ltd
Priority to CN201910310121.9A priority Critical patent/CN111836233B/en
Priority to PCT/CN2019/096531 priority patent/WO2020211202A1/en
Publication of CN111836233A publication Critical patent/CN111836233A/en
Application granted granted Critical
Publication of CN111836233B publication Critical patent/CN111836233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/42Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for mass transport vehicles, e.g. buses, trains or aircraft
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a data transmission method, a communication device and a storage medium. The data transmission method comprises the steps of receiving an uplink data frame sent by first vehicle-mounted equipment, wherein the uplink data frame comprises a first vehicle-mounted equipment identifier; processing the uplink data frame to obtain a processed uplink data frame to be transmitted; and sending the uplink data frame to be transmitted to the communication server so that the communication server sends the uplink data frame to the data server according to the uplink data frame to be transmitted. According to the method, the vehicle-mounted wireless equipment processes the uplink data frame sent by the vehicle-mounted equipment and sends the processed uplink data frame to the data server through the communication server, the design of the vehicle-mounted equipment does not need to consider the functional design and test debugging of wireless communication, the design complexity of the vehicle-mounted equipment is reduced, and the compatibility of the vehicle-mounted equipment is improved.

Description

Data transmission method, communication device, and storage medium
Technical Field
The present invention relates to rail transit technologies, and in particular, to a data transmission method, a communication device, and a storage medium.
Background
With the transportation development of rail vehicles and the popularization of information networks, in various rail vehicles such as urban light rails, subways and railways, real-time data of vehicle-mounted equipment needs to be transmitted to a ground data server through a wireless communication network and an instruction of the ground data server needs to be received immediately.
In the prior art, data interaction is usually performed by adopting a mode that each vehicle-mounted device is directly communicated with a ground data server, and due to the fact that a plurality of vehicle-mounted devices are arranged on a rail vehicle, the mode requires that the design of each vehicle-mounted device needs to consider a complex communication mechanism and compatibility under a wireless communication environment, and particularly when the communication mechanism changes, the wireless communication functions of all the vehicle-mounted devices need to be redesigned and debugged, so that the design complexity of the vehicle-mounted devices is high, and the compatibility is poor.
Disclosure of Invention
The invention provides a data transmission method, communication equipment and a storage medium, which are used for reducing the design complexity of vehicle-mounted equipment and improving the compatibility of the vehicle-mounted equipment.
The invention provides a data transmission method, which is applied to vehicle-mounted wireless equipment and comprises the following steps:
receiving an uplink data frame sent by a first vehicle-mounted device, wherein the uplink data frame comprises a first vehicle-mounted device identifier;
processing the uplink data frame to obtain a processed uplink data frame to be transmitted;
and sending the uplink data frame to be transmitted to a communication server so that the communication server sends the uplink data frame to be transmitted to a data server according to the uplink data frame to be transmitted.
Optionally, the processing the uplink data frame includes:
adding a first data identifier in the uplink data frame, wherein the first data identifier is used for identifying the uplink data frame;
the method further comprises the following steps:
judging whether a feedback frame of an uplink data frame to be transmitted sent by the communication server is received within a preset time period;
if a feedback frame of an uplink data frame to be transmitted is received; the feedback frame of the uplink data frame to be transmitted comprises the first data identifier and the first vehicle-mounted equipment identifier;
and determining that the communication server has received the uplink data frame to be transmitted according to the first data identifier and the first vehicle-mounted equipment identifier.
Optionally, the data transmission method further includes:
and if the feedback frame of the uplink data frame to be transmitted is not received, the uplink data frame to be transmitted is sent to the communication server again.
Optionally, the data transmission method further includes:
receiving a downlink data frame to be transmitted sent by the communication server; the downlink data frame to be transmitted comprises a second data identifier and a second vehicle-mounted equipment identifier;
and sending the downlink data frame without the second data identifier in the downlink data frame to be transmitted to a second vehicle-mounted device corresponding to the second vehicle-mounted device identifier.
Optionally, the data transmission method further includes:
sending a feedback frame of a downlink data frame to be transmitted to the communication server; and the feedback frame of the downlink data frame to be transmitted comprises the second data identifier and the second on-board equipment identifier.
The invention provides a data transmission method, which is applied to a communication server and comprises the following steps:
receiving a downlink data frame sent by a data server, wherein the downlink data frame comprises a second vehicle-mounted equipment identifier;
processing the downlink data frame to obtain a processed downlink data frame to be transmitted;
and sending the downlink data frame to be transmitted to the vehicle-mounted wireless equipment so that the vehicle-mounted wireless equipment sends the downlink data frame to the second vehicle-mounted equipment corresponding to the second vehicle-mounted equipment identifier according to the downlink data frame to be transmitted.
Optionally, the processing the downlink data frame includes:
adding a second data identifier in the downlink data frame, wherein the second data identifier is used for identifying the downlink data frame;
the data transmission method further comprises the following steps:
judging whether a feedback frame of a downlink data frame to be transmitted, which is sent by the vehicle-mounted wireless equipment, is received within a preset time period;
if a feedback frame of a downlink data frame to be transmitted is received; the feedback frame of the downlink data frame to be transmitted comprises the second data identifier and the second vehicle-mounted equipment identifier;
and determining that the vehicle-mounted wireless equipment has received the downlink data frame to be transmitted according to the second data identifier and the second vehicle-mounted equipment identifier.
Optionally, the data transmission method further includes:
and if the feedback frame of the downlink data frame to be transmitted is not received, the downlink data frame to be transmitted is sent to the vehicle-mounted wireless equipment again.
Optionally, the data transmission method further includes:
receiving an uplink data frame to be transmitted, which is sent by the wireless vehicle-mounted equipment; the uplink data frame to be transmitted comprises a first data identifier and a first vehicle-mounted equipment identifier;
and sending the uplink data frame without the first data identifier in the uplink data frame to be transmitted to the data server.
Optionally, the data transmission method further includes:
sending a feedback frame of an uplink data frame to be transmitted to the wireless vehicle-mounted equipment; and the feedback frame of the uplink data frame to be transmitted comprises the first data identifier and the first vehicle-mounted equipment identifier.
The invention provides a communication device, comprising a memory and a processor; the memory is connected with the processor;
the memory for storing a computer program;
the processor, configured to implement the data transmission method according to any one of the first aspect described above when the computer program is executed; or implementing a data transmission method as in any of the second aspects above.
The present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements a data transmission method as defined in any one of the above first aspects; or implementing a data transmission method as in any of the second aspects above.
The invention provides a data transmission method, communication equipment and a storage medium, wherein an uplink data frame sent by first vehicle-mounted equipment is received, and the uplink data frame comprises a first vehicle-mounted equipment identifier; processing the uplink data frame to obtain a processed uplink data frame to be transmitted; and then sending the uplink data frame to be transmitted to the communication server so that the communication server sends the uplink data frame to the data server according to the uplink data frame to be transmitted. Therefore, according to the data transmission method, the communication device and the storage medium provided by the embodiment of the invention, the vehicle-mounted wireless device processes the uplink data frame sent by the vehicle-mounted device and sends the processed uplink data frame to the data server through the communication server, and the design of the vehicle-mounted device does not need to consider the functional design and test debugging of wireless communication, so that the design complexity of the vehicle-mounted device is reduced, and the compatibility of the vehicle-mounted device is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a data transmission method provided in the present invention;
fig. 2 is a first schematic flow chart of a data transmission method according to the present invention;
fig. 3 is a schematic flow chart of a data transmission method according to the present invention;
fig. 4 is a third schematic flowchart of a data transmission method provided by the present invention;
fig. 5 is a fourth schematic flowchart of a data transmission method provided by the present invention;
fig. 6 is a schematic structural diagram of a communication device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic view of an application scenario of the data transmission method provided by the present invention. As shown in FIG. 1, the on-board network of the rail vehicle comprises on-board devices 1-N and an on-board wireless device, wherein N is greater than 1; accordingly, there are data servers and communication servers on the ground side, which may also be referred to as ground data servers and ground communication servers. The vehicle-mounted equipment 1-N is only in direct communication with the vehicle-mounted wireless equipment, the data server is only in direct communication with the communication server, and the vehicle-mounted wireless equipment and the communication server are responsible for complex communication mechanism processing between the rail vehicle and the ground equipment and data interaction between the rail vehicle and the ground equipment in a wireless communication environment, namely, the data in the invention adopts a communication mode of sectional interaction.
Fig. 2 is a first flowchart of a data transmission method according to the present invention. The execution subject of the method is a vehicle-mounted wireless device, and the vehicle-mounted wireless device can be realized in a software and/or hardware mode. As shown in fig. 2, the method of this embodiment may include:
s201, receiving an uplink data frame sent by a first vehicle-mounted device, wherein the uplink data frame comprises a first vehicle-mounted device identifier.
The first vehicle-mounted device may be any vehicle-mounted device in the rail vehicle, and the uplink data frame includes service data, such as vehicle state data and vehicle fault data, that the first vehicle-mounted device needs to send to the data server. The uplink data frame further includes a first vehicle-mounted device identifier, where the first vehicle-mounted device identifier is a preset identifier and is used to distinguish data sent by different vehicle-mounted devices, and the first vehicle-mounted device identifier may also be referred to as a first vehicle-mounted device number.
S202, the uplink data frame is processed, and the processed uplink data frame to be transmitted is obtained.
And S203, sending the uplink data frame to be transmitted to the communication server so that the communication server sends the uplink data frame to the data server according to the uplink data frame to be transmitted.
Because the vehicle-mounted wireless device and the communication server are responsible for complex communication mechanism processing between the vehicle and the ground and interactive distribution of data between the vehicle and the ground in a wireless communication environment, the vehicle-mounted wireless device needs to process an uplink data frame after receiving the uplink data frame sent by the first vehicle-mounted device, so as to ensure that the processed uplink data frame to be transmitted can be completely and accurately received by the communication server. For example, the vehicle-mounted wireless device may add or delete corresponding content in the uplink data frame according to a wireless communication mechanism with the communication server, so that the communication server may correctly receive the uplink data frame to be transmitted. And then the communication server can acquire the uplink data frame which needs to be sent to the data server by the first vehicle-mounted device from the uplink data frame to be transmitted, and send the uplink data frame to the data server.
The data transmission method provided by the embodiment comprises the steps of receiving an uplink data frame sent by first vehicle-mounted equipment, wherein the uplink data frame comprises a first vehicle-mounted equipment identifier; processing the uplink data frame to obtain a processed uplink data frame to be transmitted; and sending the uplink data frame to be transmitted to the communication server so that the communication server sends the uplink data frame to the data server according to the uplink data frame to be transmitted. According to the method, the vehicle-mounted wireless equipment processes the uplink data frame sent by the vehicle-mounted equipment and sends the processed uplink data frame to the data server through the communication server, the design of the vehicle-mounted equipment does not need to consider the functional design and test debugging of wireless communication, the design complexity of the vehicle-mounted equipment is reduced, and the compatibility of the vehicle-mounted equipment is improved.
On the basis of the embodiment shown in fig. 2, the processing of the uplink data frame in S202 may include: and adding a first data identifier in the uplink data frame, wherein the first data identifier is used for identifying the uplink data frame.
In wireless communication, a Transmission Control Protocol (TCP) or a User Datagram Protocol (UDP) is generally used for data Transmission, where TCP is a connection-oriented Protocol that ensures reliable end-to-end Transmission of data, and UDP is a connectionless Protocol, which has low reliability but provides an application of Transmission economy. In the wireless communication between the rail vehicle and the ground equipment, because of the instability of wireless network signals, the data transmission performance is low due to the connection establishment mode of three-way handshake of the TCP, so that the non-connection-oriented UDP can be adopted between the vehicle-mounted wireless equipment and the communication server in the embodiment to effectively improve the data transmission efficiency. Since the in-vehicle device and the in-vehicle wireless device are in a stable in-vehicle network, TCP can be used for communication. Similarly, the communication server and the data server are in a stable network, and therefore can communicate using TCP.
Since the UDP itself does not have an acknowledgement mechanism, a data packet loss, a duplicate packet, and the like may occur, so that a data response feedback mechanism is introduced in this embodiment, that is, the vehicle-mounted wireless device adds a first data identifier in the uplink data frame, where the first data identifier is used to identify the uplink data frame, and the first data identifier may also be referred to as a first UDP data packet sequence number, so that the communication server may perform response feedback on the received uplink data frame to be transmitted according to the first data identifier. Meanwhile, the communication server can also remove the received repeated data packet according to the first data identifier carried in the received uplink data frame to be transmitted, so that the efficient and reliable transmission of the data is ensured under the unstable wireless network state.
On the basis of adding the first data identifier to the uplink data frame, the data transmission method provided by this embodiment further includes:
judging whether a feedback frame of an uplink data frame to be transmitted sent by a communication server is received within a preset time period; the feedback frame of the uplink data frame to be transmitted comprises a first data identifier and a first vehicle-mounted equipment identifier; if a feedback frame of the uplink data frame to be transmitted is received, determining that the uplink data frame to be transmitted has been received by the communication server according to the first data identifier and the first on-board equipment identifier; and if the feedback frame of the uplink data frame to be transmitted is not received, the uplink data frame to be transmitted is sent to the communication server again.
As described above, in order to ensure reliability of data transmission, the vehicle-mounted wireless device sends the uplink data frame to be transmitted to the communication server, where the uplink data frame to be transmitted includes the first data identifier and the first vehicle-mounted device identifier, the vehicle-mounted wireless device may further buffer the uplink data frame to be transmitted, and the communication server sends the feedback frame of the uplink data frame to be transmitted to the vehicle-mounted wireless device after receiving the uplink data frame to be transmitted, where the feedback frame of the uplink data frame to be transmitted includes the first data identifier and the first vehicle-mounted device identifier.
If the vehicle-mounted wireless device receives the feedback frame of the uplink data frame to be transmitted within the preset time, and the first data identifier and the first vehicle-mounted device identifier in the feedback frame are consistent with the first data identifier and the first vehicle-mounted device identifier in the cached uplink data frame to be transmitted, it can be confirmed that the communication server has received the uplink data frame to be transmitted, and the uplink data frame to be transmitted in the cache can be deleted. On the contrary, if the feedback frame of the uplink data frame to be transmitted is not received within the preset time, it is determined that the uplink data frame to be transmitted is not received by the communication server, and therefore the uplink data frame to be transmitted in the cache needs to be retransmitted to the communication server until the feedback frame of the uplink data frame to be transmitted is received.
Optionally, if there is data interaction between the data server and the plurality of rail vehicles, that is, the data server needs to receive data sent by the plurality of vehicle-mounted devices on the plurality of rail vehicles, when the uplink data frame is processed in S202, in addition to adding the first data identifier in the uplink data frame, a vehicle identifier of the rail vehicle where the first vehicle-mounted device is located is also added in the uplink data frame, where the vehicle identifier is used to distinguish data sent by vehicle-mounted devices on different rail vehicles, and the vehicle identifier may also be referred to as a vehicle number. Correspondingly, the feedback frame of the uplink data frame to be transmitted comprises a first data identifier, a first vehicle-mounted equipment identifier and a vehicle identifier of the rail vehicle where the first vehicle-mounted equipment is located.
In the data transmission method provided by this embodiment, the vehicle-mounted wireless device determines whether the communication server receives the uplink data frame to be transmitted through the feedback frame sent by the communication server, and when the communication server does not receive the uplink data frame to be transmitted, the vehicle-mounted wireless device can send the uplink data frame to be transmitted to the communication server again, thereby ensuring reliable transmission of data.
Fig. 3 is a schematic flow chart of a data transmission method according to the present invention. The execution subject of the method is a communication server, and the communication server can be realized by software and/or hardware. As shown in fig. 3, the method of this embodiment may include:
s301, receiving a downlink data frame sent by the data server, wherein the downlink data frame comprises a second vehicle-mounted device identifier.
The downlink data frame includes service data that the data server needs to send to the second onboard device, for example, instruction data that the data server sends to the second onboard device. The uplink data frame further includes a second vehicle-mounted device identifier, where the second vehicle-mounted device identifier is a preset identifier and is used to instruct the data server to send a target vehicle-mounted device of the downlink data frame. The second vehicle-mounted device corresponding to the second vehicle-mounted device identifier may be any vehicle-mounted device in the rail vehicle, and the second vehicle-mounted device may be a different vehicle-mounted device from the first vehicle-mounted device in the above embodiment, or may be the same vehicle-mounted device as the first vehicle-mounted device.
Optionally, if data interaction exists between the data server and the plurality of rail vehicles, that is, the data server needs to send data to the plurality of vehicle-mounted devices on the plurality of rail vehicles, the downlink data frame further includes a vehicle identifier of the rail vehicle where the second vehicle-mounted device is located, where the vehicle identifier is used to distinguish data sent to the vehicle-mounted devices on different rail vehicles.
S302, the downlink data frame is processed to obtain a processed downlink data frame to be transmitted.
And S303, sending the downlink data frame to be transmitted to the vehicle-mounted wireless equipment, so that the vehicle-mounted wireless equipment sends the downlink data frame to the second vehicle-mounted equipment corresponding to the second vehicle-mounted equipment identifier according to the downlink data frame to be transmitted.
Because the vehicle-mounted wireless device and the communication server are responsible for complex communication mechanism processing between the vehicle and the ground and interactive distribution of data between the vehicle and the ground in a wireless communication environment, after receiving the downlink data frame sent by the data server, the communication server needs to process the downlink data frame so as to ensure that the processed downlink data frame to be transmitted can be completely and accurately received by the vehicle-mounted wireless device. For example, the communication server may add or delete corresponding content in the downlink data frame according to a wireless communication mechanism with the vehicle-mounted wireless device, so that the vehicle-mounted wireless device can correctly receive the downlink data frame to be transmitted. And then the vehicle-mounted wireless equipment can acquire an uplink data frame which needs to be sent to the second vehicle-mounted equipment by the data server from the downlink data frame to be transmitted, and send the uplink data frame to the second vehicle-mounted equipment.
The data transmission method provided by the embodiment comprises the following steps: receiving a downlink data frame sent by a data server, wherein the downlink data frame comprises a second vehicle-mounted equipment identifier; processing the downlink data frame to obtain a processed downlink data frame to be transmitted; and sending the downlink data frame to be transmitted to the vehicle-mounted wireless equipment so that the vehicle-mounted wireless equipment sends the downlink data frame to the second vehicle-mounted equipment corresponding to the second vehicle-mounted equipment identifier according to the downlink data frame to be transmitted. In the method, the communication server processes the downlink data frame sent by the data service and sends the processed downlink data frame to the vehicle-mounted equipment through the vehicle-mounted wireless equipment, so that the design of the data server does not need to consider the functional design and test debugging of wireless communication, the design complexity of the data server is reduced, and the compatibility of the data server is improved
On the basis of the embodiment shown in fig. 3, the processing of the downlink data frame in S302 includes: and adding a second data identifier in the downlink data frame, wherein the second data identifier is used for identifying the downlink data frame.
Because the communication server and the vehicle-mounted wireless device adopt UDP communication, and UDP does not have a confirmation mechanism, problems such as data packet loss and repeated packet reception can occur, a data response feedback mechanism is introduced in this embodiment, that is, a second data identifier is added to a downlink data frame, the second data identifier is used for identifying the downlink data frame, and the second data identifier can also be referred to as a second UDP data packet sequence number, so that the vehicle-mounted wireless device can perform response feedback on a received uplink data frame to be transmitted according to the second data identifier. Meanwhile, the vehicle-mounted wireless equipment can also remove the received repeated data packet according to the second data identifier carried in the received downlink data frame to be transmitted, so that the high-efficiency and reliable transmission of the data is ensured under the unstable wireless network state.
On the basis of adding the second data identifier to the downlink data frame, the data transmission method provided in this embodiment further includes:
judging whether a feedback frame of a downlink data frame to be transmitted, which is sent by the vehicle-mounted wireless equipment, is received within a preset time period; the feedback frame of the downlink data frame to be transmitted comprises a second data identifier and a second vehicle-mounted equipment identifier; if a feedback frame of the downlink data frame to be transmitted is received, determining that the downlink data frame to be transmitted has been received by the vehicle-mounted wireless device according to the second data identifier and the second vehicle-mounted device identifier; and if the feedback frame of the downlink data frame to be transmitted is not received, the downlink data frame to be transmitted is sent to the vehicle-mounted wireless equipment again.
As described above, in order to ensure reliability of data transmission, the downlink data frame to be transmitted sent to the vehicle-mounted wireless device by the communication server includes the second data identifier and the second vehicle-mounted device identifier, the communication server may also buffer the downlink data frame to be transmitted and send the buffered downlink data frame to the vehicle-mounted wireless device, the vehicle-mounted wireless device sends the feedback frame of the downlink data frame to be transmitted to the communication server after receiving the downlink data frame to be transmitted, and the feedback frame of the downlink data frame to be transmitted includes the second data identifier and the second vehicle-mounted device identifier.
If the communication server receives the feedback frame of the downlink data frame to be transmitted within the preset time, and the second data identifier and the second vehicle-mounted device identifier in the downlink data frame to be transmitted are consistent with the second data identifier and the second vehicle-mounted device identifier in the cached downlink data frame to be transmitted, the vehicle-mounted wireless device can be confirmed to have received the downlink data frame to be transmitted, and the downlink data frame to be transmitted in the cache can be deleted. On the contrary, if the feedback frame of the downlink data frame to be transmitted is not received within the preset time, it is determined that the downlink data frame to be transmitted is not received by the vehicle-mounted wireless device, and therefore the downlink data frame to be transmitted in the cache needs to be retransmitted to the vehicle-mounted wireless device until the feedback frame of the downlink data frame to be transmitted is received.
Optionally, if data interaction exists between the data server and the plurality of rail vehicles, the feedback frame of the corresponding downlink data frame to be transmitted includes a second data identifier, a second on-board device identifier, and a vehicle identifier of the rail vehicle where the second on-board device is located.
In the data transmission method provided by this embodiment, the communication server determines, through the feedback frame sent by the vehicle-mounted wireless device, whether the vehicle-mounted wireless device receives the downlink data frame to be transmitted, and when the vehicle-mounted wireless device does not receive the downlink data frame to be transmitted, the communication server can send the downlink data frame to be transmitted to the vehicle-mounted wireless device again, thereby ensuring reliable transmission of data.
Optionally, the sending the downlink data frame to be transmitted to the vehicle-mounted wireless device in S303 includes: determining an Internet Protocol (IP) address of the vehicle-mounted wireless device; and sending the downlink data frame to be transmitted to the IP address of the vehicle-mounted wireless equipment.
In one implementation, the communication server has a routing table, and the routing table stores a corresponding relationship between the vehicle-mounted wireless device and an external network dynamic IP address of the vehicle-mounted wireless device. The communication server determines the IP address of the vehicle-mounted wireless equipment through the query of the routing table, if the communication server queries the dynamic IP address of the external network of the vehicle-mounted wireless equipment through the routing table, the downlink data frame to be transmitted is sent to the IP address, and if the dynamic IP address of the external network of the vehicle-mounted wireless equipment is not queried, the downlink data frame to be transmitted is deleted.
The routing table on the communication server may be established by:
the communication server receives a heartbeat frame sent by the vehicle-mounted wireless equipment, wherein the heartbeat frame comprises a third data identifier, and the third data identifier can also be called as a third UDP data packet serial number; and storing the corresponding relation between the vehicle-mounted wireless equipment and the IP address when the vehicle-mounted wireless equipment sends the heartbeat frame. The IP address of the vehicle-mounted wireless device when the vehicle-mounted wireless device transmits the heartbeat frame, that is, the dynamic IP address of the external network of the vehicle-mounted wireless device, and the vehicle-mounted wireless device normally transmits the heartbeat frame at a certain frequency, for example, once every 5 seconds.
Optionally, if data interaction exists between the data server and the plurality of rail vehicles, the heartbeat frame includes a third data identifier and a vehicle identifier of a vehicle in which the vehicle-mounted wireless device is located, and the communication server stores a correspondence between the vehicle identifier of the vehicle in which the vehicle-mounted wireless device is located and the IP address when the vehicle-mounted wireless device sends the heartbeat frame.
The above-mentioned embodiment shown in fig. 2 illustrates the process of receiving and processing the uplink data frame by the vehicle-mounted wireless device, and on this basis, the vehicle-mounted wireless device can also process the downlink data frame sent by the data server through the communication server. It is understood that the vehicle-mounted wireless device may process only the uplink data frames, or only the downlink data frames, and may also process both the uplink data frames and the downlink data frames. The following describes an example of a process for a vehicle-mounted wireless device to process a downlink data frame sent by a data server through a communication server, with reference to a specific embodiment.
Fig. 4 is a third schematic flow chart of a data transmission method provided by the present invention. The execution subject of the method is a vehicle-mounted wireless device, and the vehicle-mounted wireless device can be realized in a software and/or hardware mode. As shown in fig. 4, the method of this embodiment may include:
s401, receiving a downlink data frame to be transmitted sent by a communication server; the downlink data frame to be transmitted comprises a second data identifier and a second vehicle-mounted equipment identifier.
S402, sending the downlink data frame without the second data identifier in the downlink data frame to be transmitted to a second vehicle-mounted device corresponding to the second vehicle-mounted device identifier.
According to the embodiment, after the communication server receives the downlink data frame sent by the data server, the second data identifier is added to the downlink data frame to obtain the downlink data frame to be transmitted, and the downlink data frame to be transmitted is sent to the vehicle-mounted wireless device, that is, the vehicle-mounted wireless device receives the downlink data frame to be transmitted including the second data identifier and the second vehicle-mounted device identifier. And the vehicle-mounted wireless equipment removes the second data identifier in the downlink data frame to be transmitted and then sends the second data identifier to the second vehicle-mounted equipment corresponding to the second vehicle-mounted equipment identifier. Wherein the second in-vehicle device may be the same as the first in-vehicle device, or the second in-vehicle device may be different from the first in-vehicle device.
Optionally, if data interaction exists between the data server and the plurality of rail vehicles, that is, the data server needs to send data to the plurality of vehicle-mounted devices on the plurality of rail vehicles, the downlink data frame to be transmitted includes the second data identifier, the second vehicle-mounted device identifier and the vehicle identifier of the rail vehicle where the second vehicle-mounted device is located, and the vehicle-mounted wireless device needs to remove the second data identifier in the downlink data frame to be transmitted and the vehicle identifier of the rail vehicle where the second vehicle-mounted device is located and send the removed second data identifier and the vehicle identifier to the second vehicle-mounted device corresponding to the second vehicle-mounted device identifier.
In one implementation manner, the method for sending the second data identifier in the downlink data frame to be transmitted to the second on-board device corresponding to the second on-board device identifier by the on-board wireless device after removing the second data identifier includes:
determining the IP address of the second vehicle-mounted equipment corresponding to the second vehicle-mounted equipment identifier in the vehicle-mounted network; and removing the second data identifier in the downlink data frame to be transmitted, and sending the second data identifier to the IP address of the second vehicle-mounted equipment in the vehicle-mounted network.
Or the vehicle-mounted wireless device removes a second data identifier in the downlink data frame to be transmitted and a vehicle identifier of the rail vehicle where the second vehicle-mounted device is located, and then sends the second data identifier and the vehicle identifier to the second vehicle-mounted device corresponding to the second vehicle-mounted device identifier, and the method comprises the following steps:
determining the IP address of the second vehicle-mounted equipment corresponding to the second vehicle-mounted equipment identifier in the vehicle-mounted network; and removing the second data identifier in the downlink data frame to be transmitted and the vehicle identifier of the rail vehicle where the second vehicle-mounted equipment is located, and then sending the second data identifier and the vehicle identifier of the rail vehicle where the second vehicle-mounted equipment is located to the IP address of the second vehicle-mounted equipment in the vehicle-mounted network.
In the foregoing implementation manner, the vehicle-mounted wireless device has a routing table, where the routing table includes a correspondence between an IP address defined by each vehicle-mounted device in the vehicle-mounted network and an identifier of the vehicle-mounted device.
Optionally, on the basis of the embodiment shown in fig. 4, the vehicle-mounted wireless device may further perform response feedback on the received downlink data frame to be transmitted according to the second data identifier in the received downlink data frame to be transmitted, so that the data transmission method further includes:
sending a feedback frame of a downlink data frame to be transmitted to a communication server; the feedback frame of the downlink data frame to be transmitted comprises a second data identifier and a second vehicle-mounted equipment identifier.
Optionally, if data interaction exists between the data server and the plurality of rail vehicles, that is, the data server needs to send data to the plurality of vehicle-mounted devices on the plurality of rail vehicles, the feedback frame of the downlink data frame to be transmitted includes the second data identifier, the second vehicle-mounted device identifier, and the vehicle identifier of the rail vehicle where the second vehicle-mounted device is located.
Optionally, when receiving the downlink data frame to be transmitted, the vehicle-mounted wireless device may remove the received repeated data frame according to the second data identifier in the downlink data frame to be transmitted.
In the data transmission method provided by this embodiment, after receiving the downlink data frame to be transmitted, the vehicle-mounted wireless device sends the feedback frame of the downlink data frame to be transmitted to the communication server, so that the communication server can determine whether the vehicle-mounted wireless device receives the downlink data frame to be transmitted by determining whether the vehicle-mounted wireless device receives the feedback frame, and the reliability of data transmission is improved.
The embodiment shown in fig. 3 illustrates a process in which the communication server receives and processes a downstream data frame. On the basis of this, the communication server may also process an uplink data frame transmitted by the in-vehicle apparatus through the in-vehicle wireless apparatus. It is understood that the communication server may process only the uplink data, only the downlink data, or both the uplink data and the downlink data. The following describes an example of a process of processing an uplink data frame transmitted by an in-vehicle wireless device by an in-vehicle device by a communication server with reference to a specific embodiment.
Fig. 5 is a fourth schematic flowchart of a data transmission method provided by the present invention. The execution subject of the method is a communication server, and the communication server can be realized by software and/or hardware. As shown in fig. 4, the method of this embodiment may include:
s501, receiving an uplink data frame to be transmitted, which is sent by the wireless vehicle-mounted equipment; the uplink data frame to be transmitted comprises a first data identifier and a first vehicle-mounted equipment identifier.
S502, sending the uplink data frame without the first data identifier in the uplink data frame to be transmitted to a data server.
According to the embodiment, after the wireless vehicle-mounted equipment receives the uplink data frame sent by the first vehicle-mounted equipment, the uplink data frame to be transmitted is obtained after the first data identifier is added to the uplink data frame, and the uplink data frame to be transmitted is sent to the communication server, namely, the communication server receives the uplink data frame to be transmitted, wherein the uplink data frame to be transmitted comprises the first data identifier and the first vehicle-mounted equipment identifier. Optionally, if the data server has data interaction with the plurality of rail vehicles, that is, the data server needs to receive data sent by the plurality of vehicle-mounted devices on the plurality of rail vehicles, the uplink data frame to be transmitted includes the first data identifier, the first vehicle-mounted device identifier, and the vehicle identifier of the rail vehicle on which the first vehicle-mounted device is located.
And the communication server removes the first data identifier in the uplink data frame to be transmitted and then sends the first data identifier to the data server. Wherein the first in-vehicle device may be the same as the second in-vehicle device, or the first in-vehicle device may be different from the second in-vehicle device.
Optionally, on the basis of the embodiment shown in fig. 5, the communication server may further perform response feedback on the received uplink data frame to be transmitted according to the first data identifier in the received uplink data frame to be transmitted, so that the data transmission method further includes:
sending a feedback frame of an uplink data frame to be transmitted to the vehicle-mounted wireless equipment; the feedback frame of the uplink data frame to be transmitted comprises a first data identifier and a first vehicle-mounted equipment identifier.
Optionally, if data interaction exists between the data server and the plurality of rail vehicles, that is, the data server needs to receive data sent by the plurality of vehicle-mounted devices on the plurality of rail vehicles, the feedback frame of the uplink data frame to be transmitted includes the first data identifier, the first vehicle-mounted device identifier, and the vehicle identifier of the rail vehicle on which the first vehicle-mounted device is located.
Optionally, the communication server may remove the repeated data frame according to the first data identifier in the uplink data frame to be transmitted when receiving the uplink data frame to be transmitted.
In the data transmission method provided by this embodiment, after receiving the uplink data frame to be transmitted, the communication server sends the feedback frame of the uplink data frame to be transmitted to the vehicle-mounted wireless device, so that the vehicle-mounted wireless device can determine whether the communication server receives the downlink data frame to be transmitted by determining whether the feedback frame is received, and reliability of data transmission is improved.
Fig. 6 is a schematic structural diagram of a communication device provided in the present invention. As shown in fig. 6, the communication device 60 includes a memory 601 and a processor 602; the memory 601 is connected to the processor 602.
The memory 601 is used to store computer programs.
The processor 602 is configured to implement the data transmission method as described in fig. 2 or fig. 4 above when the computer program is executed; or implement the data transmission method as shown in fig. 3 or fig. 5 above.
Exemplarily, when the communication device 60 is a vehicle-mounted wireless device, the processor 602 is configured to implement the data transmission method as described in fig. 2 or fig. 4 above when the computer program is executed; when the communication device 60 is a communication server, the processor 602 is configured to implement the data transmission method as described in fig. 3 or fig. 5 above when the computer program is executed.
The present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements a data transmission method as described above in fig. 2 or fig. 4; or implementing the data transmission method as shown in the above-mentioned fig. 3 or fig. 5
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A data transmission method is applied to a vehicle-mounted wireless device, and comprises the following steps:
receiving an uplink data frame sent by first vehicle-mounted equipment in a vehicle-mounted network of a rail vehicle, wherein the uplink data frame comprises a first vehicle-mounted equipment identifier, the vehicle-mounted network of the rail vehicle comprises vehicle-mounted equipment 1-N and vehicle-mounted wireless equipment, wherein N is larger than 1, and the vehicle-mounted equipment 1-N only directly communicates with the vehicle-mounted wireless equipment;
processing the uplink data frame to obtain a processed uplink data frame to be transmitted;
sending the uplink data frame to be transmitted to a communication server so that the communication server sends the uplink data frame to a data server according to the uplink data frame to be transmitted, wherein the data server is only in direct communication with the communication server;
the processing the uplink data frame includes:
adding a first data identifier in the uplink data frame, wherein the first data identifier is used for identifying the uplink data frame;
the method further comprises the following steps:
judging whether a feedback frame of the uplink data frame to be transmitted sent by the communication server is received within a preset time period;
if a feedback frame of the uplink data frame to be transmitted is received; the feedback frame of the uplink data frame to be transmitted comprises the first data identifier and the first vehicle-mounted equipment identifier;
and determining that the communication server has received the uplink data frame to be transmitted according to the first data identifier and the first vehicle-mounted equipment identifier.
2. The method of claim 1, further comprising:
and if the feedback frame of the uplink data frame to be transmitted is not received, the uplink data frame to be transmitted is sent to the communication server again.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a downlink data frame to be transmitted sent by the communication server; the downlink data frame to be transmitted comprises a second data identifier and a second vehicle-mounted equipment identifier;
and sending the downlink data frame without the second data identifier in the downlink data frame to be transmitted to a second vehicle-mounted device in the vehicle-mounted network of the rail vehicle corresponding to the second vehicle-mounted device identifier.
4. The method of claim 3, further comprising:
sending a feedback frame of the downlink data frame to be transmitted to the communication server; and the feedback frame of the downlink data frame to be transmitted comprises the second data identifier and the second vehicle-mounted equipment identifier.
5. A data transmission method applied to a communication server, the method comprising:
receiving a downlink data frame sent by a data server, wherein the downlink data frame comprises a second vehicle-mounted equipment identifier, and the data server is only in direct communication with a communication server;
processing the downlink data frame to obtain a processed downlink data frame to be transmitted;
sending the downlink data frame to be transmitted to a vehicle-mounted wireless device in a vehicle-mounted network of the rail vehicle, so that the vehicle-mounted wireless device sends the downlink data frame to a second vehicle-mounted device in the vehicle-mounted network of the rail vehicle corresponding to the second vehicle-mounted device identifier according to the downlink data frame to be transmitted, wherein the vehicle-mounted network of the rail vehicle comprises vehicle-mounted devices 1-N and one vehicle-mounted wireless device, N is greater than 1, and the vehicle-mounted devices 1-N only directly communicate with the vehicle-mounted wireless device;
the processing the downlink data frame includes:
adding a second data identifier in the downlink data frame, wherein the second data identifier is used for identifying the downlink data frame;
the method further comprises the following steps:
judging whether a feedback frame of the downlink data frame to be transmitted, which is sent by the vehicle-mounted wireless equipment, is received within a preset time period;
if a feedback frame of the downlink data frame to be transmitted is received; the feedback frame of the downlink data frame to be transmitted comprises the second data identifier and the second vehicle-mounted equipment identifier;
and determining that the vehicle-mounted wireless equipment has received the downlink data frame to be transmitted according to the second data identifier and the second vehicle-mounted equipment identifier.
6. The method of claim 5, further comprising:
and if the feedback frame of the downlink data frame to be transmitted is not received, the downlink data frame to be transmitted is sent to the vehicle-mounted wireless equipment again.
7. The method of claim 5 or 6, further comprising:
receiving an uplink data frame to be transmitted, which is sent by the wireless vehicle-mounted equipment; the uplink data frame to be transmitted comprises a first data identifier and a first vehicle-mounted equipment identifier;
and sending the uplink data frame with the first data identifier in the uplink data frame to be transmitted removed to the data server.
8. The method of claim 7, further comprising:
sending a feedback frame of the uplink data frame to be transmitted to the wireless vehicle-mounted equipment; and the feedback frame of the uplink data frame to be transmitted comprises the first data identifier and the first vehicle-mounted equipment identifier.
9. A communication device comprising a memory and a processor; the memory is connected with the processor;
the memory for storing a computer program;
the processor, configured to implement the data transmission method according to any one of the claims 1 to 4 when the computer program is executed; or implementing a data transmission method as claimed in any one of the preceding claims 5-8.
10. A storage medium on which a computer program is stored, which, when executed by a processor, carries out the data transmission method according to any one of claims 1 to 4; or implementing a data transmission method as claimed in any one of the preceding claims 5-8.
CN201910310121.9A 2019-04-17 2019-04-17 Data transmission method, communication device, and storage medium Active CN111836233B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910310121.9A CN111836233B (en) 2019-04-17 2019-04-17 Data transmission method, communication device, and storage medium
PCT/CN2019/096531 WO2020211202A1 (en) 2019-04-17 2019-07-18 Data transmission method, communication device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910310121.9A CN111836233B (en) 2019-04-17 2019-04-17 Data transmission method, communication device, and storage medium

Publications (2)

Publication Number Publication Date
CN111836233A CN111836233A (en) 2020-10-27
CN111836233B true CN111836233B (en) 2022-04-19

Family

ID=72837089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910310121.9A Active CN111836233B (en) 2019-04-17 2019-04-17 Data transmission method, communication device, and storage medium

Country Status (2)

Country Link
CN (1) CN111836233B (en)
WO (1) WO2020211202A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114387B (en) * 2021-04-15 2023-03-14 北京全路通信信号研究设计院集团有限公司 Automatic test method, device, medium and electronic equipment
CN113905350B (en) * 2021-08-27 2023-09-15 华人运通(上海)自动驾驶科技有限公司 Data uplink and downlink transmission method, vehicle-mounted intelligent terminal, server and system
CN113672545B (en) * 2021-09-03 2023-11-17 国网信息通信产业集团有限公司 Method and device for transmitting power data between dual processors

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010110300A1 (en) * 2009-03-25 2010-09-30 株式会社 東芝 Railcar-use transmission system
CN105553819A (en) * 2015-12-10 2016-05-04 北京交控科技股份有限公司 Rail transit maintenance support system and method
CN106375076A (en) * 2016-08-31 2017-02-01 北京钧威科技有限公司 Method and system based on train data in frame structure transmission area
CN108111576A (en) * 2017-12-01 2018-06-01 中国铁道科学研究院电子计算技术研究所 A kind of car-ground radio transmission method and device
CN108501983A (en) * 2017-02-24 2018-09-07 北京思维鑫科信息技术有限公司 Mobile unit operating state monitoring system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101998686B (en) * 2009-08-13 2015-09-09 胡乐乐 A kind of vehicle-mounted wireless communication method and system
JP5872345B2 (en) * 2012-03-23 2016-03-01 東日本旅客鉄道株式会社 Information distribution system, server device, information distribution method and program
CN104104714B (en) * 2014-05-13 2019-09-03 北京交通大学 A kind of acquisition of EMU on-vehicle information and transmission device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010110300A1 (en) * 2009-03-25 2010-09-30 株式会社 東芝 Railcar-use transmission system
CN105553819A (en) * 2015-12-10 2016-05-04 北京交控科技股份有限公司 Rail transit maintenance support system and method
CN106375076A (en) * 2016-08-31 2017-02-01 北京钧威科技有限公司 Method and system based on train data in frame structure transmission area
CN108501983A (en) * 2017-02-24 2018-09-07 北京思维鑫科信息技术有限公司 Mobile unit operating state monitoring system
CN108111576A (en) * 2017-12-01 2018-06-01 中国铁道科学研究院电子计算技术研究所 A kind of car-ground radio transmission method and device

Also Published As

Publication number Publication date
CN111836233A (en) 2020-10-27
WO2020211202A1 (en) 2020-10-22

Similar Documents

Publication Publication Date Title
CN111836233B (en) Data transmission method, communication device, and storage medium
CN104038845B (en) Message transmitting method and device
US9742583B2 (en) Method of data retransmission in collaborative service transmission and access network gateway thereof
CN106330414A (en) Message transmission method and device
CN111371631B (en) Heartbeat mechanism detection method, terminal device and storage medium
CN105453645B (en) Data packet sending and data processing device and method
CN114039703B (en) Data transmission method, device, equipment and medium
CN103440142A (en) GPRS (General Packet Radio Service)-based remote upgrade and dynamic loading method
EP1914933A1 (en) Method and apparatus for retransmission request reduction in a network
CN103684707A (en) Server-side and user-side message transmission processing method, message transmission method and message transmission system
CN111181698B (en) Data processing method, device, equipment and medium
CN115277806A (en) Cloud desktop connection method, device and equipment
CN113452778B (en) Session holding method, device, equipment, system and storage medium
JP6690959B2 (en) Device and method for reforming TCP handshake
CN106302364B (en) Agent method, auxiliary agent method and equipment
CN114422425B (en) Method, system, device and storage medium for transmitting multilink aggregated data
CN112039801B (en) Method, system and proxy server for setting IP information
CN113872949A (en) Response method of address resolution protocol and related device
CN113746851A (en) Agent system and method for supporting real-time analysis of GRPC request
CN111741075A (en) Communication connection method, vehicle remote connection system and connection equipment
CN112583935A (en) Buffer window adjusting method, gateway device and storage medium
CN108370372A (en) A kind of transmission method of data packet, network side equipment and user equipment
CN105991629A (en) TCP (transmission control protocol) connection establishment method and device
CN112714188B (en) Data distribution method and system based on label 808 protocol
CN111385241B (en) Method, device and system for repairing lost packet of multimedia data and readable storage medium

Legal Events

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