Data processing method, system and equipment and storage medium

By introducing data routing modules in the AutoSAR system, the problem of high coupling between diagnostic communication management units and Internet protocol diagnostic units and the non -standardized interfaces have been solved, and the system's decoupling and interface standardization are realized, which improves the adaptability of the system. And flexibility.

CN119383120APending Publication Date: 2025-01-28CHINA AUTOMOTIVE INNOVATION CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411443433.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In the AUTOSAR system, the coupling between the diagnostic communication management unit and the Ethernet-based Internet protocol diagnostic unit is too strong, and the standardized communication interface definition is lacking, resulting in large differences in the implementation of different suppliers, and the diagnostic management module is added Dependence of protocol diagnostic module.

Method used

The data routing module is introduced between the diagnostic management module and the protocol diagnostic module, and the data transmission is transmitted using its standardized communication interface definition to realize the decoupling and interface standardization between the diagnostic management module and the protocol diagnostic module.

Benefits of technology

Effectively reduce the coupling between the diagnostic management module and the protocol diagnostic module, improve the adaptability and flexibility of the system, and reduce the dependence of the diagnostic management module on the protocol diagnostic module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383120A_ABST
    Figure CN119383120A_ABST
Patent Text Reader

Abstract

The invention relates to a data processing method, system and device and a storage medium, and is applied to a data processing system, the data processing system comprises a data routing module, a diagnosis management module and a protocol diagnosis module, under the condition that the data routing module receives diagnosis request data, a first diagnosis interface in the diagnosis management module is called, and the diagnosis request data is sent to the diagnosis management module; the diagnosis management module copies the diagnosis request data into the diagnosis management module; under the condition that the diagnosis management module receives the diagnosis response data, calling a first routing interface in a data routing module to enable the data routing module to copy the diagnosis response data into the data routing module; and the data routing module calls a first protocol interface in the protocol diagnosis module, so that the protocol diagnosis module copies the diagnosis response data into the protocol diagnosis module and feeds back the execution result to the data routing module and the diagnosis management module in sequence, and thus the dependency between the diagnosis management module and the protocol diagnosis module can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data processing method, system, device and storage medium. Background Art

[0002] In the AUTomotive Open System Architecture (AUTOSAR), there is an adaptive diagnostic system including a diagnostic communication management unit and an Ethernet-based Internet Protocol diagnostic unit. The adaptive diagnostic system is often suitable for electronic control units with high performance, high communication capacity, and large computing power, so as to provide an Ethernet-based vehicle fault diagnosis communication system to complete the vehicle fault monitoring function.

[0003] However, the diagnostic communication management unit and the Ethernet-based Internet Protocol diagnostic unit often interact directly in order to be suitable for fault diagnosis of electronic control units with high performance, high communication capacity, and large computing power. As a result, the coupling between the diagnostic communication management unit and the Ethernet-based Internet Protocol diagnostic unit is too strong, and there is no standardized definition of the communication interface between the diagnostic communication management unit and the Ethernet-based Internet Protocol diagnostic unit in the adaptive diagnostic system. Furthermore, when different suppliers implement the adaptive diagnostic system, the communication interface will be very different, which makes the diagnostic communication management unit highly dependent on the Ethernet-based Internet Protocol diagnostic unit. Summary of the invention

[0004] In order to solve the above-mentioned technical problems, the embodiments of the present application provide a technical solution for a data processing method, system, device and storage medium. That is, the present application sets a data routing module between the diagnostic management module and the protocol diagnostic module to utilize the communication interface definition in the data routing module to respectively transmit data with the protocol diagnostic module and the diagnostic management module, thereby standardizing and decoupling the communication interface between the diagnostic management module and the protocol diagnostic module, thereby solving the technical problems of high coupling between the diagnostic management module and the protocol diagnostic module, imperfect adaptive specifications, and strong dependence of the diagnostic management module on the protocol diagnostic module.

[0005] On the one hand, an embodiment of the present application provides a data processing method, which is applied to a data processing system, wherein the data processing system includes a data routing module, a diagnosis management module, and a protocol diagnosis module, and the method includes:

[0006] The protocol diagnosis module is used to send diagnosis request data to the data routing module, and when the data routing module receives the diagnosis request data, call the first diagnosis interface in the diagnosis management module so that the diagnosis management module copies the diagnosis request data to the diagnosis management module;

[0007] The diagnosis management module transmits the received diagnosis request data to the diagnosis control module, so that the diagnosis control module feeds back the diagnosis response data corresponding to the diagnosis request data to the diagnosis management module;

[0008] In the case where the diagnosis management module receives the diagnosis response data, calling the first routing interface in the data routing module so that the data routing module copies the diagnosis response data to the data routing module;

[0009] The data routing module calls the first protocol interface in the protocol diagnosis module, so that the protocol diagnosis module copies the diagnosis response data to the protocol diagnosis module, and feeds back the execution result to the data routing module and the diagnosis management module in turn.

