Data processing method and device based on communication module, equipment and storage medium

By dividing the communication module into a simulation module and a verification module in the SOA software system, and using DDS middleware to obtain communication information for data reproduction, the problem of low efficiency and accuracy in abnormal judgment of the communication module is solved, and efficient abnormal analysis is achieved.

CN118740476APending Publication Date: 2024-10-01CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410963495.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In SOA software systems that use DDS as middleware, the analysis and recurrence cost of abnormal problem analysis of communication modules is high, and the efficiency and accuracy of abnormal judgment are low.

Method used

By dividing the communication module into a simulation module and a verification module, DDS middleware is used to obtain the communication information of each module, determine the internal and external interaction data between the simulation module and the verification module, and reproduce it according to the data release time to judge the communication of the verification module. Whether there is any abnormality in the function.

Benefits of technology

It improves the efficiency and accuracy of abnormality judgment, reduces the cost of abnormality analysis, and enhances the abnormality judgment ability of communication modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740476A_ABST
    Figure CN118740476A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device based on a communication module, equipment and a storage medium. The method is applied to the electronic equipment, data distribution service middleware and communication modules are deployed in the electronic equipment, the data distribution service middleware is used for data release and subscription between the communication modules, and each communication module comprises a simulation module and a verification module; comprising the following steps: acquiring communication information of a simulation module and a verification module through data distribution service middleware; determining internal and external interaction data between the simulation module and the verification module according to the communication information of the simulation module and the verification module; the internal and external interaction data comprises internal published data and external published data, the internal published data represents data published by the simulation module to the verification module, and the external published data represents data fed back by the verification module to the simulation module; and determining whether the communication function of the verification module is abnormal or not based on the data release time of the internal release data according to the internal release data and the external release data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to communication technology, and in particular to a data processing method, device, equipment and storage medium based on a communication module. Background Art

[0002] As SOA (Service-Oriented Architecture) occupies an increasingly important position in vehicle-mounted software, communication middleware, as a key link in SOA work, is increasingly widely used. Communication middleware can be DDS (Data Distribution Service) middleware, which can ensure real-time, efficient and flexible data distribution and meet various distributed real-time communication application requirements.

[0003] In an SOA software system that uses DDS as middleware, there are usually multiple data communication modules as communication parties, and each communication party may have anomalies when working. How to use DDS middleware to analyze and reproduce abnormal problems is an urgent problem that needs to be solved. Summary of the invention

[0004] The present application provides a data processing method, device, equipment and storage medium based on a communication module, so as to improve the efficiency and accuracy of abnormality judgment of the communication module.

[0005] In a first aspect, the present application provides a communication module-based data processing method, which is applied to an electronic device, wherein a data distribution service middleware and a plurality of communication modules are deployed in the electronic device, wherein the data distribution service middleware is used for data publishing and subscription between the plurality of communication modules, and wherein the plurality of communication modules are preset with one or more simulation modules and a verification module; the method comprises:

[0006] Acquire the communication information of the simulation module and the communication information of the verification module through the data distribution service middleware; wherein the communication information includes the data published by the communication module and the data publishing time;

[0007] Determine the internal and external interaction data between the simulation module and the verification module according to the communication information of the simulation module and the communication information of the verification module; wherein the internal and external interaction data include internal release data and external release data, the internal release data represents the data released by the simulation module to the verification module, and the external release data represents the data fed back by the verification module to the simulation module based on the internal release data;

[0008] According to the internally released data and the externally released data, based on the data release time corresponding to the internally released data, it is determined whether there is an abnormality in the communication function of the verification module.

[0009] In a second aspect, the present application provides a data processing device based on a communication module, the device is applied to an electronic device, a data distribution service middleware and a plurality of communication modules are deployed in the electronic device, the data distribution service middleware is used for data publishing and subscription between the plurality of communication modules, and the plurality of communication modules are preset with one or more simulation modules and a verification module; the device comprises:

[0010] An information acquisition module, used to acquire the communication information of the simulation module and the communication information of the verification module through the data distribution service middleware; wherein the communication information includes the data published by the communication module and the data publishing time;

[0011] A data determination module, used to determine the internal and external interaction data between the simulation module and the verification module according to the communication information of the simulation module and the communication information of the verification module; wherein the internal and external interaction data includes internally released data and externally released data, the internally released data represents the data released by the simulation module to the verification module, and the externally released data represents the data fed back by the verification module to the simulation module based on the internally released data;

[0012] The abnormality judgment module is used to determine whether there is an abnormality in the communication function of the verification module based on the internal release data and the external release data and based on the data release time corresponding to the internal release data.

[0013] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0014] The memory stores computer-executable instructions;

[0015] The processor executes the computer-executable instructions stored in the memory to implement the method according to the first aspect.

[0016] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.

[0017] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.

[0018] The present application provides a data processing method, device, equipment and storage medium based on a communication module. Through the DDS middleware, the communication information of each communication module is obtained to obtain the data sent by the communication module and the data sending time. The communication module includes multiple simulation modules and a verification module. According to the communication information of all communication modules, the internal release data released by the simulation module to the verification module and the external release data fed back by the verification module to the simulation module based on the internal release data can be obtained. According to the internal release data, the external release data, and the data release time of the internal release data, the action of the verification module is reproduced to determine whether the communication function of the verification module is abnormal. By dividing multiple communication modules into two parts, namely the simulation module and the verification module, based on the communication information of the DDS middleware, the data of internal and external interactions is automatically confirmed, the data actually released by the simulation module is republished on the verification module, and the verification module is judged to be abnormal, thereby improving the judgment efficiency of the abnormality. According to the actual data release time, the data is released to improve the reproduction accuracy of data release, thereby improving the judgment accuracy of the abnormality. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0020] Figure 1 A flow chart of a data processing method based on a communication module provided in an embodiment of the present application;

