Communication bus configuration inspection method and device, electronic equipment and vehicle

By performing configuration file consistency verification before the communication bus of the vehicle system is run, the problem of low data transmission efficiency of the communication bus in the vehicle system is solved, and the system startup speed is improved and the delay is reduced.

CN119182669APending Publication Date: 2024-12-24BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310744644.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-21
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

In the automotive field, the communication bus based on the real-time publish/subscribe protocol needs to wait for a long time before data transmission, resulting in low data transmission efficiency of the communication bus and affecting the system startup speed.

Method used

Before the communication bus of the vehicle system is run, the data subject information and service quality configuration information in the configuration files of the publishing and subscribers are extracted, and consistency checks are performed. If passed, it is determined that the node meets the communication connection conditions, so that when the communication bus is running, it is determined that the node meets the communication connection conditions. Directly establish a connection session to reduce user waiting time.

Benefits of technology

By performing configuration consistency verification in advance, the delay of system data communication is reduced, and the system startup speed and data transmission efficiency are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182669A_ABST
    Figure CN119182669A_ABST
Patent Text Reader

Abstract

The invention discloses a configuration checking method and device of a communication bus, electronic equipment and a vehicle, and relates to the technical field of communication. The method comprises the following steps: before a communication bus in a vehicle-mounted system runs, acquiring a release end configuration file of a first communication node in the communication bus and a subscription end configuration file of a second communication node in the communication bus; respectively extracting data theme information in the publishing end configuration file and the subscription end configuration file and service quality configuration information corresponding to the data theme information; checking the consistency of the service quality configuration information corresponding to the same data theme information in the publishing end configuration file and the subscription end configuration file; and determining that the first communication node and the second communication node meet a communication connection condition under the condition that the consistency check is passed. Compared with a mode that the two parties are not visible before configuration communication and only send messages mutually when connection is established in the prior art, the method has the advantages that the waiting time is shortened, and the data transmission efficiency of the communication bus is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a configuration verification method, device, electronic equipment and vehicle for a communication bus. Background Art

[0002] Currently in the automotive field, when the communication bus is running in the vehicle system, based on the Real-time Publish / Subscribe (RTPS) protocol, the attribute policy configuration is extracted from the interactive message information for verification. The communication nodes with matching attribute policy configurations can establish a connection session and then transmit user data through the Data Distribution Service (DDS).

[0003] However, this method will increase the network communication overhead, and users need to wait for a long time before transmitting data, which affects the data transmission efficiency of the communication bus in the vehicle system. Summary of the invention

[0004] In view of this, the present application provides a configuration verification method, device, electronic device and vehicle for a communication bus, the main purpose of which is to reduce the delay of system data communication and improve the system startup speed.

[0005] In a first aspect, the present application provides a method for checking the configuration of a communication bus, comprising:

[0006] Before the communication bus in the vehicle system is operated, obtaining a publisher configuration file of a first communication node in the communication bus and a subscriber configuration file of a second communication node in the communication bus;

[0007] Respectively extracting data subject information from the publishing end configuration file and the subscriber end configuration file, and service quality configuration information corresponding to each of the data subject information;

[0008] Performing consistency check on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file;

[0009] When the consistency check passes, it is determined that the first communication node and the second communication node meet the communication connection condition.

[0010] In a second aspect, the present application provides a configuration verification device for a communication bus, comprising:

[0011] An acquisition unit is configured to acquire a publisher configuration file of a first communication node in the communication bus and a subscriber configuration file of a second communication node in the communication bus before the communication bus in the vehicle-mounted system is operated;

[0012] A processing unit, configured to respectively extract the data subject information in the publishing end configuration file and the subscriber end configuration file, and the service quality configuration information corresponding to each of the data subject information;

[0013] A verification unit configured to perform consistency verification on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file;

[0014] The result determination unit is configured to determine that the first communication node and the second communication node meet a communication connection condition when the consistency check passes.

[0015] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the configuration verification method of the communication bus described in the first aspect.