[0010] Further, when the data routing module receives the diagnosis request data, calling the first diagnosis interface in the diagnosis management module so that the diagnosis management module copies the diagnosis request data to the diagnosis management module includes:

[0011] When the data routing module receives the diagnostic request data, the data routing module sends the first routing cache address storing the diagnostic request data to the diagnostic management module, and calls the first diagnostic interface in the diagnostic management module so that the diagnostic management module copies the diagnostic request data in the first routing cache address to the first diagnostic cache address in the diagnostic management module.

[0012] Further, when the diagnosis management module receives the diagnosis response data, calling the first routing interface in the data routing module so that the data routing module copies the diagnosis response data to the data routing module includes:

[0013] When the diagnostic management module receives the diagnostic response data, the diagnostic management module sends a second diagnostic cache address storing the diagnostic response data to the diagnostic management module, and calls a first routing interface in the data routing module, so that the data routing module copies the diagnostic response data in the second diagnostic cache address to a second routing cache address in the data routing module, wherein the second routing cache address matches the first routing cache address.

[0014] Further, the data routing module calls the first protocol interface in the protocol diagnosis module so that the protocol diagnosis module copies the diagnosis response data to the protocol diagnosis module, and sequentially feeds back the execution results to the data routing module and the diagnosis management module, including:

[0015] The data routing module sends the second routing cache address storing the diagnostic response data to the protocol diagnostic module, and calls the first protocol interface in the protocol diagnostic module, so that the protocol diagnostic module copies the diagnostic response data in the second routing cache address to the first protocol cache address in the protocol diagnostic module, and feeds back the execution result to the data routing module and the diagnostic management module in turn, wherein the first protocol cache address matches the second protocol cache address in the protocol diagnostic module for storing the diagnostic request data corresponding to the diagnostic response data.

[0016] Furthermore, the protocol diagnosis module feeds back execution results to the data routing module and the diagnosis management module in sequence, including:

[0017] In the case where the protocol diagnosis module receives the instruction for completing the data transmission of the diagnosis response sent by the data routing module, the protocol diagnosis module calls back the second routing interface in the data routing module so that the protocol diagnosis module feeds back a first execution result to the data routing module, wherein the first execution result indicates that the data routing module has transmitted all the diagnosis response data to the protocol diagnosis module;

[0018] When the data routing module receives the first execution result, the data routing module calls back the second diagnostic interface in the diagnostic management module so that the data routing module feeds back the second execution result to the diagnostic management module, and the second execution result indicates that all the diagnostic response data have completed the transmission between the diagnostic management module, the data routing module and the protocol diagnostic module.

[0019] Furthermore, before the protocol diagnosis module sends the diagnosis request data to the data routing module, the method further includes:

[0020] In the case where the protocol diagnosis module receives the diagnosis request data sent by the diagnosis device, calling the third routing interface in the data routing module so that the data routing module obtains the data capacity corresponding to the diagnosis request data in the protocol diagnosis module, and compares the cache capacity in the data routing module with the data capacity corresponding to the diagnosis request data;

[0021] In a case where the cache capacity is greater than the data capacity, the data routing module feeds back a third execution result to the protocol diagnosis module, where the third execution result indicates that the data routing module can receive the diagnosis request data.

[0022] Furthermore, before the data routing module calls the first diagnostic interface in the diagnostic management module, the method further includes:

[0023] The protocol diagnosis module sends the second protocol cache address storing the diagnosis request data to the data routing module, and calls the fourth routing interface in the data routing module, so that the data routing module copies the diagnosis request data in the second protocol cache address to the first routing cache address in the data routing module, and feeds back a fourth execution result to the protocol diagnosis module, wherein the fourth execution result indicates that the copying of the diagnosis request data is completed.

[0024] On the other hand, an embodiment of the present application provides a data processing system, wherein the data processing system includes a data routing module, a diagnosis management module and a protocol diagnosis module;

[0025] The protocol diagnosis module is used to send diagnosis request data to the data routing module; copy the diagnosis response data to the protocol diagnosis module, and feed back the execution results to the data routing module and the diagnosis management module in turn;

[0026] The data routing module is used to receive the diagnostic request data, call the first diagnostic interface in the diagnostic management module; copy the diagnostic response data to the data routing module; call the first protocol interface in the protocol diagnostic module;

[0027] The diagnostic management module is used to copy the diagnostic request data to the diagnostic management module; transmit the received diagnostic request data to the diagnostic control module; receive diagnostic response data corresponding to the diagnostic request data fed back by the diagnostic control module; and call the first routing interface in the data routing module.

[0028] On the other hand, a data processing device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data processing method as described above.

[0029] On the other hand, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the data processing method as described above.

[0030] Implementing this application has the following beneficial effects:

[0031] The present application sets a data routing module between the diagnostic management module and the protocol diagnostic module to utilize the communication interface definition in the data routing module to respectively transmit data with the protocol diagnostic module and the diagnostic management module, thereby standardizing and decoupling the communication interface between the diagnostic management module and the protocol diagnostic module, thereby solving the technical problems of high coupling between the diagnostic management module and the protocol diagnostic module, imperfect adaptive specifications, and strong dependence of the diagnostic management module on the protocol diagnostic module. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0033] Figure 1 A schematic diagram of the structure of a data processing system provided in an embodiment of the present application;

[0034] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;

[0035] Figure 3 A schematic diagram of a flow chart of a third execution result determination method provided in an embodiment of the present application;

[0036] Figure 4 A flowchart of a method for determining an execution result provided in an embodiment of the present application;

[0037] Figure 5 A schematic diagram of the structure of a server provided in an embodiment of the present application;

[0038] Among them, the corresponding reference numerals are: 1-diagnosis control module; 2-diagnosis management module; 3-data routing module; 4-protocol diagnosis module; 5-diagnosis equipment. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0041] See also Figure 1 , which is a structural diagram of a data processing system provided in an embodiment of the present application, such as Figure 1 As shown, the data processing system includes a data routing module 3, a diagnostic management module 2 and a protocol diagnostic module 4, wherein data can be transmitted between the protocol diagnostic module 4 and the data routing module 3, and between the data routing module 3 and the diagnostic management module 2, thereby realizing data interaction among the data routing module 3, the diagnostic management module 2 and the protocol diagnostic module 4.

[0042] In the embodiment of the present application, there are standardized communication interface definitions between the data routing module 3 and the protocol diagnosis module 4, as well as between the data routing module 3 and the diagnosis management module 2, so that the data routing module 3 can be used as a data transmission hub between the protocol diagnosis module 4 and the diagnosis management module 2, thereby standardizing and decoupling the communication interface between the diagnosis management module 2 and the protocol diagnosis module 4, reducing the dependence of the diagnosis management module 2 on the protocol diagnosis module 4, so that the diagnosis management module 2 can exist independently of the underlying communication protocol in the protocol diagnosis module 4.

[0043] In a specific embodiment, the data routing module 3 can interact with the protocol diagnosis module 4 downwardly. Specifically, the data routing module 3 can receive the diagnosis request data transmitted by the protocol diagnosis module 4 or transmit the diagnosis response data to the protocol diagnosis module 4. Further, the data routing module 3 can interact with the diagnosis management module 2 upwardly. Specifically, the data routing module 3 can transmit the diagnosis request data to the diagnosis management module 2 or receive the diagnosis response data transmitted by the diagnosis management module 2. Then, by setting a data routing module 3 with a standardized communication interface definition between the protocol diagnosis module 4 and the diagnosis management module 2, the technical problems of high coupling between the diagnosis management module 2 and the protocol diagnosis module 4, imperfect adaptive specifications, and strong dependence of the diagnosis management module 2 on the protocol diagnosis module 4 can be solved.

[0044] It should be noted that the data processing system can be an adaptive diagnostic system. However, in the prior art, the protocol diagnostic module 4 and the diagnostic management module 2 often interact directly to be suitable for fault diagnosis of electronic control units with high performance, high communication capacity, and large computing power. As a result, the coupling between the protocol diagnostic module 4 and the diagnostic management module 2 is too strong, and there is no standardized definition of the communication interface between the protocol diagnostic module 4 and the diagnostic management module 2 in the adaptive diagnostic system. Furthermore, when different suppliers implement the adaptive diagnostic system, the communication interfaces vary greatly, which makes the diagnostic management module 2 highly dependent on the protocol diagnostic module 4.

[0045] In actual applications, the protocol diagnosis module 4 also exchanges data with the diagnostic device 5 downward to receive the diagnostic request data transmitted by the diagnostic device 5, and the diagnosis management module 2 also exchanges data with the diagnostic control module 1 upward to receive the diagnostic response data corresponding to the diagnostic request data transmitted by the diagnostic control module 1.

[0046] In addition, it should be noted that Figure 1 What is shown is merely a schematic diagram of the structure of a data processing system. The data processing system may include more or fewer nodes, and this application does not impose any limitation thereto.

[0047] Figure 2 The flowchart of a data processing method provided in the embodiment of the present application is provided in this specification. The method operation steps described in the embodiment or flowchart are provided, but more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. In actual applications, the method can be executed in the order or in parallel according to the embodiment or the accompanying drawings. Specifically, Figure 2As shown, the data processing method is applied to a data processing system, the data processing system includes a data routing module, a diagnosis management module and a protocol diagnosis module, and may include the following steps:

[0048] S201: The protocol diagnosis module is used to send diagnosis request data to the data routing module. When the data routing module receives the diagnosis request data, it calls the first diagnosis interface in the diagnosis management module so that the diagnosis management module copies the diagnosis request data to the diagnosis management module.

