Interface data processing method, device, electronic device and storage medium

Through interface data processing methods, including protocol analysis and functional level division, the complex types of interface software in the ATS signal system are solved, and the general interface function is realized, the development and maintenance efficiency is improved, and the management process is simplified.

CN114615350BActive Publication Date: 2025-01-03CRSC URBAN RAIL TRANSIT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210220659.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-08
Publication Date
2025-01-03
Estimated Expiration
2042-03-08

AI Technical Summary

Technical Problem

There are a wide variety of interface software in the existing ATS signal system, which leads to inefficient development efficiency and difficulty in maintaining, chaotic version management, and difficult to effectively manage.

Method used

By receiving interface data, protocol analysis and function level division, calling task flow to load function level information, obtain target interface data, and perform protocol conversion and storage to realize general interface functions and avoid redundancy problems.

Benefits of technology

It improves the development, maintenance and management efficiency of interface software in the ATS signal system, realizes the data processing of different interfaces on different lines, simplifies software function switching, and reduces redundancy problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114615350B_ABST
    Figure CN114615350B_ABST
Patent Text Reader

Abstract

The present invention provides an interface data processing method, device, electronic device and storage medium, including: receiving interface data; performing protocol analysis on the interface data to determine the data type of the interface data; calling the task flow corresponding to the data type, and loading the target configuration information of the interface function level information in the task flow; the interface function level information is determined based on various types of interface function information of the interface to which the interface data belongs in each track line; based on the target configuration information of the interface function level information, the target interface data is obtained from the interface data. The method of the present invention achieves the purpose of effectively switching different software functions for different interface data of different lines through configuration design, realizes universal interface functions, can effectively avoid the redundancy problem caused by the variety of interface software, and greatly improves the efficiency of the development, later maintenance and management of interface software in the train automatic monitoring signal system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to an interface data processing method, device, electronic equipment and storage medium. Background Art

[0002] The Automatic Train Supervision (ATS) signal system is the central system of urban rail transit, which ensures the safe and orderly operation of trains. An extremely important feature of the ATS signal system is the connection of many different professional information interfaces. It not only interacts with professional information such as buildings, tracks, and power supply, but also interacts with electrical interfaces of many electromechanical systems such as vehicles and integrated monitoring to meet the functional requirements of control and monitoring.

[0003] However, with the continuous development of the ATS signal system for urban rail lines, the types and data volumes of different professional information interactions have increased exponentially. The interface software functions of the existing ATS signal system are distributed and single in design. Different interface software processes different professional information, which makes the interface software types complicated, resulting in low software development efficiency, and easily causing problems such as difficulty in software maintenance and chaotic software version management.

[0004] Therefore, how to better develop, maintain and manage the interface software in the ATS signal system has become an urgent problem to be solved in the industry. Summary of the invention

[0005] The embodiments of the present invention provide an interface data processing method, device, electronic device and storage medium for better developing, maintaining and managing interface software in an ATS signal system.

[0006] An embodiment of the present invention provides an interface data processing method, including:

[0007] Receive interface data;

[0008] Performing protocol analysis on the interface data to obtain a data type of the interface data;

[0009] Calling the task flow corresponding to the data type of the interface data, and loading the target configuration information of the interface function level information in the task flow; the interface function level information is determined based on various types of interface function information of the interface to which the interface data belongs in each track line;

[0010] Based on the target configuration information of the interface function level information, target interface data is acquired from the interface data.

[0011] According to an embodiment of the present invention, a method for processing interface data further includes, before receiving the interface data:

[0012] Obtaining various types of interface function information of the interface to which the interface data in each track line belongs;

[0013] Based on the number of track lines corresponding to each type of interface function information and the number of all track lines, the various types of interface function information are graded to obtain the interface function grade information.

[0014] According to an embodiment of the present invention, a method for processing interface data is provided, wherein the interface data includes external interface data, and after obtaining target interface data from the interface data according to the target configuration information based on the interface function level information, the method further includes:

[0015] Performing protocol conversion on the target interface data to obtain target internal protocol data;

[0016] The target internal protocol data is sent to an internal Redis storage system for storage.

[0017] According to an embodiment of the present invention, a method for processing interface data is provided, wherein the interface data includes internal interface data, and after obtaining target interface data from the interface data according to the target configuration information based on the interface function level information, the method further includes:

[0018] Performing protocol conversion on the target interface data to obtain target external protocol data;