[0016] In a fourth aspect, the present application provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the configuration verification method of the communication bus described in the first aspect when executing the computer program.

[0017] In a fifth aspect, the present application provides a vehicle, comprising: the device as described in the second aspect, or the electronic device as described in the fourth aspect.

[0018] By means of the above technical scheme, the present application provides a configuration inspection method, device, electronic device and vehicle for a communication bus. Before the communication bus in the vehicle system is operated, the present application obtains the publisher configuration file of the first communication node and the subscriber configuration file of the second communication node that need to establish communication, and extracts the data subject information and service quality configuration information therein. Then, the data subject information and the corresponding service quality configuration information of the two nodes are subjected to consistency inspection. If the consistency inspection is passed, it is determined that the first communication node and the second communication node meet the communication connection conditions. Compared with the related art, the attribute policy configuration of the publisher and the receiver are invisible to each other before communication, and can only confirm the relevant configuration by sending message information to each other when establishing the connection. In this application, the consistency inspection of the relevant connection configuration is carried out in advance before the operation of the communication bus, and the inspection of the relevant data is changed to be carried out before the communication is established. In this way, when the communication bus in the vehicle system is running, a connection session can be directly established based on the predetermined first communication node and the second communication node meeting the communication connection conditions, and then data transmission is carried out, thereby reducing the waiting time of the user and improving the data transmission efficiency of the communication bus in the vehicle system. Thereby, the system startup speed is improved, the delay of system data communication is reduced, and the system performance is improved.

[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] 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.

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 A schematic diagram of a flow chart of a method for checking configuration of a communication bus provided in an embodiment of the present application is shown;

[0023] Figure 2 A schematic flow chart of another method for checking the configuration of a communication bus provided in an embodiment of the present application is shown;

[0024] Figure 3 A schematic flow chart of another method for checking the configuration of a communication bus provided in an embodiment of the present application is shown;

[0025] Figure 4 A schematic structural diagram of a communication bus configuration verification device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0027] In order to reduce the delay of system data communication and improve the system startup speed, this embodiment proposes a configuration verification method of a communication bus, which can reduce the delay of system data communication and improve the system startup speed while ensuring the accurate operation between communication nodes. Figure 1 As shown, a configuration verification method of a communication bus provided by this embodiment is shown, and the method includes:

[0028] S101. Before the communication bus in the vehicle system is running, obtain a publisher configuration file of a first communication node in the communication bus of the vehicle system and a subscriber configuration file of a second communication node in the communication bus.

[0029] For example, when the vehicle is started and it is determined that the communication bus in the vehicle system is not running, the method shown in this embodiment can be executed before the communication bus is running; or the method shown in this embodiment can be executed within a preset time period after the vehicle receives a start command signal from the user. The preset time period can be a specific time period before the communication bus is running, and the configuration check of the communication bus needs to be completed within this time period. In this way, when the communication bus is running, it can be determined whether direct communication is allowed between communication nodes based on the configuration check results.

[0030] In this embodiment, the communication nodes that need or may establish communication (communication of subscription-distribution mechanism) when the communication bus is running can be counted in advance. These communication nodes can be different functional modules in the vehicle, and the statistical results can be generated into a record list. Each column in the list is a group of communication nodes to be established with which communication is obtained by statistics. For example, the first column is node A and node B, which means that node A and node B need or may establish communication of subscription-distribution mechanism.

[0031] Before the communication bus in the vehicle system is running, this embodiment can refer to the pre-counted record list when performing the configuration check of the communication bus, read any column of data in the list, and then determine the first communication node and the second communication node, and obtain the publishing end configuration file of the first communication node, and obtain the subscriber end configuration file of the second communication node, and further execute the process shown in the following S102 to S104.

[0032] S102: extracting data subject information from the publisher configuration file and the subscriber configuration file, and service quality configuration information corresponding to the data subject information respectively.

[0033] S103, performing consistency check on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscription end configuration file.