[0021] Figure 2 A schematic diagram of data interaction between communication modules provided in an embodiment of the present application;

[0022] Figure 3 A flow chart of a data processing method based on a communication module provided in an embodiment of the present application;

[0023] Figure 4 A schematic diagram of the communication process provided in the embodiment of the present application;

[0024] Figure 5 A flow chart of a data processing method based on a communication module provided in an embodiment of the present application;

[0025] Figure 6 A structural block diagram of a data processing device based on a communication module provided in an embodiment of the present application;

[0026] Figure 7 A structural block diagram of a data processing device based on a communication module provided in an embodiment of the present application;

[0027] Figure 8A structural block diagram of an electronic device provided in an embodiment of the present application;

[0028] Fig. 9 A structural block diagram of an electronic device provided in an embodiment of the present application.

[0029] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0030] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0031] It should be clear that 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 the field without creative work are within the scope of protection of the present application.

[0032] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0033] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0034] It should be noted that due to space limitations, this application specification does not list all optional implementation methods. After reading this application specification, those skilled in the art should be able to think that as long as the technical features do not contradict each other, any combination of technical features can constitute an optional implementation method. Each embodiment is described in detail below.

[0035] As SOA occupies an increasingly important position in vehicle-mounted software, communication middleware, as a key link in SOA implementation, is increasingly widely used. DDS middleware adopts a publish / subscribe model, is data-centric, and provides a rich set of QoS (Quality of Service) strategies to ensure real-time, efficient, and flexible data distribution, meeting the needs of various distributed real-time communication applications.

[0036] In a SOA software system that uses DDS as middleware, there are usually multiple communication modules for data communication, and each communication module can use DDS to subscribe to and publish messages. For example, you can create writers to publish messages and readers to subscribe to messages, and you can also pair readers and writers with topics to request and reply data, thereby implementing RPC (Remote Procedure Call).

[0037] In actual situations, the source of DDS communication data is uncertain. It may come from the collection of the physical state of the vehicle by external sensors, or it may be generated by pure software logic. Therefore, for some communication modules that use DDS for communication, it is impossible to quickly extract the data that the communication modules interact with during data interaction, resulting in high costs for analyzing and reproducing abnormal problems. When it is necessary to verify the abnormality of a communication module or reproduce the problem, it is usually necessary to collect data for each communication module and then filter out the interaction data between the communication modules. The efficiency and accuracy of determining abnormalities in the communication module are low.

[0038] The present application provides a data processing method, device, equipment and storage medium based on a communication module, aiming to solve the above technical problems in the prior art.

[0039] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0040] Figure 1 The present invention is a flowchart of a data processing method based on a communication module provided in an embodiment of the present application. The method can be executed by a data processing device based on a communication module. The method is applied to an electronic device, in which a data distribution service middleware and multiple communication modules are deployed. The data distribution service middleware is used for data publishing and subscription between multiple communication modules. One or more simulation modules and a verification module are preset in the multiple communication modules. Figure 1 As shown, the method comprises the following steps:

[0041] S101. Obtain communication information of a simulation module and communication information of a verification module through a data distribution service middleware; wherein the communication information includes data published by the communication module and the data publishing time.

[0042] Exemplarily, through DDS middleware, communication between multiple communication parties can be carried out, and the communication parties can be represented by communication modules, which are functional modules that can communicate. For example, the electronic device can be a computer device in a vehicle, and a vehicle-mounted system can be installed in the electronic device. In the vehicle-mounted system, DDS middleware and multiple communication modules are deployed. Through DDS middleware, data publishing and subscription between communication modules can be realized. For example, communication module A can subscribe to the message of a certain topic of communication module B, and communication module B can publish the message of the topic to communication module A.

[0043] Multiple communication modules can be divided into two parts, namely, simulation modules and verification modules. There can be multiple simulation modules and one verification module. That is, multiple communication modules can be determined as simulation modules, and one communication module other than the simulation module can be determined as a verification module. The simulation module and the verification module can be divided according to actual needs. The user can determine which module has an abnormality by verifying that the module is abnormal. For example, the communication module includes module A, module B and module C. Module A and module B can be determined as simulation modules, and module C can be determined as a verification module.

[0044] Data can be exchanged between the various communication modules, and the exchanged data may include NTF (Notification, event notification), RPC request, and response to the RPC request. Figure 2 Schematic diagram of data interaction between communication modules. Figure 2 In the figure, Reply indicates the response to the RPC request. The arrow indicates the data flow, that is, from the publisher to the subscriber in DDS. Module A can send event notification NTF1 to module C, module C can send RPC request RPC1 to module A, and after module A receives PRC1, it can feedback Reply1 to module C. Module C can send event notification NTF2 to module B, module B can send RPC request RPC2 to module C, and after module C receives PRC2, it can feedback Reply2 to module B. Module A can send event notification NTF3 to module B, module B can send RPC request RPC3 to module A, and after module A receives PRC3, it can feedback Reply3 to module B.