[0019] The target external protocol data is sent to the corresponding external interface system.

[0020] According to an embodiment of the present invention, a method for processing interface data further includes, before receiving the interface data:

[0021] Determine the interface connection type of the interface to which the interface data belongs;

[0022] According to the interface connection type corresponding to the interface data, a communication connection is established with a target module that sends the interface data to receive the interface data.

[0023] According to an interface data processing method provided by an embodiment of the present invention, the interface connection type includes an Ethernet interface connection, and performing protocol parsing on the interface data to obtain the data type of the interface data includes:

[0024] Performing Ethernet interface protocol analysis on the interface data to obtain application layer data corresponding to the interface data;

[0025] According to the application layer data, an interface protocol type corresponding to the interface data is obtained.

[0026] The embodiment of the present invention further provides an interface data processing device, comprising:

[0027] A receiving module, used for receiving interface data;

[0028] A parsing module, used for performing protocol parsing on the interface data to obtain a data type of the interface data;

[0029] A calling module, used to call a target task flow corresponding to the data type of the interface data, and load target configuration information of the interface function level information in the target task flow; the interface function level information is determined based on various types of interface function information of the interface to which the interface data belongs in each track line;

[0030] The acquisition module is used to acquire target interface data from the interface data based on the target configuration information of the interface function level information.

[0031] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned interface data processing methods is implemented.

[0032] An embodiment of the present invention further provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the interface data processing method described in any one of the above is implemented.

[0033] An embodiment of the present invention further provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned interface data processing methods.

[0034] An interface data processing method, device, electronic device and storage medium provided by an embodiment of the present invention receive interface data, perform protocol analysis on the interface data, and determine its data type; determine the interface function level information corresponding to the data type interface according to the level classification of various types of interface function information of the interface to which the interface data belongs in each track line, and load the target configuration information of the interface function level information corresponding to the data type interface by calling the preset task flow corresponding to the data type of the interface data, and then obtain the target interface data from the interface data based on the target configuration information of the interface function level information, so as to achieve the purpose of effectively switching different software functions for different interface data of different lines through configuration design, realize universal interface function, effectively avoid the redundancy problem caused by the variety of interface software, and greatly improve the efficiency of development, later maintenance and management of interface software in ATS signal system. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 It is a schematic diagram of the system structure of interface data processing in the prior art;

[0037] Figure 2 is a flow chart of an interface data processing method provided by an embodiment of the present invention;

[0038] Figure 3 is a schematic diagram of the system structure of the interface data processing method provided by an embodiment of the present invention;

[0039] Figure 4 is a schematic diagram of the structure of an interface data processing device provided in an embodiment of the present invention;

[0040] Figure 5 It is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] Combine the following Figure 1-Figure 5 An interface data processing method, device, electronic device and storage medium provided by an embodiment of the present invention are described.

[0043] Figure 1 It is a schematic diagram of the system structure of interface data processing in the prior art, such as Figure 1 As shown in the figure, the interface software function in the existing Automatic Train Supervision (ATS) signal system presents a distributed single design, and the data information of different professions is designed with its own interface, for example, the first profession corresponds to the first interface, and the interface data processing of the second profession corresponds to the second interface. Finally, the data information from different professions is received through each interface, and the data information is written into the storage system for acquisition and use by the business system.

[0044] It can be understood that the interface is an interface protocol conversion module, which realizes data format conversion processing of interface data by carrying out interface software.

[0045] The above-mentioned distributed single interface design can still meet the situation of maintaining existing lines and opening new lines with a small number of cases. However, with the frequent changes in external professional information, the interfaces that interact with it must be adaptively developed, resulting in a wide variety of interface software. Combined with the development trend of line expansion, the existing design architecture has greatly increased the difficulty of interface software development, maintenance and management.

[0046] To this end, an embodiment of the present invention provides an interface data processing method to solve the above-mentioned technical defects.

[0047] Figure 2 is a flow chart of the interface data processing method provided by an embodiment of the present invention, such as Figure 1 As shown, the execution subject of the method can be the universal interface of the present invention, and the method includes: step 110, step 120, step 130 and step 140.

[0048] Step 110, receiving interface data;

[0049] Specifically, the interface data described in the embodiment of the present invention refers to data for interaction between a local interface and an external interface or between a local interface and an internal communication module, that is, it can be external interface data or internal interface data, and it can be interface data of different professions.