[0049] In the embodiment of the present application, the data routing module is responsible for receiving data, routing data, splitting data, and merging data between different communication networks, and can route communication data from different modules to corresponding modules. Specifically, by setting the data routing module between the protocol diagnosis module and the diagnosis management module, the data routing module can be used as a data transmission hub between the protocol diagnosis module and the diagnosis management module, so as to route the communication data transmitted from the protocol diagnosis module to the diagnosis management module, and route the communication data transmitted from the diagnosis management module to the protocol diagnosis module, thereby solving the technical problems of high coupling between the diagnosis management module and the protocol diagnosis module, imperfect adaptive specifications, and strong dependence of the diagnosis management module on the protocol diagnosis module.

[0050] In a specific embodiment, there are standardized communication interface definitions between the data routing module and the protocol diagnosis module, and between the data routing module and the diagnosis management module, and the standardized communication interface definitions between the data routing module and the protocol diagnosis module and between the data routing module and the diagnosis management module are respectively integrated into the data routing module, the diagnosis management module and the protocol diagnosis module according to the service call sequence, so that the data routing module, the diagnosis management module and the protocol diagnosis module can exchange data according to the service call sequence, thereby standardizing and decoupling the communication interface between the diagnosis management module and the protocol diagnosis module, reducing the dependence of the diagnosis management module on the protocol diagnosis module, so that the diagnosis management module can exist independently of the underlying communication protocol in the protocol diagnosis module.

[0051] In actual applications, the data routing module can interact with the protocol diagnosis module downward. Specifically, the data routing module can route the diagnosis request data transmitted by the protocol diagnosis module to the diagnosis management module, or route the diagnosis response data transmitted by the diagnosis management module to the protocol diagnosis module. Furthermore, the data routing module can interact with the diagnosis management module upward. Specifically, the data routing module can route the received diagnosis request data to the diagnosis management module, or route the diagnosis response data transmitted by the diagnosis management module to the protocol diagnosis module. Furthermore, by setting a data routing module with a standardized communication interface definition between the protocol diagnosis module and the diagnosis management module, the technical problems of high coupling between the diagnosis management module and the protocol diagnosis module, imperfect adaptive specifications, and strong dependence of the diagnosis management module on the protocol diagnosis module can be solved.

[0052] In a specific embodiment, when the data routing module receives diagnostic request data transmitted by the protocol diagnostic module, the first diagnostic interface in the diagnostic management module can be called to execute the internal implementation function corresponding to the first diagnostic interface. Specifically, the function of the internal implementation function corresponding to the first diagnostic interface is to copy the diagnostic request data stored in the data routing module to the diagnostic management module, and then the data routing module can be used to route the diagnostic request data transmitted by the protocol diagnostic module to the diagnostic management module to realize the transmission process of the diagnostic request data between the protocol diagnostic module and the diagnostic management module.

[0053] In an optional implementation, step S201 may include:

[0054] S2011: When the data routing module receives the diagnostic request data, the data routing module sends the first routing cache address storing the diagnostic request data to the diagnostic management module, and calls the first diagnostic interface in the diagnostic management module so that the diagnostic management module copies the diagnostic request data in the first routing cache address to the first diagnostic cache address in the diagnostic management module.

[0055] In an embodiment of the present application, the function of the internal implementation function corresponding to the first diagnostic interface in the diagnostic management module is to copy the diagnostic request data stored in the data routing module to the diagnostic management module, and then when the data routing module receives the diagnostic request data, the data routing module can send the first routing cache address storing the diagnostic request data to the diagnostic management module, so that when the first diagnostic interface in the diagnostic management module is called, the internal implementation function corresponding to the first diagnostic interface in the diagnostic management module can directly copy the diagnostic request data in the first routing cache address to the first diagnostic cache address in the diagnostic management module, thereby avoiding the situation where the coupling between the diagnostic management module and the protocol diagnostic module is high and the normal transmission of the diagnostic request data cannot be achieved.

[0056] In actual applications, the communication interface definition corresponding to the first diagnostic interface also includes the identifier of the current diagnostic request data source module (current protocol diagnostic module), the TCP connection where the current diagnostic request data source module (current protocol diagnostic module) is located, the identifier of the current diagnostic request data and the length data of the current diagnostic request data, thereby ensuring the reliability and efficiency of the diagnostic communication.

[0057] In a specific embodiment, Figure 3 As shown, it is a flow chart of the third execution result determination method provided in an embodiment of the present application. Specifically, before step S201, the method further includes:

[0058] S2012: When the protocol diagnosis module receives the diagnosis request data sent by the diagnosis device, calling the third routing interface in the data routing module, so that the data routing module obtains the data capacity corresponding to the diagnosis request data in the protocol diagnosis module, and compares the cache capacity in the data routing module with the data capacity corresponding to the diagnosis request data;

[0059] S2013: When the cache capacity is greater than the data capacity, the data routing module feeds back a third execution result to the protocol diagnosis module, and the third execution result indicates that the data routing module can receive the diagnosis request data.