[0045] The communication information of each communication module can be obtained in real time or regularly through the DDS middleware, that is, the communication information of the simulation module and the communication information of the verification module can be obtained. The communication information can include the data published by the communication module and the data publishing time. For example, the communication information can include the NTF, RPC request, and the response to the RPC request sent by the communication module, and can also include the time when the communication module sends the NTF, the time of the RPC request, and the time of the response to the RPC request. Each communication module can also publish and subscribe to topics, and the communication information can also include the topic corresponding to the data sent by the communication module.

[0046] In this embodiment, the communication information of the simulation module and the communication information of the verification module are obtained through the data distribution service middleware, including: responding to the information acquisition instruction, determining the target time interval, and based on the preset interface of the data distribution service middleware, obtaining the communication information of the simulation module within the target time interval and the communication information of the verification module within the target time interval; wherein the information acquisition instruction is used to instruct the acquisition of the communication information within the target time interval.

[0047] Specifically, the communication information of each communication module within a preset time period can be obtained regularly according to a preset time period. The user can also issue an information acquisition instruction, which can be used to instruct to obtain communication information within a target time interval. In response to the information acquisition instruction, a time interval is determined as the target time interval. For example, the interval of the preset time period before the time of responding to the information acquisition instruction can be used as the target time interval. The target time interval specified by the user can also be obtained from the information acquisition instruction.

[0048] An interface of the DDS middleware is pre-set, and the preset interface can be used to obtain data. For example, the preset interface can be a dds_write interface. In this embodiment, the type of the preset interface is not specifically limited. Through the preset interface of the DDS middleware, the communication information of each communication module within the target time interval is obtained, that is, the communication information of the simulation module within the target time interval and the communication information of the verification module within the target time interval are obtained. An operation processing queue can be pre-set, and the acquired data is recorded in the operation processing queue for storage. Each element recorded in the queue may include data published at a certain moment, the data publishing time, the subject name corresponding to the data, the publishing type corresponding to the data, etc.

[0049] The beneficial effect of such a setting is that a thread for data recording can be pre-buried. When an information acquisition instruction is received, the thread is enabled, the preset interface is called, and information such as data sent by the communication module, publication type, topic name, data release time, etc. is recorded, thereby improving the efficiency of data acquisition and thereby improving the efficiency of exception verification.

[0050] S102. Determine the internal and external interaction data between the simulation module and the verification module based on the communication information of the simulation module and the communication information of the verification module; wherein the internal and external interaction data include internally published data and externally published data, the internally published data represents the data published by the simulation module to the verification module, and the externally published data represents the data fed back by the verification module to the simulation module based on the internally published data.

[0051] Exemplarily, the communication information of all communication modules may include interaction data between different simulation modules and interaction data between the simulation module and the verification module. The interaction data between different simulation modules may be referred to as internal interaction data, and the interaction data between the simulation module and the verification module may be referred to as internal and external interaction data. The internal and external interaction data may include internally published data and externally published data, wherein the internally published data refers to the data published by the simulation module to the verification module, and the externally published data refers to the data fed back by the verification module to the simulation module based on the internally published data.

[0052] The internal and external interactive data can be determined based on the subject of the data published by the communication module. For example, the subject of the data published by the simulation module can be determined, as can the subject of the data published by the verification module. If the subject of the data published by the simulation module is consistent with the subject of the data published by the verification module, it means that the data published by the simulation module is internally published data in the internal and external interactive data, and the data published by the verification module is externally published data in the internal and external interactive data. If the subject of the data published by the simulation module is inconsistent with the subject of the data published by the verification module, it means that the data published by the simulation module is internal interactive data.

[0053] S103. Determine whether there is an abnormality in the communication function of the verification module based on the internally released data and the externally released data and based on the data release time corresponding to the internally released data.

[0054] Exemplarily, after obtaining the internal release data and the external release data, the verification module can be checked according to the internal release data, the external release data, and the data release time corresponding to the internal release data, and the operation of the verification module can be reproduced to determine whether there is any abnormality in the communication function of the verification module.

[0055] For example, the same internally released data can be sent to the verification module on time according to the data release time corresponding to the internally released data, and the information fed back by the verification module on the internally released data can be obtained. It is determined whether the information fed back by the verification module is consistent with the externally released data. If so, it is determined that there is no abnormality in the verification module; if not, it is determined that there is an abnormality in the verification module. It is also possible to reproduce the problem of the verification module by sending internally released data to the verification module, which is convenient for analyzing and developing the software functions of the verification module.

[0056] In the embodiment of the present application, the communication information of each communication module is obtained through the DDS middleware, and the data sent by the communication module and the data sending time are obtained. The communication module includes multiple simulation modules and a verification module. According to the communication information of all communication modules, the internal release data released by the simulation module to the verification module and the external release data fed back by the verification module to the simulation module based on the internal release data can be obtained. According to the internal release data, the external release data, and the data release time of the internal release data, the action of the verification module is reproduced to determine whether the communication function of the verification module is abnormal. By dividing multiple communication modules into two parts, namely the simulation module and the verification module, based on the communication information of the DDS middleware, the data of internal and external interactions are automatically confirmed, the data actually released by the simulation module is republished on the verification module, and it is judged whether the verification module is abnormal, and the judgment efficiency of the abnormality is improved. According to the actual data release time, it is released to improve the reproduction accuracy of data release, and then improve the judgment accuracy of the abnormality.

[0057] Figure 3 A flow chart of a data processing method based on a communication module provided in an embodiment of the present application is an optional embodiment based on the above embodiment.