[0050] It should be noted that the commonly used interfaces for external communications currently include: axle counting system interface, global dispatching system interface, passenger information system (PIS) interface, operation and maintenance system interface, wireless system interface, shielded door system interface, public address (PA) system interface, clock system interface, integrated monitoring system interface, power screen system interface, etc.

[0051] That is to say, the interface data described in the embodiment of the present invention may be at least one of axle counting system interface data, global scheduling system interface data, PIS interface data, operation and maintenance system interface data, wireless system interface data, shielded door system interface data, public broadcasting (Public Address, PA) system interface data, clock system interface data, integrated monitoring system interface data and power screen system interface data.

[0052] In an embodiment of the present invention, according to the different communication requirements of each track line, in the ATS signal system, the same interface can also realize different interface functions in different track lines. For example, in track line 1, the PA system interface function includes sending to the departure status; receiving internal prediction information; and taking the platform as the unit, each platform only needs to send the destination number and train arrival information field. In track line 2, the PA system interface function can be based on track line 1, and a single platform protocol can add train service number and train car number fields in addition to the destination number and train arrival information fields to meet the communication requirements of track line 2.

[0053] In this embodiment, the interface data contains various types of interface function information of the interface to which it belongs. For example, for the above-mentioned PA system interface, the interface function information contained in the interface data may include sending to the departure status; receiving internal prediction information; taking the platform as the unit, each platform needs to send the destination number and train arrival information field, the train service number field and the train car number field.

[0054] In step 110, before receiving the interface data, the method further includes:

[0055] Determine the interface connection type of the interface to which the interface data belongs;

[0056] According to the interface connection type corresponding to the interface data, a communication connection is established with a target module that sends the interface data to receive the interface data.

[0057] Specifically, the interface connection types described in the embodiments of the present invention include two connection types: serial port connection and network port TCP / IP protocol connection.

[0058] The target module described in the embodiment of the present invention refers to a module for sending interface data, which may be an external interface module, such as an axle counting system interface module, a PIS interface module, a global scheduling system interface module, a PA system interface module, etc.; it may also be a local communication module for interface data processing, such as an internal forwarding program module (hereinafter referred to as an idec module).

[0059] In this embodiment, the interface data is subjected to interface connection type judgment to determine the interface connection type of the interface to which the interface data belongs, and then the underlying connection library is called to complete the switching of the connection mode. Thus, a communication connection can be established with the target module according to the interface connection type corresponding to the interface data, thereby receiving the interface data.

[0060] In one embodiment of the present invention, in the case of receiving interface data from different external professions and forwarding it to an internal target module, after the current universal interface starts the serial port connection type to receive external wireless system interface data, when it is determined that the interface connection type of the interface to which the external interface data belongs is a network port TCP / IP protocol connection type, the universal interface will start the network port connection type, switching from a serial port connection to a network port TCP / IP protocol connection, and then calling the TCP / IP underlying library to implement a connection handshake, and establish a communication connection with the external target module. At this time, the universal interface can receive all interface data that communicate with the client-server end bound to itself.

[0061] It is understandable that the situation where the universal interface switches from the network port TCP / IP protocol connection to the serial port connection is opposite to the above data processing process, which will not be described in detail here.

[0062] In one embodiment of the present invention, similarly, in the case of receiving interface data from different external professions and forwarding it to the internal target module, after the current universal interface starts the serial port connection type to receive the interface data of the internal first target module, when it is determined that the interface connection type corresponding to the second target module is the network port TCP / IP protocol connection type, the universal interface will start the network port connection type, switch from the serial port connection to the network port TCP / IP protocol connection, and then call the TCP / IP underlying library to implement the connection handshake, establish a communication connection with the second target module, and receive the interface data of the second target module.

[0063] In another embodiment of the present invention, in the case of receiving interface data from different external professions and forwarding it to the internal target module, all internal target modules adopt the network port TCP / IP protocol connection type. Therefore, there is no need for separate judgment and the normal information interaction process can be carried out by establishing a communication connection.

[0064] The method of the embodiment of the present invention determines the interface connection type of the interface to which the interface data belongs, implements the call of the underlying connection library to complete the connection mode switching, and realizes the universal interface to adaptively connect the target modules of different connection types, thereby effectively processing the information interaction of different interface data.

[0065] In addition, before receiving the interface data in step 110, the method further includes:

