Communication data acquisition methods, devices and rail vehicles

By setting unique communication addresses and port information for rail vehicle equipment and identifying data sources and categories through preset relationships, the problems of data mistransmission and high resource occupancy in dual-ring network redundant control are solved, achieving reliable data reception and efficient resource utilization.

CN116707723BActive Publication Date: 2025-10-31CRRC QINGDAO SIFANG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310723369.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-16
Publication Date
2025-10-31
Estimated Expiration
2043-06-16

AI Technical Summary

Technical Problem

In rail vehicles, during data communication controlled by dual-ring network redundancy, data transmission errors and resource occupancy rates are high, making it impossible to guarantee the reliability of data received by the data receiving equipment.

Method used

By setting different communication addresses for each device, each communication address corresponds to one or more port information, and the data source and category are determined based on the port information and communication address. The data source and category are identified by using a preset correspondence, thus ensuring the validity of the data.

Benefits of technology

This effectively reduces the number of port information configurations, lowers the risk of data mistransmission, ensures the reliability of data received by the data receiving device, and improves the safe and reliable operation of rail vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116707723B_ABST
    Figure CN116707723B_ABST
Patent Text Reader

Abstract

This invention relates to the field of rail transit technology, and more particularly to a method, apparatus, and rail vehicle for acquiring communication data. The method includes: acquiring communication data sent by various devices in a dual-ring network; determining the data source and data category of each communication data based on port information and the corresponding communication address in the communication data; wherein each device corresponds to one or more unique communication addresses; each communication address corresponds to one or more different port information entries, with duplicate port information for different communication addresses, and multiple different port information entries corresponding to the same communication address are used to send communication data of different data categories. This invention can effectively reduce the number of port information configurations while ensuring effective identification of each communication data entry, and simultaneously reduces the risk of data mistransmission, ensuring the reliability of the data acquired by the data receiving device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of rail transit technology, and in particular to a communication data acquisition method, device, and rail vehicle. Background Technology

[0002] With the rapid development of rail vehicles, higher requirements have been placed on the reliability of rail vehicle operation. During the operation of rail vehicles, data needs to be exchanged between various devices, and reliable data transmission is a crucial factor in ensuring the safe and reliable operation of rail vehicles.

[0003] To improve the reliability of data transmission between various devices on a rail vehicle, a dual-ring network redundancy control method is typically used for data communication. In this method, the same device needs to send redundant data to two networks using different port information, and the port information used by different devices is also different. The receiving device identifies the data source by using the port information when acquiring data through the dual-ring network. However, this method is highly susceptible to data mistransmission when devices send redundant data to the dual-ring network via port information, compromising the reliability of the data acquired by the receiving device and significantly increasing resource consumption. Summary of the Invention

[0004] In view of the problems existing in related technologies, the present invention provides a communication data acquisition method, device and rail vehicle.

[0005] This invention provides a method for acquiring communication data, comprising:

[0006] Acquire communication data sent by each device in the dual-ring network;

[0007] Based on the port information and the communication address corresponding to the communication data, the data source and data category of each communication data are determined; wherein, each device corresponds to one or more communication addresses, and each communication address is different; each communication address corresponds to one or more different port information, and the port information corresponding to different communication addresses may be repeated, and multiple different port information corresponding to the same communication address are used to send communication data of different data categories.

[0008] According to the communication data acquisition method provided by the present invention, determining the data source and data category of each piece of communication data based on the port information in the communication data and the communication address corresponding to the communication data includes:

[0009] Based on the communication address corresponding to the communication data, the data source of the communication data is determined; wherein, the data source includes device source and communication network source;

[0010] The device and communication network corresponding to the communication data are determined based on the device source and the communication network source, respectively; the communication network is either the first communication network or the second communication network in the dual-ring network;

[0011] Based on the first preset correspondence relationship and the device corresponding to the communication data, the communication network corresponding to the communication data, and the port information in the communication data, the data category of the communication data is determined; wherein, the first preset correspondence relationship is used to characterize the correspondence relationship between the device, the communication network, the port information, and the data category.

[0012] According to the communication data acquisition method provided by the present invention, determining the data source of the communication data based on the communication address corresponding to the communication data includes:

[0013] Based on the second preset correspondence and the communication address corresponding to the communication data, the data source of the communication data is determined; wherein, the second preset correspondence is used to characterize the correspondence between the device, the communication network and the communication address.