[0058] In this embodiment, according to the internally published data and the externally published data, based on the data publishing time corresponding to the internally published data, it is determined whether there is an abnormality in the communication function of the verification module, including: according to the data publishing time corresponding to the internally published data, the internally published data is published to the verification module to obtain data feedback information of the verification module; wherein the data feedback information represents the feedback of the communication module on the received data; according to the data feedback information and the externally published data, it is determined whether there is an abnormality in the communication function of the verification module.

[0059] like Figure 3 As shown, the image detection method comprises the following steps:

[0060] S301. Obtain communication information of the simulation module and communication information of the verification module through the data distribution service middleware; wherein the communication information includes data published by the communication module and the data publishing time.

[0061] Exemplarily, this step may refer to the above-mentioned step S101 and will not be described in detail.

[0062] S302. Determine the internal and external interaction data between the simulation module and the verification module based on the communication information of the simulation module and the communication information of the verification module; wherein the internal and external interaction data include internally published data and externally published data, the internally published data represents the data published by the simulation module to the verification module, and the externally published data represents the data fed back by the verification module to the simulation module based on the internally published data.

[0063] Exemplarily, this step may refer to the above-mentioned step S102 and will not be described in detail.

[0064] S303. Publish the internally published data to the verification module according to the data publishing time corresponding to the internally published data, and obtain data feedback information of the verification module; wherein the data feedback information represents the feedback status of the communication module on the received data.

[0065] Exemplarily, after the internal release data is determined, the data release time corresponding to each internal release data is obtained from the communication information, that is, it is determined when the internal release data is sent by the simulation module. According to the data release time corresponding to the internal release data, the internal release data is released to the verification module. That is, when reproducing the verification module, data is sent to the verification module in strict accordance with the actual data release conditions to avoid errors in reproduction due to inconsistent time.

[0066] After receiving the internally published data, the verification module can process the internally published data according to its own data processing strategy and reply according to the processing result. For example, the verification module can store data processing strategies, and different strategies can correspond to data of different topics. After receiving the internally published data, the subject of the internally published data can be determined, and the strategy corresponding to the subject of the internally published data can be determined according to the association relationship between the preset subject and the strategy, and the internally published data can be processed according to the strategy. In this embodiment, the preset data processing strategy is not specifically limited.

[0067] The information replied by the verification module is the data feedback information. The data feedback information of the verification module can represent the feedback of the communication module on the received data. That is, the feedback of the verification module on the actual internal published data in the simulation is obtained.

[0068] In this embodiment, the internally released data is released to the verification module according to the data release time corresponding to the internally released data, and data feedback information of the verification module is obtained, including: obtaining the current time; determining the target release time according to the current time and the data release time of the internally released data; wherein the target release time represents the time when the data needs to be released to the verification module; according to the target release time, the internally released data is released to the verification module, and data feedback information of the verification module is obtained.

[0069] Specifically, the current time can be obtained in real time, and the target release time of the internally released data can be determined based on the current time and the data release time of the internally released data. The target release time can represent the time when data needs to be released to the verification module when reproducing the communication process. It can be determined whether the current time is the data release time of the internally released data. If so, the current time is determined as the target release time of the internally released data; if not, it is determined that the current time is not the target release time. It is also possible to preset a calculation formula for the target release time, substitute the current time and data release time into the preset formula, and calculate the target release time.

[0070] At the target release time, the internal release data is released to the verification module, that is, the release time of the internal release data is consistent in the actual communication and in the reproduced communication. The verification module processes the internal release data to obtain data feedback information of the verification module on the internal release data.

[0071] Figure 4 Schematic diagram of the communication process. Figure 4 In the example, modules A and B are simulation modules, and module C is a verification module. At time t0, module A sends event notification NTF1 to module C, and module B sends RPC request RPC2 to module C. At time t1, module C sends feedback Reply2 to module B in response to RPC2. When reproducing the communication process, it is necessary to send NTF1 and RPC2 to module C at time t0, and determine whether module C will send Reply2.

[0072] The beneficial effect of such a setting is that the time when data needs to be released during communication reproduction is determined according to the actual data release time, thereby improving the accuracy of reproduction and further improving the accuracy of data processing.

[0073] In this embodiment, the target release time is determined based on the current time and the data release time of the internally released data, including: obtaining the initial release time of the simulation module from the communication information of the simulation module; wherein the initial release time represents the data release time when the communication module first releases the data; and determining the target release time based on the current time, the data release time of the internally released data, and the initial release time.

[0074] Specifically, for each communication module, the communication information may include the data release time of each data release by the communication module. For each simulation module, the data release time of the first data release of the simulation module can be obtained from the communication information of the simulation module as the initial release time. That is, the initial release time represents the data release time of the first data release of the simulation module within the target time interval. For example, module A has released data at t0, t1, and t2, where t0 is the initial release time.

[0075] Determine the data release time corresponding to the internal release data of the simulation module, and determine the target release time according to the current time, the data release time of the internal release data, and the initial release time. That is, determine when the internal release data needs to be sent to the verification module. The calculation formula of the target release time can be pre-set, and the current time, the data release time of the internal release data, and the initial release time are substituted into the preset calculation formula to calculate the target release time.

[0076] The beneficial effect of such a setting is that the initial release time is first determined, and then the target release time of each internal release data is determined with the initial release time as the starting point, so that the target release time of the internal release data corresponds to the data release time actually released at that time, thereby improving the reproduction accuracy of the communication process.