[0060] In an embodiment of the present application, the protocol diagnosis module also exchanges data with the diagnostic device downward so that the protocol diagnosis module receives the diagnostic request data transmitted by the diagnostic device. Then, when the protocol diagnosis module receives the diagnostic request data sent by the diagnostic device, the protocol diagnosis module can call the third routing interface in the data routing module to execute the internal implementation function corresponding to the third routing interface. Specifically, the function of the internal implementation function corresponding to the third routing interface is to notify the data routing module to perform an initialization operation for receiving the diagnostic request data, wherein the initialization operation is that the data routing module first obtains the data capacity corresponding to the diagnostic request data to be transmitted in the protocol diagnosis module, and compares the cache capacity in the data routing module with the data capacity corresponding to the diagnostic request data. Then, when the cache capacity is greater than the data capacity, the data routing module feeds back to the protocol diagnosis module a third execution result indicating that the data routing module can receive the diagnostic request data, so as to ensure that the data routing module can carry all the diagnostic request data, thereby improving the accuracy of data transmission.

[0061] Furthermore, when the protocol diagnosis module receives the third execution result fed back by the data routing module, it indicates that the diagnostic request data in the protocol diagnosis module can be transmitted to the data routing module. Then, the protocol diagnosis module calls the fourth routing interface in the data routing module to execute the internal implementation function corresponding to the fourth routing interface. Specifically, the function of the internal implementation function corresponding to the fourth routing interface is to copy the diagnostic request data stored in the protocol diagnosis module to the data routing module, thereby realizing the transmission of the diagnostic request data between the protocol diagnosis module and the data routing module.

[0062] In an optional implementation, before executing the data routing module to call the first diagnostic interface in the diagnostic management module, the method further includes:

[0063] S2014: The protocol diagnosis module sends the second protocol cache address storing the diagnosis request data to the data routing module, and calls the fourth routing interface in the data routing module, so that the data routing module copies the diagnosis request data in the second protocol cache address to the first routing cache address in the data routing module, and feeds back the fourth execution result to the protocol diagnosis module, and the fourth execution result indicates that the copying of the diagnosis request data is completed.

[0064] In an embodiment of the present application, the function of the internal implementation function corresponding to the fourth routing interface in the data routing module is to copy the diagnostic request data stored in the protocol diagnosis module to the data routing module. Then, when the protocol diagnosis module receives the third execution result fed back by the data routing module, the protocol diagnosis module can send the second protocol cache address storing the diagnostic request data to the data routing module, so that when the fourth routing interface in the data routing module is called, the internal implementation function corresponding to the fourth routing interface in the data routing module can directly copy the diagnostic request data in the second protocol cache address to the first routing cache address in the data routing module, thereby avoiding the situation where the coupling between the diagnostic management module and the protocol diagnosis module is high and the normal transmission of the diagnostic request data cannot be achieved.

[0065] Furthermore, when the data routing module copies the diagnostic request data in the second protocol cache address to the first routing cache address in the data routing module, the data routing module feeds back a fourth execution result indicating completion of the diagnostic request data copy to the protocol diagnostic module, thereby improving the accuracy of data transmission.

[0066] In actual applications, the communication interface definition corresponding to the fourth routing interface also includes the identifier of the current diagnostic request data source module (current data routing module), the TCP connection where the current diagnostic request data source module (current data routing module) is located, the identifier of the current diagnostic request data and the length data of the current diagnostic request data, etc., thereby ensuring the reliability and efficiency of the diagnostic communication.

[0067] S202: The diagnosis management module transmits the received diagnosis request data to the diagnosis control module, so that the diagnosis control module feeds back diagnosis response data corresponding to the diagnosis request data to the diagnosis management module.

[0068] Specifically, the diagnostic management module also exchanges data with the diagnostic control module, and the diagnostic management module can transmit the diagnostic request data to the diagnostic control module. Therefore, the diagnostic control module can analyze and process the diagnostic request data, generate diagnostic response data corresponding to the diagnostic request data, and feed back the diagnostic response data corresponding to the diagnostic request data to the diagnostic management module to ensure the integrity of the communication data.

[0069] S203: When the diagnosis management module receives the diagnosis response data, the first routing interface in the data routing module is called to enable the data routing module to copy the diagnosis response data to the data routing module.

[0070] In an embodiment of the present application, the function of the internal implementation function corresponding to the first routing interface in the data routing module is to copy the diagnostic response data stored in the diagnostic management module to the data routing module. Then, when the diagnostic management module receives the diagnostic response data, the first routing interface in the data routing module can be called to execute the internal implementation function corresponding to the first routing interface. Then, the data routing module can copy the diagnostic response data stored in the diagnostic management module to the data routing module to realize the transmission process of the diagnostic response data between the diagnostic management module and the data routing module.

[0071] In an optional implementation, step S203 may include:

[0072] S2031: When the diagnostic management module receives the diagnostic response data, the diagnostic management module sends the second diagnostic cache address storing the diagnostic response data to the diagnostic management module, and calls the first routing interface in the data routing module, so that the data routing module copies the diagnostic response data in the second diagnostic cache address to the second routing cache address in the data routing module, wherein the second routing cache address matches the first routing cache address.

