WO2022135057A1 - Vehicle bus topological graph generation method and apparatus, and computing device - Google Patents

Vehicle bus topological graph generation method and apparatus, and computing device Download PDF

Info

Publication number
WO2022135057A1
WO2022135057A1 PCT/CN2021/133807 CN2021133807W WO2022135057A1 WO 2022135057 A1 WO2022135057 A1 WO 2022135057A1 CN 2021133807 W CN2021133807 W CN 2021133807W WO 2022135057 A1 WO2022135057 A1 WO 2022135057A1
Authority
WO
WIPO (PCT)
Prior art keywords
bus
node
nodes
electronic control
topology map
Prior art date
Application number
PCT/CN2021/133807
Other languages
French (fr)
Chinese (zh)
Inventor
王维林
Original Assignee
深圳市道通科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市道通科技股份有限公司 filed Critical 深圳市道通科技股份有限公司
Publication of WO2022135057A1 publication Critical patent/WO2022135057A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring

Definitions

  • the present application relates to the technical field of vehicle detection, and in particular, to a method, device and computing device for generating a topology map of a vehicle bus.
  • Communication failure causes include power bus failure, power failure, communication line failure, unit failure, or sensor failure.
  • the bus topology diagram can help users locate the scope and cause of the fault, and quickly analyze the fault from the macro level.
  • embodiments of the present invention provide a method, apparatus, and computing device for generating a topology map of an automobile bus, which overcome the above problems or at least partially solve the above problems.
  • a method for generating an automobile bus topology map which is applied to an automobile fault diagnosis device.
  • the method includes: acquiring vehicle information of an automobile and a list of electronic control units configured in the automobile;
  • the vehicle information determines a topology map template corresponding to the vehicle information, wherein the topology map template is classified according to connection characteristics, and the connection characteristics include the connection relationship of nodes and the connection relationship of buses, and the nodes are used for Characterize the electronic control unit and the diagnostic interface with external devices; generate and display the car bus topology map according to the list of electronic control units configured in the car and the topology map template.
  • the nodes in the topology diagram template are arranged in a determinant format, the nodes of different types are arranged in rows, and the nodes include diagnostic interface nodes, root Nodes and child nodes, said nodes of the same type are arranged in columns.
  • the bus in the topology map template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus.
  • the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
  • the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in a row between the root node and the child node in the gap.
  • the bus is a diagnostic bus
  • the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus is connected to the root node node, the bus can be arranged in a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus can be arranged in a column gap.
  • the bus is a ring bus
  • the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes
  • the vertical lines of the bus are arranged in the blanks formed by the nodes.
  • the bus is an internal bus, the bus is arranged in a column gap.
  • the bus is a spanning line
  • the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
  • the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus. If both the key node and the common node exist in the column, the key node is closer to the root node than the common node.
  • the common nodes connected to the same bus in the topology diagram template are arranged according to the degree of closeness of the functional relationship, and common nodes with a high degree of closeness are arranged in the same area.
  • a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
  • the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the weight value of the electronic control unit is It is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
  • the node used to characterize the electronic control unit with a high weight value is located in the main area of the topology map template.
  • the main area is located at the upper left of the topology map template.
  • the generating and displaying the car bus topology map according to the list of electronic control units configured on the car and the topology map template includes: a list of the electronic control units configured on the car The electronic control units in the map are mapped to the nodes of the topology map template to generate and display the vehicle bus topology map.
  • the method further includes: if the number of electronic control units in the electronic control unit list is less than the number of the nodes, adjusting the number of the nodes in the topology map template Arrange locations to generate and display a car bus topology map.
  • the method further includes: if there is an electronic control unit connected to a local area network bus in the electronic control unit list, displaying a node used to represent the electronic control unit in the vehicle bus topology map. It is used to characterize the identifier connected to the local area network bus.
  • the method further includes: different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifiers of the key buses are the same as the display identifiers. Compared with the display logo of the ordinary bus, it is more obvious.
  • the method further includes: receiving a control instruction input by a user to a node in the vehicle bus topology diagram; Display interface related to the electronic control unit represented by the node.
  • the display state of the node in the vehicle bus topology diagram represents the diagnosis state of the electronic control unit represented by the node.
  • an apparatus for generating an automobile bus topology map which is applied to an automobile fault diagnosis device.
  • the apparatus includes: a data acquisition unit for acquiring vehicle information of the automobile and the configuration of the automobile.
  • the template determination unit is used to determine the topology map template corresponding to the vehicle information according to the vehicle information, wherein the topology map template is classified according to the connection feature, and the connection feature includes the node's
  • the connection relationship and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with the external device;
  • the topology map generation unit is used for according to the electronic control unit list configured in the car and the topology map template, Generate and display automotive bus topology diagrams.
  • a computing device including: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface communicate with each other through the communication bus. communication between;
  • the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the steps of the above-mentioned method for generating a vehicle bus topology map.
  • a computer storage medium where at least one executable instruction is stored in the storage medium, and the executable instruction causes the processor to execute the above-mentioned method for generating a vehicle bus topology map. step.
  • the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
  • FIG. 1 shows a schematic flowchart of a method for generating a vehicle bus topology map provided by an embodiment of the present invention
  • FIG. 2 shows a schematic layout diagram of a template of a vehicle bus topology diagram provided by an embodiment of the present invention
  • FIG. 3 shows a schematic diagram of wiring location planning of a method for generating a vehicle bus topology map provided by an embodiment of the present invention
  • FIG. 4 shows a schematic diagram of a ring bus connection of a method for generating a vehicle bus topology diagram provided by an embodiment of the present invention
  • FIG. 5 shows a schematic diagram of node arrangement of a method for generating a vehicle bus topology map provided by an embodiment of the present invention
  • FIG. 6 shows a schematic diagram of common node connections of a method for generating a vehicle bus topology map provided by an embodiment of the present invention
  • FIG. 7 shows a schematic diagram of topology map adjustment of a method for generating a vehicle bus topology map provided by an embodiment of the present invention
  • FIG. 8 shows a schematic diagram of a local area network bus labeling of a method for generating a vehicle bus topology map provided by an embodiment of the present invention
  • FIG. 9 shows a schematic diagram of yet another method for generating a vehicle bus topology map provided by an embodiment of the present invention.
  • FIG. 10 shows a schematic structural diagram of an apparatus for generating a vehicle bus topology map provided by an embodiment of the present invention
  • FIG. 11 shows a schematic structural diagram of a computing device provided by an embodiment of the present invention.
  • FIG. 1 shows a schematic flowchart of a method for generating a vehicle bus topology map provided by an embodiment of the present invention.
  • the method is performed by an electronic device.
  • the electronic device may be an electronic device such as a mobile phone, a tablet, a notebook computer, and a car diagnostic device.
  • the electronic device can realize direct or indirect communication connection with the car to obtain the relevant data and information of the car, and then can generate the bus topology map of the car.
  • the electronic device can display the bus topology map by itself, or send it to other display terminals for display.
  • the method for generating a vehicle bus topology diagram includes:
  • Step S11 Obtain vehicle information of the car and a list of electronic control units configured in the car.
  • the vehicle information includes a vehicle brand, a model, a model year, and the like.
  • the vehicle information can be obtained through user input or from the car after communicating with the car.
  • the list of electronic control units configured in the car can be queried from the central gateway by sending a command to the car.
  • Step S12 Determine a topology map template corresponding to the vehicle information according to the vehicle information, wherein the topology map template is classified according to connection features, and the connection features include the connection relationship of nodes and the connection relationship of buses, so The nodes are used to characterize the electronic control unit and the diagnostic interface with external devices.
  • each model and each model year summarize their car bus topology relationships, take the cars with the same or similar car bus topology relationships as the same group, and make the topology corresponding to the group Diagram template, so that the topology diagram template can cover the bus topology relationship of the group of cars.
  • the production of the topology map template is not limited in the embodiments of the present application.
  • the electronic device pre-stores a topology map template and a corresponding relationship between the topology map template and vehicle information. Therefore, when the electronic device is in communication connection with a specific car, by acquiring the vehicle information of the specific car, a topology map template corresponding to the vehicle information of the car can be determined.
  • the topology diagram template reflects the connection relationship of nodes and the connection relationship of buses.
  • the connection relationship of the nodes includes the connection relationship between the node and one end of at least one bus, and the connection relationship between the nodes;
  • the connection relationship of the bus includes the connection relationship between each end of the bus and the node, and the connection characteristics of the bus.
  • the bus is Ring bus, etc.
  • the electronic device can be adapted to a variety of vehicles of different brands, models, and years, making the topology relationship of the vehicle bus clear at a glance and enhancing user experience.
  • topology map template can embody.
  • the nodes in the topology map template are arranged in determinants, and the nodes of different types are arranged in rows.
  • the nodes include diagnostic interface nodes, root nodes and child nodes according to their types.
  • the nodes of the same type are arranged in rows. are arranged in columns.
  • the nodes are arranged in cells.
  • the entire layout of the topology map template is designed according to the determinant scheme, and all nodes are arranged in specific cells of the determinant. For the convenience of analysis, try to display the whole page in one page. If a page is not displayed completely, expand the columns in the horizontal direction, and keep the number of vertical rows unchanged, and display them by sliding the scroll bar left and right. By default, the determinant is in the form of 15 rows by 15 columns. In typography, horizontally, the content is centered and aligned, and vertical, the content is aligned upwards.
  • the bus in the topology diagram template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus.
  • the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
  • the common bus is the bus that starts from the root node (Root) and connects to other nodes.
  • the diagnostic bus is based on DLC is the starting point and is connected to the bus of Root or other nodes.
  • the ring bus is a logically ring structure, which can be connected to the Root node or The bus connected to the non-Root node, such as the MOST bus in Figure 2;
  • the internal bus is the non-gateway node as the starting point, wired in the same column, and only a bus connected to a few nodes, such as the K-CAN9 bus and Ethernet bus;
  • spanning line is a special internal bus that can span multiple columns, such as the K-CAN3 bus in Figure 2.
  • the bus is a common bus
  • the bus is arranged in the column gap, or the bus is arranged in the row gap between the root node and the child node.
  • the vertical lines of the common bus pass through the column gap of the determinant
  • the horizontal lines pass through the Root node area; if the common bus crosses the left and right sides of the Root node, it can pass through the horizontal wiring area, as shown in Figure 2 in the K-CAN1 bus.
  • the bus is a diagnostic bus
  • the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus connects the root node, the bus can be arranged In a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus is arranged in a column gap.
  • the horizontal wiring of the diagnostic bus passes between the regions of the diagnostic connection joint nodes, and the vertical bus connecting the Root node passes through the columns of the determinant, and is connected to the key node or the common node.
  • the longitudinal bus passes through the column gap of the determinant, such as the K-CAN9 bus in FIG. 2 .
  • the bus is a ring bus
  • the horizontal lines of the bus are arranged in the blanks in the rows formed by the nodes, and the vertical lines of the bus are arranged in the blanks or column gaps in the columns formed by the nodes ; wherein, both ends of the bus are connected to different nodes, or, both ends of the bus are connected to the same node.
  • the vertical wiring of the ring bus can pass through the cell or through the column gap, and the lateral line can only pass through the cell position.
  • the connection positions of different units connected laterally on the ring bus (as shown in Figure a in Figure 4) or the left and right connections of the same unit (as shown in Figure 4 in Figure b) need to be consistent.
  • the bus is an internal bus
  • the internal bus only includes vertical wiring, and the bus is arranged in column gaps.
  • the bus is a spanning line
  • the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
  • the lateral wiring of the spanning line traverses from the lateral wiring area (ie, row gap) or bottom of the determinant
  • the vertical wiring traverses from the column gap of the determinant.
  • a diagnostic interface node (DLC, Diagnostic Link Connector) is used as the starting point of the diagnostic bus, and is arranged at the top of the topology map template, occupying a single line, and the DLC is unique in the entire network, and is an electronic device, such as the entrance of a diagnostic tool.
  • the root node (Root) is used as the default gateway, and it is placed in the upper part of each child node in a single row.
  • the root node is the starting point of most buses. It is arranged as a row and displayed in the center, which can clearly show the logical structure of the network, as shown in Figure 2.
  • EZS node Some cars also need to arrange secondary root nodes to better show the organizational structure between buses, as shown in the PTCU unit in Figure 2.
  • the root node is usually connected directly to the DLC and serves as the general entry point for diagnostic tools to access the car.
  • the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus, if the key node and the If the key node is an ordinary node, the key node is closer to the root node than the ordinary node.
  • the key nodes are connected to multiple buses and used as gateways in communication, which has a great impact on the overall layout of the topology map template, such as COMAND, N145/1, ECM and other nodes in Figure 2.
  • the key nodes are laid out below the root node and above other common nodes.
  • Common nodes are electronic control units, which are arranged on the cells in a determinant format. Ordinary nodes are only connected to nodes of one bus. The common nodes connected to the same bus in the topology map template are arranged according to the closeness of the functional relationship, and common nodes with high closeness are arranged in the same area. Specifically, the arrangement of common nodes is mainly based on the following principles:
  • a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
  • K-CAN is connected to 24 units, which cannot be displayed in one column, and need to be divided into multiple columns for arrangement. Typically, no more than 12 cells per column are recommended.
  • the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, the weight value of the electronic control unit is based on the failure of the electronic control unit The probability and severity of the failure of the electronic control unit are determined.
  • Nodes for characterizing electronic control units with high weight values are located in the main area of the topology map template. For example, power system or chassis system, this part of the system has a relatively high priority. If there is a fault, it must be stopped immediately; for the body system, comfort and entertainment system, the importance is relatively low, even if there is a fault, you can continue to drive to repair Shop repairs, this part of the unit is arranged in a lower weighted area.
  • the upper part and the left part are the focus of visual observation or the first attention area.
  • the weight design of this part of the area is relatively high, and the weight design of the edge or the lower right part is slightly lower.
  • the main area is located at the upper left of the topology map template.
  • common nodes can only be connected from a column gap, a common node, a diagnostic bus, a common bus, an internal bus, and a crossover line; and a ring bus can be connected from a column gap or a row gap.
  • the horizontal connecting lines are connected at the column gaps, and the vertical connecting lines are connected at the column gaps.
  • the unit is the end of the vertical bus wiring, it is arranged in the upper connection area of the unit, such as line A in Figure 6;
  • the unit is the initial segment of the longitudinal bus, it is arranged in the lower connection area of the unit, such as the B line in Figure 6;
  • the unit is the non-end point of the longitudinal line, try to arrange it in the middle connection area of the unit, such as the C line in Figure 6;
  • the bus connection Root or DLC follows the following rules:
  • Root or DLC The bus on the left side of Root or DLC is connected to the left side, and the bus on the right side is connected to the right side;
  • K-CAN is the farthest from EZS and is arranged to be connected at the top end, while FLEXRAY is closest to EZS and is arranged to be connected at the bottom end;
  • connection point is arranged at the lowermost part of the Root, and the connection positions on both sides need to be consistent, as shown in Figure b in Figure 4.
  • the spanning part is arranged in the horizontal wiring area of the topology map template, as shown in K-CAN1 in Figure 2.
  • routing at the gap the routing of more than 1 vertical bus can be supported at the column gap.
  • routing is generally not allowed, except for the vertical routing of the ring bus or the vertical routing of the DLC connection root.
  • the embodiment of the present invention simplifies the scheme design, supports various complex bus connections, plans the bus wiring constraints, makes the appearance of the topology diagram simple, and is easy for algorithm implementation.
  • the production of the topology map template consists of two stages, the manuscript stage and the computer data stage.
  • the manuscript stage the layout planning of the bus and the connection relationship between the nodes are marked.
  • the computer data stage also follows the aforementioned set of rules.
  • the topology diagram template plans the overall structure of the vehicle bus topology diagram, the connection relationship between the buses, the arrangement position of the DLC, the root node, the key node and the common node.
  • Step S13 Generate and display a car bus topology map according to the list of electronic control units configured in the car and the topology map template.
  • the unit configuration prepared in the template stage is prepared according to the full series configuration, so, during the test, the vehicle model configuration may be reduced, and the vehicle bus topology map needs to be displayed according to the specific vehicle model configuration.
  • the non-critical node mainly refers to the electronic control unit.
  • the electronic control units in the list of electronic control units configured in the car are mapped to the nodes of the topology map template, so as to generate and display the car bus topology map.
  • the arrangement position of the nodes in the topology map template is adjusted to generate and display a vehicle bus topology map.
  • the bus topology of the vehicle will be sparse or some areas are too dense, and the excessive areas are sparse, which will affect the aesthetics.
  • the units on the same bus can be arranged in multiple columns and evenly arranged; some columns can also be left empty, and the columns can be evenly arranged on the entire vehicle bus topology.
  • the computer algorithm combines the configuration data and the template corresponding to the vehicle model to generate the vehicle bus topology map in the form of vector diagrams according to the preset rules. By optimizing the layout, the appearance of the vehicle bus topology map is simple and easy to implement.
  • the method for generating an automobile bus topology map can support platforms that support SVG browsers such as PC, Android, and iOS, and the planning of the number of rows and columns of the determinant of the automobile bus topology map can be adjusted, and the layout of DLC nodes in the horizontal direction can be adjusted. You can deviate from a certain column in the middle.
  • different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifier of the key bus is compared with the display identifier of the common bus.
  • the logo is obvious. Different colors can be applied to represent different buses to differentiate them. The colors need to have obvious differences in vision, and at the same time can reflect the relative meaning of the bus. For example, the bus of the power system has a high degree of emergency and is more important. It is generally represented by red-related colors. The comfort bus generally belongs to the entertainment system. express.
  • the topology diagram template provides a variety of color templates for selection, and the color scheme of the bus can be changed in different ways.
  • css and javascript are embedded in the car bus topology map, so that the car bus topology map supports dynamic state change and click events of the electronic control unit.
  • the display state of the node in the vehicle bus topology diagram represents the diagnostic state of the electronic control unit represented by the node. Specifically, different colors can be used to mark different diagnostic states of the electronic control unit.
  • the diagnostic status of the electronic control unit includes no communication, no response, normal communication with fault codes, etc., which can be distinguished by changing the color of the electronic control unit. In the case of communication fault codes, it can also indicate how many communication fault codes there are.
  • the RDK unit in Figure 2 indicates that there are 3 communication fault codes.
  • a node used to represent the electronic control unit in the vehicle bus topology map displays an identifier used to represent that the local area network bus is connected. If the electronic control unit is also connected with other local area network bus, such as LIN bus, it can also be marked on the unit, as shown in Figure 8.
  • the dynamic interaction function of the electronic control unit is realized by css and javascript. By embedding css and javascript in svg, it supports the change of the cell style, and the cell click event support. In this way, the car system can be directly entered from the cell.
  • a control instruction input by a user to a node in the vehicle bus topology diagram is received; and a display interface related to the electronic control unit represented by the node is displayed according to the control instruction.
  • the electronic device may be provided with a self-learning function, that is, to obtain the bus topology relationship of a car of a new model, a new brand, or a new vehicle year, and classify it into a certain topology according to the obtained new bus topology relationship diagram template, or, generate a new topology diagram template. Further, the electronic device can be adapted to a new adaptation scenario, thereby generating a topology map in time.
  • a self-learning function that is, to obtain the bus topology relationship of a car of a new model, a new brand, or a new vehicle year, and classify it into a certain topology according to the obtained new bus topology relationship diagram template, or, generate a new topology diagram template.
  • the electronic device can be adapted to a new adaptation scenario, thereby generating a topology map in time.
  • the electronic device can be used in the early stage of the classification of the topology relationship of the vehicle bus and the learning stage of the generation of the topology map template.
  • the learning program can generate the topology map template, and can also determine the corresponding relationship between the vehicle information and the topology map template. .
  • a complete method for generating a topology map of automobile bus is shown in Figure 9. The automobile data of each brand of automobile is grouped, and the models with the same or very similar bus connection relationship are grouped into the same group, and the same topology map is generated to generate the topology Diagram template.
  • the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
  • FIG. 10 shows a schematic structural diagram of an apparatus for generating a topology map of a vehicle bus according to an embodiment of the present invention.
  • the vehicle bus topology map generating device is applied to vehicle fault diagnosis equipment.
  • the vehicle bus topology map generating device includes: a data acquisition unit 101 , a template determination unit 102 , a topology map generation unit 103 and a dynamic interaction unit 104 . in:
  • the data acquisition unit 101 is configured to acquire vehicle information of the car and a list of electronic control units configured on the car;
  • the template determination unit 102 is configured to determine a topology map template corresponding to the vehicle information according to the vehicle information, wherein the The topology map template is classified according to the connection characteristics, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment;
  • the topology map generation unit 103 is used for according to.
  • the list of electronic control units configured in the car and the topology map template generate and display the car bus topology map.
  • the nodes in the topology diagram template are arranged in a determinant format, the nodes of different types are arranged in rows, and the nodes include diagnostic interface nodes, root Nodes and child nodes, said nodes of the same type are arranged in columns.
  • the bus in the topology map template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus.
  • the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
  • the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in a row between the root node and the child node in the gap.
  • the bus is a diagnostic bus
  • the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus is connected to the root node node, the bus can be arranged in a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus can be arranged in a column gap.
  • the bus is a ring bus
  • the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes
  • the vertical lines of the bus are arranged in the blanks formed by the nodes.
  • the bus is an internal bus, the bus is arranged in a column gap.
  • the bus is a spanning line
  • the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
  • the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus. If both the key node and the common node exist in the column, the key node is closer to the root node than the common node.
  • the common nodes connected to the same bus in the topology diagram template are arranged according to the degree of closeness of the functional relationship, and common nodes with a high degree of closeness are arranged in the same area.
  • a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
  • the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the weight value of the electronic control unit is It is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
  • the node used to characterize the electronic control unit with a high weight value is located in the main area of the topology map template.
  • the main area is located at the upper left of the topology map template.
  • the topology map generating unit 103 is configured to: map the electronic control units in the list of electronic control units configured in the car to the nodes of the topology map template, so as to generate and display the car bus Topology.
  • the topology map generating unit 103 is further configured to: if the number of electronic control units in the electronic control unit list is less than the number of the nodes, adjust the number of the nodes in the topology map layout in a template to generate and display a car bus topology diagram.
  • the topology map generating unit 103 is further configured to: if there is an electronic control unit connected to a local area network bus in the electronic control unit list, the vehicle bus topology map is used to represent the electronic control unit The node displays an identifier used to characterize the LAN bus connected to it.
  • different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifier of the key bus is compared with the common bus.
  • the display logo is obvious.
  • the dynamic interaction unit 104 is configured to: receive a control instruction inputted by a user to a node in the vehicle bus topology diagram; display information related to the electronic control unit represented by the node according to the control instruction UI.
  • the display state of the node in the vehicle bus topology diagram represents the diagnosis state of the electronic control unit represented by the node.
  • the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
  • An embodiment of the present invention provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer-executable instruction can execute the method for generating a vehicle bus topology diagram in any of the above method embodiments.
  • Executable instructions can specifically be used to cause the processor to perform the following operations:
  • a topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is classified according to connection characteristics, and the connection characteristics include the connection relationship of nodes and the connection relationship of buses. for characterization of electronic control units and diagnostic interfaces with external equipment;
  • a car bus topology map is generated and displayed.
  • the nodes in the topology diagram template are arranged in a determinant format, the nodes of different types are arranged in rows, and the nodes include diagnostic interface nodes, root Nodes and child nodes, said nodes of the same type are arranged in columns.
  • the bus in the topology map template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus.
  • the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
  • the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in a row between the root node and the child node in the gap.
  • the bus is a diagnostic bus
  • the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus is connected to the root node node, the bus can be arranged in a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus can be arranged in a column gap.
  • the bus is a ring bus
  • the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes
  • the vertical lines of the bus are arranged in the blanks formed by the nodes.
  • the bus is an internal bus, the bus is arranged in a column gap.
  • the bus is a spanning line
  • the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
  • the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus. If both the key node and the common node exist in the column, the key node is closer to the root node than the common node.
  • the common nodes connected to the same bus in the topology diagram template are arranged according to the degree of closeness of the functional relationship, and common nodes with a high degree of closeness are arranged in the same area.
  • a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
  • the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the weight value of the electronic control unit is It is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
  • the node used to characterize the electronic control unit with a high weight value is located in the main area of the topology map template.
  • the main area is located at the upper left of the topology map template.
  • executable instructions cause the processor to perform the following operations:
  • the electronic control units in the list of electronic control units configured in the car are mapped to the nodes of the topology map template, so as to generate and display the car bus topology map.
  • executable instructions cause the processor to perform the following operations:
  • the arrangement position of the nodes in the topology map template is adjusted to generate and display a vehicle bus topology map.
  • executable instructions cause the processor to perform the following operations:
  • a node used to represent the electronic control unit in the vehicle bus topology map displays an identifier used to represent that the local area network bus is connected.
  • different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifier of the key bus is compared with the common bus.
  • the display logo is obvious.
  • executable instructions cause the processor to perform the following operations:
  • a display interface related to the electronic control unit represented by the node is displayed according to the control instruction.
  • the display state of the node in the vehicle bus topology diagram represents the diagnosis state of the electronic control unit represented by the node.
  • the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make the topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
  • An embodiment of the present invention provides an apparatus for generating a topology map of an automobile bus, which is used for executing the above method for generating a topology map of an automobile bus.
  • An embodiment of the present invention provides a computer program, which can be invoked by a processor to cause a base station device to execute the method for generating a vehicle bus topology map in any of the foregoing method embodiments.
  • An embodiment of the present invention provides a computer program product, the computer program product includes a computer program stored on a computer storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, causes the computer to The method for generating a vehicle bus topology map in any of the above method embodiments is executed.
  • Executable instructions can specifically be used to cause the processor to perform the following operations:
  • a topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is classified according to connection characteristics, and the connection characteristics include the connection relationship of nodes and the connection relationship of buses. for characterization of electronic control units and diagnostic interfaces with external equipment;
  • a car bus topology map is generated and displayed.
  • the nodes in the topology diagram template are arranged in a determinant format, the nodes of different types are arranged in rows, and the nodes include diagnostic interface nodes, root Nodes and child nodes, said nodes of the same type are arranged in columns.
  • the bus in the topology map template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus.
  • the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
  • the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in a row between the root node and the child node in the gap.
  • the bus is a diagnostic bus
  • the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus is connected to the root node node, the bus can be arranged in a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus can be arranged in a column gap.
  • the bus is a ring bus
  • the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes
  • the vertical lines of the bus are arranged in the blanks formed by the nodes.
  • the bus is an internal bus, the bus is arranged in a column gap.
  • the bus is a spanning line
  • the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
  • the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus. If both the key node and the common node exist in the column, the key node is closer to the root node than the common node.
  • the common nodes connected to the same bus in the topology diagram template are arranged according to the degree of closeness of the functional relationship, and common nodes with a high degree of closeness are arranged in the same area.
  • a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
  • the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the weight value of the electronic control unit is It is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
  • the node used to characterize the electronic control unit with a high weight value is located in the main area of the topology map template.
  • the main area is located at the upper left of the topology map template.
  • executable instructions cause the processor to perform the following operations:
  • the electronic control units in the list of electronic control units configured in the car are mapped to the nodes of the topology map template, so as to generate and display the car bus topology map.
  • executable instructions cause the processor to perform the following operations:
  • the arrangement position of the nodes in the topology map template is adjusted to generate and display a vehicle bus topology map.
  • executable instructions cause the processor to perform the following operations:
  • a node used to represent the electronic control unit in the vehicle bus topology map displays an identifier used to represent that the local area network bus is connected.
  • different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifier of the key bus is compared with the common bus.
  • the display logo is obvious.
  • executable instructions cause the processor to perform the following operations:
  • a display interface related to the electronic control unit represented by the node is displayed according to the control instruction.
  • the display state of the node in the vehicle bus topology diagram represents the diagnosis state of the electronic control unit represented by the node.
  • the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
  • FIG. 11 shows a schematic structural diagram of a computing device provided by an embodiment of the present invention.
  • the specific embodiment of the present invention does not limit the specific implementation of the device.
  • the computing device may include: a processor (processor) 1102 , a communications interface (Communications Interface) 1104 , a memory (memory) 1106 , and a communication bus 1108 .
  • processor processor
  • communications interface Communication Interface
  • memory memory
  • the processor 1102 , the communication interface 1104 , and the memory 1106 communicate with each other through the communication bus 1108 .
  • the communication interface 1104 is used to communicate with network elements of other devices such as clients or other servers.
  • the processor 1102 is configured to execute the program 1110, and specifically may execute the relevant steps in the above-mentioned embodiments of the method for generating a bus topology map of an automobile.
  • the program 1110 may include program code including computer operation instructions.
  • the processor 1102 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or each integrated circuit configured to implement an embodiment of the present invention.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • One or each processor included in the device may be the same type of processor, such as one or each CPU; or may be different types of processors, such as one or each CPU and one or each ASIC.
  • the memory 1106 is used to store the program 1110 .
  • Memory 1106 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
  • the program 1110 can specifically be used to cause the processor 1102 to perform the following operations:
  • a topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is classified according to connection characteristics, and the connection characteristics include the connection relationship of nodes and the connection relationship of buses. for characterization of electronic control units and diagnostic interfaces with external equipment;
  • a car bus topology map is generated and displayed.
  • the nodes in the topology diagram template are arranged in a determinant format, the nodes of different types are arranged in rows, and the nodes include diagnostic interface nodes, root Nodes and child nodes, said nodes of the same type are arranged in columns.
  • the bus in the topology map template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus.
  • the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
  • the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in a row between the root node and the child node in the gap.
  • the bus is a diagnostic bus
  • the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus is connected to the root node node, the bus can be arranged in a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus can be arranged in a column gap.
  • the bus is a ring bus
  • the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes
  • the vertical lines of the bus are arranged in the blanks formed by the nodes.
  • the bus is an internal bus, the bus is arranged in a column gap.
  • the bus is a spanning line
  • the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
  • the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus. If both the key node and the common node exist in the column, the key node is closer to the root node than the common node.
  • the common nodes connected to the same bus in the topology diagram template are arranged according to the degree of closeness of the functional relationship, and common nodes with a high degree of closeness are arranged in the same area.
  • a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
  • the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the weight value of the electronic control unit is It is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
  • the node used to characterize the electronic control unit with a high weight value is located in the main area of the topology map template.
  • the main area is located at the upper left of the topology map template.
  • program 1110 causes the processor to perform the following operations:
  • the electronic control units in the list of electronic control units configured in the car are mapped to the nodes of the topology map template, so as to generate and display the car bus topology map.
  • program 1110 causes the processor to perform the following operations:
  • the arrangement position of the nodes in the topology map template is adjusted to generate and display a vehicle bus topology map.
  • program 1110 causes the processor to perform the following operations:
  • a node used to represent the electronic control unit in the vehicle bus topology map displays an identifier used to represent that the local area network bus is connected.
  • different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifier of the key bus is compared with the common bus.
  • the display logo is obvious.
  • program 1110 causes the processor to perform the following operations:
  • a display interface related to the electronic control unit represented by the node is displayed according to the control instruction.
  • the display state of the node in the vehicle bus topology diagram represents the diagnosis state of the electronic control unit represented by the node.
  • the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
  • modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment.
  • the modules or units or components in the embodiments may be combined into one module or unit or component, and they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined.
  • Each feature disclosed in this specification may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