[0034] S104: When the consistency check passes, determine that the first communication node and the second communication node meet the communication connection condition.

[0035] If it is determined that the first communication node and the second communication node meet the communication connection conditions, a corresponding record may be made, so that when the communication bus is running, it can be determined based on the record whether to allow the first communication node and the second communication node to establish a communication connection.

[0036] In this embodiment, firstly, the publisher configuration file of the first communication node and the subscriber configuration file of the second communication node that need to establish communication are obtained, wherein the publisher configuration file and the subscriber configuration file can be in the format of extensible markup language (eXtensible Markup Language, XML). Then, the data subject information and the service quality configuration information corresponding to each of the data subject information are extracted from the configuration file. The service quality configuration information here is usually the service quality configuration (Quality of Service, QoS). Next, the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file is checked for consistency. If it passes, it is determined that the first communication node and the second communication node meet the communication connection conditions. The communication connection conditions here are used to determine whether the first communication node and the second communication node are allowed to establish communication when the communication bus is running. It can also be seen that the above scheme is to advance the inspection of relevant data before the communication nodes establish communication. Compared with the related art, the attribute policy configuration of the publisher and the receiver is invisible to each other before communication, and can only be confirmed by sending message information to each other when the connection is established. In terms of the method of confirming the relevant configuration, this embodiment advances the validity check and consistency check of the relevant connection configuration before the operation of the communication bus, and changes the inspection of relevant data to before establishing communication. This increases the system startup speed, reduces the delay in system data communication, and improves system performance.

[0037] Optionally, performing consistency check on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file includes:

[0038] Based on the traversal index basis, all data subject information in the pre-stored records are traversed to check whether the same data subject information between the publisher configuration file and the subscriber configuration file is consistent; check whether the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file is consistent; wherein, the traversal index basis is established according to the subject name and / or type of the data subject information, and the data subject information in the publisher configuration file and the subscriber configuration file, as well as the service quality configuration information corresponding to the data subject information, are pre-stored according to the traversal index basis.

[0039] In this embodiment, after extracting the data subject information and the service quality configuration information, a traversal index basis can be established according to the subject name and / or type of the data subject information. The data subject information of the publisher and the subscriber is stored in the corresponding data subject according to the traversal index basis. This provides convenience for the subsequent consistency check of the two. In the actual application process, a temporary data subject database can be established, and the data subject information and service quality configuration information can be stored in the data subject database. The data subject database is used to check the publisher configuration file and the subscriber configuration file based on the data subject information. If the data subject of the publisher configuration file is determined to be A, the traversal index information a1, a2... can be established, and the service quality configuration information can be stored accordingly. If the data subject of the subscriber configuration file is determined to be B, the traversal index information b1, b2... can be established and the service quality configuration information can be stored accordingly.

[0040] Among them, since there may be multiple different data topics in each configuration file, a double-layer index can be established through the topic name and topic type to make the extracted data topic information more accurate and facilitate the verification of the consistency between the two.

[0041] Furthermore, based on the database established by the above embodiment, according to the traversal index basis, the same data subject information and the service quality configuration information under the same data subject information of the publisher and the subscriber can be found, and then the consistency check can be performed on the two. For example, the corresponding a1, a2... in the A directory of the database mentioned in the above embodiment is compared with the service quality configuration information in the corresponding b1, b2 records in the B directory. Among them, a1 and a2 may be the same and corresponding to b1 and b2 in the subject name, and a and b are only used to distinguish between the publisher A and the subscriber B. Similarly, the specific service quality configuration information also corresponds to the publisher A and the subscriber B respectively. By establishing a traversal index basis in the database and performing a consistency check on the two, the validity check and consistency check of the relevant connection configuration are advanced before the operation of the communication bus, and the inspection of the relevant data is changed to be performed before the establishment of communication. Thereby improving the system startup speed, reducing the delay of system data communication, and improving system performance.