[0077] In this embodiment, the current time and the data release time are both monotonic time; the target release time is expressed as:

[0078] T=T record -T base +T now ;

[0079] Where T is the target release time, T now is the current time, T record is the data release time of internally released data, T base Initial release time.

[0080] Specifically, the current time and the data release time are both system monotonic time, that is, the initial release time is also monotonic time. The monotonic time is not a specific time point, but a numerical value in a preset form to represent a certain time point. For example, t0, t1, t2, and t3 can be used to represent each time, t0 represents the time when the data is first released, and t3 represents the time when the data is last released. The difference between t0 and t1 is the time difference between the first and second releases of the data.

[0081] You can use T record is the data release time of internally released data, T base is the initial release time, due to T record and T base All are monotonic time, T record With T base The difference between the time when the data is first published and the time when the internal data is published. now is the current time, and T record With T base The difference between the two plus T now, and get the time interval from the current time to release the internal release data, that is, get the target release time.

[0082] The beneficial effect of such a setting is that, by calculating the monotonic time, the time interval between two internal data releases can be made consistent with the time interval between actual releases during reproduction, thereby ensuring the accuracy of reproduction and thereby improving the accuracy of analysis of abnormal problems.

[0083] In this embodiment, the internally published data is published to the verification module according to the data publication time corresponding to the internally published data, and data feedback information of the verification module is obtained, including: caching the internally published data in a preset processing queue according to the data publication time of the internally published data; publishing the internally published data to the verification module according to the arrangement order of the internally published data in the processing queue, and obtaining data feedback information of the verification module.

[0084] Specifically, a processing queue can be preset, and multiple data records can be cached in the processing queue, each of which represents internally published data at a certain moment. The data record can include the content of the published data, the publishing type, the subject name, the system monotonic time, etc. The publishing type can include NTF, RPC request, response to RPC request, etc. The internal published data of all simulation modules can be cached in the same processing queue, or a processing queue can be set for each simulation module, and the processing queue caches the internal published data of the corresponding simulation module.

[0085] The data release time of the internally released data can be determined, and the internally released data can be cached in a preset processing queue in sequence according to the time sequence of the data release time of the internally released data. According to the arrangement order of the internally released data in the processing queue, the internally released data can be released to the verification module in sequence to obtain data feedback information of the verification module for each internally released data.

[0086] The beneficial effect of such a setting is that, by setting a processing queue, each internal release data can be released in the actual release order, avoiding data release confusion and improving reproduction accuracy.

[0087] S304: Determine whether there is any abnormality in the communication function of the verification module based on the data feedback information and the externally released data.

[0088] Exemplarily, after obtaining the data feedback information of the verification module, it is possible to determine whether the communication function of the verification module is abnormal based on the data feedback information and the externally released data. An abnormality judgment condition can be preset, for example, the abnormality judgment condition can be to determine whether the data feedback information is consistent with the externally released data. If they are consistent, it is determined that there is no abnormality in the verification module; if they are inconsistent, it is determined that there is an abnormality in the verification module.

[0089] In this embodiment, real data is sent to the verification module according to the actual data release time, the data release process is reproduced, the reproduction accuracy of the communication process is improved, and then the accuracy of abnormal judgment is improved, which is conducive to the analysis and development of the verification module.

[0090] In this embodiment, it is determined whether there is an abnormality in the communication function of the verification module based on the data feedback information and the externally published data, including: obtaining the data release time of the externally published data from the communication information of the verification module, which is the first time; determining the time when the verification module sends the data feedback information, which is the second time; if the data feedback information is consistent with the externally published data, and the first time and the second time are consistent, it is determined that there is no abnormality in the communication function of the verification module.

[0091] Specifically, data feedback information is the feedback information of the verification module on the internal published data when reproducing the communication process. External published data is the feedback information of the verification module on the internal published data during the actual communication process. After obtaining the data feedback information of the verification module, the data feedback information can be compared with the corresponding external published data to determine whether the two are consistent. If they are inconsistent, it is determined that there is an abnormality in the communication module; if they are consistent, the time comparison can be performed again.

[0092] From the communication information of the verification module, obtain the data release time of externally released data during actual communication as the first time. Determine the time when the verification module sends data feedback information during the reproduction process as the second time. Determine whether the moment represented by the first time is consistent with the moment represented by the second time. If they are consistent, it is determined that there is no abnormality in the communication function of the verification module; if they are inconsistent, it is determined that there is an abnormality in the communication function of the verification module. The first time and the second time can also be monotonic time. The time interval between the first time and the initial release time can be determined, and the time interval between the second time and the time when the data is first released during reproduction can be determined. If the two time intervals are consistent, it is determined that there is no abnormality in the communication function of the verification module.

[0093] The beneficial effect of such a setting is that anomaly judgment is made based on the actual feedback results and reproduced feedback results of the verification module, which facilitates the determination of abnormal problems in the verification module and improves the efficiency and accuracy of the analysis of the software functions of the verification module.