[0014] According to the communication data acquisition method provided by the present invention, after determining the data source and data category of each communication data based on the port information in the communication data and the communication address corresponding to the communication data, the method further includes:

[0015] Based on the data source of each of the communication data, determine the communication data corresponding to the target device in each of the devices;

[0016] Based on the life signals in each of the communication data corresponding to the target device, the valid data corresponding to different data categories in each of the communication data corresponding to the target device is determined.

[0017] According to the communication data acquisition method provided by the present invention, determining the valid data corresponding to different data categories in each of the communication data corresponding to the target device based on the life signals in each of the communication data corresponding to the target device includes:

[0018] If, among the data categories corresponding to the target device, the communication data corresponding to the target data category includes first data sent through the first communication network or second data sent through the second communication network, the communication status between the target device and the corresponding communication network is determined based on the life signal in the communication data corresponding to the target data category.

[0019] Based on the communication status between the target device and the corresponding communication network, the valid data corresponding to the target data category is determined.

[0020] According to the communication data acquisition method provided by the present invention, determining the valid data corresponding to different data categories in each of the communication data corresponding to the target device based on the life signals in each of the communication data corresponding to the target device includes:

[0021] If, among the data categories corresponding to the target device, the communication data corresponding to the target data category includes first data sent through the first communication network and second data sent through the second communication network, the valid data corresponding to the target data category is determined based on the life signal in the first data, or based on the life signal in the first data and the life signal in the second data.

[0022] According to the communication data acquisition method provided by the present invention, determining the valid data corresponding to the target data category based on the vital signs in the first data, or based on the vital signs in the first data and the vital signs in the second data, includes:

[0023] Based on the life signal in the first data, the communication status between the target device and the first communication network is determined;

[0024] If the communication status between the target device and the first communication network is normal, the first data is taken as the valid data corresponding to the target data category;

[0025] If the communication status between the target device and the first communication network is abnormal, the communication status between the target device and the second communication network is determined based on the life signal in the second data, and the valid data corresponding to the target data category is determined based on the communication status between the target device and the second communication network.

[0026] According to the communication data acquisition method provided by the present invention, determining the valid data corresponding to the target data category based on the communication status between the target device and the second communication network includes:

[0027] If the communication status between the target device and the second communication network is normal, the second data will be used as the valid data corresponding to the target data category.

[0028] If the communication status between the target device and the second communication network is abnormal, an error message is generated.

[0029] The present invention also provides a communication data acquisition device, comprising:

[0030] The first processing module is used to acquire communication data sent by each device in the dual-ring network;

[0031] The second processing module is used to determine the data source and data category of each communication data based on the port information in the communication data and the communication address corresponding to the communication data; wherein, each device corresponds to one or more communication addresses, and each communication address is different; each communication address corresponds to one or more different port information, and the port information corresponding to different communication addresses is repeated, and multiple different port information corresponding to the same communication address are used to send communication data of different data categories.

[0032] The present invention also provides a rail vehicle that uses the communication data acquisition method as described above, or includes the communication data acquisition device as described above.

[0033] The communication data acquisition method, apparatus, and rail vehicle provided by this invention, by setting different communication addresses for each device, with each communication address corresponding to one or more different port information, and the port information corresponding to different communication addresses being duplicated, and multiple different port information corresponding to the same communication address being used to send communication data of different data categories, and by determining the data source and data category of each communication data obtained from the dual-ring network based on the port information in the communication data and the communication address corresponding to the communication data, can effectively reduce the number of port information configurations while ensuring effective identification of each communication data in the dual-ring network, thereby greatly reducing resource occupancy. At the same time, it reduces the risk of data mistransmission and ensures the reliability of the data acquired by the data receiving device. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0035] Figure 1 This is a flowchart illustrating the communication data acquisition method provided by the present invention;

[0036] Figure 2 This is a schematic diagram of the communication data acquisition device provided by the present invention;

[0037] Figure 3This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0038] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0039] The following is combined Figure 1 This invention describes a communication data acquisition method. The communication data acquisition method of this invention is executed by an electronic device such as a controller, or by the hardware and / or software therein, and is used to acquire communication data from various devices in a rail vehicle for data exchange. It is understood that the communication data acquisition method of this invention can also be applied to other vehicles and operating machinery that exchange data between devices. The specific implementation process of the communication data acquisition method of this invention will be described below using a rail vehicle as an example. Figure 1 As shown, the communication data acquisition method of the present invention includes at least:

[0040] S101. Obtain communication data sent by each device in the dual-ring network;

[0041] S102. Based on the port information in the communication data and the communication address corresponding to the communication data, determine the data source and data category of each communication data; wherein, each device corresponds to one or more communication addresses, and each communication address is different; each communication address corresponds to one or more different port information, and the port information corresponding to different communication addresses is repeated, and multiple different port information corresponding to the same communication address are used to send communication data of different data categories.

[0042] In this embodiment, the dual-ring network may include a first communication network and a second communication network. Each piece of equipment in the rail vehicle can send communication data through the first and / or second communication networks in the dual-ring network. The equipment in the rail vehicle may include air conditioning, running gear, batteries, traction systems, braking systems, pyrotechnic systems, passenger systems, etc.

[0043] Each device can have one or more communication addresses. For example, it can include a first communication address for connecting to a first communication network and / or a second communication address for connecting to a second communication network. All communication addresses for each device are unique and there are no duplicates. Each communication address can correspond to one port information or multiple different port information, and different communication addresses may have duplicate port information. That is, the same device can send redundant communication data to both the first and second communication networks simultaneously using the same port information, and different devices can also send communication data to the same communication network within the first and second communication networks using the same port information. This effectively reduces the number of port information configurations and significantly reduces resource consumption. Furthermore, the ability of the same device to send redundant communication data to both the first and second communication networks simultaneously using the same port information effectively reduces the risk of data mistransmission due to incorrect port information settings, ensuring the reliability of the data received by the data receiving device.

[0044] In addition, when the same communication address corresponds to multiple port information, the multiple port information are used to send communication data of different data types. That is, the same device can send communication data of different data types to the same communication network in the first and second communication networks through different port information. The communication data of different data types may include operating data, fault data, etc. corresponding to various working parameters.

[0045] For any given communication data, port information can be set in the first preset byte of that data. The port information corresponding to that communication data can be obtained by parsing the data. After acquiring the communication data sent by each device through the dual-ring network, the data source and data category of each piece of communication data can be determined based on the port information and the corresponding communication address. The data source can include both device source and communication network source. For example, for any given communication data, the data source can be determined based on the corresponding communication address, and the data category can be determined based on the data source and the port information. Thus, by using the communication address and port information, the acquired communication data can be effectively identified while reducing the number of port information configurations, thereby ensuring the safe and reliable operation of the rail vehicle.

[0046] This embodiment sets different communication addresses for each device, with each address corresponding to one or more different port information. The port information corresponding to different communication addresses may overlap, and multiple different port information corresponding to the same communication address are used to send communication data of different data types. Based on the port information and the corresponding communication address in the communication data, the data source and data type of each communication data obtained from the dual-ring network are determined. This can effectively reduce the number of port information configurations while ensuring effective identification of each communication data in the dual-ring network, thereby greatly reducing resource occupancy. At the same time, it reduces the risk of data mistransmission and ensures the reliability of the data obtained by the data receiving device.

[0047] In an exemplary embodiment, determining the data source and data category of each piece of communication data based on the port information in the communication data and the communication address corresponding to the communication data includes:

[0048] Based on the communication address corresponding to the communication data, the data source of the communication data is determined; wherein, the data source includes device source and communication network source;

[0049] The device and communication network corresponding to the communication data are determined based on the device source and the communication network source, respectively; the communication network is either the first communication network or the second communication network in the dual-ring network;

[0050] Based on the first preset correspondence relationship and the device corresponding to the communication data, the communication network corresponding to the communication data, and the port information in the communication data, the data category of the communication data is determined; wherein, the first preset correspondence relationship is used to characterize the correspondence relationship between the device, the communication network, the port information, and the data category.

[0051] In this embodiment, for any communication data in each communication data, the device source is used to characterize the device that sends the communication data, and the communication network source is used to characterize the communication network used in the communication data transmission process. The communication network can be a first communication network or a second communication network.