[0073] In an embodiment of the present application, when the diagnostic management module receives diagnostic response data, the diagnostic management module may send the second diagnostic cache address storing the diagnostic response data to the diagnostic management module, so that when the first routing interface in the data routing module is called, the internal implementation function corresponding to the first routing interface in the data routing module can directly copy the diagnostic response data in the second diagnostic cache address to the second routing cache address in the data routing module, thereby avoiding the situation where the coupling between the diagnostic management module and the protocol diagnostic module is high and the normal transmission of the diagnostic response data cannot be achieved.

[0074] Among them, the second routing cache address matches the first routing cache address, which can be understood as, the diagnostic response data stored in the second routing cache address in the data routing module and the diagnostic request data stored in the first routing cache address in the data routing module belong to a group of data, that is, the diagnostic response data stored in the second routing cache address is a feedback response to the diagnostic request data stored in the first routing cache address, thereby ensuring the stability and reliability of data transmission.

[0075] In actual applications, the communication interface definition corresponding to the first routing interface also includes the identifier of the current diagnostic response data source module (current diagnostic management module), the TCP connection where the current diagnostic response data source module (current diagnostic management module) is located, the identifier of the current diagnostic response data and the length data of the current diagnostic response data, etc., thereby ensuring the reliability and efficiency of the diagnostic communication.

[0076] In a specific embodiment, before the diagnostic management module calls the first routing interface in the data routing module, the fifth routing interface in the data routing module is called to notify the data routing module to perform initialization operations for receiving diagnostic response data. After the data routing module is initialized, the data routing module feeds back to the diagnostic management module a fifth execution result indicating that the data routing module can receive diagnostic response data, thereby improving the accuracy of data transmission.

[0077] Furthermore, when the diagnosis management module receives the fifth execution result fed back by the data routing module, it indicates that the diagnosis response data in the diagnosis management module can be transmitted to the data routing module. Then, the diagnosis management module calls the first routing interface in the data routing module to execute the internal implementation function corresponding to the first routing interface, thereby realizing the transmission of the diagnosis response data between the diagnosis management module and the data routing module.

[0078] S204: the data routing module calls the first protocol interface in the protocol diagnosis module, so that the protocol diagnosis module copies the diagnosis response data to the protocol diagnosis module, and feeds back the execution result to the data routing module and the diagnosis management module in turn.

[0079] In an embodiment of the present application, when the data routing module completes copying the diagnostic response data in the diagnostic management module, it generates an execution result for completing the reception of the diagnostic response data, so as to inform the diagnostic management module that the current reception of the diagnostic response data is completed. Then, when the data routing module generates an execution result for completing the reception of the diagnostic response data, the data routing module can call the first protocol interface in the protocol diagnosis module to execute the internal implementation function corresponding to the first protocol interface. Specifically, the function of the internal implementation function corresponding to the first protocol interface is to copy the diagnostic response data in the data routing module to the protocol diagnosis module. Then, the data routing module can be used to route the diagnostic response data transmitted by the diagnostic management module to the protocol diagnosis module, so as to realize the transmission process of the diagnostic response data between the protocol diagnosis module and the diagnostic management module.

[0080] Furthermore, after the protocol diagnosis module copies the diagnosis response data to the protocol diagnosis module, the protocol diagnosis module feeds back the execution result to the data routing module and the diagnosis management module in turn, so as to complete the closed loop of data transmission.

[0081] In an optional implementation, step S204 may include:

[0082] S2041: The data routing module sends the second routing cache address storing the diagnostic response data to the protocol diagnosis module, and calls the first protocol interface in the protocol diagnosis module, so that the protocol diagnosis module copies the diagnostic response data in the second routing cache address to the first protocol cache address in the protocol diagnosis module, and feeds back the execution results to the data routing module and the diagnostic management module in turn, wherein the first protocol cache address matches the second protocol cache address in the protocol diagnosis module for storing the diagnostic request data corresponding to the diagnostic response data.

[0083] In an embodiment of the present application, the function of the internal implementation function corresponding to the first protocol interface in the protocol diagnosis module is to copy the diagnostic response data in the data routing module to the protocol diagnosis module. Furthermore, when the data routing module completes the action of copying the diagnostic response data, the data routing module can send the second routing cache address storing the diagnostic response data to the protocol diagnosis module, so that when the first protocol interface in the protocol diagnosis module is called, the internal implementation function corresponding to the first protocol interface in the protocol diagnosis module can directly copy the diagnostic response data in the second routing cache address to the first protocol cache address in the protocol diagnosis module, thereby avoiding the situation where the coupling between the diagnosis management module and the protocol diagnosis module is high and the normal transmission of the diagnostic response data cannot be achieved.