[0094] In the embodiment of the present application, the communication information of each communication module is obtained through the DDS middleware, and the data sent by the communication module and the data sending time are obtained. The communication module includes multiple simulation modules and a verification module. According to the communication information of all communication modules, the internal release data released by the simulation module to the verification module and the external release data fed back by the verification module to the simulation module based on the internal release data can be obtained. According to the internal release data, the external release data, and the data release time of the internal release data, the action of the verification module is reproduced to determine whether the communication function of the verification module is abnormal. By dividing multiple communication modules into two parts, namely the simulation module and the verification module, based on the communication information of the DDS middleware, the data of internal and external interactions are automatically confirmed, the data actually released by the simulation module is republished on the verification module, and it is judged whether the verification module is abnormal, and the judgment efficiency of the abnormality is improved. According to the actual data release time, it is released to improve the reproduction accuracy of data release, and then improve the judgment accuracy of the abnormality.

[0095] Figure 5 A flow chart of a data processing method based on a communication module provided in an embodiment of the present application is an optional embodiment based on the above embodiment.

[0096] In this embodiment, the communication information also includes data topics, and the data topics include data publishing topics and data subscription topics; based on the communication information of the simulation module and the communication information of the verification module, the internal and external interaction data between the simulation module and the verification module are determined, including: obtaining the data publishing topic of the simulation module from the communication information of the simulation module, and obtaining the data subscription topic of the verification module from the communication information of the verification module; based on the data publishing topic of the simulation module and the data subscription topic of the verification module, determining the data publishing topic of the simulation module subscribed by the verification module as the target topic; determining the data of the target topic published by the simulation module to the verification module as internally published data, and determining the data of the target topic fed back by the verification module to the simulation module as externally published data.

[0097] like Figure 5 As shown, the image detection method comprises the following steps:

[0098] S501. Obtain communication information of the simulation module and communication information of the verification module through the data distribution service middleware; wherein the communication information includes data published by the communication module and the data publishing time.

[0099] Exemplarily, this step may refer to the above-mentioned step S101 and will not be described in detail.

[0100] S502. Obtain the data publishing topic of the simulation module from the communication information of the simulation module, and obtain the data subscription topic of the verification module from the communication information of the verification module.

[0101] Exemplarily, each communication module may correspond to multiple data publishing topics and / or multiple data subscription topics. A data publishing topic refers to a message that the communication module will publish on the topic, and a data subscription topic refers to a message that the communication module will receive on the topic. The communication module can subscribe to messages through the created readers and publish messages through the created writers.

[0102] The communication information may include a data subject. For example, each piece of data recorded in the communication data corresponds to its own data subject. When determining the internal and external interaction data, the data publishing subject of the simulation module can be obtained from the communication information of the simulation module. The data subscription subject of the verification module can be obtained from the communication information of the verification module. That is, determine what data subject the simulation module will publish, and determine what data subject the verification module subscribes to.

[0103] S503. According to the data publishing topic of the simulation module and the data subscription topic of the verification module, determine the data publishing topic of the simulation module subscribed by the verification module as the target topic.

[0104] Exemplarily, the data publishing topic of the simulation module and the data subscription topic of the verification module are compared to determine whether the data topic subscribed by the verification module is the data topic published by the simulation module, that is, to determine whether the verification module subscribes to the data publishing topic of the simulation module. The data publishing topic of the simulation module subscribed by the verification module is determined as the target topic. If the verification module does not subscribe to any data publishing topic of the simulation module, it means that the simulation module does not send internal publishing data to the verification module.

[0105] That is to say, the data publishing topic of the simulation module and the data subscription topic of the verification module are matched to distinguish the data topics of internal interaction and the data topics of internal and external interaction. The data topics of internal interaction are the data topics for interaction between simulation modules, and the data topics of internal and external interaction are the data topics for the simulation module to send data to the verification module, that is, the target topic.

[0106] S504: Determine that the data of the target subject published by the simulation module to the verification module is internally published data, and determine that the data of the target subject fed back by the verification module to the simulation module is externally published data.

[0107] Exemplarily, after determining the target topic, the data of the target topic published by the simulation module to the verification module is obtained from the communication information of the simulation module as the internal publishing data. And the data of the target topic fed back by the verification module to the simulation module is determined from the communication information of the verification module as the external publishing data, thereby obtaining the internal and external interactive data.

[0108] In this embodiment, by subject matching the simulation module and the verification module, the data that needs to be interacted is determined, and sending erroneous data to the verification module is avoided, thereby improving the reproduction accuracy of the communication process and further improving the accuracy of abnormal analysis of the verification module.

[0109] S505. Determine whether there is an abnormality in the communication function of the verification module based on the internally released data and the externally released data and based on the data release time corresponding to the internally released data.

[0110] Exemplarily, this step may refer to the above-mentioned step S103 and will not be described in detail.

[0111] In the embodiment of the present application, the communication information of each communication module is obtained through the DDS middleware, and the data sent by the communication module and the data sending time are obtained. The communication module includes multiple simulation modules and a verification module. According to the communication information of all communication modules, the internal release data released by the simulation module to the verification module and the external release data fed back by the verification module to the simulation module based on the internal release data can be obtained. According to the internal release data, the external release data, and the data release time of the internal release data, the action of the verification module is reproduced to determine whether the communication function of the verification module is abnormal. By dividing multiple communication modules into two parts, namely the simulation module and the verification module, based on the communication information of the DDS middleware, the data of internal and external interactions are automatically confirmed, the data actually released by the simulation module is republished on the verification module, and it is judged whether the verification module is abnormal, and the judgment efficiency of the abnormality is improved. According to the actual data release time, it is released to improve the reproduction accuracy of data release, and then improve the judgment accuracy of the abnormality.