[0052] Specifically, the device source and communication network source of the communication data can be determined based on the communication address corresponding to the communication data. For example, the device source and communication network source corresponding to the communication data can be determined based on the correspondence between the device, communication network and communication address and the communication address corresponding to the communication data, thereby enabling the data source corresponding to each communication data to be determined quickly and accurately.

[0053] Additionally, the device source corresponding to the communication data can be defined as the device corresponding to the communication data, and the communication network source corresponding to the communication data can be defined as the communication network corresponding to the communication data. After determining the device and communication network corresponding to the communication data, the data category of the communication data can be determined based on the first preset correspondence, the device corresponding to the communication data, the communication network corresponding to the communication data, and the port information in the communication data. This allows for quick and accurate identification of the data source and data category of each communication data type while reducing the number of port information configurations. The first preset correspondence can be a mapping table used to represent the correspondence between devices, communication networks, port information, and data categories.

[0054] In an exemplary embodiment, determining the data source of the communication data based on the communication address corresponding to the communication data includes:

[0055] Based on the second preset correspondence and the communication address corresponding to the communication data, the data source of the communication data is determined; wherein, the second preset correspondence is used to characterize the correspondence between the device, the communication network and the communication address.

[0056] In this embodiment, for any communication data among all communication data, the data source of the communication data can be determined based on a second preset correspondence and the communication address corresponding to the communication data. The second preset correspondence can be a mapping table used to represent the correspondence between devices, communication networks, and communication addresses. The communication address corresponding to the communication data can be matched with each communication address in the mapping table corresponding to the second preset correspondence. The device and communication network corresponding to the successfully matched communication addresses in the mapping table corresponding to the second preset correspondence are respectively taken as the device source and communication network source of the communication data. This allows for the rapid and accurate determination of the data source of each communication data while reducing the number of port information configurations.

[0057] In an exemplary embodiment, after determining the data source and data category of each piece of communication data based on the port information in the communication data and the communication address corresponding to the communication data, the method further includes:

[0058] Based on the data source of each of the communication data, determine the communication data corresponding to the target device in each of the devices;

[0059] Based on the life signals in each of the communication data corresponding to the target device, the valid data corresponding to different data categories in each of the communication data corresponding to the target device is determined.

[0060] In this embodiment, the target device is the device among all devices for which valid data identification is to be performed, and it can be any device among all devices. After determining the data source of each communication data, the communication data corresponding to the target device can be determined based on the device source of each communication data.

[0061] For any one of the communication data, a life signal may be included. For example, a life signal may be set at the second preset byte of the communication data, and the signal value of the life signal may be obtained by parsing the communication data.

[0062] In practical applications, based on the life signals in the communication data corresponding to the target device, the valid data corresponding to different data categories within that communication data can be determined. For example, for any data category among the data categories corresponding to the target device, the communication status between the target device and the corresponding communication network can be determined based on the life signals in the communication data corresponding to that data category. Based on this communication status, the valid data corresponding to that data category can be determined quickly and accurately. This improves the reliability of data exchanged between devices and provides a technical foundation for ensuring the safe and reliable operation of rail vehicles.

[0063] In determining the communication status of the device and network corresponding to any given communication data, the communication status can be determined based on the life signals of the communication data across multiple consecutive scan cycles. The communication status can be either normal or abnormal. The scan cycle can be the cycle in which communication data is acquired from the dual-ring network. Multiple arrays can be set; for example, one array can correspond to each device, or each data category of each device can have its own array. These arrays can cache the corresponding operational data. During the acquisition of communication data, multiple scan cycles of communication data can be acquired consecutively, for example, five scan cycles, and cached in the corresponding arrays. By analyzing the life signals of the communication data in each scan cycle, the communication status of the device and network corresponding to the data can be determined. This allows for the rapid and accurate determination of the communication status of each piece of communication data, providing a technical foundation for improving the reliability of the identification results of valid data.

[0064] In practical applications, the communication status of the device corresponding to the communication data and the corresponding communication network can be determined based on the changes in the life signal of the communication data over multiple consecutive scan cycles. For example, if the life signal of the communication data is the same over multiple consecutive scan cycles, that is, the life signal of the communication data has not changed over multiple consecutive scan cycles, it indicates that the communication status of the device corresponding to the communication data and the corresponding communication network is abnormal; if the life signal of the communication data is different over multiple consecutive scan cycles, that is, the life signal of the communication data has changed over multiple consecutive scan cycles, it indicates that the communication status of the device corresponding to the communication data and the corresponding communication network is normal.