[0066] Obtain various interface function information of the interface to which the interface data in each track line belongs;

[0067] Based on the number of track lines corresponding to each type of interface function information and the number of all track lines, each type of interface function information is graded to obtain interface function grade information.

[0068] Specifically, in the embodiment of the present invention, a single interface type is used as the design object, and according to the existing signal ATS system interface software function requirements, the track line is used as a distinguishing factor, and then various types of interface function information of the interface to which the interface data in each track line belongs are obtained;

[0069] Furthermore, by collecting statistics on various types of interface function information of various interfaces in all track lines, based on the number of track lines corresponding to each type of interface function information and the number of all track lines, each type of interface function information is graded to obtain interface function grade information.

[0070] In an embodiment of the present invention, the interface function level information refers to the interface function level information obtained by classifying various types of interface function information of the interface to which the interface data belongs, which may include necessary function information, main function information and secondary function information. More specifically, for the interface to which the interface data belongs, the number of track lines corresponding to various types of interface function information and the number of all track lines can be judged according to various types of interface function information of the interface. When one or more types of interface function information are used on all lines, that is, the number of track lines corresponding to this type of interface function information is consistent with the number of all track lines, it means that this type of interface function information is the interface function information that must be possessed in each track line, thereby determining that this type of interface function information is necessary function information;

[0071] Similarly, when one or more types of interface function information are used on some tracks, that is, the proportion of the number of track tracks corresponding to this type of interface function information to the number of all track tracks is not less than the first target threshold, for example, the first target threshold can be set to 0.6, which means that this type of interface function information is the function information that must be possessed by more than 60% of the track tracks, and this type of interface function information is determined as the main function information;

[0072] When the proportion of the number of track lines corresponding to this type of interface function information to the number of all track lines is not greater than the second target threshold, for example, the first target threshold can be set to 0.4, then it can be explained that this type of interface function information is the functional information that must be possessed by the track lines with less than 40% of the information, and this type of interface function information is determined to be secondary functional information.

[0073] Therefore, based on the number of track lines corresponding to each type of interface function information and the number of all track lines, each type of interface function information is graded, and the interface function grade information corresponding to the interface to which the interface data belongs can be obtained.

[0074] In the embodiment of the present invention, the interface function level information, ie, the necessary function information, the main function information and the secondary function information, can be controlled by configuring the switch to be implemented in the interface software.

[0075] The method of the embodiment of the present invention obtains interface function level information by classifying various types of interface function information of various types of interfaces, so that the configuration information of the interface function level information can be determined through each track line, and compatible processing of interface data of various types of interfaces on different track lines can be achieved, which is conducive to realizing universal interface functions and avoiding redundancy problems caused by the complexity of interface software types, thereby improving the efficiency of development, later maintenance and management of interface software in the ATS signal system.

[0076] Further, in step 120, protocol parsing is performed on the interface data to determine the data type of the interface data;

[0077] In this step, the data type described in the embodiment of the present invention can be understood as the interface protocol type corresponding to the interface data, which can be determined according to the application layer data of the interface data.

[0078] Therefore, by performing application layer protocol analysis on the interface data, the application layer data of the interface data can be obtained and the data type of the interface data can be determined.

[0079] In some embodiments, the interface connection type includes an Ethernet interface connection, and step 120, performing protocol parsing on the interface data to obtain a data type of the interface data includes:

[0080] Parse the interface data using the Ethernet interface protocol to obtain application layer data corresponding to the interface data;

[0081] Get the data type of the interface data based on the application layer data.

[0082] Specifically, the application layer data described in the embodiment of the present invention refers to the function code and type code in the data structure corresponding to the interface data, wherein the function code is used to indicate the purpose of an information frame, and the type code indicates the device address type identifier corresponding to the interface to which the interface data belongs.

[0083] In this embodiment, considering unified management of all existing interface point table conversion relationships, the function codes corresponding to different types of interface data can be uniformly set to one. Thus, through the function code and type code corresponding to the interface data, the track line identification corresponding to the interface data, the interface function information of the interface to which the interface data belongs, and the corresponding equipment status information can be determined.

[0084] In this embodiment, Ethernet interface protocol parsing refers to application layer protocol parsing, which can be specifically TCP protocol parsing. By performing TCP protocol parsing on the interface data and parsing the TCP packet header of the interface data, the application layer data corresponding to the interface data can be obtained, and the application layer protocol header function code and type code can be determined.