[0112] Figure 6 A block diagram of a data processing device based on a communication module provided in an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. The device is applied to an electronic device, in which a data distribution service middleware and multiple communication modules are deployed. The data distribution service middleware is used for data publishing and subscription between multiple communication modules, and one or more simulation modules and a verification module are preset in the multiple communication modules. Figure 6 The data processing device 600 based on the communication module includes: an information acquisition module 601, a data determination module 602 and an abnormality judgment module 603.

[0113] The information acquisition module 601 is used to acquire the communication information of the simulation module and the communication information of the verification module through the data distribution service middleware; wherein the communication information includes the data published by the communication module and the data publishing time;

[0114] The data determination module 602 is used to determine the internal and external interaction data between the simulation module and the verification module according to the communication information of the simulation module and the communication information of the verification module; wherein the internal and external interaction data includes internally released data and externally released data, the internally released data represents the data released by the simulation module to the verification module, and the externally released data represents the data fed back by the verification module to the simulation module based on the internally released data;

[0115] The abnormality judgment module 603 is used to determine whether there is an abnormality in the communication function of the verification module based on the internal release data and the external release data and based on the data release time corresponding to the internal release data.

[0116] Figure 7 A structural block diagram of a data processing device based on a communication module provided in an embodiment of the present disclosure, such as Figure 7 As shown, the data processing device 700 based on the communication module includes an information acquisition module 701 , a data determination module 702 and an abnormality judgment module 703 , wherein the abnormality judgment module 703 includes a data feedback unit 7031 and an abnormality judgment unit 7032 .

[0117] The data feedback unit 7031 is used to publish the internally published data to the verification module according to the data publishing time corresponding to the internally published data, and obtain data feedback information of the verification module; wherein the data feedback information represents the feedback of the communication module on the received data;

[0118] The abnormality judgment unit 7032 is used to determine whether there is an abnormality in the communication function of the verification module according to the data feedback information and the externally released data.

[0119] In one example, the data feedback unit 7031 includes:

[0120] The time acquisition subunit is used to obtain the current time;

[0121] A target determination subunit is used to determine a target release time according to the current time and the data release time of the internally released data; wherein the target release time represents the time when data needs to be released to the verification module;

[0122] The information feedback subunit is used to publish the internal publishing data to the verification module according to the target publishing time, and obtain data feedback information of the verification module.

[0123] In one example, the target determination subunit is specifically used to:

[0124] Acquire the initial release time of the simulation module from the communication information of the simulation module; wherein the initial release time represents the data release time when the communication module first releases the data;

[0125] The target publishing time is determined according to the current time, the data publishing time of the internally published data, and the initial publishing time.

[0126] In one example, the current time and the data release time are both monotonic time; the target release time is expressed as:

[0127] T=T record -T base +T now ;

[0128] Where T is the target release time, T now is the current time, T record is the data release time of the internally released data, T base is the initial release time.

[0129] In one example, the data feedback unit 7031 includes:

[0130] A data caching subunit, configured to cache the internally released data into a preset processing queue according to the data release time of the internally released data;

[0131] The data publishing subunit is used to publish the internally published data to the verification module according to the arrangement order of the internally published data in the processing queue, and obtain data feedback information of the verification module.

[0132] In one example, the abnormality determination unit 7032 includes:

[0133] A first determining subunit, configured to obtain a data publishing time of the externally published data from the communication information of the verification module, which is a first time;

[0134] A second determining subunit is used to determine the time when the verification module sends the data feedback information as a second time;

[0135] The third determining subunit is configured to determine that there is no abnormality in the communication function of the verification module if the data feedback information is consistent with the externally released data, and the first time is consistent with the second time.

[0136] In one example, the communication information also includes a data subject, and the data subject includes a data publishing subject and a data subscription subject; the data determination module 702 includes:

[0137] A topic acquisition module, used to acquire the data publishing topic of the simulation module from the communication information of the simulation module, and to acquire the data subscription topic of the verification module from the communication information of the verification module;

[0138] A topic determination module, used to determine the data publishing topic of the simulation module subscribed by the verification module as the target topic according to the data publishing topic of the simulation module and the data subscription topic of the verification module;

[0139] The data determination module is used to determine that the data of the target subject published by the simulation module to the verification module is the internally published data, and to determine that the data of the target subject fed back by the verification module to the simulation module is the externally published data.

[0140] In one example, the information acquisition module 701 includes:

[0141] An information acquisition unit is used to determine a target time interval in response to an information acquisition instruction, and obtain the communication information of the simulation module within the target time interval and the communication information of the verification module within the target time interval based on a preset interface of the data distribution service middleware; wherein the information acquisition instruction is used to instruct the acquisition of communication information within the target time interval.

[0142] Figure 8 A structural block diagram of an electronic device provided in an embodiment of the present application, such as Figure 8 As shown, the electronic device includes: a memory 81 and a processor 82; the memory 81 is a memory for storing instructions executable by the processor 82.

[0143] The processor 82 is configured to execute the method provided in the above embodiment.

[0144] The electronic device further includes a receiver 83 and a transmitter 84. The receiver 83 is used to receive instructions and data sent by other devices, and the transmitter 84 is used to send instructions and data to external devices.

[0145] Fig. 9 It is a block diagram of a terminal device according to an exemplary embodiment. The device may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.

[0146] Device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0147] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0148] Device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0149] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0150] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.

[0151] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0152] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0153] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0154] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0155] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0156] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.