Abstract

A vehicle bus topological graph generation method and apparatus, which relate to the technical field of vehicle testing. The method comprises: acquiring vehicle information of a vehicle and an electronic control unit list configured by the vehicle (S11); determining, according to the vehicle information, a topological graph template corresponding to the vehicle information, wherein the topological graph template is classified according to connection features, the connection features comprise a connection relationship between nodes and a connection relationship between buses, and the nodes are used for representing an electronic control unit and a diagnostic interface with an external device (S12); and generating and displaying a vehicle bus topological graph according to the electronic control unit list configured by the vehicle and the topological graph template (S13). A layout configuration rule can be optimized, a dynamic change in a unit state and a click event are supported, the dynamic interaction capability of a topological graph is realized, the topological graph is concise and algorithm implementation is facilitated, and the use efficiency of the topological graph is improved.

Description

汽车总线拓扑图生成方法、装置及计算设备Method, device and computing device for generating vehicle bus topology map
本申请要求于2020年12月23日提交中国专利局、申请号为202011546698.9、申请名称为“汽车总线拓扑图生成方法、装置及计算设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011546698.9 and the application title "Method, Apparatus and Computing Device for Generating Automobile Bus Topology Map", which was filed with the China Patent Office on December 23, 2020, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及车辆检测技术领域,具体涉及一种汽车总线拓扑图生成方法、装置及计算设备。The present application relates to the technical field of vehicle detection, and in particular, to a method, device and computing device for generating a topology map of a vehicle bus.
背景技术Background technique
在汽车电脑故障分析中,50%以上故障是由于通讯原因引起的。通信故障原因包括电源总线故障、电源故障、通信线路故障、单元故障或者传感器故障。总线拓扑图可帮助用户定位故障发生的范围和原因,从宏观层面快速的分析故障。汽车的单元部件之间,存在多种连接方式和多种总线连接,且总线之间的连接关系也比较复杂,如何设计出精准、有效、简洁、美观的拓扑图,对汽车故障检修非常重要。In the analysis of car computer failures, more than 50% of the failures are caused by communication reasons. Communication failure causes include power bus failure, power failure, communication line failure, unit failure, or sensor failure. The bus topology diagram can help users locate the scope and cause of the fault, and quickly analyze the fault from the macro level. There are various connection methods and various bus connections between the unit components of the automobile, and the connection relationship between the buses is also relatively complex. How to design an accurate, effective, concise and beautiful topology is very important for automobile troubleshooting.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,本发明实施例提供了一种汽车总线拓扑图生成方法、装置及计算设备,克服了上述问题或者至少部分地解决了上述问题。In view of the above problems, embodiments of the present invention provide a method, apparatus, and computing device for generating a topology map of an automobile bus, which overcome the above problems or at least partially solve the above problems.
根据本发明实施例的一个方面,提供了一种汽车总线拓扑图生成方法,应用于汽车故障诊断设备,所述方法包括:获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图。According to an aspect of the embodiments of the present invention, there is provided a method for generating an automobile bus topology map, which is applied to an automobile fault diagnosis device. The method includes: acquiring vehicle information of an automobile and a list of electronic control units configured in the automobile; The vehicle information determines a topology map template corresponding to the vehicle information, wherein the topology map template is classified according to connection characteristics, and the connection characteristics include the connection relationship of nodes and the connection relationship of buses, and the nodes are used for Characterize the electronic control unit and the diagnostic interface with external devices; generate and display the car bus topology map according to the list of electronic control units configured in the car and the topology map template.
在一种可选的方式中,所述拓扑图模板中所述节点是按行列式排布的,不同类型的所述节点是按行排布的,所述节点按照类型包括诊断接口节点、根节点以及子节点,相同类型的所述节点是按列排布的。In an optional manner, the nodes in the topology diagram template are arranged in a determinant format, the nodes of different types are arranged in rows, and the nodes include diagnostic interface nodes, root Nodes and child nodes, said nodes of the same type are arranged in columns.
在一种可选的方式中,所述拓扑图模板中所述总线是按照总线的连接类型在所述节点之间的行间隙、列间隙、所述节点形成的行内的空白处以及所述节点形成的列内的空白处中的至少之一的位置排布的,所述总线的连接类型包括普通总线、诊断总线、环形总线、内部总线以及跨越总线。In an optional manner, the bus in the topology map template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus. According to the position of at least one of the blank spaces in the formed column, the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
在一种可选的方式中,若所述总线为普通总线,所述总线排布于所述列间隙中,或者,所述总线排布于所述根节点与所述子节点之间的行间隙中。In an optional manner, if the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in a row between the root node and the child node in the gap.
在一种可选的方式中,若所述总线为诊断总线,所述总线排布于所述诊断 接口节点和所述根节点之间的行间隙中,或者,若所述总线连接所述根节点,则所述总线可排布于所述节点形成的列内的空白处,或者,若所述总线不连接所述根节点,则所述总线排布于列间隙中。In an optional manner, if the bus is a diagnostic bus, the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus is connected to the root node node, the bus can be arranged in a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus can be arranged in a column gap.
在一种可选的方式中,若所述总线为环形总线,所述总线的横向线排布于所述节点形成的行内的空白处,所述总线的纵向线排布于所述节点形成的列内的空白处或者列间隙中;其中,所述总线的两端连接不同的节点,或者,所述总线的两端连接同一节点。In an optional manner, if the bus is a ring bus, the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes, and the vertical lines of the bus are arranged in the blanks formed by the nodes. A blank space in a column or a column gap; wherein, two ends of the bus are connected to different nodes, or, both ends of the bus are connected to the same node.
在一种可选的方式中,若所述总线为内部总线,所述总线排布于列间隙中。In an optional manner, if the bus is an internal bus, the bus is arranged in a column gap.
在一种可选的方式中,若所述总线为跨越线,所述总线排布于行间隙中,或者所述节点形成的行的底部。In an optional manner, if the bus is a spanning line, the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
在一种可选的方式中,所述子节点包括关键节点和普通节点,所述关键节点为连接至少两条总线的节点,所述普通节点为连接一条总线的节点,若所述节点形成的列中同时存在所述关键节点和所述普通节点,则所述关键节点相较于所述普通节点靠近所述根节点。In an optional manner, the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus. If both the key node and the common node exist in the column, the key node is closer to the root node than the common node.
在一种可选的方式中,所述拓扑图模板中连接同一总线的所述普通节点是根据功能关系的密切程度排布的,密切程度高的普通节点排布于同一区域内。In an optional manner, the common nodes connected to the same bus in the topology diagram template are arranged according to the degree of closeness of the functional relationship, and common nodes with a high degree of closeness are arranged in the same area.
在一种可选的方式中,所述拓扑图模板中的一总线包括多个纵向线,所述多个纵向线中的每一纵向线连接所述普通节点的数量在一平均范围内。In an optional manner, a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
在一种可选的方式中,用于表征所述电子控制单元的节点在所述拓扑图模板中的位置是由所述电子控制单元的权重值确定的,所述电子控制单元的权重值是根据所述电子控制单元出现故障的概率以及所述电子控制单元出现故障的重要程度确定的。In an optional manner, the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the weight value of the electronic control unit is It is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
在一种可选的方式中,用于表征权重值高的电子控制单元的节点位于所述拓扑图模板的主区域。In an optional manner, the node used to characterize the electronic control unit with a high weight value is located in the main area of the topology map template.
在一种可选的方式中,所述主区域位于所述拓扑图模板的左上方。In an optional manner, the main area is located at the upper left of the topology map template.
在一种可选的方式中,所述根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图,包括:将所述汽车所配置的电子控制单元列表中的电子控制单元映射至所述拓扑图模板的节点中,以生成并显示汽车总线拓扑图。In an optional manner, the generating and displaying the car bus topology map according to the list of electronic control units configured on the car and the topology map template includes: a list of the electronic control units configured on the car The electronic control units in the map are mapped to the nodes of the topology map template to generate and display the vehicle bus topology map.
在一种可选的方式中,所述方法还包括:若所述电子控制单元列表中的电子控制单元的数量少于所述节点的数量,则调整所述节点在所述拓扑图模板中的排布位置,以生成并显示汽车总线拓扑图。In an optional manner, the method further includes: if the number of electronic control units in the electronic control unit list is less than the number of the nodes, adjusting the number of the nodes in the topology map template Arrange locations to generate and display a car bus topology map.
在一种可选的方式中,所述方法还包括:若所述电子控制单元列表中存在电子控制单元连接局域网总线,则所述汽车总线拓扑图中用于表征所述电子控制单元的节点显示用于表征连接有所述局域网总线的标识。In an optional manner, the method further includes: if there is an electronic control unit connected to a local area network bus in the electronic control unit list, displaying a node used to represent the electronic control unit in the vehicle bus topology map. It is used to characterize the identifier connected to the local area network bus.
在一种可选的方式中,所述方法还包括:所述汽车总线拓扑图中不同的总线是根据显示标识区分的,所述总线包括关键总线和普通总线,所述关键总线的显示标识相较于所述普通总线的显示标识明显。In an optional manner, the method further includes: different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifiers of the key buses are the same as the display identifiers. Compared with the display logo of the ordinary bus, it is more obvious.
在一种可选的方式中,所述生成并显示汽车总线拓扑图后,所述方法还包括:接收用户对所述汽车总线拓扑图中节点输入的控制指令;根据所述控制指令显示与所述节点所表征的电子控制单元相关的显示界面。In an optional manner, after generating and displaying the vehicle bus topology map, the method further includes: receiving a control instruction input by a user to a node in the vehicle bus topology diagram; Display interface related to the electronic control unit represented by the node.
在一种可选的方式中,所述汽车总线拓扑图中所述节点的显示状态表示所述节点所表征的电子控制单元的诊断状态。In an optional manner, the display state of the node in the vehicle bus topology diagram represents the diagnosis state of the electronic control unit represented by the node.
根据本发明实施例的另一个方面,提供了一种汽车总线拓扑图生成装置,应用于汽车故障诊断设备,所述装置包括:数据获取单元,用于获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;模板确定单元,用于根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;拓扑图生成单元,用于根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图。According to another aspect of the embodiments of the present invention, there is provided an apparatus for generating an automobile bus topology map, which is applied to an automobile fault diagnosis device. The apparatus includes: a data acquisition unit for acquiring vehicle information of the automobile and the configuration of the automobile. The list of electronic control units; the template determination unit is used to determine the topology map template corresponding to the vehicle information according to the vehicle information, wherein the topology map template is classified according to the connection feature, and the connection feature includes the node's The connection relationship and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with the external device; the topology map generation unit is used for according to the electronic control unit list configured in the car and the topology map template, Generate and display automotive bus topology diagrams.
根据本发明实施例的另一方面,提供了一种计算设备,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;According to another aspect of the embodiments of the present invention, a computing device is provided, including: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface communicate with each other through the communication bus. communication between;
所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行上述汽车总线拓扑图生成方法的步骤。The memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the steps of the above-mentioned method for generating a vehicle bus topology map.
根据本发明实施例的又一方面,提供了一种计算机存储介质,所述存储介质中存储有至少一可执行指令,所述可执行指令使所述处理器执行上述汽车总线拓扑图生成方法的步骤。According to yet another aspect of the embodiments of the present invention, a computer storage medium is provided, where at least one executable instruction is stored in the storage medium, and the executable instruction causes the processor to execute the above-mentioned method for generating a vehicle bus topology map. step.
本发明实施例通过获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图,能够优化布局排布规则,支持单元状态动态改变和点击事件支持,实现了拓扑图的动态交互能力,使拓扑图简洁,易于算法实现,提高拓扑图的使用效率。In the embodiment of the present invention, the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
上述说明仅是本发明实施例技术方案的概述,为了能够更清楚了解本发明实施例的技术手段,而可依照说明书的内容予以实施,并且为了让本发明实施例的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the embodiments of the present invention. In order to understand the technical means of the embodiments of the present invention more clearly, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and The advantages can be more clearly understood, and the following specific embodiments of the present invention are given.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的 部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same reference numerals are used for the same parts throughout the drawings. In the attached image:
图1示出了本发明实施例提供的汽车总线拓扑图生成方法的流程示意图;1 shows a schematic flowchart of a method for generating a vehicle bus topology map provided by an embodiment of the present invention;
图2示出了本发明实施例提供的汽车总线拓扑图的模板布局示意图;FIG. 2 shows a schematic layout diagram of a template of a vehicle bus topology diagram provided by an embodiment of the present invention;
图3示出了本发明实施例提供的汽车总线拓扑图生成方法的布线位置规划示意图;3 shows a schematic diagram of wiring location planning of a method for generating a vehicle bus topology map provided by an embodiment of the present invention;
图4示出了本发明实施例提供的汽车总线拓扑图生成方法的环形总线连接示意图;4 shows a schematic diagram of a ring bus connection of a method for generating a vehicle bus topology diagram provided by an embodiment of the present invention;
图5示出了本发明实施例提供的汽车总线拓扑图生成方法的节点排布示意图;5 shows a schematic diagram of node arrangement of a method for generating a vehicle bus topology map provided by an embodiment of the present invention;
图6示出了本发明实施例提供的汽车总线拓扑图生成方法的普通节点连接示意图;6 shows a schematic diagram of common node connections of a method for generating a vehicle bus topology map provided by an embodiment of the present invention;
图7示出了本发明实施例提供的汽车总线拓扑图生成方法的拓扑图调整示意图;7 shows a schematic diagram of topology map adjustment of a method for generating a vehicle bus topology map provided by an embodiment of the present invention;
图8示出了本发明实施例提供的汽车总线拓扑图生成方法的局域网总线标注示意图;8 shows a schematic diagram of a local area network bus labeling of a method for generating a vehicle bus topology map provided by an embodiment of the present invention;
图9示出了本发明实施例提供的又一汽车总线拓扑图生成方法的示意图;9 shows a schematic diagram of yet another method for generating a vehicle bus topology map provided by an embodiment of the present invention;
图10示出了本发明实施例提供的汽车总线拓扑图生成装置的结构示意图;10 shows a schematic structural diagram of an apparatus for generating a vehicle bus topology map provided by an embodiment of the present invention;
图11示出了本发明实施例提供的计算设备的结构示意图。FIG. 11 shows a schematic structural diagram of a computing device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present invention will be more thoroughly understood, and will fully convey the scope of the present invention to those skilled in the art.
图1示出了本发明实施例提供的汽车总线拓扑图生成方法的流程示意图。该方法由电子设备执行。该电子设备可以为手机、平板、笔记本电脑、汽车诊断设备等电子设备。其中,电子设备可与汽车实现直接或间接通信连接,用于获取汽车的相关数据和信息,进而可以生成汽车的总线拓扑图。电子设备可自显示总线拓扑图,或者发送至其他显示端进行显示。FIG. 1 shows a schematic flowchart of a method for generating a vehicle bus topology map provided by an embodiment of the present invention. The method is performed by an electronic device. The electronic device may be an electronic device such as a mobile phone, a tablet, a notebook computer, and a car diagnostic device. Among them, the electronic device can realize direct or indirect communication connection with the car to obtain the relevant data and information of the car, and then can generate the bus topology map of the car. The electronic device can display the bus topology map by itself, or send it to other display terminals for display.
如图1所示,汽车总线拓扑图生成方法包括:As shown in Figure 1, the method for generating a vehicle bus topology diagram includes:
步骤S11:获取汽车的车辆信息和所述汽车所配置的电子控制单元列表。Step S11: Obtain vehicle information of the car and a list of electronic control units configured in the car.
在本发明实施例中,车辆信息包括车辆品牌、车型、车款年份等。车辆信息的获取可以通过用户输入或者在与汽车通信后从汽车中获取。可以通过向汽车发送命令从中心网关查询汽车所配置的电子控制单元列表。In this embodiment of the present invention, the vehicle information includes a vehicle brand, a model, a model year, and the like. The vehicle information can be obtained through user input or from the car after communicating with the car. The list of electronic control units configured in the car can be queried from the central gateway by sending a command to the car.
步骤S12:根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊 断接口。Step S12: Determine a topology map template corresponding to the vehicle information according to the vehicle information, wherein the topology map template is classified according to connection features, and the connection features include the connection relationship of nodes and the connection relationship of buses, so The nodes are used to characterize the electronic control unit and the diagnostic interface with external devices.
在本发明实施例中,对于各品牌,各车型以及各车款年份的汽车,总结其汽车总线拓扑关系,并将汽车总线拓扑关系相同或相似的汽车作为同一组,并制作该组对应的拓扑图模板,从而该拓扑图模板能够覆盖该组汽车的总线拓扑关系。对于拓扑图模板的制作,本申请实施例不予限定。电子设备中预存储有拓扑图模板,以及拓扑图模板与车辆信息的对应关系。从而电子设备在与某一具体汽车通信连接时,通过获取该具体汽车的车辆信息,可确定与该汽车的车辆信息对应的拓扑图模板。拓扑图模板中体现有节点的连接关系,总线的连接关系。其中,节点的连接关系包括节点与至少一个总线的一端的连接关系,以及节点之间的连接关系;总线的连接关系包括总线的各端与节点的连接关系,以及总线的连接特性,如总线为环形总线等。In the embodiment of the present invention, for the cars of each brand, each model and each model year, summarize their car bus topology relationships, take the cars with the same or similar car bus topology relationships as the same group, and make the topology corresponding to the group Diagram template, so that the topology diagram template can cover the bus topology relationship of the group of cars. The production of the topology map template is not limited in the embodiments of the present application. The electronic device pre-stores a topology map template and a corresponding relationship between the topology map template and vehicle information. Therefore, when the electronic device is in communication connection with a specific car, by acquiring the vehicle information of the specific car, a topology map template corresponding to the vehicle information of the car can be determined. The topology diagram template reflects the connection relationship of nodes and the connection relationship of buses. The connection relationship of the nodes includes the connection relationship between the node and one end of at least one bus, and the connection relationship between the nodes; the connection relationship of the bus includes the connection relationship between each end of the bus and the node, and the connection characteristics of the bus. For example, the bus is Ring bus, etc.
本申请实施例中,通过拓扑图模板与车辆信息的对应关系,可以使电子设备适配于不同品牌,不同车型,不同年款的多种汽车,使汽车总线的拓扑关系一目了然,增强用户体验。In the embodiment of the present application, through the correspondence between the topology map template and the vehicle information, the electronic device can be adapted to a variety of vehicles of different brands, models, and years, making the topology relationship of the vehicle bus clear at a glance and enhancing user experience.
下面介绍一些拓扑图模板可体现的特性。The following describes some of the features that a topology map template can embody.
拓扑图模板中所述节点是按行列式排布的,不同类型的所述节点是按行排布的,所述节点按照类型包括诊断接口节点、根节点以及子节点,相同类型的所述节点是按列排布的。各节点都排布在单元格中。如图2所示,拓扑图模板的整个布局按照行列式方案设计,所有节点都排布在行列式的具体单元格中。为了分析方便,尽量在一页之内显示完整,如果一页显示不全,在横向上进行列拓展,纵向上行数保持不变,通过滚动条左右滑动进行显示。默认情况下,行列式做成15行×15列形式。排版上,横向方向,内容居中靠齐,纵向方向,内容向上靠齐。The nodes in the topology map template are arranged in determinants, and the nodes of different types are arranged in rows. The nodes include diagnostic interface nodes, root nodes and child nodes according to their types. The nodes of the same type are arranged in rows. are arranged in columns. The nodes are arranged in cells. As shown in Figure 2, the entire layout of the topology map template is designed according to the determinant scheme, and all nodes are arranged in specific cells of the determinant. For the convenience of analysis, try to display the whole page in one page. If a page is not displayed completely, expand the columns in the horizontal direction, and keep the number of vertical rows unchanged, and display them by sliding the scroll bar left and right. By default, the determinant is in the form of 15 rows by 15 columns. In typography, horizontally, the content is centered and aligned, and vertical, the content is aligned upwards.
在本发明实施例中,参见图3,拓扑图模板中所述总线是按照总线的连接类型在所述节点之间的行间隙、列间隙、所述节点形成的行内的空白处以及所述节点形成的列内的空白处中的至少之一的位置排布的,所述总线的连接类型包括普通总线、诊断总线、环形总线、内部总线以及跨越总线。其中,普通总线是以根节点(Root)为起点,连接到其他节点的总线,逻辑上是总线结构,如图2中的K-CAN、K-CAN1、K-CAN2等总线;诊断总线是以DLC为起点,连接到Root或者其他节点的总线,逻辑上是总线结构,如图2中K-CAN9总线和K-CAN7总线;环形总线是逻辑上是环形结构,可以连接到Root节点,也可以连接到非Root节点的总线,如图2中MOST总线;内部总线是以非网关节点为起点,在同一列中布线,仅供少数几个节点连接的总线,如图2中K-CAN9总线和Ethernet总线;跨越线是一种特殊的内部总线,可以跨越多列,如图2中K-CAN3总线。In this embodiment of the present invention, referring to FIG. 3 , the bus in the topology diagram template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus. According to the position of at least one of the blank spaces in the formed column, the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus. Among them, the common bus is the bus that starts from the root node (Root) and connects to other nodes. It is logically a bus structure, such as K-CAN, K-CAN1, K-CAN2 and other buses in Figure 2; the diagnostic bus is based on DLC is the starting point and is connected to the bus of Root or other nodes. It is logically a bus structure, such as K-CAN9 bus and K-CAN7 bus in Figure 2; the ring bus is a logically ring structure, which can be connected to the Root node or The bus connected to the non-Root node, such as the MOST bus in Figure 2; the internal bus is the non-gateway node as the starting point, wired in the same column, and only a bus connected to a few nodes, such as the K-CAN9 bus and Ethernet bus; spanning line is a special internal bus that can span multiple columns, such as the K-CAN3 bus in Figure 2.
若所述总线为普通总线,所述总线排布于所述列间隙中,或者,所述总线排布于所述根节点与所述子节点之间的行间隙中。具体地,普通总线的纵向线从所述行列式的列间隙中穿越,横向线从所述Root节点区域穿越;如果普通 总线有跨Root节点左右的情况,可以从横向布线区穿越,如图2中的K-CAN1总线。If the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in the row gap between the root node and the child node. Specifically, the vertical lines of the common bus pass through the column gap of the determinant, and the horizontal lines pass through the Root node area; if the common bus crosses the left and right sides of the Root node, it can pass through the horizontal wiring area, as shown in Figure 2 in the K-CAN1 bus.
若所述总线为诊断总线,所述总线排布于所述诊断接口节点和所述根节点之间的行间隙中,或者,若所述总线连接所述根节点,则所述总线可排布于所述节点形成的列内的空白处,或者,若所述总线不连接所述根节点,则所述总线排布于列间隙中。具体地,诊断总线的横向布线从所述诊断连接接头节点区域之间穿越,连接所述Root节点的纵向总线从所述行列式的列中穿越,连接到所述关键节点或所述普通节点的纵向总线从所述行列式的列间隙中穿越,如图2中的K-CAN9总线。If the bus is a diagnostic bus, the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus connects the root node, the bus can be arranged In a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus is arranged in a column gap. Specifically, the horizontal wiring of the diagnostic bus passes between the regions of the diagnostic connection joint nodes, and the vertical bus connecting the Root node passes through the columns of the determinant, and is connected to the key node or the common node. The longitudinal bus passes through the column gap of the determinant, such as the K-CAN9 bus in FIG. 2 .
若所述总线为环形总线,所述总线的横向线排布于所述节点形成的行内的空白处,所述总线的纵向线排布于所述节点形成的列内的空白处或者列间隙中;其中,所述总线的两端连接不同的节点,或者,所述总线的两端连接同一节点。如图4所示,环形总线的纵向布线可以穿越单元格,也可以穿越列间隙,横向线只能穿越单元格位置。环形总线横向上连接的不同单元(如图4中的图a所示)或者同一单元的左右连接(如图4中的图b所示)连接位置需要保持一致。If the bus is a ring bus, the horizontal lines of the bus are arranged in the blanks in the rows formed by the nodes, and the vertical lines of the bus are arranged in the blanks or column gaps in the columns formed by the nodes ; wherein, both ends of the bus are connected to different nodes, or, both ends of the bus are connected to the same node. As shown in Figure 4, the vertical wiring of the ring bus can pass through the cell or through the column gap, and the lateral line can only pass through the cell position. The connection positions of different units connected laterally on the ring bus (as shown in Figure a in Figure 4) or the left and right connections of the same unit (as shown in Figure 4 in Figure b) need to be consistent.
若所述总线为内部总线,内部总线仅包括纵向布线,所述总线排布于列间隙中。If the bus is an internal bus, the internal bus only includes vertical wiring, and the bus is arranged in column gaps.
若所述总线为跨越线,所述总线排布于行间隙中,或者所述节点形成的行的底部。具体地,跨越线的横向布线从所述行列式的横向布线区域(即行间隙)或者底部穿越,纵向布线从所述行列式的列间隙中穿越。If the bus is a spanning line, the bus is arranged in a row gap, or at the bottom of a row formed by the nodes. Specifically, the lateral wiring of the spanning line traverses from the lateral wiring area (ie, row gap) or bottom of the determinant, and the vertical wiring traverses from the column gap of the determinant.
在本发明实施例中,诊断接口节点(DLC,Diagnostic Link Connector)作为诊断总线的起点,布局在拓扑图模板的最上端,单独占据一行,DLC全网唯一,是电子设备,如诊断工具的入口。根节点(Root)作为默认网关,单独一行居中布置在各子节点的上部,根节点是大部分总线的起点,单独作为一行布置,居中显示,能够清晰表现网络的逻辑结构,如图2中的EZS节点。有的汽车还需要布置二级根节点才能更好的展现总线之间的组织结构,如图2中PTCU单元。根节点通常直接连接到DLC,作为诊断工具访问汽车的总入口。In the embodiment of the present invention, a diagnostic interface node (DLC, Diagnostic Link Connector) is used as the starting point of the diagnostic bus, and is arranged at the top of the topology map template, occupying a single line, and the DLC is unique in the entire network, and is an electronic device, such as the entrance of a diagnostic tool. . The root node (Root) is used as the default gateway, and it is placed in the upper part of each child node in a single row. The root node is the starting point of most buses. It is arranged as a row and displayed in the center, which can clearly show the logical structure of the network, as shown in Figure 2. EZS node. Some cars also need to arrange secondary root nodes to better show the organizational structure between buses, as shown in the PTCU unit in Figure 2. The root node is usually connected directly to the DLC and serves as the general entry point for diagnostic tools to access the car.
子节点包括关键节点和普通节点,所述关键节点为连接至少两条总线的节点,所述普通节点为连接一条总线的节点,若所述节点形成的列中同时存在所述关键节点和所述普通节点,则所述关键节点相较于所述普通节点靠近所述根节点。关键节点连接在多条总线上,在通信上作为网关使用,对拓扑图模板的整体布局具有非常大的影响,如图2中COMAND、N145/1、ECM等节点。为了减少拓扑图模板布线之间的交叉,关键节点布局在根节点之下,其他普通节点之上。普通节点为各电子控制单元,以行列式布局在单元格上。普通节点仅仅连接一条总线的节点。拓扑图模板中连接同一总线的所述普通节点是根据功能关系的密切程度排布的,密切程度高的普通节点排布于同一区域内。具体地,普通节点排列主要依据下面几个原则:The child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus, if the key node and the If the key node is an ordinary node, the key node is closer to the root node than the ordinary node. The key nodes are connected to multiple buses and used as gateways in communication, which has a great impact on the overall layout of the topology map template, such as COMAND, N145/1, ECM and other nodes in Figure 2. In order to reduce the crossover between the wiring of the topology diagram template, the key nodes are laid out below the root node and above other common nodes. Common nodes are electronic control units, which are arranged on the cells in a determinant format. Ordinary nodes are only connected to nodes of one bus. The common nodes connected to the same bus in the topology map template are arranged according to the closeness of the functional relationship, and common nodes with high closeness are arranged in the same area. Specifically, the arrangement of common nodes is mainly based on the following principles:
关系密切,有左右排布的节点,在拓扑图模板中对称排列,如图5中的图a所示;Closely related, there are nodes arranged left and right, which are arranged symmetrically in the topology map template, as shown in Figure a in Figure 5;
功能关系紧密的节点,排布靠近,如图5中的图b的单元功能比较紧密,同属于底盘管理功能,排布在一块;Nodes with close functional relationships are arranged close together, as shown in Figure b in Figure 5, the functions of the units are relatively close, and they all belong to the chassis management function and are arranged together;
同等情况下按照字母顺序从上到下,从左到右排列,如图5中的图c所示。Under the same conditions, they are arranged in alphabetical order from top to bottom and left to right, as shown in Figure c in Figure 5.
通常情况下,从Root节点出来的总线至少连接一列的单元,下面一些情况需要根据实际单元配置做一些特殊处理。拓扑图模板中的一总线包括多个纵向线,所述多个纵向线中的每一纵向线连接所述普通节点的数量在一平均范围内。如图2中K-CAN连接了24个单元,放在一列中显示不下,需要拆分成多列进行布置。通常情况下,每列建议不超过12个单元。Usually, the bus from the Root node is connected to at least one column of units. In the following cases, some special processing needs to be done according to the actual unit configuration. A bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range. As shown in Figure 2, K-CAN is connected to 24 units, which cannot be displayed in one column, and need to be divided into multiple columns for arrangement. Typically, no more than 12 cells per column are recommended.
用于表征所述电子控制单元的节点在所述拓扑图模板中的位置是由所述电子控制单元的权重值确定的,所述电子控制单元的权重值是根据所述电子控制单元出现故障的概率以及所述电子控制单元出现故障的重要程度确定的。用于表征权重值高的电子控制单元的节点位于所述拓扑图模板的主区域。比如动力系统或者底盘系统,这部分系统优先级比较高,如果有故障,必须马上停驶;对于车身系统、舒适和娱乐系统,重要性相对较低一些,即使有故障,还可以继续驾驶到维修店修理,这部分单元排布在权重较低的区域。一般上部和左部为视觉观察重点或者首先关注的区域,这部分区域的权重设计比较高,边缘或者右下部权重设计稍低。优选地,主区域位于所述拓扑图模板的左上方。通过优化布局排布规则,根据部件之间工作关系的密切程度和部件的优先级合理安排单元在行列式中的布局位置,能够提高拓扑图模板的使用效率。The position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, the weight value of the electronic control unit is based on the failure of the electronic control unit The probability and severity of the failure of the electronic control unit are determined. Nodes for characterizing electronic control units with high weight values are located in the main area of the topology map template. For example, power system or chassis system, this part of the system has a relatively high priority. If there is a fault, it must be stopped immediately; for the body system, comfort and entertainment system, the importance is relatively low, even if there is a fault, you can continue to drive to repair Shop repairs, this part of the unit is arranged in a lower weighted area. Generally, the upper part and the left part are the focus of visual observation or the first attention area. The weight design of this part of the area is relatively high, and the weight design of the edge or the lower right part is slightly lower. Preferably, the main area is located at the upper left of the topology map template. By optimizing the layout and arrangement rules, the layout position of the units in the determinant is reasonably arranged according to the closeness of the working relationship between the components and the priority of the components, which can improve the efficiency of using the topology map template.
在本发明实施例中,对于普通节点的连接,普通节点连接诊断总线、普通总线、内部总线、跨越线只能从列间隙处连接;连接环形总线,可以从列间隙处或者行间隙处连接,如图4所示,横向连线在列间隙处连接,纵向连线在列间隙处连接。为了减少连接点总线之间相交,遵从如下布线原则:In this embodiment of the present invention, for the connection of common nodes, common nodes can only be connected from a column gap, a common node, a diagnostic bus, a common bus, an internal bus, and a crossover line; and a ring bus can be connected from a column gap or a row gap. As shown in FIG. 4 , the horizontal connecting lines are connected at the column gaps, and the vertical connecting lines are connected at the column gaps. To reduce intersections between connection point buses, follow these routing guidelines:
如果单元为纵向总线布线的末端,安排在单元的上部连接区域,如图6中的A线;If the unit is the end of the vertical bus wiring, it is arranged in the upper connection area of the unit, such as line A in Figure 6;
如果单元为纵向总线的起始段,安排在单元的下部连接区域,如图6中的B线;If the unit is the initial segment of the longitudinal bus, it is arranged in the lower connection area of the unit, such as the B line in Figure 6;
如果单元为纵向线的非端点,尽量安排在单元的中部连接区域,如图6中的C线;If the unit is the non-end point of the longitudinal line, try to arrange it in the middle connection area of the unit, such as the C line in Figure 6;
如果纵向总线连接左右两个单元,两边的连接位置保持一致,如图6中的e、f线。If the vertical bus connects the left and right units, the connection positions on both sides should be consistent, as shown in the lines e and f in Figure 6.
对于Root区域的连接,为了减少总线在Root区域或者DLC区域相交,总线连接Root或者DLC遵从如下规则:For the connection of the Root area, in order to reduce the intersection of the bus in the Root area or the DLC area, the bus connection Root or DLC follows the following rules:
Root或者DLC左侧的总线连接左侧,右侧的总线连接右侧;The bus on the left side of Root or DLC is connected to the left side, and the bus on the right side is connected to the right side;
统计每条总线在横向上离Root或者DLC的最远距离,按照距离降序排序,距离越大的总线,连接Root或者DLC的上部区域;距离越小的总线,连接Root 或者DLC下部区域,如图2中,K-CAN离EZS最远,安排在最上端连接,FLEXRAY离EZS最近,安排在最下端连接;Count the farthest distance of each bus from the Root or DLC in the horizontal direction, and sort them in descending order of distance. The bus with greater distance is connected to the upper area of Root or DLC; the bus with smaller distance is connected to the lower area of Root or DLC, as shown in the figure. In 2, K-CAN is the farthest from EZS and is arranged to be connected at the top end, while FLEXRAY is closest to EZS and is arranged to be connected at the bottom end;
如果环形总线连接Root,连接点安排在Root的最下部分,且两边的连接位置需要保持一致,如图4中的图b所示。If the ring bus is connected to the Root, the connection point is arranged at the lowermost part of the Root, and the connection positions on both sides need to be consistent, as shown in Figure b in Figure 4.
如果部分总线跨越Root节点左右,跨越部分安排在拓扑图模板的横向布线区域,如图2中的K-CAN1所示。If part of the bus spans the left and right of the Root node, the spanning part is arranged in the horizontal wiring area of the topology map template, as shown in K-CAN1 in Figure 2.
另外,对于间隙处的布线,在列间隙处,可以支持多于1条纵向总线的布线。在行间隙处,一般不允许布线,除非环形总线的纵向布线或者DLC连接Root的纵向布线。In addition, for the routing at the gap, the routing of more than 1 vertical bus can be supported at the column gap. At the row gap, routing is generally not allowed, except for the vertical routing of the ring bus or the vertical routing of the DLC connection root.
本发明实施例通过行列式的布局,简化了方案设计,支持各种复杂的总线连接,规划了总线布线约束条件,使拓扑图外观简洁,易于算法实现。Through the determinant layout, the embodiment of the present invention simplifies the scheme design, supports various complex bus connections, plans the bus wiring constraints, makes the appearance of the topology diagram simple, and is easy for algorithm implementation.
拓扑图模板的制作包括两个阶段,手稿阶段和计算机数据阶段。手稿阶段标注好总线的布局规划以及各节点之间的连接关系上,具体规则参见前述一系列规则内容;手稿就绪后,需要转化成计算机算法能够处理的数据,便于计算机算法绘制拓扑图模板。计算机数据阶段同样遵从前述的一系列规则内容。拓扑图模板规划了汽车总线拓扑图的整体架构,总线之间的连接关系,DLC、根节点、关键节点以及普通节点的排布位置。The production of the topology map template consists of two stages, the manuscript stage and the computer data stage. In the manuscript stage, the layout planning of the bus and the connection relationship between the nodes are marked. For specific rules, please refer to the aforementioned series of rules. After the manuscript is ready, it needs to be converted into data that can be processed by computer algorithms, so that the computer algorithms can draw topology map templates. The computer data stage also follows the aforementioned set of rules. The topology diagram template plans the overall structure of the vehicle bus topology diagram, the connection relationship between the buses, the arrangement position of the DLC, the root node, the key node and the common node.
步骤S13:根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图。Step S13: Generate and display a car bus topology map according to the list of electronic control units configured in the car and the topology map template.
在本发明实施例中,模板阶段准备的单元配置按照全系列配置准备,如此,在测试时候,车型配置可能会降低,汽车总线拓扑图需要根据具体的车型配置进行显示。部分品牌的汽车,可以发送命令从中心网关查询单元配置列表,应用拓扑图算法根据查询到的汽车配置,在拓扑图模板中动态调整非关键节点的排列位置。其中,非关键节点主要是指电子控制单元。将所述汽车所配置的电子控制单元列表中的电子控制单元映射至所述拓扑图模板的节点中,以生成并显示汽车总线拓扑图。In the embodiment of the present invention, the unit configuration prepared in the template stage is prepared according to the full series configuration, so, during the test, the vehicle model configuration may be reduced, and the vehicle bus topology map needs to be displayed according to the specific vehicle model configuration. For some brands of cars, you can send a command to query the unit configuration list from the central gateway, and apply the topology map algorithm to dynamically adjust the arrangement position of non-critical nodes in the topology map template according to the queried car configuration. Among them, the non-critical node mainly refers to the electronic control unit. The electronic control units in the list of electronic control units configured in the car are mapped to the nodes of the topology map template, so as to generate and display the car bus topology map.
若所述电子控制单元列表中的电子控制单元的数量少于所述节点的数量,则调整所述节点在所述拓扑图模板中的排布位置,以生成并显示汽车总线拓扑图。部分车型单元不多,总线比较少,如图7所示,如果每一列都填充满,则汽车总线拓扑图显示比较稀稀落落的或者部分区域过密,过分区域比较稀疏,影响美感。可以如图7把同一总线上的单元排布到多列,均匀排布;也可以部分列空置,把列均匀布置到整个汽车总线拓扑图上。计算机算法根据预设规则将配置数据和与车型相对应的模板结合以矢量图方式生成汽车总线拓扑图,如此通过优化布局排布,使汽车总线拓扑图外观简洁,易于算法实现。If the number of electronic control units in the electronic control unit list is less than the number of the nodes, the arrangement position of the nodes in the topology map template is adjusted to generate and display a vehicle bus topology map. For some models, there are not many units and few buses. As shown in Figure 7, if each column is full, the bus topology of the vehicle will be sparse or some areas are too dense, and the excessive areas are sparse, which will affect the aesthetics. As shown in Figure 7, the units on the same bus can be arranged in multiple columns and evenly arranged; some columns can also be left empty, and the columns can be evenly arranged on the entire vehicle bus topology. The computer algorithm combines the configuration data and the template corresponding to the vehicle model to generate the vehicle bus topology map in the form of vector diagrams according to the preset rules. By optimizing the layout, the appearance of the vehicle bus topology map is simple and easy to implement.
本发明实施例的汽车总线拓扑图生成方法可支持PC、Android、iOS等支持svg浏览器的平台,汽车总线拓扑图的行列式行数和列数规划可以有调整,DLC节点在横向上的布局可以偏离中间一定的列。The method for generating an automobile bus topology map according to the embodiment of the present invention can support platforms that support SVG browsers such as PC, Android, and iOS, and the planning of the number of rows and columns of the determinant of the automobile bus topology map can be adjusted, and the layout of DLC nodes in the horizontal direction can be adjusted. You can deviate from a certain column in the middle.
在本发明实施例中,所述汽车总线拓扑图中不同的总线是根据显示标识区 分的,所述总线包括关键总线和普通总线,所述关键总线的显示标识相较于所述普通总线的显示标识明显。可以应用不同颜色表示不同的总线以便对总线进行区分。颜色在视觉上需要有明显的差异,同时能够体现总线的相对意义,比如动力系统的总线,应急程度高,比较重要,一般用红色相关的颜色表示,舒适总线一般属于娱乐系统,用轻松的绿色表示。拓扑图模板中提供了多种颜色模板供选择,总线的颜色方案可以有不同的变更。In the embodiment of the present invention, different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifier of the key bus is compared with the display identifier of the common bus. The logo is obvious. Different colors can be applied to represent different buses to differentiate them. The colors need to have obvious differences in vision, and at the same time can reflect the relative meaning of the bus. For example, the bus of the power system has a high degree of emergency and is more important. It is generally represented by red-related colors. The comfort bus generally belongs to the entertainment system. express. The topology diagram template provides a variety of color templates for selection, and the color scheme of the bus can be changed in different ways.
在本发明实施例中,在汽车总线拓扑图中嵌入css和javascript,使汽车总线拓扑图支持电子控制单元的动态状态改以及点击事件。汽车总线拓扑图中所述节点的显示状态表示所述节点所表征的电子控制单元的诊断状态。具体可以应用不同的颜色标注电子控制单元的不同诊断状态。电子控制单元的状诊断态包括无法通信、无应答、有故障码通信正常等,可以通过改变电子控制单元的颜色进行区分。在有通信故障码的情况下,还可以提示有多少个通信故障码,如图2中的RDK单元表示有3个通信故障码。In the embodiment of the present invention, css and javascript are embedded in the car bus topology map, so that the car bus topology map supports dynamic state change and click events of the electronic control unit. The display state of the node in the vehicle bus topology diagram represents the diagnostic state of the electronic control unit represented by the node. Specifically, different colors can be used to mark different diagnostic states of the electronic control unit. The diagnostic status of the electronic control unit includes no communication, no response, normal communication with fault codes, etc., which can be distinguished by changing the color of the electronic control unit. In the case of communication fault codes, it can also indicate how many communication fault codes there are. The RDK unit in Figure 2 indicates that there are 3 communication fault codes.
若所述电子控制单元列表中存在电子控制单元连接局域网总线,则所述汽车总线拓扑图中用于表征所述电子控制单元的节点显示用于表征连接有所述局域网总线的标识。如果电子控制单元还连接有其他局域网总线,如LIN总线,也可以在单元上进行标注,如图8所示。电子控制单元的动态交互功能通过css和javascript实现,通过在svg中嵌入css和javascript,支持对单元格样式的更改,单元格点击事件支持,如此,可以直接从单元格进入汽车系统。具体地,生成并显示汽车总线拓扑图后,接收用户对所述汽车总线拓扑图中节点输入的控制指令;根据所述控制指令显示与所述节点所表征的电子控制单元相关的显示界面。If there is an electronic control unit connected to a local area network bus in the electronic control unit list, a node used to represent the electronic control unit in the vehicle bus topology map displays an identifier used to represent that the local area network bus is connected. If the electronic control unit is also connected with other local area network bus, such as LIN bus, it can also be marked on the unit, as shown in Figure 8. The dynamic interaction function of the electronic control unit is realized by css and javascript. By embedding css and javascript in svg, it supports the change of the cell style, and the cell click event support. In this way, the car system can be directly entered from the cell. Specifically, after generating and displaying the vehicle bus topology diagram, a control instruction input by a user to a node in the vehicle bus topology diagram is received; and a display interface related to the electronic control unit represented by the node is displayed according to the control instruction.
在本发明实施例中,电子设备可以设置有自学习功能,即获取新车型或者新品牌或者新车辆年份的汽车的总线拓扑关系,并根据获取的新总线拓扑关系将其归类至某一拓扑图模板中,或者,生成新的拓扑图模板。进而可以是电子设备适用于新的配适场景,从而及时生成拓扑图。In this embodiment of the present invention, the electronic device may be provided with a self-learning function, that is, to obtain the bus topology relationship of a car of a new model, a new brand, or a new vehicle year, and classify it into a certain topology according to the obtained new bus topology relationship diagram template, or, generate a new topology diagram template. Further, the electronic device can be adapted to a new adaptation scenario, thereby generating a topology map in time.
在本发明实施例中,电子设备前期可用于汽车总线拓扑关系的归类以及拓扑图模板的生成的学习阶段,利用学习程序可以生成拓扑图模板,也可以确定车辆信息与拓扑图模板的对应关系。一种完整的汽车总线拓扑图生成方法如图9所示,对每个品牌汽车的汽车数据进行分组,把总线连接关系相同或者非常相近的车型归为同一组,制作相同的拓扑图,生成拓扑图模板。要获取某一汽车的汽车总线拓扑图时,查询该汽车的电子控制单元,将查询到的电子控制单元与该汽车对应的拓扑图模板结合生成汽车总线拓扑图。在汽车总线拓扑图中嵌入css和javascript,通过浏览器或者浏览器控件来呈现,支持动态缩放和动态交互。In the embodiment of the present invention, the electronic device can be used in the early stage of the classification of the topology relationship of the vehicle bus and the learning stage of the generation of the topology map template. The learning program can generate the topology map template, and can also determine the corresponding relationship between the vehicle information and the topology map template. . A complete method for generating a topology map of automobile bus is shown in Figure 9. The automobile data of each brand of automobile is grouped, and the models with the same or very similar bus connection relationship are grouped into the same group, and the same topology map is generated to generate the topology Diagram template. To obtain the car bus topology map of a certain car, query the electronic control unit of the car, and combine the queried electronic control unit with the topology map template corresponding to the car to generate the car bus topology map. Embed css and javascript in the car bus topology map, render it through the browser or browser controls, support dynamic zooming and dynamic interaction.
本发明实施例通过获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及 总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图,能够优化布局排布规则,支持单元状态动态改变和点击事件支持,实现了拓扑图的动态交互能力,使拓扑图简洁,易于算法实现,提高拓扑图的使用效率。In the embodiment of the present invention, the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
图10示出了本发明实施例的汽车总线拓扑图生成装置的结构示意图。该汽车总线拓扑图生成装置应用于汽车故障诊断设备。如图10所示,该汽车总线拓扑图生成装置包括:数据获取单元101、模板确定单元102、拓扑图生成单元103以及动态交互单元104。其中:FIG. 10 shows a schematic structural diagram of an apparatus for generating a topology map of a vehicle bus according to an embodiment of the present invention. The vehicle bus topology map generating device is applied to vehicle fault diagnosis equipment. As shown in FIG. 10 , the vehicle bus topology map generating device includes: a data acquisition unit 101 , a template determination unit 102 , a topology map generation unit 103 and a dynamic interaction unit 104 . in:
数据获取单元101用于获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;模板确定单元102用于根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;拓扑图生成单元103用于根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图。The data acquisition unit 101 is configured to acquire vehicle information of the car and a list of electronic control units configured on the car; the template determination unit 102 is configured to determine a topology map template corresponding to the vehicle information according to the vehicle information, wherein the The topology map template is classified according to the connection characteristics, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; the topology map generation unit 103 is used for according to. The list of electronic control units configured in the car and the topology map template generate and display the car bus topology map.
在一种可选的方式中,所述拓扑图模板中所述节点是按行列式排布的,不同类型的所述节点是按行排布的,所述节点按照类型包括诊断接口节点、根节点以及子节点,相同类型的所述节点是按列排布的。In an optional manner, the nodes in the topology diagram template are arranged in a determinant format, the nodes of different types are arranged in rows, and the nodes include diagnostic interface nodes, root Nodes and child nodes, said nodes of the same type are arranged in columns.
在一种可选的方式中,所述拓扑图模板中所述总线是按照总线的连接类型在所述节点之间的行间隙、列间隙、所述节点形成的行内的空白处以及所述节点形成的列内的空白处中的至少之一的位置排布的,所述总线的连接类型包括普通总线、诊断总线、环形总线、内部总线以及跨越总线。In an optional manner, the bus in the topology map template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus. According to the position of at least one of the blank spaces in the formed column, the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
在一种可选的方式中,若所述总线为普通总线,所述总线排布于所述列间隙中,或者,所述总线排布于所述根节点与所述子节点之间的行间隙中。In an optional manner, if the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in a row between the root node and the child node in the gap.
在一种可选的方式中,若所述总线为诊断总线,所述总线排布于所述诊断接口节点和所述根节点之间的行间隙中,或者,若所述总线连接所述根节点,则所述总线可排布于所述节点形成的列内的空白处,或者,若所述总线不连接所述根节点,则所述总线排布于列间隙中。In an optional manner, if the bus is a diagnostic bus, the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus is connected to the root node node, the bus can be arranged in a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus can be arranged in a column gap.
在一种可选的方式中,若所述总线为环形总线,所述总线的横向线排布于所述节点形成的行内的空白处,所述总线的纵向线排布于所述节点形成的列内的空白处或者列间隙中;其中,所述总线的两端连接不同的节点,或者,所述总线的两端连接同一节点。In an optional manner, if the bus is a ring bus, the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes, and the vertical lines of the bus are arranged in the blanks formed by the nodes. A blank space in a column or a column gap; wherein, two ends of the bus are connected to different nodes, or, both ends of the bus are connected to the same node.
在一种可选的方式中,若所述总线为内部总线,所述总线排布于列间隙中。In an optional manner, if the bus is an internal bus, the bus is arranged in a column gap.
在一种可选的方式中,若所述总线为跨越线,所述总线排布于行间隙中,或者所述节点形成的行的底部。In an optional manner, if the bus is a spanning line, the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
在一种可选的方式中,所述子节点包括关键节点和普通节点,所述关键节点为连接至少两条总线的节点,所述普通节点为连接一条总线的节点,若所述节点形成的列中同时存在所述关键节点和所述普通节点,则所述关键节点相较 于所述普通节点靠近所述根节点。In an optional manner, the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus. If both the key node and the common node exist in the column, the key node is closer to the root node than the common node.
在一种可选的方式中,所述拓扑图模板中连接同一总线的所述普通节点是根据功能关系的密切程度排布的,密切程度高的普通节点排布于同一区域内。In an optional manner, the common nodes connected to the same bus in the topology diagram template are arranged according to the degree of closeness of the functional relationship, and common nodes with a high degree of closeness are arranged in the same area.
在一种可选的方式中,所述拓扑图模板中的一总线包括多个纵向线,所述多个纵向线中的每一纵向线连接所述普通节点的数量在一平均范围内。In an optional manner, a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
在一种可选的方式中,用于表征所述电子控制单元的节点在所述拓扑图模板中的位置是由所述电子控制单元的权重值确定的,所述电子控制单元的权重值是根据所述电子控制单元出现故障的概率以及所述电子控制单元出现故障的重要程度确定的。In an optional manner, the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the weight value of the electronic control unit is It is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
在一种可选的方式中,用于表征权重值高的电子控制单元的节点位于所述拓扑图模板的主区域。In an optional manner, the node used to characterize the electronic control unit with a high weight value is located in the main area of the topology map template.
在一种可选的方式中,所述主区域位于所述拓扑图模板的左上方。In an optional manner, the main area is located at the upper left of the topology map template.
在一种可选的方式中,拓扑图生成单元103用于:将所述汽车所配置的电子控制单元列表中的电子控制单元映射至所述拓扑图模板的节点中,以生成并显示汽车总线拓扑图。In an optional manner, the topology map generating unit 103 is configured to: map the electronic control units in the list of electronic control units configured in the car to the nodes of the topology map template, so as to generate and display the car bus Topology.
在一种可选的方式中,拓扑图生成单元103还用于:若所述电子控制单元列表中的电子控制单元的数量少于所述节点的数量,则调整所述节点在所述拓扑图模板中的排布位置,以生成并显示汽车总线拓扑图。In an optional manner, the topology map generating unit 103 is further configured to: if the number of electronic control units in the electronic control unit list is less than the number of the nodes, adjust the number of the nodes in the topology map layout in a template to generate and display a car bus topology diagram.
在一种可选的方式中,拓扑图生成单元103还用于:若所述电子控制单元列表中存在电子控制单元连接局域网总线,则所述汽车总线拓扑图中用于表征所述电子控制单元的节点显示用于表征连接有所述局域网总线的标识。In an optional manner, the topology map generating unit 103 is further configured to: if there is an electronic control unit connected to a local area network bus in the electronic control unit list, the vehicle bus topology map is used to represent the electronic control unit The node displays an identifier used to characterize the LAN bus connected to it.
在一种可选的方式中,所述汽车总线拓扑图中不同的总线是根据显示标识区分的,所述总线包括关键总线和普通总线,所述关键总线的显示标识相较于所述普通总线的显示标识明显。In an optional manner, different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifier of the key bus is compared with the common bus. The display logo is obvious.
在一种可选的方式中,动态交互单元104用于:接收用户对所述汽车总线拓扑图中节点输入的控制指令;根据所述控制指令显示与所述节点所表征的电子控制单元相关的显示界面。In an optional manner, the dynamic interaction unit 104 is configured to: receive a control instruction inputted by a user to a node in the vehicle bus topology diagram; display information related to the electronic control unit represented by the node according to the control instruction UI.
在一种可选的方式中,所述汽车总线拓扑图中所述节点的显示状态表示所述节点所表征的电子控制单元的诊断状态。In an optional manner, the display state of the node in the vehicle bus topology diagram represents the diagnosis state of the electronic control unit represented by the node.
本发明实施例通过获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图,能够优化布局排布规则,支持单元状态动态改变和点击事件支持,实现了拓扑图的动态交互能力,使拓扑图简洁,易于算法实现,提高拓扑图的使用效率。In the embodiment of the present invention, the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
本发明实施例提供了一种非易失性计算机存储介质,所述计算机存储介质 存储有至少一可执行指令,该计算机可执行指令可执行上述任意方法实施例中的汽车总线拓扑图生成方法。An embodiment of the present invention provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer-executable instruction can execute the method for generating a vehicle bus topology diagram in any of the above method embodiments.
可执行指令具体可以用于使得处理器执行以下操作:Executable instructions can specifically be used to cause the processor to perform the following operations:
获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;Obtain the vehicle information of the car and the list of electronic control units configured on the car;
根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;A topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is classified according to connection characteristics, and the connection characteristics include the connection relationship of nodes and the connection relationship of buses. for characterization of electronic control units and diagnostic interfaces with external equipment;
根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图。According to the list of electronic control units configured in the car and the topology map template, a car bus topology map is generated and displayed.
在一种可选的方式中,所述拓扑图模板中所述节点是按行列式排布的,不同类型的所述节点是按行排布的,所述节点按照类型包括诊断接口节点、根节点以及子节点,相同类型的所述节点是按列排布的。In an optional manner, the nodes in the topology diagram template are arranged in a determinant format, the nodes of different types are arranged in rows, and the nodes include diagnostic interface nodes, root Nodes and child nodes, said nodes of the same type are arranged in columns.
在一种可选的方式中,所述拓扑图模板中所述总线是按照总线的连接类型在所述节点之间的行间隙、列间隙、所述节点形成的行内的空白处以及所述节点形成的列内的空白处中的至少之一的位置排布的,所述总线的连接类型包括普通总线、诊断总线、环形总线、内部总线以及跨越总线。In an optional manner, the bus in the topology map template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus. According to the position of at least one of the blank spaces in the formed column, the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
在一种可选的方式中,若所述总线为普通总线,所述总线排布于所述列间隙中,或者,所述总线排布于所述根节点与所述子节点之间的行间隙中。In an optional manner, if the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in a row between the root node and the child node in the gap.
在一种可选的方式中,若所述总线为诊断总线,所述总线排布于所述诊断接口节点和所述根节点之间的行间隙中,或者,若所述总线连接所述根节点,则所述总线可排布于所述节点形成的列内的空白处,或者,若所述总线不连接所述根节点,则所述总线排布于列间隙中。In an optional manner, if the bus is a diagnostic bus, the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus is connected to the root node node, the bus can be arranged in a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus can be arranged in a column gap.
在一种可选的方式中,若所述总线为环形总线,所述总线的横向线排布于所述节点形成的行内的空白处,所述总线的纵向线排布于所述节点形成的列内的空白处或者列间隙中;其中,所述总线的两端连接不同的节点,或者,所述总线的两端连接同一节点。In an optional manner, if the bus is a ring bus, the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes, and the vertical lines of the bus are arranged in the blanks formed by the nodes. A blank space in a column or a column gap; wherein, two ends of the bus are connected to different nodes, or, both ends of the bus are connected to the same node.
在一种可选的方式中,若所述总线为内部总线,所述总线排布于列间隙中。In an optional manner, if the bus is an internal bus, the bus is arranged in a column gap.
在一种可选的方式中,若所述总线为跨越线,所述总线排布于行间隙中,或者所述节点形成的行的底部。In an optional manner, if the bus is a spanning line, the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
在一种可选的方式中,所述子节点包括关键节点和普通节点,所述关键节点为连接至少两条总线的节点,所述普通节点为连接一条总线的节点,若所述节点形成的列中同时存在所述关键节点和所述普通节点,则所述关键节点相较于所述普通节点靠近所述根节点。In an optional manner, the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus. If both the key node and the common node exist in the column, the key node is closer to the root node than the common node.
在一种可选的方式中,所述拓扑图模板中连接同一总线的所述普通节点是根据功能关系的密切程度排布的,密切程度高的普通节点排布于同一区域内。In an optional manner, the common nodes connected to the same bus in the topology diagram template are arranged according to the degree of closeness of the functional relationship, and common nodes with a high degree of closeness are arranged in the same area.
在一种可选的方式中,所述拓扑图模板中的一总线包括多个纵向线,所述多个纵向线中的每一纵向线连接所述普通节点的数量在一平均范围内。In an optional manner, a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
在一种可选的方式中,用于表征所述电子控制单元的节点在所述拓扑图模 板中的位置是由所述电子控制单元的权重值确定的,所述电子控制单元的权重值是根据所述电子控制单元出现故障的概率以及所述电子控制单元出现故障的重要程度确定的。In an optional manner, the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the weight value of the electronic control unit is It is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
在一种可选的方式中,用于表征权重值高的电子控制单元的节点位于所述拓扑图模板的主区域。In an optional manner, the node used to characterize the electronic control unit with a high weight value is located in the main area of the topology map template.
在一种可选的方式中,所述主区域位于所述拓扑图模板的左上方。In an optional manner, the main area is located at the upper left of the topology map template.
在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:
将所述汽车所配置的电子控制单元列表中的电子控制单元映射至所述拓扑图模板的节点中,以生成并显示汽车总线拓扑图。The electronic control units in the list of electronic control units configured in the car are mapped to the nodes of the topology map template, so as to generate and display the car bus topology map.
在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:
若所述电子控制单元列表中的电子控制单元的数量少于所述节点的数量,则调整所述节点在所述拓扑图模板中的排布位置,以生成并显示汽车总线拓扑图。If the number of electronic control units in the electronic control unit list is less than the number of the nodes, the arrangement position of the nodes in the topology map template is adjusted to generate and display a vehicle bus topology map.
在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:
若所述电子控制单元列表中存在电子控制单元连接局域网总线,则所述汽车总线拓扑图中用于表征所述电子控制单元的节点显示用于表征连接有所述局域网总线的标识。If there is an electronic control unit connected to a local area network bus in the electronic control unit list, a node used to represent the electronic control unit in the vehicle bus topology map displays an identifier used to represent that the local area network bus is connected.
在一种可选的方式中,所述汽车总线拓扑图中不同的总线是根据显示标识区分的,所述总线包括关键总线和普通总线,所述关键总线的显示标识相较于所述普通总线的显示标识明显。In an optional manner, different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifier of the key bus is compared with the common bus. The display logo is obvious.
在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:
接收用户对所述汽车总线拓扑图中节点输入的控制指令;receiving a control command input by a user to a node in the vehicle bus topology diagram;
根据所述控制指令显示与所述节点所表征的电子控制单元相关的显示界面。A display interface related to the electronic control unit represented by the node is displayed according to the control instruction.
在一种可选的方式中,所述汽车总线拓扑图中所述节点的显示状态表示所述节点所表征的电子控制单元的诊断状态。In an optional manner, the display state of the node in the vehicle bus topology diagram represents the diagnosis state of the electronic control unit represented by the node.
本发明实施例通过获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图,能够优化布局排布规则,支持单元状态动态改变和点击事件支持,实现了拓扑图的动态交互能力,使拓扑图简洁,易于算法实现,提高拓扑图的使用效率。In the embodiment of the present invention, the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make the topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
本发明实施例提供一种汽车总线拓扑图生成装置,用于执行上述汽车总线拓扑图生成方法。An embodiment of the present invention provides an apparatus for generating a topology map of an automobile bus, which is used for executing the above method for generating a topology map of an automobile bus.
本发明实施例提供了一种计算机程序,所述计算机程序可被处理器调用使基站设备执行上述任意方法实施例中的汽车总线拓扑图生成方法。An embodiment of the present invention provides a computer program, which can be invoked by a processor to cause a base station device to execute the method for generating a vehicle bus topology map in any of the foregoing method embodiments.
本发明实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意方法实施例中的汽车总线拓扑图生成方法。An embodiment of the present invention provides a computer program product, the computer program product includes a computer program stored on a computer storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, causes the computer to The method for generating a vehicle bus topology map in any of the above method embodiments is executed.
可执行指令具体可以用于使得处理器执行以下操作:Executable instructions can specifically be used to cause the processor to perform the following operations:
获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;Obtain the vehicle information of the car and the list of electronic control units configured on the car;
根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;A topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is classified according to connection characteristics, and the connection characteristics include the connection relationship of nodes and the connection relationship of buses. for characterization of electronic control units and diagnostic interfaces with external equipment;
根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图。According to the list of electronic control units configured in the car and the topology map template, a car bus topology map is generated and displayed.
在一种可选的方式中,所述拓扑图模板中所述节点是按行列式排布的,不同类型的所述节点是按行排布的,所述节点按照类型包括诊断接口节点、根节点以及子节点,相同类型的所述节点是按列排布的。In an optional manner, the nodes in the topology diagram template are arranged in a determinant format, the nodes of different types are arranged in rows, and the nodes include diagnostic interface nodes, root Nodes and child nodes, said nodes of the same type are arranged in columns.
在一种可选的方式中,所述拓扑图模板中所述总线是按照总线的连接类型在所述节点之间的行间隙、列间隙、所述节点形成的行内的空白处以及所述节点形成的列内的空白处中的至少之一的位置排布的,所述总线的连接类型包括普通总线、诊断总线、环形总线、内部总线以及跨越总线。In an optional manner, the bus in the topology map template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus. According to the position of at least one of the blank spaces in the formed column, the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
在一种可选的方式中,若所述总线为普通总线,所述总线排布于所述列间隙中,或者,所述总线排布于所述根节点与所述子节点之间的行间隙中。In an optional manner, if the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in a row between the root node and the child node in the gap.
在一种可选的方式中,若所述总线为诊断总线,所述总线排布于所述诊断接口节点和所述根节点之间的行间隙中,或者,若所述总线连接所述根节点,则所述总线可排布于所述节点形成的列内的空白处,或者,若所述总线不连接所述根节点,则所述总线排布于列间隙中。In an optional manner, if the bus is a diagnostic bus, the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus is connected to the root node node, the bus can be arranged in a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus can be arranged in a column gap.
在一种可选的方式中,若所述总线为环形总线,所述总线的横向线排布于所述节点形成的行内的空白处,所述总线的纵向线排布于所述节点形成的列内的空白处或者列间隙中;其中,所述总线的两端连接不同的节点,或者,所述总线的两端连接同一节点。In an optional manner, if the bus is a ring bus, the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes, and the vertical lines of the bus are arranged in the blanks formed by the nodes. A blank space in a column or a column gap; wherein, two ends of the bus are connected to different nodes, or, both ends of the bus are connected to the same node.
在一种可选的方式中,若所述总线为内部总线,所述总线排布于列间隙中。In an optional manner, if the bus is an internal bus, the bus is arranged in a column gap.
在一种可选的方式中,若所述总线为跨越线,所述总线排布于行间隙中,或者所述节点形成的行的底部。In an optional manner, if the bus is a spanning line, the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
在一种可选的方式中,所述子节点包括关键节点和普通节点,所述关键节点为连接至少两条总线的节点,所述普通节点为连接一条总线的节点,若所述节点形成的列中同时存在所述关键节点和所述普通节点,则所述关键节点相较于所述普通节点靠近所述根节点。In an optional manner, the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus. If both the key node and the common node exist in the column, the key node is closer to the root node than the common node.
在一种可选的方式中,所述拓扑图模板中连接同一总线的所述普通节点是根据功能关系的密切程度排布的,密切程度高的普通节点排布于同一区域内。In an optional manner, the common nodes connected to the same bus in the topology diagram template are arranged according to the degree of closeness of the functional relationship, and common nodes with a high degree of closeness are arranged in the same area.
在一种可选的方式中,所述拓扑图模板中的一总线包括多个纵向线,所述 多个纵向线中的每一纵向线连接所述普通节点的数量在一平均范围内。In an optional manner, a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
在一种可选的方式中,用于表征所述电子控制单元的节点在所述拓扑图模板中的位置是由所述电子控制单元的权重值确定的,所述电子控制单元的权重值是根据所述电子控制单元出现故障的概率以及所述电子控制单元出现故障的重要程度确定的。In an optional manner, the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the weight value of the electronic control unit is It is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
在一种可选的方式中,用于表征权重值高的电子控制单元的节点位于所述拓扑图模板的主区域。In an optional manner, the node used to characterize the electronic control unit with a high weight value is located in the main area of the topology map template.
在一种可选的方式中,所述主区域位于所述拓扑图模板的左上方。In an optional manner, the main area is located at the upper left of the topology map template.
在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:
将所述汽车所配置的电子控制单元列表中的电子控制单元映射至所述拓扑图模板的节点中,以生成并显示汽车总线拓扑图。The electronic control units in the list of electronic control units configured in the car are mapped to the nodes of the topology map template, so as to generate and display the car bus topology map.
在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:
若所述电子控制单元列表中的电子控制单元的数量少于所述节点的数量,则调整所述节点在所述拓扑图模板中的排布位置,以生成并显示汽车总线拓扑图。If the number of electronic control units in the electronic control unit list is less than the number of the nodes, the arrangement position of the nodes in the topology map template is adjusted to generate and display a vehicle bus topology map.
在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:
若所述电子控制单元列表中存在电子控制单元连接局域网总线,则所述汽车总线拓扑图中用于表征所述电子控制单元的节点显示用于表征连接有所述局域网总线的标识。If there is an electronic control unit connected to a local area network bus in the electronic control unit list, a node used to represent the electronic control unit in the vehicle bus topology map displays an identifier used to represent that the local area network bus is connected.
在一种可选的方式中,所述汽车总线拓扑图中不同的总线是根据显示标识区分的,所述总线包括关键总线和普通总线,所述关键总线的显示标识相较于所述普通总线的显示标识明显。In an optional manner, different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifier of the key bus is compared with the common bus. The display logo is obvious.
在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:
接收用户对所述汽车总线拓扑图中节点输入的控制指令;receiving a control command input by a user to a node in the vehicle bus topology diagram;
根据所述控制指令显示与所述节点所表征的电子控制单元相关的显示界面。A display interface related to the electronic control unit represented by the node is displayed according to the control instruction.
在一种可选的方式中,所述汽车总线拓扑图中所述节点的显示状态表示所述节点所表征的电子控制单元的诊断状态。In an optional manner, the display state of the node in the vehicle bus topology diagram represents the diagnosis state of the electronic control unit represented by the node.
本发明实施例通过获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图,能够优化布局排布规则,支持单元状态动态改变和点击事件支持,实现了拓扑图的动态交互能力,使拓扑图简洁,易于算法实现,提高拓扑图的使用效率。In the embodiment of the present invention, the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
图11示出了本发明实施例提供的计算设备的结构示意图,本发明具体实施例并不对设备的具体实现做限定。FIG. 11 shows a schematic structural diagram of a computing device provided by an embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the device.
如图11所示,该计算设备可以包括:处理器(processor)1102、通信接口(Communications Interface)1104、存储器(memory)1106、以及通信总线1108。As shown in FIG. 11 , the computing device may include: a processor (processor) 1102 , a communications interface (Communications Interface) 1104 , a memory (memory) 1106 , and a communication bus 1108 .
其中:处理器1102、通信接口1104、以及存储器1106通过通信总线1108完成相互间的通信。通信接口1104,用于与其它设备比如客户端或其它服务器等的网元通信。处理器1102,用于执行程序1110,具体可以执行上述汽车总线拓扑图生成方法实施例中的相关步骤。The processor 1102 , the communication interface 1104 , and the memory 1106 communicate with each other through the communication bus 1108 . The communication interface 1104 is used to communicate with network elements of other devices such as clients or other servers. The processor 1102 is configured to execute the program 1110, and specifically may execute the relevant steps in the above-mentioned embodiments of the method for generating a bus topology map of an automobile.
具体地,程序1110可以包括程序代码,该程序代码包括计算机操作指令。Specifically, the program 1110 may include program code including computer operation instructions.
处理器1102可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或各个集成电路。设备包括的一个或各个处理器,可以是同一类型的处理器,如一个或各个CPU;也可以是不同类型的处理器,如一个或各个CPU以及一个或各个ASIC。The processor 1102 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or each integrated circuit configured to implement an embodiment of the present invention. One or each processor included in the device may be the same type of processor, such as one or each CPU; or may be different types of processors, such as one or each CPU and one or each ASIC.
存储器1106,用于存放程序1110。存储器1106可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 1106 is used to store the program 1110 . Memory 1106 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
程序1110具体可以用于使得处理器1102执行以下操作:The program 1110 can specifically be used to cause the processor 1102 to perform the following operations:
获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;Obtain the vehicle information of the car and the list of electronic control units configured on the car;
根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;A topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is classified according to connection characteristics, and the connection characteristics include the connection relationship of nodes and the connection relationship of buses. for characterization of electronic control units and diagnostic interfaces with external equipment;
根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图。According to the list of electronic control units configured in the car and the topology map template, a car bus topology map is generated and displayed.
在一种可选的方式中,所述拓扑图模板中所述节点是按行列式排布的,不同类型的所述节点是按行排布的,所述节点按照类型包括诊断接口节点、根节点以及子节点,相同类型的所述节点是按列排布的。In an optional manner, the nodes in the topology diagram template are arranged in a determinant format, the nodes of different types are arranged in rows, and the nodes include diagnostic interface nodes, root Nodes and child nodes, said nodes of the same type are arranged in columns.
在一种可选的方式中,所述拓扑图模板中所述总线是按照总线的连接类型在所述节点之间的行间隙、列间隙、所述节点形成的行内的空白处以及所述节点形成的列内的空白处中的至少之一的位置排布的,所述总线的连接类型包括普通总线、诊断总线、环形总线、内部总线以及跨越总线。In an optional manner, the bus in the topology map template is a row gap, a column gap between the nodes, a blank space in a row formed by the node, and the node according to the connection type of the bus. According to the position of at least one of the blank spaces in the formed column, the connection type of the bus includes a normal bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
在一种可选的方式中,若所述总线为普通总线,所述总线排布于所述列间隙中,或者,所述总线排布于所述根节点与所述子节点之间的行间隙中。In an optional manner, if the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in a row between the root node and the child node in the gap.
在一种可选的方式中,若所述总线为诊断总线,所述总线排布于所述诊断接口节点和所述根节点之间的行间隙中,或者,若所述总线连接所述根节点,则所述总线可排布于所述节点形成的列内的空白处,或者,若所述总线不连接所述根节点,则所述总线排布于列间隙中。In an optional manner, if the bus is a diagnostic bus, the bus is arranged in a row gap between the diagnostic interface node and the root node, or if the bus is connected to the root node node, the bus can be arranged in a blank space in a column formed by the node, or, if the bus is not connected to the root node, the bus can be arranged in a column gap.
在一种可选的方式中,若所述总线为环形总线,所述总线的横向线排布于所述节点形成的行内的空白处,所述总线的纵向线排布于所述节点形成的列内的空白处或者列间隙中;其中,所述总线的两端连接不同的节点,或者,所述 总线的两端连接同一节点。In an optional manner, if the bus is a ring bus, the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes, and the vertical lines of the bus are arranged in the blanks formed by the nodes. A blank space in a column or a column gap; wherein, two ends of the bus are connected to different nodes, or, both ends of the bus are connected to the same node.
在一种可选的方式中,若所述总线为内部总线,所述总线排布于列间隙中。In an optional manner, if the bus is an internal bus, the bus is arranged in a column gap.
在一种可选的方式中,若所述总线为跨越线,所述总线排布于行间隙中,或者所述节点形成的行的底部。In an optional manner, if the bus is a spanning line, the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
在一种可选的方式中,所述子节点包括关键节点和普通节点,所述关键节点为连接至少两条总线的节点,所述普通节点为连接一条总线的节点,若所述节点形成的列中同时存在所述关键节点和所述普通节点,则所述关键节点相较于所述普通节点靠近所述根节点。In an optional manner, the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus. If both the key node and the common node exist in the column, the key node is closer to the root node than the common node.
在一种可选的方式中,所述拓扑图模板中连接同一总线的所述普通节点是根据功能关系的密切程度排布的,密切程度高的普通节点排布于同一区域内。In an optional manner, the common nodes connected to the same bus in the topology diagram template are arranged according to the degree of closeness of the functional relationship, and common nodes with a high degree of closeness are arranged in the same area.
在一种可选的方式中,所述拓扑图模板中的一总线包括多个纵向线,所述多个纵向线中的每一纵向线连接所述普通节点的数量在一平均范围内。In an optional manner, a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes within an average range.
在一种可选的方式中,用于表征所述电子控制单元的节点在所述拓扑图模板中的位置是由所述电子控制单元的权重值确定的,所述电子控制单元的权重值是根据所述电子控制单元出现故障的概率以及所述电子控制单元出现故障的重要程度确定的。In an optional manner, the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the weight value of the electronic control unit is It is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
在一种可选的方式中,用于表征权重值高的电子控制单元的节点位于所述拓扑图模板的主区域。In an optional manner, the node used to characterize the electronic control unit with a high weight value is located in the main area of the topology map template.
在一种可选的方式中,所述主区域位于所述拓扑图模板的左上方。In an optional manner, the main area is located at the upper left of the topology map template.
在一种可选的方式中,所述程序1110使所述处理器执行以下操作:In an optional manner, the program 1110 causes the processor to perform the following operations:
将所述汽车所配置的电子控制单元列表中的电子控制单元映射至所述拓扑图模板的节点中,以生成并显示汽车总线拓扑图。The electronic control units in the list of electronic control units configured in the car are mapped to the nodes of the topology map template, so as to generate and display the car bus topology map.
在一种可选的方式中,所述程序1110使所述处理器执行以下操作:In an optional manner, the program 1110 causes the processor to perform the following operations:
若所述电子控制单元列表中的电子控制单元的数量少于所述节点的数量,则调整所述节点在所述拓扑图模板中的排布位置,以生成并显示汽车总线拓扑图。If the number of electronic control units in the electronic control unit list is less than the number of the nodes, the arrangement position of the nodes in the topology map template is adjusted to generate and display a vehicle bus topology map.
在一种可选的方式中,所述程序1110使所述处理器执行以下操作:In an optional manner, the program 1110 causes the processor to perform the following operations:
若所述电子控制单元列表中存在电子控制单元连接局域网总线,则所述汽车总线拓扑图中用于表征所述电子控制单元的节点显示用于表征连接有所述局域网总线的标识。If there is an electronic control unit connected to a local area network bus in the electronic control unit list, a node used to represent the electronic control unit in the vehicle bus topology map displays an identifier used to represent that the local area network bus is connected.
在一种可选的方式中,所述汽车总线拓扑图中不同的总线是根据显示标识区分的,所述总线包括关键总线和普通总线,所述关键总线的显示标识相较于所述普通总线的显示标识明显。In an optional manner, different buses in the vehicle bus topology diagram are distinguished according to display identifiers, the buses include a key bus and a common bus, and the display identifier of the key bus is compared with the common bus. The display logo is obvious.
在一种可选的方式中,所述程序1110使所述处理器执行以下操作:In an optional manner, the program 1110 causes the processor to perform the following operations:
接收用户对所述汽车总线拓扑图中节点输入的控制指令;receiving a control command input by a user to a node in the vehicle bus topology diagram;
根据所述控制指令显示与所述节点所表征的电子控制单元相关的显示界面。A display interface related to the electronic control unit represented by the node is displayed according to the control instruction.
在一种可选的方式中,所述汽车总线拓扑图中所述节点的显示状态表示所 述节点所表征的电子控制单元的诊断状态。In an optional manner, the display state of the node in the vehicle bus topology diagram represents the diagnosis state of the electronic control unit represented by the node.
本发明实施例通过获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图,能够优化布局排布规则,支持单元状态动态改变和点击事件支持,实现了拓扑图的动态交互能力,使拓扑图简洁,易于算法实现,提高拓扑图的使用效率。In the embodiment of the present invention, the vehicle information of the car and the list of electronic control units configured on the car are obtained; the topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is based on the connection feature Classification, the connection characteristics include the connection relationship of nodes and the connection relationship of the bus, the nodes are used to represent the electronic control unit and the diagnostic interface with external equipment; according to the list of electronic control units configured in the car and the topology Diagram template, generate and display the topology diagram of automobile bus, can optimize the layout and arrangement rules, support dynamic change of unit state and click event support, realize the dynamic interaction ability of topology diagram, make topology diagram concise, easy to implement algorithm, and improve the performance of topology diagram. Use efficiency.
在此提供的算法或显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明实施例也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with teaching based on this. The structure required to construct such a system is apparent from the above description. Furthermore, embodiments of the present invention are not directed to any particular programming language. It is to be understood that various programming languages may be used to implement the inventions described herein, and that the descriptions of specific languages above are intended to disclose the best mode for carrying out the invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
类似地,应当理解,为了精简本发明并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明实施例的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。Similarly, it is to be understood that, in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together into a single implementation in order to simplify the invention and to aid in the understanding of one or more of the various aspects of the invention. examples, figures, or descriptions thereof. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed requires more features than are expressly recited in each claim.
本领域技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解 释为名称。上述实施例中的步骤,除有特殊说明外,不应理解为对执行顺序的限定。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names. The steps in the above embodiments should not be construed as limitations on the execution order unless otherwise specified.

