Multi-network segment state test method based on automobile bus network test system
By using a combination of relay boards and bus network acquisition devices in the vehicle bus network, along with grouping strategies and periodic inspections, the problems of large equipment investment and long debugging time were solved. This enabled efficient network sleep and wake-up testing, reducing costs and improving testing efficiency.
Patent Information
- Application Number
- CN202511162844.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-19
- Publication Date
- 2025-11-04
AI Technical Summary
With the surge in the number of vehicle bus networks, existing testing methods require a large investment of equipment and take a long time to debug, making it difficult to efficiently perform network sleep and wake-up tests.
By combining relay boards with bus network acquisition devices, the bus network is divided into different types of network segments through a grouping strategy, and network inspections are carried out at predetermined intervals. The network status is determined by the number of messages and their IDs.
It reduces testing costs, improves testing strategies and actual testing efficiency, enables rapid identification of network problems, and avoids redundant development.
Smart Images

Figure CN120896871A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of automobile network testing, and in particular to a multi-network segment state testing method based on an automobile bus network testing system. BACKGROUND
[0002] With the deep integration of intelligentization and networking technology of automobiles, intelligent and connected vehicles are accelerating the transformation towards "software definition" and "data driving". As the "nervous system" connecting sensors, controllers and actuators, the complexity and importance of in-vehicle network architecture are increasingly highlighted. In addition, with the popularity of domain controller architecture, the traditional distributed ECU architecture is gradually evolving towards centralization, which leads to significant changes in in-vehicle network architecture, and the number of CAN network segments has increased significantly, for example, from four to five CAN networks on traditional vehicles to dozens or even more.
[0003] It can be seen that in-vehicle bus network management testing is a key link to ensure the efficient, reliable and safe operation of in-vehicle communication systems. In the current environment of increasing CAN numbers, higher requirements are placed on testing technology. Of course, not only CAN, but also testing of vehicle communication networks such as flexray, LIN, Ethernet, etc. are facing similar challenges, and the present application only takes CAN network as an example for illustration.
[0004] For example, for whole vehicle network sleep and wake-up testing, the conventional testing method is to use a CAN bus communication tool to monitor the CAN bus data of each route, and to judge whether the network is in sleep or not by observing the collected data. However, in the current context of increasing CAN networks, the overall CAN data acquisition equipment investment is large, and the equipment debugging time is long. SUMMARY
[0005] In view of the above, the present application aims to provide a multi-network segment state testing method based on an automobile bus network testing system to solve the aforementioned technical problems.
[0006] The technical solution adopted by the present application is as follows:
[0007] The present application provides a multi-network segment state testing method based on an automobile bus network testing system, the automobile bus network testing system comprising: a bus network acquisition device connected with an upper computer and a plurality of relay board cards respectively, and the number of channels of the bus network acquisition device is less than the number of network segments of the automobile bus network; wherein the multi-network segment state testing method comprises:
[0008] grouping a plurality of network segments of the automobile bus network in advance;
[0009] establishing the connection between all network segments in each group and the relay board cards;
[0010] successively performing network inspection on each group according to a predetermined period;
[0011] According to the number of messages and message IDs obtained in the inspection process, test the network sleep or wake-up status.
[0012] In at least one possible implementation, in the inspection process, testing the network sleep status includes:
[0013] In the sleep process, respectively detect the number of messages on each network segment;
[0014] When the number of messages is equal to 0, determine that the corresponding network segment has been in sleep, and adjust the inspection period of the network segment.
[0015] In at least one possible implementation, in the inspection process, testing the network wake-up status includes:
[0016] In the wake-up process, respectively detect the number of messages on each network segment;
[0017] Compare the number of messages with a preset communication matrix;
[0018] If the number is less than the defined value in the matrix, continue to compare the difference value of the message ID.
[0019] In at least one possible implementation, the groups include assigning the automobile bus network into:
[0020] The network management backbone segment includes the backbone segment through which the domain controllers communicate with each other through the bus, and the backbone segment has a network management control attribute;
[0021] The network management sub-network segment includes the branch network segment hung under the domain controller, and the branch network segment has a network management control attribute;
[0022] Other network segments include all other network segments without a management control attribute.
[0023] In at least one possible implementation, the network inspection on each group includes: through the way that the upper computer controls the relay board card to switch the relay channel, sequentially traverse each network segment in different groups.
[0024] In at least one possible implementation, the upper computer displays the test status of the bus network through screen output.
[0025] Compared with the prior art, the main design concept of the application is that, by means of relay board cards and corresponding control modes, the vehicle-mounted bus network is patrolled under a given strategy, and the sleep-wake test is realized under the condition that the hardware acquisition channel of the vehicle-mounted bus equipment is less than the number of the measured vehicle-mounted bus network segments, thereby significantly reducing the test cost. Specifically, the bus acquisition equipment is connected with a plurality of relay board cards, and the inputs of the relay board cards are configured in combination with the classification strategy of the measured vehicle CAN network segments; in the test process, each group is sequentially patrolled in a network in accordance with a given period, and the network sleep or wake condition is tested based on the number and ID of the messages obtained in the patrolling process. The application effectively improves the test strategy preparation efficiency, the actual test efficiency, avoids repeated development, and is conducive to quickly locating network problems. BRIEF DESCRIPTION OF DRAWINGS
[0026] In order to make the objects, technical solutions and advantages of the present application clearer, the following will further describe the present application with reference to the accompanying drawings, in which:
[0027] Figure 1 A schematic diagram of a multi-network segment state test method based on an automotive bus network test system provided by an embodiment of the present application. DETAILED DESCRIPTION
[0028] The embodiments of the present application will be described in detail below, and examples of the embodiments are shown in the accompanying drawings, in which the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as a limitation on the present application.
[0029] The present application proposes an embodiment of a multi-network segment state test method based on an automotive bus network test system. Specifically, the automotive bus network test system comprises: a bus network acquisition device (CAN is taken as an example, CANoe, Tongxing, etc. can be selected) connected with an upper computer and a plurality of relay board cards (a plurality of relay elements are laid and serial ports, Ethernet interfaces, etc. are configured) respectively, and the number of channels of the bus network acquisition device is less than the number of network segments of the automotive bus network, and the multi-network segment state test method is as shown in Figure 1 , which comprises:
[0030] Step S1, a plurality of network segments of the automotive bus network are pre-grouped;
[0031] When grouping, the same type of CAN network segment data is preferably placed in the same group, which facilitates the design of subsequent network patrolling logic. The following three grouping strategies are given for implementation reference:
[0032] (1) Network management backbone segment: mainly refers to the backbone segment through which the domain controllers communicate with each other by bus, and the backbone segment has network management control attribute;
[0033] (2) Network management sub-segment: mainly refers to the branch network segment hung under the domain controller, and the branch network segment has network management control attribute;
[0034] (3) Other segments other than the above two types: that is, all other segments without management control attribute.
[0035] Step S2, establish communication between several network segments in each bus network group and the relay board card;
[0036] Specifically, the bus network line of each group can be connected to the input end of the relay board card, and here the CAN collection device with four-channel collection capability and ten network segments are taken as an example.
[0037] According to the grouping strategy mentioned above, the ten network segments can be divided into four groups (which can correspond to the configuration of four relay board cards), two or three network segment lines in each group are connected to the input end of a relay board card; the output end of each relay board card is connected to one channel interface of the CAN collection device, and the channel on-off of the relay can make the corresponding CANH and CANL of the multi-network segment establish communication connection with the four channel interfaces of the CAN collection device.
[0038] Step S3, network inspection is performed on each group according to the predetermined period (which can be defined as 5s for each network segment);
[0039] In actual operation, the upper computer can control the relay board card to switch the relay channel to traverse each network segment in different groups in turn.
[0040] Step S4, test the network sleep or wake-up condition according to the number of messages and message IDs obtained in the inspection process.
[0041] That is, identify the number of messages on each network segment, judge whether the message ID is consistent with the corresponding preset communication matrix, and determine whether there is an abnormal situation in the bus network sleep or wake-up process, which is expanded as follows:
[0042] In the sleep state, the number of messages on the corresponding network segment is judged respectively, when the number of messages is equal to 0, it means that this network segment has been put to sleep, and no longer performs 5s inspection, and the network segment can be adjusted to 1s inspection time; at the same time, the sleep state of the network segment can be directly displayed in the upper computer, which is convenient for the tester to check;
[0043] In the wake-up mode, the number of messages on the corresponding network segment is judged respectively, and compared with the preset communication matrix, if the number is less than the defined value in the matrix, the difference value of the message ID is continued to automatically compared, and the comparison result is output in the upper computer, so as to accurately locate the abnormal controller and solve the corresponding problem for the test personnel.
[0044] To sum up, the main design concept of the application is that, through the relay board card and the corresponding control mode, the vehicle-mounted bus network is patrolled under the given strategy, the sleep-wake test is realized under the condition that the hardware acquisition channel of the vehicle-mounted bus equipment is less than the number of the measured vehicle-mounted bus network segments, and the test cost is significantly reduced. Specifically, the bus acquisition equipment is connected with a plurality of relay board cards, and the inputs of the relay board cards are configured in combination with the classification strategy of the measured vehicle CAN network segment; in the test process, each group is sequentially patrolled in the network according to the given period, and the network sleep or wake-up condition is tested based on the number of messages and message IDs obtained in the patrol process. The application effectively improves the test strategy preparation efficiency, the actual test efficiency, avoids repeated development, and is beneficial to quickly locating network problems.
[0045] In the embodiments of the application, if the expression of the position is mentioned, it is based on the relative concept of the embodiments, and in addition, "at least one" means one or more, and "multiple" means two or more. The "and / or" describes the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B can mean that A exists alone, A and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character " / " generally represents that the front and rear associated objects are in an "or" relationship. "At least one of the following" and the like means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b and c can mean: a, b, c, a and b, a and c, b and c, or a and b and c, wherein a, b, c can be single or multiple.
[0046] The above embodiments shown in the drawings detail the structure, features and effect of the application, but the above is only the preferred embodiment of the application, and it should be noted that the technical features involved in the above embodiments and preferred modes can be reasonably combined and matched into a plurality of equivalent schemes by those skilled in the art without departing from, changing the design idea and technical effect of the application. Therefore, the application is not limited by the drawings shown in the drawings, and any change or modification made according to the idea of the application, or the equivalent embodiment of the equivalent embodiment, still within the scope of the application.
Claims
1. A multi-segment status testing method based on an automotive bus network testing system, characterized in that, The automotive bus network testing system includes: bus network acquisition devices connected to a host computer and several relay boards, wherein the number of channels of the bus network acquisition devices is less than the number of network segments of the automotive bus network; wherein the multi-segment status testing method includes: The vehicle bus network segments are pre-grouped; Establish connections between all network segments within each group and the relay board; Each group will be inspected sequentially according to a predetermined cycle. Test the network's sleep or wake-up status based on the number of messages and message IDs obtained during the inspection process.
2. The multi-segment status testing method based on an automotive bus network testing system according to claim 1, characterized in that, During the inspection, the network sleep status was tested, including: During the hibernation process, the number of packets in each network segment is checked separately; When the number of messages is 0, it is determined that the corresponding network segment is in a dormant state, and the inspection cycle of that network segment is adjusted accordingly.
3. The multi-segment status testing method based on an automotive bus network testing system according to claim 1, characterized in that, During the inspection, the network wake-up status was tested, including: During the wake-up process, the number of packets on the corresponding network segment is detected respectively; Compare the number of messages with the preset communication matrix; If the number is less than the defined value in the matrix, continue comparing the differences in message IDs.
4. The multi-segment status testing method based on an automotive bus network testing system according to claim 1, characterized in that, The grouping includes assigning the automotive bus network as follows: The network management backbone network segment includes the backbone network segment through which domain controllers communicate with each other via a bus, and the backbone network segment has network management and control attributes; The network management subnet segment includes a branch network segment connected to the domain controller, and the branch network segment has network management and control attributes; Other network segments, including all other network segments that do not have management and control attributes.
5. The multi-segment status testing method based on an automotive bus network testing system according to claim 1, characterized in that, The network inspection of each group includes: switching relay channels by controlling the relay board through the host computer to sequentially traverse each network segment in different groups.
6. The multi-segment status testing method based on an automotive bus network testing system according to any one of claims 1 to 5, characterized in that, The host computer displays the test status of the bus network via screen output.