[0084] Among them, the first protocol cache address matches the second protocol cache address in the protocol diagnosis module for storing the diagnostic request data corresponding to the diagnostic response data. It can be understood that the diagnostic response data stored in the first protocol cache address in the protocol diagnosis module and the diagnostic request data stored in the second protocol cache address belong to a group of data, that is, the diagnostic response data stored in the first protocol cache address is a feedback response to the diagnostic request data stored in the second protocol cache address, thereby ensuring the stability and reliability of data transmission.

[0085] In actual applications, the communication interface definition corresponding to the first protocol interface also includes the identifier of the current diagnostic response data source module (current data routing module), the TCP connection where the current diagnostic response data source module (current data routing module) is located, the identifier of the current diagnostic response data and the length data of the current diagnostic response data, etc., thereby ensuring the reliability and efficiency of the diagnostic communication.

[0086] In a specific embodiment, Figure 4 As shown, it is a flow chart of the execution result determination method provided in an embodiment of the present application. Specifically, the protocol diagnosis module in step S204 feeds back the execution result to the data routing module and the diagnosis management module in turn, which may include:

[0087] S2042: When the protocol diagnosis module receives the instruction for completing the data transmission of the diagnosis response sent by the data routing module, the protocol diagnosis module calls back the second routing interface in the data routing module so that the protocol diagnosis module feeds back a first execution result to the data routing module, and the first execution result indicates that the data routing module has transmitted all the diagnosis response data to the protocol diagnosis module;

[0088] S2043: When the data routing module receives the first execution result, the data routing module calls back the second diagnostic interface in the diagnostic management module so that the data routing module feeds back the second execution result to the diagnostic management module, and the second execution result indicates that all diagnostic response data has completed the transmission between the diagnostic management module, the data routing module and the protocol diagnostic module.

[0089] In an embodiment of the present application, the second routing interface in the data routing module is called back by the protocol diagnostic module so that the protocol diagnostic module feeds back to the data routing module a first execution result indicating that the data routing module has transmitted all diagnostic response data to the protocol diagnostic module, and when the data routing module receives the first execution result, the data routing module feeds back to the diagnostic management module a second execution result indicating that all diagnostic response data have completed transmission between the diagnostic management module, the data routing module and the protocol diagnostic module, so as to implement the feedback process of data transmission, thereby preventing the diagnostic response data from being lost or damaged during transmission, thereby ensuring the safe, complete and reliable transmission of the diagnostic response data, avoiding potential errors, and providing the system or application with accurate transmission status information to optimize the overall performance and user experience.

[0090] It can be seen from the above technical solutions of the embodiments of the present application that the following technical effects are achieved:

[0091] The present application sets a data routing module between the diagnostic management module and the protocol diagnostic module to utilize the communication interface definition in the data routing module to respectively transmit data with the protocol diagnostic module and the diagnostic management module, thereby standardizing and decoupling the communication interface between the diagnostic management module and the protocol diagnostic module, thereby solving the technical problems of high coupling between the diagnostic management module and the protocol diagnostic module, imperfect adaptive specifications, and strong dependence of the diagnostic management module on the protocol diagnostic module.

[0092] An embodiment of the present application also provides a data processing device, which includes a processor and a memory, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data processing method provided in the above method embodiment.

[0093] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.

[0094] The data processing device may be a server. The present application embodiment also provides a schematic diagram of the structure of a server. Figure 5, the server 500 is used to implement the data processing method provided in the above embodiment. The server 500 may have relatively large differences due to different configurations or performances, and may include one or more processors 510 (for example, one or more processors) and storage 530, one or more storage media 520 (for example, one or more mass storage devices) storing application programs 523 or data 522. Among them, the memory 530 and the storage medium 520 can be short-term storage or permanent storage. The program stored in the storage medium 520 may include one or more modules, each of which may include a series of instruction operations in the server. Further, the processor 510 may be configured to communicate with the storage medium 520 and execute a series of instruction operations in the storage medium 520 on the server 500. The server 500 may also include one or more power supplies 560, one or more wired or wireless network interfaces 550, one or more input and output interfaces 540, and / or, one or more operating systems 521, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0095] An embodiment of the present application also provides a computer-readable storage medium, which can be set in a server to store at least one instruction, at least one program, code set or instruction set related to a data processing method in a method embodiment. The at least one instruction, the at least one program, the code set or instruction set is loaded and executed by the processor to implement the data processing method provided by the above-mentioned method embodiment.

[0096] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0097] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0098] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system and server embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0099] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data processing method, characterized in that: Applied to a data processing system, the data processing system includes a data routing module, a diagnosis management module and a protocol diagnosis module, the method includes: The protocol diagnosis module is used to send diagnosis request data to the data routing module, and when the data routing module receives the diagnosis request data, call the first diagnosis interface in the diagnosis management module so that the diagnosis management module copies the diagnosis request data to the diagnosis management module; The diagnosis management module transmits the received diagnosis request data to the diagnosis control module, so that the diagnosis control module feeds back the diagnosis response data corresponding to the diagnosis request data to the diagnosis management module; In the case where the diagnosis management module receives the diagnosis response data, calling the first routing interface in the data routing module so that the data routing module copies the diagnosis response data to the data routing module; The data routing module calls the first protocol interface in the protocol diagnosis module so that the protocol diagnosis module copies the diagnosis response data to the protocol diagnosis module, and feeds back the execution result to the data routing module and the diagnosis management module in turn.