[0065] Furthermore, the communication status of the device corresponding to the communication data and the corresponding communication network can be determined by comparing the signal values ​​of the life signal in multiple consecutive scan cycles with preset values. For example, based on the correspondence between the scan cycle and the preset value of the life signal, the signal values ​​of the life signal of the communication data in multiple consecutive scan cycles can be compared. If the signal values ​​in each scan cycle are the same as the corresponding preset values, it indicates that the communication status of the device corresponding to the communication data and the corresponding communication network is normal; otherwise, it indicates that the communication status of the device corresponding to the communication data and the corresponding communication network is abnormal.

[0066] In an exemplary embodiment, determining the valid data corresponding to different data categories in each of the communication data corresponding to the target device based on the life signals in each of the communication data corresponding to the target device includes:

[0067] If, among the data categories corresponding to the target device, the communication data corresponding to the target data category includes first data sent through the first communication network or second data sent through the second communication network, the communication status between the target device and the corresponding communication network is determined based on the life signal in the communication data corresponding to the target data category.

[0068] Based on the communication status between the target device and the corresponding communication network, the valid data corresponding to the target data category is determined.

[0069] In this embodiment, the target data category is the data category to be identified as valid data, which can be any data category among the data categories corresponding to the target device. If the communication data corresponding to the target data category includes first data sent through the first communication network or second data sent through the second communication network, it indicates that the target device only sends the communication data corresponding to the target data category through one of the first and second communication networks. That is, there is no redundant communication data in the target data category. The valid data corresponding to the target data category can be determined based on the life signal in the communication data corresponding to the target data category, thereby effectively ensuring the validity of the communication data obtained by the data receiving device.

[0070] In practical applications, the communication status between the target device and the communication network corresponding to the target data category can be determined based on the life signals in the communication data corresponding to the target data category. The valid data corresponding to the target data category can then be determined based on this communication status. Specifically, if the communication status is normal, the communication data corresponding to the target data category is considered valid data. If the communication status is abnormal, the valid data corresponding to the target data category is empty, and an error message can be generated. This error message can be sent to a display device for display and / or to a preset terminal for alarm purposes, facilitating timely troubleshooting by relevant personnel and further improving the reliability of vehicle operation.

[0071] In an exemplary embodiment, determining the valid data corresponding to different data categories in each of the communication data corresponding to the target device based on the life signals in each of the communication data corresponding to the target device includes:

[0072] If, among the data categories corresponding to the target device, the communication data corresponding to the target data category includes first data sent through the first communication network and second data sent through the second communication network, the valid data corresponding to the target data category is determined based on the life signal in the first data, or based on the life signal in the first data and the life signal in the second data.

[0073] In this embodiment, if the communication data corresponding to the target data category includes first data sent through a first communication network and second data sent through a second communication network, it indicates that the target device simultaneously sends redundant communication data corresponding to the target data category through both the first and second communication networks. Valid data corresponding to the target data category can be determined based on the life signal in the first data corresponding to the target data category, or based on both the life signal in the first data and the life signal in the second data corresponding to the target data category. The number of devices connected to the first communication network can be greater than the number of devices connected to the second communication network, or the reliability of the first communication network can be greater than the reliability of the second communication network, thereby effectively ensuring the validity of the acquired communication data.

[0074] In practical applications, the communication status between the target device and the first communication network can be determined based on the life signal in the first data corresponding to the target data category. When the communication status is normal, the first data corresponding to the target data category is taken as the valid data corresponding to the target data category. When the communication status is abnormal, the communication status between the target device and the second communication network can be further determined based on the life signal in the second data corresponding to the target data category, and the valid data corresponding to the target data category can be determined according to the communication status between the target device and the second communication network.

[0075] It is understandable that the communication status between the target device and the first communication network can also be determined based on the life signal in the first data corresponding to the target data category. At the same time, the communication status between the target device and the second communication network can be determined based on the life signal in the second data corresponding to the target data category. Based on the communication status between the target device and the first communication network and the communication status between the target device and the second communication network, the target communication network in the first and second communication networks can be determined, and the communication data corresponding to the target communication network can be used as the valid data corresponding to the target data category. For example, if the communication status between the target device and the first communication network and the target device and the second communication network are both normal, the first communication network is used as the target communication network; if the communication status between the target device and the first communication network or the target device and the second communication network is normal, the communication network with normal communication status between the first and second communication networks is used as the target communication network; if the communication status between the target device and the first communication network and the target device and the second communication network are both abnormal, the target communication network identification fails, the valid data corresponding to the target data category is empty, an error message can be generated, and the error message can be sent to the display device for display, and / or sent to the preset terminal for alarm, so that relevant personnel can troubleshoot in time, thereby further improving the reliability of vehicle operation.

