Data processing method of TRDP module, TRDP module and storage medium
By obtaining the configuration data of the main control module, determining the communication method between the TRDP module and the TCMS device, and transmitting data based on TRDP in the rail transit industry, the problem of insufficient communication performance of TRDP interface in the prior art is solved, and efficient data transmission is achieved.
Patent Information
- Application Number
- CN202411909404.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-03-21
AI Technical Summary
The prior art is difficult to effectively realize the communication of TRDP interface in the rail transit industry, especially in the transmission of large data volumes.
By acquiring the configuration data of the COMID of the main control module, the communication method between the TRDP module and the TCMS device is determined, and the data is transmitted based on TRDP between the main control module and the TCMS device in this manner.
It realizes efficient communication of TRDP interface in the rail transit industry, meeting the needs of modern train systems for large data transmission.
Smart Images

Figure CN119676022A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to rail transit technology, and more particularly to a data processing method of a TRDP module, a TRDP module and a storage medium. Background Art
[0002] In the train control system, the communication between the on-board signal equipment and the TCMS (Train Control and Monitoring System) can be achieved through two interfaces: MVB (Multifunction Vehicle Bus) and TRDP (Train Real-time Data Protocol). The MVB interface is based on the RS485 standard and uses half-duplex mode, but its communication capability is limited by the low data transmission rate and bandwidth, and it is difficult to meet the needs of modern train systems for large data transmission. With the development of technology, the TRDP interface is gradually replacing MVB and becoming the new standard in the rail transit industry because it can provide higher data transmission rates and better performance. However, how to effectively implement the communication of the TRDP interface in the rail transit industry is still a key issue that needs to be solved. Summary of the invention
[0003] Embodiments of the present application provide a data processing method for a TRDP module, a TRDP module, and a storage medium.
[0004] A data processing method for a TRDP module, comprising: Acquire the configuration data of the main control module for COMID, wherein the configuration data includes at least part of the following parameters, wherein the parameters include the number of COMIDs supported for configuration, the IP address of each port and the identifier and multicast IP address of the COMID corresponding thereto, and the length of data transmitted each time; According to the configuration data, determine the communication mode between the TRDP module and the TCMS device; Data is transmitted between the main control module and the TCMS device based on TRDP according to the communication method.
[0005] A TRDP module comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the method described above.
[0006] A storage medium, characterized in that a computer program is stored in the storage medium, wherein the computer program is configured to execute the method described above when running.
[0007] In the embodiment of the present application, by obtaining the configuration data of the main control module for COMID, the communication mode between the TRDP module and the TCMS device is determined, data is transmitted between the main control module and the TCMS device based on TRDP, and communication of the TRDP interface in the rail transit industry is realized.
[0008] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0010] Figure 1 A schematic diagram of the deployment of a vehicle interface unit; Figure 2 A schematic diagram of a data processing method for a TRDP module provided in an embodiment of the present application; Figure 3 A schematic diagram of the deployment of the TRDP module provided in the embodiment of the present application; Figure 4 for Figure 3 A schematic diagram of the transmission of data from a source COMID in the system shown; Figure 5 A schematic diagram of a method for processing source COMID data provided in an embodiment of the present application; Figure 6 for Figure 3 A schematic diagram of transmission of data of a sink COMID in the system shown; Figure 7 A schematic diagram of a method for processing sink COMID data provided by an embodiment of the present application; Figure 8 A flowchart of a method for processing a command frame provided in an embodiment of the present application; Fig. 9 A flowchart of a method for processing a command reply frame provided in an embodiment of the present application; Fig.10 A schematic diagram of the structure of the TRDP module provided in the embodiment of the present application. DETAILED DESCRIPTION
[0011] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0012] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.
[0013] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.
[0014] Figure 1 Figure 1 is a schematic diagram of the deployment of the vehicle interface unit. Figure 1 As shown, the TRDP module is a part of the vehicle interface unit. The TRDP module and the vehicle interface unit base plate together constitute the vehicle interface unit. The vehicle interface unit is physically located in the on-board signal equipment. It mainly serves as an interface expansion module of the main control module and is controlled by the main control module to complete the data interaction function with the TCMS equipment.
[0015] The main control module writes the data to be sent to the TRDP module through the Localbus high-speed bus, and the TRDP module completes the protocol packaging and sends it out. The CCU (Central Control Unit) in TCMS can receive the data sent by the TRDP module; and the TRDP module receives the data from the TCMS and sends it to the main control module.
[0016] The TRDP module is part of the vehicle interface unit. The TRDP module and the vehicle interface unit base plate together form the vehicle interface unit. The vehicle interface unit is a standard 3U*5TE (128.7mm×25.1mm) module, which is installed using a cage rail and has a pull-out aid designed on the front panel, making it flexible and convenient to plug and unplug boards. The TRDP module can use the Jinxin Electronics DSP AVP32F335 chip as the CPU processor, and the FPGA uses the Fudan Micro ZYNQ FMQL20S484 chip, following the provisions of TRDP communication in the IEC61375-2 / 3 standard document.
[0017] Figure 2 A flow chart of the data processing method of the TRDP module provided in the embodiment of the present application. Figure 2 As shown, the method includes:
[0018] Step 201, obtaining the configuration data of the main control module for COMID (Communication Identifier); The configuration data includes at least part of the following parameters, wherein the parameters include the number of COMIDs supported for configuration, the IP address of each port and the identifier and multicast IP address of the COMID corresponding thereto, and the length of data transmitted each time; Specifically, during the initialization process of the TRDP module, the configuration data is obtained to initialize the configuration of the COMID of the TRDP module; alternatively, after the TRDP module completes the initialization, the currently used configuration data can be updated or optimized according to dynamic needs, wherein the updated or optimized content can be one or at least two parameters currently used.
[0019] Step 202: Determine the communication mode between the TRDP module and the TCMS device according to the configuration data; Among them, the communication method includes the quintuple information of the message sent by the TRDP module and the data length information of the message.
[0020] Step 203: Transmit data between the main control module and the TCMS device based on TRDP according to the communication method.
[0021] The method provided in the embodiment of the present application obtains the configuration data of the main control module for COMID, determines the communication mode between the TRDP module and the TCMS device, realizes data transmission based on TRDP between the main control module and the TCMS device, and realizes the communication of the TRDP interface in the rail transit industry.
[0022] The method provided in the embodiment of the present application is described below: The functional architecture of the TRDP module consists of three core modules: configuration management unit, LocalBus interface unit and process data processing interface unit. The functions of each unit are as follows: The configuration management unit is responsible for configuring and managing the key resources required for the operation of the TRDP module, including the CPU, LocalBus bus, and TRDP bus. This module provides the following interfaces:
[0023] DSP configuration management interface: performs initialization of components such as CPU, timer, external expansion RAM, serial port, etc., performs self-test of components such as CPU, FPGA, ROM firmware, RAM, indicator light, etc., and provides operation functions of resources such as serial port output and FPGA register; LocalBus configuration management interface: Initializes diagnostic registers and configures register addresses based on register addresses provided by the controller operation processor (COP).
[0024] TRDP configuration management interface: responsible for configuring TRDP bus parameters and performing verification to ensure the accuracy of bus communication.
[0025] The LocalBus interface unit processes commands and data on the LocalBus bus to achieve efficient LocalBus bus communication. This module provides a LocalBus bus operation interface for receiving and parsing commands and data from the main control module and returning the execution results of the commands. The data exchange between the main control module and the TRDP module is carried out on the LocalBus bus through the FIFO mechanism provided by COP, ensuring the smoothness and reliability of data transmission.
[0026] The process data processing interface unit provides an interface for receiving and sending process data on the TRDP bus. It contains two key interfaces: COMID initialization interface and data set processing interface to ensure effective management and transmission of data. Among them:
[0027] COMID initialization interface: This interface is responsible for the initial configuration of COMID, allowing the CPU to receive and send process data for the configured COMID. The initialization configuration parameters include: COMID identification: uniquely identifies each communication channel; COMID type: specifies COMID as source (sender) or sink (receiver); data length: defines the size of the data packet transmitted by each COMID; cycle: sets the time interval for data transmission; mode: selects the communication mode, such as TRDP or SDT, to adapt to different data transmission requirements; data cache: configures the buffer for data storage to optimize data flow and processing efficiency.
[0028] The data set processing interface is used to perform the packaging and parsing operations of the TRDP protocol on the data set of a specific COMID, ensuring that the data set is correctly encapsulated according to the requirements of the TRDP protocol for efficient transmission on the TRDP bus.
[0029] Explain the initialization configuration of the TRDP module: Figure 3 A schematic diagram of the deployment of the TRDP module provided in the embodiment of the present application. Figure 3 As shown, Figure 3 The system shown includes main control modules that are mutually active and standby, namely Figure 3 The main control module A and the main control module B in the embodiment, wherein the main control module currently used as the main one completes the initialization configuration and the data receiving and sending operations.
[0030] The TRDP module configures the number of COMIDs supported according to the configuration data and specifically configures the value of each COMID; for example, in Figure 3 The first network and the second network each support one COMID, wherein the COMID of the first network is COMID1 and the COMID of the second network is COMID2.
[0031] The TRDP module configures the port IP address based on the configuration data; for example, in Figure 3 In the example, the IP address on TRDP module A includes: the IP address ET1_IP1 of the first real-time Ethernet interface corresponding to COMID1, and the IP address ET2_IP2 of the second real-time Ethernet interface corresponding to COMID2; the IP address on TRDP module B includes: the IP address ET1_IP3 of the third real-time Ethernet interface corresponding to COMID1, and the IP address ET2_IP4 of the second real-time Ethernet interface corresponding to COMID2; The TRDP module configures the multicast address corresponding to each port according to the configuration data, for example, Figure 3 The multicast IP addresses corresponding to the first real-time Ethernet interface and the third real-time Ethernet interface are the multicast IP addresses of the first network, that is, Figure 3Correspondingly, all TCMS devices using COMID1 will listen to this multicast IP address, for example Figure 3 The TCMS device in uses the port of IP address ET1_IP5 to listen to the multicast IP address. Figure 3 The multicast IP address corresponding to the second real-time Ethernet interface and the fourth real-time Ethernet interface is the multicast IP address of the second network, that is, Figure 3 Correspondingly, all TCMS devices using COMID1 will listen to the multicast IP address, for example Figure 3 The TCMS device in uses the port of IP address ET2_IP6 to listen to the multicast IP address.
[0032] The TRDP module manages the data length according to the configuration data, wherein the maximum value of the data length can be 1432 bytes.
[0033] After completing the above configuration, the TRDP module can support the communication between the main control module and the TCMS setting.
[0034] Explanation for updating or optimizing the current configuration of the TRDP module: When the main control module detects that the configuration of the COMID has changed, the current configuration data may be updated; for example, it may detect that a new COMID has been added or an existing COMID has been removed or a multicast IP address has changed.
[0035] The following is an explanation of the TRDP module data transmission operation: The data transmission operation includes: the TRDP module obtains data from the main control module and sends it to the TCMS device; and the TRDP module obtains data from the TCMS device and sends it to the main control module.
[0036] In the above, COMID is an identifier used to distinguish different data streams or communication sessions. COMID allows the system to identify and process data packets from different sources or sinks.
[0037] The source COMID is used to identify the sender of the data packet. In a train network, different devices or modules may need to send data to the network. The source COMID allows the receiving device to identify the source of the data; Figure 4 In the example, TRDP module A sends data to TCMS, and the COMID of TRDP module A will be used as the source COMID to identify that the data is sent by TRDP module A.
[0038] The Destination COMID is used to identify the receiver of the data packet. During data transmission, the data packet needs to be sent to a specific destination, and the Destination COMID is used to specify this destination. Figure 6 In the example, if TCMS needs to receive data from TRDP module A, TCMS will use a sink COMID to monitor the data from TRDP module A.
[0039] Figure 4 for Figure 3 The schematic diagram of data transmission of source COMID in the system is shown in FIG. Figure 4 As shown, the TRDP module obtains data from the main control module and sends it to the TCMS device.
[0040] Specifically, the TRDP module obtains a first payload message from the main control module, wherein the first payload message carries an identifier of a source COMID and data of each source COMID; according to the COMID identifier, the data of each source COMID is cached in a cache area associated with the COMID; a TRDP message is sent to the TCMS device, wherein the source address of the TRDP message is the IP address of the port corresponding to the COMID in the TRDP module, and the destination address is the multicast IP address corresponding to the COMID.
[0041] Optionally, a load reply message is sent to the main control module, wherein the load reply message carries an identifier of the source COMID and an operation result corresponding to each source COMID, wherein the operation result is used to indicate whether the data of each source COMID is successfully received from the main control module or successfully sent to the TCMS device.
[0042] Below Figure 4 The data processing method in the application scenario shown is explained as follows: Figure 5 Schematic diagram of a method for processing source COMID data provided by an embodiment of the present application. Figure 5 As shown, the method includes:
[0043] Step 501: The main control module obtains data sent by applications of all source COMIDs; the data of each source COMID may be the value of a different variable, for example, Figure 5 p_variable_1, p_variable_2, p_variable_3, etc. shown in .
[0044] Step 502: The main control module combines the data of each source COMID to obtain a first payload message, wherein the first payload message includes, in sequence, a command identifier, a total length, check data (e.g., CRC32), a total number of COMIDs, Res (reserved field), an identifier of each COMID, a length of the COMID data, and data of the COMID, for example Figure 5 Schematic diagram of the first payload message in , wherein the value of the command identifier is used to indicate the data sending operation, the value of the total length represents the data length of the first payload message, the value of the check data represents the check data of the first payload message, and the total number of COMIDs represents the total number of COMIDs carried in the first payload message. Figure 5 In the first payload message, the identifier of each COMID, the data length of the COMID, and the data of the COMID may be COMID1, COMID1 data length, and COMID1 data; COMID2, COMID2 data length, and COMID2 data.
[0045] Step 503: The main control module sends a first payload message, which can be sent to the TRDP module via the bus.
[0046] Step 504: The TRDP module receives a first load message, wherein the first load message may be received from the main control module through a bus.
[0047] Step 505: The TRDP module obtains data of each source COMID from the first payload message, where the data of each source COMID can be the value of different variables, for example, Figure 5 p_variable_1, p_variable_2, p_variable_3, etc. shown in .
[0048] Step 506: The TRDP module caches the data of each source COMID, wherein the data of each source COMID can be cached into a cache area associated with it according to the COMID identifier.
[0049] Step 507: The TRDP module sends a payload reply message, where the payload reply message includes a command identifier, a total length, checksum data (e.g., CRC32), a total number of COMIDs, Res (reserved field), and the operation result of each COMID, e.g. Figure 5 Schematic diagram of a payload reply message, where the value of the command identifier is used to indicate the reply to the first payload message, the value of the total length indicates the data length of the payload reply message, the value of the check data indicates the check data of the payload reply message, and the total number of COMIDs indicates the total number of COMIDs carried in the payload reply message. Figure 5In the payload reply message, the order of COMIDs in the operation result of COMID is consistent with the order of COMIDs in the first payload message, which may be COMID1 operation result and COMID2 operation result, etc.
[0050] Step 508: The TRDP module sends the data of each source COMID, wherein the data is sent according to the port corresponding to each source COMID in the TRDP module and the IP address and multicast IP address of the port.
[0051] There is no obvious sequence between step 507 and step 508.
[0052] Step 509: The main control module receives and processes the payload reply message to ensure that the first payload message is successfully received by the TRDP module.
[0053] The above process describes the complete process from the main control module generating the first load message and sending it to the TRDP module to the TRDP module receiving the first load message and returning the load reply message. Each step involves the generation, transmission, reception and processing of data, ensuring the smooth transmission of the data of the source COMID.
[0054] Figure 6 for Figure 3 The schematic diagram of data transmission of the host COMID in the system is shown in FIG. Figure 6 As shown, the TRDP module obtains data from the TCMS device and sends it to the main control module.
[0055] Specifically, the identifier of the sink COMID and the data of each sink COMID are obtained from the TCMS device; the data of each sink COMID is cached in a cache area associated with the COMID according to the COMID identifier; and a second payload message is sent to the main control module, wherein the second payload message carries the identifier of the sink COMID and the data of each sink COMID.
[0056] Optionally, a request message is obtained from the main control module, wherein the request message carries an identifier of a destination COMID; wherein the data content of the second payload message is determined according to the request message.
[0057] Below Figure 7 The data processing method in the application scenario shown is explained as follows: Figure 7 Schematic diagram of a method for processing data of a sink COMID provided in an embodiment of the present application. Figure 7 As shown, the method includes:
[0058] Step 701: The main control module combines the identifier of each sink COMID to obtain a request message, wherein the request message includes the command identifier, the total length, the check data (such as CRC32), the total number of COMIDs, Res (reserved field), and the identifier of each COMID, for example Figure 7 Schematic diagram of the request message in , where the value of the command identifier is used to indicate the data of the request destination COMID, the value of the total length indicates the data length of the request message, the value of the check data indicates the check data of the request message, and the total number of COMIDs indicates the total number of COMIDs carried in the request message. Figure 7 In the request message, the identifier of each COMID can be COMID1, COMID2, etc.
[0059] Step 702: The TRDP module obtains data of all sink COMIDs from the TCMS device, where each COMID can be obtained from the corresponding multicast IP address through the port of the TRDP module.
[0060] Step 703: The TRDP module caches the data of each sink COMID, wherein the data of each sink COMID can be cached into a cache area associated with it according to the COMID identifier.
[0061] Step 704: The TRDP module obtains data of each sink COMID according to the request message, wherein the data of each sink COMID may be the value of different variables, for example, Figure 7 p_variable_1, p_variable_2, p_variable_3, etc. shown in .
[0062] Step 705: The TRDP module packages all the sink COMID data to obtain a second payload message; wherein the second payload message includes, in sequence, a command identifier, a total length, check data (e.g., CRC32), a total number of COMIDs, Res (reserved field), an identifier of each COMID, the length of the COMID data, and the data of the COMID, for example: Figure 7 Schematic diagram of the second payload message in , wherein the value of the command identifier is used to indicate the data sending operation, the value of the total length represents the data length of the second payload message, the value of the check data represents the check data of the second payload message, and the total number of COMIDs represents the total number of COMIDs carried in the second payload message. Figure 7In the second payload message, the COMID sequence in the second payload message is consistent with the COMID sequence in the request message. The identifier of each COMID in the second payload message, the COMID data length, and the COMID data can be COMID1, COMID1 data length, and COMID1 data; COMID2, COMID2 data length, and COMID2 data.
[0063] Step 706: The TRDP module sends a second payload message, which may be sent to the main control module via the bus.
[0064] Step 707: The main control module receives a second load message, wherein the second load message may be received from the TRDP module through a bus.
[0065] Step 708: The main control module obtains data of each sink COMID from the second payload message, where the data of each sink COMID can be the value of different variables, for example, Figure 7 p_variable_1, p_variable_2, p_variable_3, etc. shown in .
[0066] Step 709: The main control module reports to the corresponding application according to the COMID.
[0067] The above process describes the complete process from sending a request message from the main control module, TRDP generating a second load message and sending it to the main control module to the main control module processing the second load message. Each step involves the generation, transmission, reception and processing of data, ensuring the smooth transmission of the data of the host COMID.
[0068] Figure 8 The flowchart of the method for processing the command frame provided in the embodiment of the present application is as follows. Figure 8 As shown, the method includes:
[0069] Step 801: The main control module saves the command frame to be sent into a FIFO (First In, First Out) queue.
[0070] Among them, the command frame is generated according to the task to be performed, for example, Figure 5 The first payload message in Figure 7 Request message in .
[0071] Among them, the FIFO can be set for a controller operation processor (COP).
[0072] In this step, the command frames to be sent are saved in the FIFO queue to improve the responsiveness and efficiency of the system, ensure that the commands are executed in the correct order, and handle burst command traffic to avoid command loss due to inability to keep up with the processing speed.
[0073] Step 802: The main control module triggers the first interrupt signal of the FIFO queue to the TRDP module; Wherein, the first interrupt signal is used to notify the TRDP module that there is a new command frame to be processed in the FIFO queue; Step 803: The TRDP module detects the first interrupt signal; If not detected, step 804 is executed; if detected, the TRDP module will prepare to read the command frame in the FIFO queue and execute steps 804 to 808, including: Step 804: The TRDP module returns an error message and continues to execute step 809; Step 805: The TRDP module clears the first interrupt signal in the FIFO queue to ensure that the first interrupt signal will not be processed repeatedly; Step 806: The TRDP module reads the command frame in the FIFO queue; Step 807: The TRDP module determines whether the frame header in the command frame is legal; If legal, execute step 808; otherwise, execute step 804; Step 808: The TRDP module returns correct information and continues to execute step 809; Step 809, the main control module determines whether the command frame is sent successfully according to the information returned by the TRDP module; if the returned information is correct information, it means that the command frame is sent successfully; if the returned information is error information, it means that the command frame fails to send.
[0074] The above process describes the complete process from the main control module generating command frames, saving them to the FIFO queue, to the TRDP module receiving command frames and returning processing results. Each step involves the generation, transmission, reception and processing of data, ensuring the correct execution of commands and the stability of the system.
[0075] Fig. 9 A flowchart of a method for processing a command reply frame provided in an embodiment of the present application. Fig. 9 As shown, the method includes:
[0076] Step 901: The TRDP module saves the command reply frame to be sent to the FIFO queue.
[0077] Among them, a command reply frame is generated according to the executed command frame, for example, Figure 5The payload response message in Figure 7 The second payload message in .
[0078] Among them, FIFO can be set for COP.
[0079] In this step, the command reply frames to be sent are saved in the FIFO queue to improve the responsiveness and efficiency of the system, ensure that the commands are executed in the correct order, and handle burst command traffic to avoid command loss due to inability to keep up with the processing speed.
[0080] Step 902: The TRDP module triggers the second interrupt signal of the FIFO queue; The second interrupt signal is used to notify the main control module that there is a new command reply frame to be processed in the FIFO queue; Step 903: The main control module performs a detection operation on the second interrupt signal; If not detected, step 904 is executed; if detected, the main control module will prepare to read the command reply frame in the FIFO queue to execute steps 904 to 908, including: Step 904, the main control module returns an error message and continues to execute step 909; Step 905: The main control module clears the second interrupt signal in the FIFO queue to ensure that the second interrupt signal will not be processed repeatedly; Step 906: The main control module reads the command reply frame in the FIFO queue; Step 907: The main control module determines whether the frame header in the command reply frame is legal; If legal, execute step 908; otherwise, execute step 904; Step 908, the main control module returns correct information and continues to execute step 909; Step 909, the TRDP module determines whether the command reply frame is sent successfully based on the information returned by the TRDP module; if the returned information is correct information, it means that the command reply frame is sent successfully; if the returned information is error information, it means that the command reply frame fails to send.
[0081] The above process describes the complete process from the TRDP module generating a command reply frame, saving it to the FIFO queue, to the main control module receiving the command reply frame and returning the processing result. Each step involves the generation, transmission, reception and processing of data, ensuring the correct execution of commands and the stability of the system.
[0082] Fig.10 A schematic diagram of the structure of the TRDP module provided in the embodiment of the present application. Fig.10As shown, the TRDP module includes a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the method described above.
[0083] Wherein, the processor includes two processing modules which are mutually primary and standby, wherein each processing module is capable of executing the method. During the operation of the TRDP module, only the main system performs data processing operations; when the main system fails, the standby system is upgraded to the main system and continues to perform data operations.
[0084] An embodiment of the present application further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the method described above when running.
[0085] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
Claims
1. A data processing method for a TRDP module, characterized in that, include: Acquire the configuration data of the main control module for COMID, wherein the configuration data includes at least part of the following parameters, wherein the parameters include the number of COMIDs supported for configuration, the IP address of each port and the identifier and multicast IP address of the COMID corresponding thereto, and the length of data transmitted each time; According to the configuration data, determine the communication mode between the TRDP module and the TCMS device; Data is transmitted between the main control module and the TCMS device based on TRDP according to the communication method.
2. The method according to claim 1, characterized in that: The transmitting of data based on TRDP between the main control module and the TCMS device according to the communication mode includes: Acquire a first payload message from the main control module, wherein the first payload message carries an identifier of a source COMID and data of each source COMID; According to the COMID identifier, the data of each source COMID is cached in the cache area associated with the COMID; A TRDP message is sent to the TCMS device, wherein the source address of the TRDP message is the IP address of the port corresponding to the COMID in the TRDP module, and the destination address is the multicast IP address corresponding to the COMID.
3. The method according to claim 2, characterized in that The method further comprises: A load reply message is sent to the main control module, wherein the load reply message carries the identifier of the source COMID and the operation result corresponding to each source COMID, wherein the operation result is used to indicate whether the data of each source COMID is successfully received from the main control module or successfully sent to the TCMS device.
4. The method according to claim 1, characterized in that: The data transmission between the main control module and the TCMS device based on the TRDP protocol according to the communication mode includes: Acquire the identifier of the sink COMID and the data of each sink COMID from the TCMS device; According to the COMID identifier, cache the data of each sink COMID in the cache area associated with the COMID; A second payload message is sent to the main control module, wherein the second payload message carries an identifier of a sink COMID and data of each sink COMID.
5. The method according to claim 4, characterized in that The method further comprises: Acquire a request message from the main control module, wherein the request message carries an identifier of a destination COMID; The data content of the second payload message is determined according to the request message.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: After the main control module saves the command frame to be sent to the FIFO queue, detecting whether the FIFO queue generates a first interrupt signal; wherein the first interrupt signal is used to notify the TRDP module that there is a new command frame to be processed in the FIFO queue; If the first interrupt signal is not detected, returning error information to the main control module; If the first interrupt signal is detected, the interrupt signal in the FIFO queue is cleared, and the command frame in the FIFO queue is read to determine whether the frame header in the command frame is legal; if it is legal, correct information is returned to the main control module; otherwise, error information is returned to the main control module; Among them, the main control module determines whether the command frame is sent successfully based on the information returned by the TRDP module.
7. The method according to claim 6, characterized in that The method further comprises: After obtaining the command reply frame corresponding to the command frame, saving the command reply frame to the FIFO queue; Sending a second interrupt signal of the FIFO queue to the main control module; wherein the second interrupt signal is used to notify the main control module that there is a new command reply frame to be processed in the FIFO queue; The information returned by the main control module in response to the command reply frame is received, and whether the command reply frame is sent successfully is determined according to the information returned by the main control module.
8. A TRDP module, comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.
9. The TRDP module according to claim 8, characterized in that The processor comprises two processing modules which are mutually active and standby, wherein each processing module is capable of executing the method.
10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.