[0042] Optionally, before extracting the data subject information in the publisher configuration file and the subscriber configuration file, and the service quality configuration information corresponding to the data subject information, the configuration verification method of the communication bus further includes: respectively verifying the validity of the publisher configuration file and the subscriber configuration file. Specifically, verifying the validity of the publisher configuration file and the subscriber configuration file includes: verifying the root tags of the publisher configuration file and the subscriber configuration file; and / or, verifying the subtags of the publisher configuration file and the subscriber configuration file; and / or, verifying the tag names of the publisher configuration file and the subscriber configuration file; and / or, verifying the tag contents of the publisher configuration file and the subscriber configuration file.

[0043] In this embodiment, before extracting data subject information and service quality configuration information, it is also necessary to first perform validity checks on the publisher configuration file and the subscriber configuration file. It should be noted that the validity check refers to checking the validity of the unilateral configuration before performing consistency checks on the publisher and subscriber configuration files. The test content includes checking the root tag, sub-tag, tag name and tag content. For example, it can be checked whether the root tag is correct, whether the tag name is a valid name defined in advance by the program, whether the tag content is a pre-defined value, etc. Through this validity check, it is possible to determine whether the unilateral configuration file meets the requirements before the consistency check; on the other hand, compared with related technologies, changing the unilateral configuration validity check from startup to before startup can increase the system startup speed.

[0044] Optionally, before performing consistency check on the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file, the method also includes: performing validity check on the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file.

[0045] In this embodiment, before the consistency check is performed on both sides, the validity check is also performed on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file. Through this validity check, it is determined whether the service quality configuration information of one side meets the requirements before the consistency check.

[0046] Optionally, the configuration verification method of the communication bus also includes: when the publisher configuration file or the subscriber configuration file does not meet the validity check, outputting a corresponding error message; or, when the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file does not meet the validity check, outputting a corresponding error message; or, when the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file fails to pass the consistency check, outputting a connection failure and feeding back a corresponding error message.

[0047] In the above embodiment, if it is found that the requirements are not met during the validity check of the publisher configuration file or the subscriber configuration file, the reason why the corresponding publisher configuration file or the subscriber configuration file does not meet the validity check is output. Similarly, when the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file does not meet the validity check, the corresponding reason for not meeting the validity check is output. In the case that the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file fails to pass the consistency check, the connection failure is output and the corresponding error information is fed back. By promptly feeding back the error information, the user can more clearly understand the reason why the connection cannot be established and make timely adjustments.

[0048] Figure 2 Another configuration verification method for a communication bus provided by the present embodiment is shown. In this scheme, several important steps in the method are briefly illustrated in combination with actual applications. First, the XML configuration file of the publisher and the XML configuration file of the subscriber are input into the parsing and checking program, and then the data in the XML configuration file is parsed into data recognized by the checking program (for example, C language or C++ language) through the XML configuration file parsing engine. After the parsing is completed, the validity of the configuration files on both sides is checked respectively. This check replaces the configuration validity check during the initialization of the traditional system startup to improve the system startup speed. The specific checks are as mentioned above. The validity check includes checks on the root tag, sub-tag, tag name, tag content, and quality of service configuration information. After the validity check is correct, the bilateral consistency is checked. This replaces the attribute policy matching check during the establishment of the dynamic connection of the traditional RTPS communication bus. If the consistency conditions are met, it is determined that communication can be established. If not, the cause of the error is echoed. Next, combined with Figure 3 , the detailed contents of this embodiment scheme are introduced.

[0049] like Figure 3 As shown, another communication bus configuration verification method provided by this embodiment is shown, including:

[0050] S201, obtaining a publisher configuration file and a subscriber configuration file.

[0051] The publisher configuration file and the subscriber configuration file may be in XML format.

[0052] S202, determine whether the publisher configuration file and the subscriber configuration file meet the validity test. If yes, proceed to S2031; if not, proceed to S2032.