[0076] In an exemplary embodiment, determining the valid data corresponding to the target data category based on the vital signs in the first data, or based on the vital signs in the first data and the vital signs in the second data, includes:

[0077] Based on the life signal in the first data, the communication status between the target device and the first communication network is determined;

[0078] If the communication status between the target device and the first communication network is normal, the first data is taken as the valid data corresponding to the target data category;

[0079] If the communication status between the target device and the first communication network is abnormal, the communication status between the target device and the second communication network is determined based on the life signal in the second data, and the valid data corresponding to the target data category is determined based on the communication status between the target device and the second communication network.

[0080] In this embodiment, if the communication status between the target device and the first communication network is determined to be normal based on the life signal in the first data, it indicates that the first data is reliable. The first data can be directly used as the valid data corresponding to the target data category, ensuring the reliability of the determination result of the valid data. At the same time, there is no need to judge the communication status between the target device and the second communication network, which further improves the efficiency of determining the valid data.

[0081] If the communication status between the target device and the first communication network is determined to be abnormal based on the life signal in the first data, it indicates that the first data is unreliable. The communication status between the target device and the second communication network can be further determined, and the valid data corresponding to the target data category can be determined according to the communication status between the target device and the second communication network, thus ensuring the reliability of the determination result of the valid data.

[0082] In an exemplary embodiment, determining the valid data corresponding to the target data category based on the communication status between the target device and the second communication network includes:

[0083] If the communication status between the target device and the second communication network is normal, the second data will be used as the valid data corresponding to the target data category.

[0084] If the communication status between the target device and the second communication network is abnormal, an error message is generated.

[0085] In this embodiment, if the communication status between the target device and the second communication network is determined to be normal based on the life signal in the second data, it indicates that the second data is reliable. The second data can be used as the valid data corresponding to the target data category, thus ensuring the reliability of the determination result of the valid data.

[0086] If the communication status between the target device and the second communication network is determined to be abnormal based on the life signal in the second data, and both the first data and the second data are unreliable, then the valid data corresponding to the target data category is empty. An error message can be generated, and the error message can be sent to a display device for display, and / or sent to a preset terminal for alarm, so that relevant personnel can troubleshoot in a timely manner, thereby further improving the reliability of vehicle operation.

[0087] The communication data acquisition device provided by the present invention is described below. The communication data acquisition device described below can be referred to in correspondence with the communication data acquisition method described above. For example... Figure 2 As shown, the communication data acquisition device of the present invention includes at least:

[0088] The first processing module 201 is used to acquire communication data sent by each device in the dual-ring network;

[0089] The second processing module 202 is used to determine the data source and data category of each communication data based on the port information in the communication data and the communication address corresponding to the communication data; wherein, each device corresponds to one or more communication addresses, and each communication address is different; each communication address corresponds to one or more different port information, and the port information corresponding to different communication addresses is repeated, and multiple different port information corresponding to the same communication address are used to send communication data of different data categories.

[0090] In an exemplary embodiment, the second processing module 202 is specifically used for:

[0091] Based on the communication address corresponding to the communication data, the data source of the communication data is determined; wherein, the data source includes device source and communication network source;

[0092] The device and communication network corresponding to the communication data are determined based on the device source and the communication network source, respectively; the communication network is either the first communication network or the second communication network in the dual-ring network;

[0093] Based on the first preset correspondence relationship and the device corresponding to the communication data, the communication network corresponding to the communication data, and the port information in the communication data, the data category of the communication data is determined; wherein, the first preset correspondence relationship is used to characterize the correspondence relationship between the device, the communication network, the port information, and the data category.

[0094] In an exemplary embodiment, the second processing module 202 is specifically used for:

[0095] Based on the second preset correspondence and the communication address corresponding to the communication data, the data source of the communication data is determined; wherein, the second preset correspondence is used to characterize the correspondence between the device, the communication network and the communication address.