Claims (23)

  1. 一种汽车总线拓扑图生成方法,应用于汽车故障诊断设备,其特征在于,所述方法包括:A method for generating an automobile bus topology map, which is applied to automobile fault diagnosis equipment, characterized in that the method comprises:
    获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;Obtain the vehicle information of the car and the list of electronic control units configured on the car;
    根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;A topology map template corresponding to the vehicle information is determined according to the vehicle information, wherein the topology map template is classified according to connection characteristics, and the connection characteristics include the connection relationship of nodes and the connection relationship of buses. for characterization of electronic control units and diagnostic interfaces with external equipment;
    根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图。According to the list of electronic control units configured in the car and the topology map template, a car bus topology map is generated and displayed.
  2. 根据权利要求1所述的方法,其特征在于,所述拓扑图模板中所述节点是按行列式排布的,不同类型的所述节点是按行排布的,所述节点按照类型包括诊断接口节点、根节点以及子节点,相同类型的所述节点是按列排布的。The method according to claim 1, wherein the nodes in the topology map template are arranged in a determinant manner, the nodes of different types are arranged in rows, and the nodes include diagnostics according to types Interface nodes, root nodes and child nodes, said nodes of the same type are arranged in columns.
  3. 根据权利要求2所述的方法,其特征在于,所述拓扑图模板中所述总线是按照总线的连接类型在所述节点之间的行间隙、列间隙、所述节点形成的行内的空白处以及所述节点形成的列内的空白处中的至少之一的位置排布的,所述总线的连接类型包括普通总线、诊断总线、环形总线、内部总线以及跨越总线。The method according to claim 2, wherein the bus in the topology map template is a row gap between the nodes, a column gap, and a blank space in a row formed by the nodes according to the connection type of the bus. and the position of at least one of the blank spaces in the column formed by the nodes is arranged, and the connection types of the bus include a common bus, a diagnostic bus, a ring bus, an internal bus and a spanning bus.
  4. 根据权利要求3所述的方法,其特征在于,若所述总线为普通总线,所述总线排布于所述列间隙中,或者,所述总线排布于所述根节点与所述子节点之间的行间隙中。The method according to claim 3, wherein if the bus is a common bus, the bus is arranged in the column gap, or the bus is arranged in the root node and the child node in the space between the lines.
  5. 根据权利要求3所述的方法,其特征在于,若所述总线为诊断总线,所述总线排布于所述诊断接口节点和所述根节点之间的行间隙中,或者,若所述总线连接所述根节点,则所述总线可排布于所述节点形成的列内的空白处,或者,若所述总线不连接所述根节点,则所述总线排布于列间隙中。The method according to claim 3, wherein, if the bus is a diagnostic bus, the bus is arranged in a row gap between the diagnostic interface node and the root node, or, if the bus is If the root node is connected, the bus may be arranged in a space within a column formed by the node, or if the bus is not connected to the root node, the bus may be arranged in a column gap.
  6. 根据权利要求3所述的方法,其特征在于,若所述总线为环形总线,所述总线的横向线排布于所述节点形成的行内的空白处,所述总线的纵向线排布于所述节点形成的列内的空白处或者列间隙中;The method according to claim 3, wherein if the bus is a ring bus, the horizontal lines of the bus are arranged in the blanks in the row formed by the nodes, and the vertical lines of the bus are arranged in the The blank space in the column formed by the node or the column gap;
    其中,所述总线的两端连接不同的节点,或者,所述总线的两端连接同一节点。Wherein, both ends of the bus are connected to different nodes, or, both ends of the bus are connected to the same node.
  7. 根据权利要求3所述的方法,其特征在于,若所述总线为内部总线,所述总线排布于列间隙中。The method according to claim 3, wherein if the bus is an internal bus, the bus is arranged in a column gap.
  8. 根据权利要求3所述的方法,其特征在于,若所述总线为跨越线,所述总线排布于行间隙中,或者所述节点形成的行的底部。The method according to claim 3, wherein if the bus is a spanning line, the bus is arranged in a row gap, or at the bottom of a row formed by the nodes.
  9. 根据权利要求2所述的方法,其特征在于,所述子节点包括关键节点和普通节点,所述关键节点为连接至少两条总线的节点,所述普通节点为连接一条总线的节点,若所述节点形成的列中同时存在所述关键节点和所述普通节点,则所述关键节点相较于所述普通节点靠近所述根节点。The method according to claim 2, wherein the child nodes include a key node and a common node, the key node is a node connected to at least two buses, and the common node is a node connected to one bus, if the If both the key node and the common node exist in the column formed by the node, the key node is closer to the root node than the common node.
  10. 根据权利要求9所述的方法,其特征在于,所述拓扑图模板中连接同一总线的所述普通节点是根据功能关系的密切程度排布的,密切程度高的普通节点排布于同一区域内。The method according to claim 9, wherein the common nodes connected to the same bus in the topology map template are arranged according to the degree of closeness of the functional relationship, and the common nodes with a high degree of closeness are arranged in the same area .
  11. 根据权利要求9所述的方法,其特征在于,所述拓扑图模板中的一总线包括多个纵向线,所述多个纵向线中的每一纵向线连接所述普通节点的数量在一平均范围内。The method according to claim 9, wherein a bus in the topology map template includes a plurality of vertical lines, and each vertical line in the plurality of vertical lines connects the number of the common nodes to an average within the range.
  12. 根据权利要求1所述的方法,其特征在于,用于表征所述电子控制单元的节点在所述拓扑图模板中的位置是由所述电子控制单元的权重值确定的,所述电子控制单元的权重值是根据所述电子控制单元出现故障的概率以及所述电子控制单元出现故障的重要程度确定的。The method according to claim 1, wherein the position of the node used to characterize the electronic control unit in the topology map template is determined by the weight value of the electronic control unit, and the electronic control unit The weight value of is determined according to the probability of failure of the electronic control unit and the importance of the failure of the electronic control unit.
  13. 根据权利要求12所述的方法,其特征在于,用于表征权重值高的电子控制单元的节点位于所述拓扑图模板的主区域。13. The method according to claim 12, wherein the node for characterizing the electronic control unit with high weight value is located in the main area of the topology map template.
  14. 根据权利要求13所述的方法,其特征在于,所述主区域位于所述拓扑图模板的左上方。The method of claim 13, wherein the main area is located at the upper left of the topology map template.
  15. 根据权利要求1所述的方法,其特征在于,所述根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图,包括:The method according to claim 1, wherein the generating and displaying the vehicle bus topology diagram according to the list of electronic control units configured on the vehicle and the topology diagram template, comprising:
    将所述汽车所配置的电子控制单元列表中的电子控制单元映射至所述拓扑图模板的节点中,以生成并显示汽车总线拓扑图。The electronic control units in the list of electronic control units configured in the car are mapped to the nodes of the topology map template, so as to generate and display the car bus topology map.
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:The method of claim 15, wherein the method further comprises:
    若所述电子控制单元列表中的电子控制单元的数量少于所述节点的数量,则调整所述节点在所述拓扑图模板中的排布位置,以生成并显示汽车总线拓扑图。If the number of electronic control units in the electronic control unit list is less than the number of the nodes, the arrangement position of the nodes in the topology map template is adjusted to generate and display a vehicle bus topology map.
  17. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    若所述电子控制单元列表中存在电子控制单元连接局域网总线,则所述汽车总线拓扑图中用于表征所述电子控制单元的节点显示用于表征连接有所述局域网总线的标识。If there is an electronic control unit connected to a local area network bus in the electronic control unit list, a node used to represent the electronic control unit in the vehicle bus topology map displays an identifier used to represent that the local area network bus is connected.
  18. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    所述汽车总线拓扑图中不同的总线是根据显示标识区分的,所述总线包括关键总线和普通总线,所述关键总线的显示标识相较于所述普通总线的显示标识明显。Different buses in the vehicle bus topology diagram are distinguished according to display marks, the buses include a key bus and a common bus, and the display mark of the key bus is more obvious than the display mark of the common bus.
  19. 根据权利要求1所述的方法,其特征在于,所述生成并显示汽车总线拓扑图后,所述方法还包括:The method according to claim 1, wherein after generating and displaying the vehicle bus topology diagram, the method further comprises:
    接收用户对所述汽车总线拓扑图中节点输入的控制指令;receiving a control command input by a user to a node in the vehicle bus topology diagram;
    根据所述控制指令显示与所述节点所表征的电子控制单元相关的显示界面。A display interface related to the electronic control unit represented by the node is displayed according to the control instruction.
  20. 根据权利要求1所述的方法,其特征在于,所述汽车总线拓扑图中所述节点的显示状态表示所述节点所表征的电子控制单元的诊断状态。The method according to claim 1, wherein the display state of the node in the vehicle bus topology map represents the diagnosis state of the electronic control unit represented by the node.
  21. 一种汽车总线拓扑图生成装置,应用于汽车故障诊断设备,其特征在 于,所述装置包括:A device for generating an automobile bus topology diagram, applied to an automobile fault diagnosis device, wherein the device comprises:
    数据获取单元,用于获取汽车的车辆信息和所述汽车所配置的电子控制单元列表;a data acquisition unit for acquiring vehicle information of the car and a list of electronic control units configured on the car;
    模板确定单元,用于根据所述车辆信息确定与所述车辆信息对应的拓扑图模板,其中,所述拓扑图模板是根据连接特征分类的,所述连接特征包括节点的连接关系以及总线的连接关系,所述节点用于表征电子控制单元以及与外部设备的诊断接口;A template determination unit, configured to determine a topology map template corresponding to the vehicle information according to the vehicle information, wherein the topology map template is classified according to connection features, and the connection features include connection relationships of nodes and connections of buses relationship, the node is used to characterize the electronic control unit and the diagnostic interface with external equipment;
    拓扑图生成单元,用于根据所述汽车所配置的电子控制单元列表和所述拓扑图模板,生成并显示汽车总线拓扑图。The topology map generating unit is used for generating and displaying the automobile bus topology map according to the list of electronic control units configured in the automobile and the topology map template.
  22. 一种计算设备,其特征在于,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;A computing device, comprising: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface communicate with each other through the communication bus;
    所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行根据权利要求1-20任一项所述汽车总线拓扑图生成方法的步骤。The memory is used to store at least one executable instruction, and the executable instruction causes the processor to execute the steps of the method for generating a vehicle bus topology map according to any one of claims 1-20.
  23. 一种计算机存储介质,其特征在于,所述存储介质中存储有至少一可执行指令,所述可执行指令使处理器执行根据权利要求1-20任一项所述汽车总线拓扑图生成方法的步骤。A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction causes the processor to execute the method for generating a vehicle bus topology map according to any one of claims 1-20. step.