[0053] In this embodiment, it is necessary to first perform validity checks on the publisher configuration file and the subscriber configuration file. Specifically, it may include the XML parsing process and the validity checks on the root tag, sub-tag, etc. It should be noted that the validity check refers to checking the validity of the unilateral configuration before the consistency check on the publisher and subscriber configuration files. The check content includes checking the root tag, sub-tag, tag name, and tag content. For example, it can be checked whether the root tag is correct, whether the tag name is a valid name defined in advance by the program, whether the tag content is a pre-defined value, etc. Through this validity check, it is determined whether the unilateral configuration file meets the requirements before the consistency check; on the other hand, compared with related technologies, changing the unilateral configuration validity check from startup to before startup can improve the system startup speed.

[0054] Specifically, the validity check process of the configuration file may include first verifying whether the root tag of the publisher is correct. If it is not correct, the file check is directly exited, the subscription segment file is parsed, and a prompt message of the publisher root tag error is outputted.

[0055] If it is correct, the next step is to parse the sub-tags and check whether the tag name is a valid name pre-defined by the program. If not, the file check is exited and the subscription segment file is parsed. At the same time, a prompt message indicating that the publishing end tag name is wrong is output.

[0056] If it is correct, the next step is to parse the tag content to check whether the tag content is a pre-defined value. If it is an invalid value, the file check is exited, the subscription segment file is parsed, and a prompt message indicating that the publishing end tag content is incorrect is output.

[0057] If correct, the validity check is completed and proceed to the next step.

[0058] S2031, extracting data subject information from the publisher configuration file and the subscriber configuration file, and service quality configuration information corresponding to the data subject information respectively.

[0059] S2032, output error information.

[0060] S204, determine whether the service quality configuration information meets the validity test. If yes, proceed to S2051; if not, proceed to S2052.

[0061] In this embodiment, before the consistency check is performed on both sides, the validity check is also performed on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file. Through this validity check, it is determined whether the service quality configuration information of one side meets the requirements before the consistency check.

[0062] S2051, establish a traversal index basis according to the subject name and / or type of the data subject information, and store the data subject information and corresponding service quality configuration information in the publisher configuration file and the subscriber configuration file in the database according to the traversal index basis.

[0063] In this embodiment, after extracting the data subject information and the service quality configuration information and verifying the validity, a traversal index basis can be established in the database according to the subject name and / or type of the data subject information. The data subject information of the publishing end and the subscription end is stored in the database according to the traversal index basis, and the service quality configuration information is also stored under the corresponding data subject. This provides convenience for the subsequent consistency check of the two. It is also worth noting that this embodiment first verifies the validity of the service quality configuration information, and then establishes the traversal index basis after the data subject information and the service quality configuration information are both checked for validity. It is also possible to choose to establish the traversal index basis after the data subject information is checked for validity and before the service quality configuration information is checked. But in comparison, the former is stored when both the data subject information and the service quality configuration information are valid, which saves more time, reduces the possibility of errors in the middle, and alleviates the complexity of the code.

[0064] Among them, since there may be multiple different data topics in each configuration file, a double-layer index can be established through the topic name and topic type to make the extracted data topic information more accurate and facilitate the verification of the consistency between the two.

[0065] S2052, output error information.

[0066] S206, determine whether the bilateral communication nodes meet the consistency check. If yes, proceed to S2071; if not, proceed to S2072.

[0067] In this embodiment, the consistency check process is introduced. Based on the database established in the above embodiment, according to the traversal index basis, the same data subject information and the service quality configuration information under the same data subject information of the publisher and the subscriber can be found, and then the consistency check is performed on the two. By establishing the traversal index basis in the database and performing consistency check on the two, the validity check and consistency check of the relevant connection configuration are advanced before the communication bus runs, and the inspection of the relevant data is changed to be performed before the communication is established. Thereby improving the system startup speed, reducing the delay of system data communication, and improving the system performance.