[0096] In an exemplary embodiment, a third processing module is further included, the third processing module being used to:

[0097] Based on the data source of each of the communication data, determine the communication data corresponding to the target device in each of the devices;

[0098] Based on the life signals in each of the communication data corresponding to the target device, the valid data corresponding to different data categories in each of the communication data corresponding to the target device is determined.

[0099] In an exemplary embodiment, the third processing module is specifically used for:

[0100] If, among the data categories corresponding to the target device, the communication data corresponding to the target data category includes first data sent through the first communication network or second data sent through the second communication network, the communication status between the target device and the corresponding communication network is determined based on the life signal in the communication data corresponding to the target data category.

[0101] Based on the communication status between the target device and the corresponding communication network, the valid data corresponding to the target data category is determined.

[0102] In an exemplary embodiment, the third processing module is specifically used for:

[0103] If, among the data categories corresponding to the target device, the communication data corresponding to the target data category includes first data sent through the first communication network and second data sent through the second communication network, the valid data corresponding to the target data category is determined based on the life signal in the first data, or based on the life signal in the first data and the life signal in the second data.

[0104] In an exemplary embodiment, the third processing module is specifically used for:

[0105] Based on the life signal in the first data, the communication status between the target device and the first communication network is determined;

[0106] If the communication status between the target device and the first communication network is normal, the first data is taken as the valid data corresponding to the target data category;

[0107] If the communication status between the target device and the first communication network is abnormal, the communication status between the target device and the second communication network is determined based on the life signal in the second data, and the valid data corresponding to the target data category is determined based on the communication status between the target device and the second communication network.

[0108] In an exemplary embodiment, the third processing module is specifically used for:

[0109] If the communication status between the target device and the second communication network is normal, the second data will be used as the valid data corresponding to the target data category.

[0110] If the communication status between the target device and the second communication network is abnormal, an error message is generated.

[0111] The present invention also provides a rail vehicle that uses the communication data acquisition method as described in any of the above embodiments, or includes the communication data acquisition device as described in any of the above embodiments.

[0112] In this embodiment, rail vehicles include subway vehicles, light rail vehicles, and EMU trains.

[0113] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3 As shown, the electronic device may include a processor 301, a communications interface 302, a memory 303, and a communication bus 304. The processor 301, communications interface 302, and memory 303 communicate with each other via the communication bus 304. The processor 301 can call logical instructions in the memory 303 to execute a communication data acquisition method, which includes acquiring communication data sent by each device in the dual-ring network.

[0114] Based on the port information and the communication address corresponding to the communication data, the data source and data category of each communication data are determined; wherein, each device corresponds to one or more communication addresses, and each communication address is different; each communication address corresponds to one or more different port information, and the port information corresponding to different communication addresses may be repeated, and multiple different port information corresponding to the same communication address are used to send communication data of different data categories.

[0115] Furthermore, the logical instructions in the aforementioned memory 303 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0116] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being able to be stored on a non-transitory computer-readable storage medium, the computer program being executed by a processor, the computer being able to execute the communication data acquisition method provided by the above methods, the method including: acquiring communication data sent by each device in a dual-ring network;

[0117] Based on the port information and the communication address corresponding to the communication data, the data source and data category of each communication data are determined; wherein, each device corresponds to one or more communication addresses, and each communication address is different; each communication address corresponds to one or more different port information, and the port information corresponding to different communication addresses may be repeated, and multiple different port information corresponding to the same communication address are used to send communication data of different data categories.

[0118] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a communication data acquisition method provided by the above methods, the method comprising: acquiring communication data sent by each device in a dual-ring network;

[0119] Based on the port information and the communication address corresponding to the communication data, the data source and data category of each communication data are determined; wherein, each device corresponds to one or more communication addresses, and each communication address is different; each communication address corresponds to one or more different port information, and the port information corresponding to different communication addresses may be repeated, and multiple different port information corresponding to the same communication address are used to send communication data of different data categories.

[0120] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0121] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for acquiring communication data, characterized in that, include: Acquire communication data sent by each device in the dual-ring network; Based on the port information in the communication data and the communication address corresponding to the communication data, the data source and data category of each communication data are determined; wherein, each device corresponds to multiple communication addresses, and each communication address is different; each communication address corresponds to multiple different port information, and the port information corresponding to different communication addresses is repeated, and multiple different port information corresponding to the same communication address are used to send communication data of different data categories.