[0085] Furthermore, based on the function code and type code in the application layer data, the data type of the interface data can be determined by identifying the track line identification corresponding to the interface data, the interface function information of the interface to which the interface data belongs, and the corresponding equipment status information.

[0086] The method of the embodiment of the present invention, when the interface connection type is an Ethernet interface connection type, can determine the data type of the interface data by performing TCP protocol parsing on the interface data, thereby effectively and accurately executing the corresponding Task flow according to the data type of the interface data, which is beneficial to ensuring the accuracy and effectiveness of the universal interface in processing the interface data.

[0087] Step 130, calling the task flow corresponding to the data type of the interface data, and loading the target configuration information of the interface function level information in the task flow; the interface function level information is determined based on various types of interface function information of the interface to which the interface data belongs in each track line;

[0088] In this step, the target configuration information described in the embodiment of the present invention refers to the configuration information of the interface function level information corresponding to the interface data, which can be the unified configuration information by default within the system, or it can be determined according to the track line, that is, different interface types of different track lines have their own configuration information.

[0089] Among them, the interface function level information is determined based on various types of interface function information of the interface to which the interface data in each track line belongs, including necessary function information, main function information and secondary function information. Its implementation process is the same as the process of obtaining the interface function level information mentioned above, which will not be repeated here.

[0090] Furthermore, after determining the data type of the interface data, the Task flow corresponding to the data type of the interface data can be called, and the target configuration information of the interface function level information in the task flow can be loaded, that is, the configuration information of the necessary function information, main function information and secondary function information in the corresponding configuration can be loaded.

[0091] Step 140: acquiring target interface data from the interface data based on the target configuration information of the interface function level information.

[0092] In some embodiments, the target interface data described in the embodiments of the present invention refers to interface function information obtained from interface data containing all types of interface function information based on target configuration information, that is, based on the configuration information of necessary function information, main function information and secondary function information corresponding to the interface to which the interface data belongs.

[0093] In an embodiment of the present invention, the interface function level information can be configured by using 1 and 0 to represent the on and off of the function switch respectively. For example, if the necessary function information is configured as 1, the main function information is configured as 1, and the secondary function information is configured as 0, it means that the function switches corresponding to the necessary function information and the main function information are respectively on, while the function switch corresponding to the secondary function information is off. Thus, data of various types of interface function information in the necessary function information and data of various types of interface function information in the main function information can be obtained.

[0094] For example, in track line 1, the PA system interface functions include sending to the departure status; receiving internal prediction information; taking the platform as the unit, each platform only needs to send the destination number and train arrival information fields; in track line 2, the PA system interface function can be based on track line 1, and the single platform protocol can add train service number and train car group number fields in addition to the destination number and train arrival information fields to meet the communication needs of track line 2;

[0095] In this embodiment, the interface data includes various types of interface function information of the PA system interface. For the PA system interface, the necessary function information configured is to send to the departure status; receive internal prediction information; take the platform as the unit, each platform only needs to send the destination number and train arrival information field, and the main function information is the newly added train service number and train car number field, then the target configuration information of the interface function level information in track line 1 is set to the necessary function information as 1, and the main function information as 0; the target configuration information of the interface function level information in track line 2 is set to the necessary function information as 1, and the main function information as 1. Therefore, based on the target configuration information of the interface function level information, the target interface data is obtained from the interface data, that is, the data of the interface function information corresponding to the necessary function information in the corresponding PA interface can be received on track line 1 through the universal interface, and the data of the interface function information corresponding to the necessary function information and the main function information in the corresponding PA interface can be received on track line 2 through the universal interface.

[0096] The interface data processing method provided by the embodiment of the present invention receives interface data, performs protocol analysis on the interface data, and determines its data type; determines the interface function level information corresponding to the data type interface according to the level classification of various types of interface function information of the interface to which the interface data belongs in each track line, and loads the target configuration information of the interface function level information corresponding to the data type interface by calling the preset task flow corresponding to the data type of the interface data, and then obtains the target interface data from the interface data based on the target configuration information of the interface function level information, so that through configuration design, the purpose of effectively switching different software functions for different interface data of different lines is achieved, and a universal interface function is realized, which can effectively avoid the redundancy problem caused by the variety of interface software, and greatly improve the efficiency of development, later maintenance and management of interface software in the ATS signal system.