2. The method according to claim 1, characterized in that When the data routing module receives the diagnosis request data, calling the first diagnosis interface in the diagnosis management module so that the diagnosis management module copies the diagnosis request data to the diagnosis management module includes: When the data routing module receives the diagnostic request data, the data routing module sends the first routing cache address storing the diagnostic request data to the diagnostic management module, and calls the first diagnostic interface in the diagnostic management module so that the diagnostic management module copies the diagnostic request data in the first routing cache address to the first diagnostic cache address in the diagnostic management module.

3. The method according to claim 1, characterized in that When the diagnosis management module receives the diagnosis response data, calling the first routing interface in the data routing module so that the data routing module copies the diagnosis response data to the data routing module includes: When the diagnostic management module receives the diagnostic response data, the diagnostic management module sends a second diagnostic cache address storing the diagnostic response data to the diagnostic management module, and calls a first routing interface in the data routing module, so that the data routing module copies the diagnostic response data in the second diagnostic cache address to a second routing cache address in the data routing module, wherein the second routing cache address matches the first routing cache address.

4. The method according to claim 1, characterized in that: The data routing module calls the first protocol interface in the protocol diagnosis module so that the protocol diagnosis module copies the diagnosis response data to the protocol diagnosis module, and feeds back the execution result to the data routing module and the diagnosis management module in turn, including: The data routing module sends the second routing cache address storing the diagnostic response data to the protocol diagnostic module, and calls the first protocol interface in the protocol diagnostic module, so that the protocol diagnostic module copies the diagnostic response data in the second routing cache address to the first protocol cache address in the protocol diagnostic module, and feeds back the execution result to the data routing module and the diagnostic management module in turn, wherein the first protocol cache address matches the second protocol cache address in the protocol diagnostic module for storing the diagnostic request data corresponding to the diagnostic response data.

5. The method according to claim 1, characterized in that The protocol diagnosis module feeds back execution results to the data routing module and the diagnosis management module in turn, including: In the case where the protocol diagnosis module receives the instruction for completing the data transmission of the diagnosis response sent by the data routing module, the protocol diagnosis module calls back the second routing interface in the data routing module so that the protocol diagnosis module feeds back a first execution result to the data routing module, wherein the first execution result indicates that the data routing module has transmitted all the diagnosis response data to the protocol diagnosis module; When the data routing module receives the first execution result, the data routing module calls back the second diagnostic interface in the diagnostic management module so that the data routing module feeds back the second execution result to the diagnostic management module, and the second execution result indicates that all the diagnostic response data have completed the transmission between the diagnostic management module, the data routing module and the protocol diagnostic module.

6. The method according to claim 1, characterized in that Before the protocol diagnosis module sends the diagnosis request data to the data routing module, the method further includes: In the case where the protocol diagnosis module receives the diagnosis request data sent by the diagnosis device, calling the third routing interface in the data routing module so that the data routing module obtains the data capacity corresponding to the diagnosis request data in the protocol diagnosis module, and compares the cache capacity in the data routing module with the data capacity corresponding to the diagnosis request data; In a case where the cache capacity is greater than the data capacity, the data routing module feeds back a third execution result to the protocol diagnosis module, where the third execution result indicates that the data routing module can receive the diagnosis request data.

7. The method according to claim 1, characterized in that Before the data routing module calls the first diagnostic interface in the diagnostic management module, the method further includes: The protocol diagnosis module sends the second protocol cache address storing the diagnosis request data to the data routing module, and calls the fourth routing interface in the data routing module, so that the data routing module copies the diagnosis request data in the second protocol cache address to the first routing cache address in the data routing module, and feeds back a fourth execution result to the protocol diagnosis module, wherein the fourth execution result indicates that the copying of the diagnosis request data is completed.

8. A data processing system, characterized in that: The data processing system includes a data routing module, a diagnostic management module and a protocol diagnostic module; The protocol diagnosis module is used to send diagnosis request data to the data routing module; copy the diagnosis response data to the protocol diagnosis module, and feed back the execution results to the data routing module and the diagnosis management module in turn; The data routing module is used to receive the diagnostic request data, call the first diagnostic interface in the diagnostic management module; and copy the diagnostic response data to the data routing module; Calling a first protocol interface in the protocol diagnostic module; The diagnostic management module is used to copy the diagnostic request data to the diagnostic management module; transmit the received diagnostic request data to the diagnostic control module; receive diagnostic response data corresponding to the diagnostic request data fed back by the diagnostic control module; and call the first routing interface in the data routing module.

9. A data processing device, characterized in that: The data processing device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data processing method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the data processing method according to any one of claims 1 to 7.