2. The communication data acquisition method according to claim 1, characterized in that, The step of determining the data source and data category of each piece of communication data based on the port information and the corresponding communication address in the communication data includes: Based on the communication address corresponding to the communication data, the data source of the communication data is determined; wherein, the data source includes device source and communication network source; The device and communication network corresponding to the communication data are determined based on the device source and the communication network source, respectively; the communication network is either the first communication network or the second communication network in the dual-ring network; Based on the first preset correspondence relationship and the device corresponding to the communication data, the communication network corresponding to the communication data, and the port information in the communication data, the data category of the communication data is determined; wherein, the first preset correspondence relationship is used to characterize the correspondence relationship between the device, the communication network, the port information, and the data category.

3. The communication data acquisition method according to claim 2, characterized in that, Determining the data source of the communication data based on the communication address corresponding to the communication data includes: Based on the second preset correspondence and the communication address corresponding to the communication data, the data source of the communication data is determined; wherein, the second preset correspondence is used to characterize the correspondence between the device, the communication network and the communication address.

4. The communication data acquisition method according to any one of claims 2 to 3, characterized in that, After determining the data source and data category of each piece of communication data based on the port information and the corresponding communication address in the communication data, the method further includes: Based on the data source of each of the communication data, determine the communication data corresponding to the target device in each of the devices; Based on the life signals in each of the communication data corresponding to the target device, the valid data corresponding to different data categories in each of the communication data corresponding to the target device is determined.

5. The communication data acquisition method according to claim 4, characterized in that, The determination of valid data corresponding to different data categories in each of the communication data corresponding to the target device based on the life signals in each of the communication data corresponding to the target device includes: If, among the data categories corresponding to the target device, the communication data corresponding to the target data category includes first data sent through the first communication network or second data sent through the second communication network, the communication status between the target device and the corresponding communication network is determined based on the life signal in the communication data corresponding to the target data category. Based on the communication status between the target device and the corresponding communication network, the valid data corresponding to the target data category is determined.

6. The communication data acquisition method according to claim 4, characterized in that, The determination of valid data corresponding to different data categories in each of the communication data corresponding to the target device based on the life signals in each of the communication data corresponding to the target device includes: If, among the data categories corresponding to the target device, the communication data corresponding to the target data category includes first data sent through the first communication network and second data sent through the second communication network, the valid data corresponding to the target data category is determined based on the life signal in the first data, or based on the life signal in the first data and the life signal in the second data.

7. The communication data acquisition method according to claim 6, characterized in that, The step of determining the valid data corresponding to the target data category based on the life signal in the first data, or based on the life signal in the first data and the life signal in the second data, includes: Based on the life signal in the first data, the communication status between the target device and the first communication network is determined; If the communication status between the target device and the first communication network is normal, the first data is taken as the valid data corresponding to the target data category; If the communication status between the target device and the first communication network is abnormal, the communication status between the target device and the second communication network is determined based on the life signal in the second data, and the valid data corresponding to the target data category is determined based on the communication status between the target device and the second communication network.

8. The communication data acquisition method according to claim 7, characterized in that, The step of determining the valid data corresponding to the target data category based on the communication status between the target device and the second communication network includes: If the communication status between the target device and the second communication network is normal, the second data will be used as the valid data corresponding to the target data category. If the communication status between the target device and the second communication network is abnormal, an error message is generated.

9. A communication data acquisition device, characterized in that, include: The first processing module is used to acquire communication data sent by each device in the dual-ring network; The second processing module is used to determine the data source and data category of each communication data based on the port information in the communication data and the communication address corresponding to the communication data; wherein, each device corresponds to multiple communication addresses, and each communication address is different; each communication address corresponds to multiple different port information, and the port information corresponding to different communication addresses is repeated, and the multiple different port information corresponding to the same communication address is used to send communication data of different data categories.

10. A rail vehicle, characterized in that, Includes the communication data acquisition device as described in claim 9.

Citation Information

Patent Citations

  • Mining data transmission method, device and system based on WiFi6 wireless double-link hot standby

    CN113709780A

  • Data transmission method and device and computer storage medium

    CN114339894A