PCT/CN2021/133807 2020-12-23 2021-11-29 Vehicle bus topological graph generation method and apparatus, and computing device WO2022135057A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011546698.9A CN112666926B (en) 2020-12-23 2020-12-23 Automobile bus topological graph generation method and device and computing equipment
CN202011546698.9 2020-12-23

Publications (1)

Publication Number Publication Date
WO2022135057A1 true WO2022135057A1 (en) 2022-06-30

Family

ID=75408219

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133807 WO2022135057A1 (en) 2020-12-23 2021-11-29 Vehicle bus topological graph generation method and apparatus, and computing device

Country Status (2)

Country Link
CN (1) CN112666926B (en)
WO (1) WO2022135057A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495518A (en) * 2022-09-22 2022-12-20 奇点浩翰数据技术(北京)有限公司 Method and device for generating chart

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112666926B (en) * 2020-12-23 2024-03-26 深圳市道通科技股份有限公司 Automobile bus topological graph generation method and device and computing equipment
CN113665502B (en) * 2021-07-08 2023-03-03 深圳市道通科技股份有限公司 Vehicle system description diagram generation method, display method and auxiliary fault diagnosis method
CN114389957A (en) * 2022-03-01 2022-04-22 四创电子股份有限公司 Patrol alarm method for special vehicle-mounted equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7840713B2 (en) * 2006-10-02 2010-11-23 Robert Bosch Gmbh Method for operating a field bus network system having a ring topology and a corresponding field bus network system
CN102185706A (en) * 2011-04-13 2011-09-14 北京航空航天大学 Method for generating IEEE1394 (Institute of Electrical and Electronics Engineers 1394) network topological graph
CN104616207A (en) * 2015-01-27 2015-05-13 中国科学院计算机网络信息中心 Power grid topological visualization system and power grid topological visualization method
CN107291068A (en) * 2017-07-28 2017-10-24 深圳市元征科技股份有限公司 Vehicular diagnostic method and vehicle diagnostic equipment
CN109491367A (en) * 2018-11-30 2019-03-19 深圳市元征科技股份有限公司 A kind of automobile electric control system display methods, automotive diagnostic system and relevant device
CN111130967A (en) * 2019-12-25 2020-05-08 宜宾凯翼汽车有限公司 Automobile diagnosis network topological structure
CN112666926A (en) * 2020-12-23 2021-04-16 深圳市道通科技股份有限公司 Automobile bus topological graph generation method and device and computing equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558360A (en) * 2018-11-30 2019-04-02 北京润科通用技术有限公司 The methods of exhibiting and device of electronic system architecture
CN109934957A (en) * 2019-03-20 2019-06-25 深圳市道通科技股份有限公司 Show the method, device and mobile terminal of the distribution of vehicle ECU system and state
CN111860880A (en) * 2020-06-01 2020-10-30 北京骑胜科技有限公司 Path determining method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7840713B2 (en) * 2006-10-02 2010-11-23 Robert Bosch Gmbh Method for operating a field bus network system having a ring topology and a corresponding field bus network system
CN102185706A (en) * 2011-04-13 2011-09-14 北京航空航天大学 Method for generating IEEE1394 (Institute of Electrical and Electronics Engineers 1394) network topological graph
CN104616207A (en) * 2015-01-27 2015-05-13 中国科学院计算机网络信息中心 Power grid topological visualization system and power grid topological visualization method
CN107291068A (en) * 2017-07-28 2017-10-24 深圳市元征科技股份有限公司 Vehicular diagnostic method and vehicle diagnostic equipment
CN109491367A (en) * 2018-11-30 2019-03-19 深圳市元征科技股份有限公司 A kind of automobile electric control system display methods, automotive diagnostic system and relevant device
CN111130967A (en) * 2019-12-25 2020-05-08 宜宾凯翼汽车有限公司 Automobile diagnosis network topological structure
CN112666926A (en) * 2020-12-23 2021-04-16 深圳市道通科技股份有限公司 Automobile bus topological graph generation method and device and computing equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495518A (en) * 2022-09-22 2022-12-20 奇点浩翰数据技术(北京)有限公司 Method and device for generating chart
CN115495518B (en) * 2022-09-22 2023-10-24 奇点浩翰数据技术(北京)有限公司 Method and device for generating chart