[0068] Specifically, taking the data subject database as an example, the data subject of the publishing end configuration file is determined to be A, and the traversal index information a1, a2... is established, and the service quality configuration information is stored accordingly. The data subject of the subscriber end configuration file is determined to be B, and the traversal index information b1, b2... is established and the service quality configuration information is stored accordingly. The specific process of the consistency check includes comparing and checking the service quality configuration information in the corresponding a1, a2... in the directory A of the database mentioned in the above embodiment with the corresponding b1, b2 records in the directory B. If the corresponding service quality configuration information of a1 and b1, a2 and b2... is consistent, the consistency check is satisfied. If it fails, the connection failure is output and the corresponding error information is fed back.

[0069] S2071, determine whether the bilateral communication nodes meet the communication connection conditions.

[0070] S2072, the output connection fails and the corresponding error information is fed back.

[0071] In the above embodiment, if it is found that the requirements are not met during the validity check of the publisher configuration file or the subscriber configuration file, the reason why the corresponding publisher configuration file or the subscriber configuration file does not meet the validity check is output. Similarly, when the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file does not meet the validity check, the corresponding reason for not meeting the validity check is output. In the case that the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file fails to pass the consistency check, the connection failure is output and the corresponding error information is fed back. By promptly feeding back the error information, the user can more clearly understand the reason why the connection cannot be established and make timely adjustments.

[0072] Further, as Figures 1 to 3 The specific implementation of the method shown in the embodiment provides a configuration inspection device for a communication bus, such as Figure 4 As shown, the device includes: an acquisition unit 301, a processing unit 302, a testing unit 303, and a result determination unit 304.

[0073] The acquisition unit 301 is configured to acquire a publisher configuration file of a first communication node in the communication bus and a subscriber configuration file of a second communication node in the communication bus before the communication bus in the vehicle system is operated;

[0074] The processing unit 302 is configured to extract the data subject information in the publisher configuration file and the subscriber configuration file, and the service quality configuration information corresponding to each of the data subject information;

[0075] A verification unit 303 is configured to perform consistency verification on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file;

[0076] The result determination unit 304 is configured to determine that the first communication node and the second communication node meet a communication connection condition when the consistency check passes.

[0077] In a specific application scenario, the processing unit 302 is specifically configured to traverse all data subject information in the pre-stored records based on the traversal index basis, and check whether the same data subject information between the publisher configuration file and the subscriber configuration file is consistent; check whether the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file is consistent; wherein the traversal index basis is established according to the subject name and / or type of the data subject information, and the data subject information in the publisher configuration file and the subscriber configuration file, as well as the service quality configuration information corresponding to each of the data subject information, are pre-stored according to the traversal index basis.

[0078] In a specific application scenario, the verification unit 303 is further configured to perform validity verification on the publishing-end configuration file and the subscribing-end configuration file respectively.

[0079] In a specific application scenario, the verification unit 303 is further configured to verify the root tags of the publisher configuration file and the subscriber configuration file; and / or, to verify the sub-tags of the publisher configuration file and the subscriber configuration file; and / or, to verify the tag names of the publisher configuration file and the subscriber configuration file; and / or, to verify the tag contents of the publisher configuration file and the subscriber configuration file.

[0080] In a specific application scenario, the verification unit 303 is further configured to perform validity verification on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file.

[0081] In a specific application scenario, the result determination unit 304 is further configured to output a corresponding error message when the publisher configuration file or the subscriber configuration file does not satisfy the validity check, or to output a corresponding error message when the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file does not satisfy the validity check; or, when the service quality configuration information corresponding to the same data subject information in the publisher configuration file and the subscriber configuration file fails to pass the consistency check, output a connection failure and feedback a corresponding error message.

[0082] It should be noted that for other corresponding descriptions of the functional units involved in the configuration inspection device for a communication bus provided in this embodiment, reference can be made to Figures 1 to 3 The corresponding description in will not be repeated here.

[0083] Based on the above Figures 1 to 3 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figures 1 to 3 The method shown.

[0084] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.