[0097] In some embodiments, the interface data includes external interface data, and after obtaining target interface data from the interface data based on the target configuration information of the interface function level information, further includes:

[0098] Perform protocol conversion on the target interface data to obtain the target internal protocol data;

[0099] Send the target internal protocol data to the internal Redis storage system for storage.

[0100] Specifically, in this embodiment, by adopting the Redis storage system, it is possible to store multiple types of interface data based on the data storage structure in Redis that is compatible with multiple data types, and implement high-speed interface data access services.

[0101] In an embodiment of the present invention, when the target interface data is obtained as external interface data, after obtaining the target interface data from the interface data, during the Task task flow processing, the target interface data is subjected to protocol conversion to obtain the target internal protocol data, and then the target internal protocol data is sent to the internal Redis storage system for direct reading and storage, thereby realizing high-speed access to interface data of different professions.

[0102] The method of the embodiment of the present invention, when the interface data is external interface data, converts the target interface data into target internal protocol data, and after realizing the universal interface function, further realizes the local Redis storage system to read and store the processed external interface data for acquisition and use by the internal business system.

[0103] Figure 3 is a schematic diagram of the system structure of the interface data processing method provided by an embodiment of the present invention, such as Figure 3As shown, the interface software function in the embodiment of the present invention is a universal interface design, and data information of different professions are all processed through the universal interface, such as the interface data of the first profession, the interface data of the second profession, ..., and the interface data of the nth profession are all transmitted to the universal interface. Based on the interface data processing method based on the universal interface in the above embodiment of the present invention, the interface data of each profession is adaptively processed to obtain the target interface data of each profession. Then, the universal interface converts the target interface data into the target internal protocol data, so as to store the target internal protocol data in the local storage system for the local business system to obtain and use.

[0104] In some embodiments, the interface data includes internal interface data, and after obtaining target interface data from the interface data based on the target configuration information of the interface function level information, further includes:

[0105] Perform protocol conversion on target interface data to obtain target external protocol data;

[0106] Send the target external protocol data to the corresponding external interface system.

[0107] In this embodiment, the target external protocol data described in the embodiment of the present invention is used to forward interface data to a corresponding external interface system. It can be understood that the target external protocol data can be directly received by the external interface system.

[0108] In this embodiment, similarly, when the interface data is internal interface data, after obtaining the target interface data from the interface data, during the Task task flow processing, the target interface data is subjected to protocol conversion to obtain the target external protocol data, and then the target external protocol data is sent to the corresponding external interface system to realize data interaction between the local universal interface system and the corresponding external interface system.

[0109] The method of the embodiment of the present invention, when the interface data is internal interface data, obtains target external protocol data by performing protocol conversion on the target interface data during Task task flow processing, so that the external interface system can read it directly, so that the external interface system does not need to perform data format processing on the received data, which is beneficial to improving the data interaction efficiency between the local general interface system and the external interface system.

[0110] The interface data processing device provided by the present invention is described below. The interface data processing device described below and the interface data processing method described above can be referenced to each other.

[0111] Figure 4 FIG. 1 is a schematic diagram of the structure of an interface data processing device provided in an embodiment of the present invention. Figure 4 As shown, including:

[0112] Receiving module 410, used for receiving interface data;

[0113] The parsing module 420 is used to perform protocol parsing on the interface data to obtain the data type of the interface data;

[0114] A calling module 430 is used to call a target task flow corresponding to the data type of the interface data, and load target configuration information of interface function level information in the target task flow; the interface function level information is determined based on various types of interface function information of the interface to which the interface data belongs in each track line;

[0115] The acquisition module 440 is used to acquire target interface data from the interface data based on the target configuration information of the interface function level information.

[0116] The interface data processing device described in this embodiment can be used to execute the above-mentioned interface data processing method embodiment. Its principles and technical effects are similar and will not be repeated here.

[0117] The interface data processing device provided by the embodiment of the present invention receives interface data, performs protocol analysis on the interface data, and determines the data type thereof; determines the interface function level information corresponding to the interface of the data type by classifying various types of interface function information of the interface to which the interface data belongs in each track line, and loads the target configuration information of the interface function level information corresponding to the interface of the data type by calling the preset task flow corresponding to the data type of the interface data, and then obtains the target interface data from the interface data based on the target configuration information of the interface function level information, so as to achieve the purpose of effectively switching different software functions for different interface data of different lines through configuration design, realize universal interface functions, effectively avoid the redundancy problem caused by the variety of interface software, and greatly improve the efficiency of development, later maintenance and management of interface software in the ATS signal system.