Also Published As

Publication number Publication date
CN112666926B (en) 2024-03-26
CN112666926A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
WO2022135057A1 (en) Vehicle bus topological graph generation method and apparatus, and computing device
WO2020187315A1 (en) Method, device, and mobile terminal for displaying distribution and status of vehicle ecu system
CN104965507B (en) Generate the method and device of open diagnostic data switching database
JP4155363B2 (en) Data display device, data display method, and recording medium on which data display program is recorded
CN104616207A (en) Power grid topological visualization system and power grid topological visualization method
JP2749020B2 (en) Diagram recognition system
CN108509339A (en) Method for generating test case, device based on browser and mind map and equipment
US20240054091A1 (en) Automatic construction method and apparatus for automobile bus topology map, and computing device
JP2006504169A (en) Electrical architecture synthesis method and synthesis apparatus
CN109804363A (en) Use the connection by exemplary form modifying
WO2022111303A1 (en) Automobile bus fault diagnosis method and apparatus, and computing device
US6775796B2 (en) Creation of memory array bitmaps using logical to physical server
CN104252412A (en) Method and system used for automatic detection of CSS (Cascading Style Sheet) conflict
JP4013638B2 (en) Route information editing apparatus and method for traffic flow simulator
CN109086515A (en) The modeling method of primary equipment pictorial information in intelligent substation SSD based on SVG
EP4261732A1 (en) Vehicle bus topological graph display method and apparatus, and device
US8510254B2 (en) Ontology model to accelerate engineering analysis in manufacturing
US7373623B2 (en) Method and apparatus for locating circuit deviations
CN106649321A (en) Mind map display method and device
CN114398071A (en) Control logic configuration implementation method and system of control system
JP4278022B2 (en) Data management system and search system
JP2020113002A (en) Program, apparatus and method for display comparison
Su et al. A multi-level visualization method for IT system structure
CN111611684B (en) Method, system, device and storage medium for generating interference zone logic block
TWI802247B (en) Self-adaptive configuration web page layout method and servo system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21909056

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21909056

Country of ref document: EP

Kind code of ref document: A1