[0157] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0158] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal device, enables the terminal device to execute the data processing method based on a communication module of the terminal device.

[0159] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0160] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A data processing method based on a communication module, It is characterized in that The method is applied to an electronic device, in which a data distribution service middleware and a plurality of communication modules are deployed, the data distribution service middleware is used for data publishing and subscription between the plurality of communication modules, and the plurality of communication modules are preset with one or more simulation modules and a verification module; the method comprises: Acquire the communication information of the simulation module and the communication information of the verification module through the data distribution service middleware; wherein the communication information includes the data published by the communication module and the data publishing time; Determine the internal and external interaction data between the simulation module and the verification module according to the communication information of the simulation module and the communication information of the verification module; wherein the internal and external interaction data include internal release data and external release data, the internal release data represents the data released by the simulation module to the verification module, and the external release data represents the data fed back by the verification module to the simulation module based on the internal release data; According to the internally released data and the externally released data, based on the data release time corresponding to the internally released data, it is determined whether there is an abnormality in the communication function of the verification module.

2. The method according to claim 1, It is characterized in that The determining, according to the internally published data and the externally published data and based on the data publishing time corresponding to the internally published data, whether there is an abnormality in the communication function of the verification module comprises: According to the data release time corresponding to the internally released data, the internally released data is released to the verification module to obtain data feedback information of the verification module; wherein the data feedback information represents the feedback of the communication module on the received data; It is determined whether there is an abnormality in the communication function of the verification module according to the data feedback information and the externally released data.

3. The method according to claim 2, It is characterized in that The step of publishing the internally released data to the verification module according to the data release time corresponding to the internally released data, and obtaining data feedback information of the verification module, comprises: Get the current time; Determine a target release time according to the current time and the data release time of the internally released data; wherein the target release time represents the time when data needs to be released to the verification module; According to the target release time, the internal release data is released to the verification module to obtain data feedback information of the verification module.

4. The method according to claim 3, It is characterized in that Determining the target publishing time according to the current time and the data publishing time of the internally published data includes: Acquire the initial release time of the simulation module from the communication information of the simulation module; wherein the initial release time represents the data release time when the communication module first releases the data; The target publishing time is determined according to the current time, the data publishing time of the internally published data, and the initial publishing time.

5. The method according to claim 4, It is characterized in that The current time and the data release time are both monotonic time; the target release time is expressed as: T=T record -T base -T now ; Where T is the target release time, T now is the current time, T record is the data release time of the internally released data, T base is the initial release time.

6. The method according to claim 2, It is characterized in that The step of publishing the internally released data to the verification module according to the data release time corresponding to the internally released data, and obtaining data feedback information of the verification module, comprises: Cache the internally published data into a preset processing queue according to the data publishing time of the internally published data; According to the arrangement order of the internally released data in the processing queue, the internally released data is released to the verification module to obtain data feedback information of the verification module.

7. The method according to any one of claims 2 to 6, It is characterized in that The determining, according to the data feedback information and the externally published data, whether there is an abnormality in the communication function of the verification module comprises: Acquire the data release time of the externally released data from the communication information of the verification module as the first time; Determine the time when the verification module sends the data feedback information as the second time; If the data feedback information is consistent with the externally released data, and the first time is consistent with the second time, it is determined that there is no abnormality in the communication function of the verification module.

8. The method according to claim 1, It is characterized in that The communication information also includes a data subject, and the data subject includes a data publishing subject and a data subscription subject; the determining of the internal and external interaction data between the simulation module and the verification module according to the communication information of the simulation module and the communication information of the verification module includes: Acquire the data publishing topic of the simulation module from the communication information of the simulation module, and acquire the data subscription topic of the verification module from the communication information of the verification module; According to the data publishing topic of the simulation module and the data subscription topic of the verification module, determining the data publishing topic of the simulation module subscribed by the verification module as the target topic; The data of the target subject published by the simulation module to the verification module is determined to be the internally published data, and the data of the target subject fed back by the verification module to the simulation module is determined to be the externally published data.

9. The method according to claim 1, It is characterized in that The acquiring, through the data distribution service middleware, the communication information of the simulation module and the communication information of the verification module comprises: In response to an information acquisition instruction, a target time interval is determined, and based on a preset interface of the data distribution service middleware, communication information of the simulation module within the target time interval and communication information of the verification module within the target time interval are acquired; wherein the information acquisition instruction is used to instruct acquisition of communication information within the target time interval.

10. A data processing device based on a communication module, It is characterized in that The device is applied to an electronic device, in which a data distribution service middleware and a plurality of communication modules are deployed, the data distribution service middleware is used for data publishing and subscription between the plurality of communication modules, and the plurality of communication modules are preset with one or more simulation modules and a verification module; the device comprises: An information acquisition module, used to acquire the communication information of the simulation module and the communication information of the verification module through the data distribution service middleware; wherein the communication information includes the data published by the communication module and the data publishing time; A data determination module, used to determine the internal and external interaction data between the simulation module and the verification module according to the communication information of the simulation module and the communication information of the verification module; wherein the internal and external interaction data includes internally released data and externally released data, the internally released data represents the data released by the simulation module to the verification module, and the externally released data represents the data fed back by the verification module to the simulation module based on the internally released data; The abnormality judgment module is used to determine whether there is an abnormality in the communication function of the verification module based on the internal release data and the external release data and based on the data release time corresponding to the internal release data.

11. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 9 when executed by a processor.

13. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 9 when being executed by a processor.