[0118] Figure 5 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention, such as Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the interface data processing method provided by the above methods, the method comprising: receiving interface data; performing protocol parsing on the interface data to obtain the data type of the interface data; calling the task flow corresponding to the data type of the interface data, and loading the target configuration information of the interface function level information in the task flow; the interface function level information is determined based on various types of interface function information of the interface to which the interface data belongs in each track line; based on the target configuration information of the interface function level information, obtaining the target interface data from the interface data.

[0119] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0120] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the interface data processing method provided by the above-mentioned methods, and the method includes: receiving interface data; performing protocol parsing on the interface data to obtain the data type of the interface data; calling the task flow corresponding to the data type of the interface data, and loading the target configuration information of the interface function level information in the task flow; the interface function level information is determined based on various types of interface function information of the interface to which the interface data belongs in each track line; based on the target configuration information of the interface function level information, obtaining the target interface data from the interface data.

[0121] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the interface data processing method provided by the above-mentioned methods, the method comprising: receiving interface data; performing protocol parsing on the interface data to obtain a data type of the interface data; calling a task flow corresponding to the data type of the interface data, and loading target configuration information of the interface function level information in the task flow; the interface function level information is determined based on various types of interface function information of the interface to which the interface data belongs in each track line; and obtaining target interface data from the interface data based on the target configuration information of the interface function level information.

[0122] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An interface data processing method, characterized in that: Applicable to general purpose interfaces, including: Receive interface data; Performing protocol analysis on the interface data to obtain a data type of the interface data; Calling the task flow corresponding to the data type of the interface data, and loading the target configuration information of the interface function level information in the task flow; the interface function level information is determined based on various types of interface function information of the interface to which the interface data belongs in each track line; acquiring target interface data from the interface data based on the target configuration information of the interface function level information; Before receiving the interface data, the method further includes: Obtaining various types of interface function information of the interface to which the interface data in each track line belongs; Based on the number of track lines corresponding to each type of interface function information and the number of all track lines, the various types of interface function information are graded to obtain the interface function grade information.

2. The interface data processing method according to claim 1, characterized in that: The interface data includes external interface data, and after the target configuration information based on the interface function level information is used to obtain target interface data from the interface data, the following further includes: Performing protocol conversion on the target interface data to obtain target internal protocol data; The target internal protocol data is sent to an internal Redis storage system for storage.

3. The interface data processing method according to claim 1, characterized in that: The interface data includes internal interface data, and after the target configuration information based on the interface function level information is used to obtain target interface data from the interface data, the following further includes: Performing protocol conversion on the target interface data to obtain target external protocol data; The target external protocol data is sent to the corresponding external interface system.

4. The interface data processing method according to claim 1, characterized in that: Before receiving the interface data, the method further includes: Determine the interface connection type of the interface to which the interface data belongs; According to the interface connection type corresponding to the interface data, a communication connection is established with a target module that sends the interface data to receive the interface data.

5. The interface data processing method according to claim 4, characterized in that: The interface connection type includes an Ethernet interface connection, and the performing protocol parsing on the interface data to obtain the data type of the interface data includes: Performing Ethernet interface protocol analysis on the interface data to obtain application layer data corresponding to the interface data; The data type of the interface data is obtained according to the application layer data.

6. An interface data processing device, characterized in that: include: A receiving module, used for receiving interface data; A parsing module, used for performing protocol parsing on the interface data to obtain a data type of the interface data; A calling module, used for calling a target task flow corresponding to the data type of the interface data, and loading target configuration information of the interface function level information in the target task flow; The interface function level information is determined based on various types of interface function information of the interface to which the interface data in each track line belongs; An acquisition module, configured to acquire target interface data from the interface data based on target configuration information of the interface function level information; The calling module is also used to obtain various types of interface function information of the interface to which the interface data in each track line belongs; based on the number of track lines corresponding to the various types of interface function information and the number of all track lines, the various types of interface function information are graded to obtain the interface function grade information.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the interface data processing method according to any one of claims 1 to 5 is implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the interface data processing method according to any one of claims 1 to 5 is implemented.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the interface data processing method according to any one of claims 1 to 5 is implemented.