[0085] Based on the above Figures 1 to 3 The method shown, and Figure 4 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides an electronic device, which can be configured on a computer side or a vehicle side, etc. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figures 1 to 3 The method shown.

[0086] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.

[0087] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.

[0088] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.

[0089] Based on the above electronic device, the embodiment of the present application further provides a vehicle, which may specifically include: Figure 4 The device shown in the figure or the electronic device as described above. The vehicle can be a new energy vehicle or a traditional vehicle.

[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the solution of this embodiment, compared with the related art, the attribute policy configurations of the publisher and the receiver are invisible to each other before communication, and can only confirm the relevant configurations by sending message information to each other when establishing a connection. In this application, the validity check and consistency check of the relevant connection configuration are carried out in advance before the operation of the communication bus, and the inspection of the relevant data is changed to be performed before the communication is established. Thereby improving the system startup speed, reducing the delay of system data communication, and improving system performance.

[0091] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0092] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.

Claims

1. A method for checking the configuration of a communication bus, characterized in that: The method comprises: Before the communication bus in the vehicle-mounted system is operated, obtaining a publisher configuration file of a first communication node in the communication bus and a subscriber configuration file of a second communication node in the communication bus; Respectively extracting data subject information from the publishing end configuration file and the subscriber end configuration file, and service quality configuration information corresponding to each of the data subject information; Performing consistency check on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file; When the consistency check passes, it is determined that the first communication node and the second communication node meet the communication connection condition.

2. The method according to claim 1, characterized in that The consistency check of the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file includes: Based on the traversal index basis, traverse all data subject information in the pre-stored records to check whether the same data subject information between the publishing end configuration file and the subscriber end configuration file is consistent; Check whether the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file is consistent; Among them, the traversal index is established based on the subject name and / or type of the data subject information, and the data subject information in the publishing end configuration file and the subscriber end configuration file, as well as the service quality configuration information corresponding to each of the data subject information, are pre-stored based on the traversal index.

3. The method according to claim 1, characterized in that: Before extracting the data subject information from the publisher configuration file and the subscriber configuration file, and the service quality configuration information corresponding to the data subject information, the method further includes: The validity of the publishing-end configuration file and the subscribing-end configuration file are respectively checked.

4. The method according to claim 3, characterized in that The respectively performing validity checks on the publisher configuration file and the subscriber configuration file includes: Checking the root tags of the publisher configuration file and the subscriber configuration file; and / or, Checking the sub-tags of the publisher configuration file and the subscriber configuration file; and / or, Checking the tag names of the publisher configuration file and the subscriber configuration file; and / or, The tag contents of the publishing-end configuration file and the subscriber-end configuration file are checked.

5. The method according to claim 1, characterized in that Before performing consistency check on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file, the method further includes: The validity of the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file is checked.

6. The method according to any one of claims 3 to 5, characterized in that The method further comprises: When the publishing-end configuration file or the subscriber-end configuration file does not satisfy the validity check, outputting a corresponding error message; or, When the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file does not satisfy the validity check, outputting corresponding error information; or, In the case where the service quality configuration information corresponding to the same data subject information in the publishing-end configuration file and the subscriber-end configuration file fails to pass the consistency check, the output connection fails and corresponding error information is fed back.

7. A communication bus configuration verification device, characterized in that: include: An acquisition unit is configured to acquire a publisher configuration file of a first communication node in the communication bus and a subscriber configuration file of a second communication node in the communication bus before the communication bus in the vehicle-mounted system is operated; A processing unit, configured to respectively extract the data subject information in the publishing end configuration file and the subscriber end configuration file, and the service quality configuration information corresponding to each of the data subject information; A verification unit configured to perform consistency verification on the service quality configuration information corresponding to the same data subject information in the publishing end configuration file and the subscriber end configuration file; The result determination unit is configured to determine that the first communication node and the second communication node meet a communication connection condition when the consistency check passes.

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

9. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

10. A vehicle, characterized in that: include: The device as claimed in claim 7 or the electronic device as claimed in claim 9.