TBOX network test method and device and computer readable storage medium

By acquiring and assigning network addresses and setting configuration modes, the TBOX network testing process is simplified, and the problems of cumbersome and high cost in traditional methods are solved, and an efficient and convenient test solution is realized, which improves efficiency.

CN119109847APending Publication Date: 2024-12-10GOSUNCNWELINK TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411379554.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

TBOX network testing steps are cumbersome, costly and inefficient. Traditional methods require additional Ethernet converters and complex configuration processes, resulting in inconvenient testing and inefficient efficiency.

Method used

By obtaining the network address of the tested end, determining the address segment, and allocating the network addresses of the tool end and the test end in the address segment, setting the tool end and the tested end as slave configuration and master configuration, realizing the transmission of diagnostic signals and simplifying the testing process , and optimize the testing of multi-channel Ethernet channels through batch test scripts.

Benefits of technology

It realizes efficient and convenient TBOX network testing, reduces testing steps and costs, improves production efficiency, and avoids additional hardware and time expenditures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109847A_ABST
    Figure CN119109847A_ABST
Patent Text Reader

Abstract

The invention discloses a TBOX network test method and device and a computer readable storage medium, and the method comprises the steps: obtaining a first network address of a tested end, and determining an address field to which the first network address belongs; a second network address of the tool end and a third network address of the test end are allocated in the address field, and the first network address, the second network address and the third network address are different; and respectively setting the tool end and the tested end as a slave configuration and a master configuration, so that a diagnosis signal of the test end reaches the tested end through the tool end. According to the invention, an efficient and convenient TBOX network test scheme is realized, the implementation steps of the TBOX network test are simplified, the software, hardware and time cost in the test process are saved, and the production efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle communication technology, and in particular to a TBOX network testing method, device and computer-readable storage medium. Background Art

[0002] T-BOX (Telematics Box, remote communication terminal) is an important component of the vehicle intelligent network system. T-BOX mainly interacts with the controller area network (CAN) bus, vehicle computer, and telematics service provider (TSP) to realize the key functions of vehicle intelligent network.

[0003] In order to meet the requirements of advanced assisted driving and other functions, more and more electronic components are needed to participate in information interaction. The on-board Ethernet connection method is flexible and compact, which can greatly reduce the weight of the vehicle wiring harness. Through high bandwidth, it can achieve fast program refresh, audio, video and other streaming media high-speed transmission.

[0004] At present, the Ethernet of the T-BOX terminal provides Ethernet routing for key automotive domain controllers (Domain Control Unit, DCU), such as smart cockpits and autonomous driving, so the hardware reliability of its Ethernet path is particularly important. In the DV (Design Verification) test of automotive parts, tests such as electrical load, electromagnetic compatibility, high temperature, low temperature, humidity, drop, vibration, impact, salt spray, etc. are carried out to ensure hardware reliability. This requires checking whether the Ethernet path of the T-BOX terminal is normal after each test item.

[0005] Traditional Ethernet is generally connected using RJ45 connectors, but in-vehicle Ethernet does not specify a specific connector, so the types of Ethernet connectors on T-BOX terminals vary. More importantly, in-vehicle Ethernet T1 only has two wires, while traditional Ethernet has eight wires, so conventional T-BOX terminal Ethernet channel testing often requires an additional Ethernet converter to achieve the conversion and interconnection between T1 and RJ45. It is necessary to first convert from the T1 port of the T-BOX terminal to a dedicated Ethernet converter, and then convert from the converter to a common RJ45 port and connect to the test computer. For example, if the T-BOX terminal has one Ethernet channel, an Ethernet converter is required, and if the T-BOX terminal has 6 Ethernet channels, six Ethernet converters are required. In addition, each Ethernet channel needs to be configured as a master and slave, which brings great inconvenience to the test, and also increases additional costs and is inefficient. Summary of the invention

[0006] In order to overcome the deficiencies in the prior art, the present invention aims to provide a TBOX network testing method, device and computer-readable storage medium to solve the problems of cumbersome steps, high cost and low efficiency in the current TBOX network testing.

[0007] The present invention proposes a TBOX network testing method, which is applied to a tool end, one end of which is connected to a test end via a data cable, and the other end of which is connected to a tested end via an Ethernet cable. The method comprises: Acquire a first network address of the tested terminal, and determine the address segment to which the first network address belongs; Allocating a second network address of the tool end and a third network address of the test end in the address segment, wherein the first network address, the second network address and the third network address are different from each other; The tool end and the tested end are respectively set to a slave configuration and a master configuration, so that the diagnostic signal of the test end reaches the tested end via the tool end.

[0008] Optionally, the obtaining the first network address of the tested end further includes: Obtaining the number of Ethernets of the tested end; A plurality of the first network addresses corresponding to the number is determined.

[0009] Optionally, determining the address segment to which the first network address belongs further includes: An address segment corresponding to each of the first network addresses is set respectively, wherein the multiple address segments obtained by setting are different from each other.

[0010] Optionally, determining the address segment to which the first network address belongs further includes: Statistics are collected on the address segment corresponding to each of the first network addresses to determine multiple first network addresses belonging to the same address segment.

[0011] Optionally, allocating the second network address of the tool end and the third network address of the test end in the address segment further includes: The second network address and the third network address are respectively set in a plurality of the address segments, wherein the first network address, the second network address and the third network address in each of the address segments are different.

[0012] Optionally, allocating the second network address of the tool end and the third network address of the test end in the address segment further includes: For a plurality of the first network addresses belonging to the same address segment, the second network addresses and the third network addresses which are different from each other are correspondingly set in the same address segment.

[0013] Optionally, the step of setting the tool end and the tested end to a slave configuration and a master configuration, respectively, further comprises: Detecting whether the number of Ethernets is greater than a preset value; If the number of the Ethernets is greater than the preset value, a batch test script is created, and test paths corresponding to the number of entries are created in the batch test script, wherein each test path includes a diagnostic signal transmission path corresponding to the first network address, the second network address and the third network address.

[0014] Optionally, the step of setting the tool end and the tested end to a slave configuration and a master configuration, respectively, further comprises: Setting the test priorities of different Ethernet paths in the batch test script; The number of tests are executed according to the test priority until all Ethernet path tests of the tested end are completed.

[0015] The present invention also proposes a TBOX network testing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the TBOX network testing method described in any one of the above items are implemented.

[0016] The present invention further proposes a computer-readable storage medium, on which a TBOX network test program is stored. When the TBOX network test program is executed by a processor, the steps of the TBOX network test method as described in any one of the above items are implemented.

[0017] The TBOX network testing method, device and computer-readable storage medium of the present invention are implemented by obtaining the first network address of the tested end and determining the address segment to which the first network address belongs; allocating the second network address of the tool end and the third network address of the test end in the address segment, wherein the first network address, the second network address and the third network address are different; setting the tool end and the tested end as slave configuration and master configuration respectively, so that the diagnostic signal of the test end reaches the tested end via the tool end. An efficient and convenient TBOX network testing solution is realized, which simplifies the implementation steps of TBOX network testing, saves the software, hardware and time costs of the testing process, and improves production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which: Figure 1 is a first flow chart of the TBOX network testing method of the present invention; Figure 2 is a second flow chart of the TBOX network testing method of the present invention; Figure 3 is the third flow chart of the TBOX network testing method of the present invention; Figure 4 is a fourth flow chart of the TBOX network testing method of the present invention; Figure 5 It is a working principle diagram of the TBOX network testing method of the present invention. DETAILED DESCRIPTION

[0019] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0020] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0021] Figure 1 This embodiment proposes a TBOX network testing method, which is applied to a tool end, one end of which is connected to a test end via a data cable, and the other end of which is connected to a tested end via an Ethernet cable. The method comprises: S1. Obtain a first network address of the tested terminal, and determine the address segment to which the first network address belongs; S2, allocating a second network address of the tool end and a third network address of the test end in the address segment, wherein the first network address, the second network address and the third network address are different; S3. Setting the tool end and the tested end to slave configuration and master configuration respectively, so that the diagnostic signal of the test end reaches the tested end via the tool end.

[0022] In this embodiment, please refer to Figure 5The working principle diagram of the TBOX network testing method of the present invention is shown. First, a T-BOX terminal is taken as a tool terminal, and the tool terminal is the same terminal as the "tested T-BOX terminal", that is, this T-BOX terminal is called a "tool T-BOX terminal". Considering that the two terminals are exactly the same, their Ethernet interfaces are also exactly the same, so the two T-BOX terminals can be directly connected by an Ethernet cable; then, taking a single Ethernet as an example, when doing a path test, first configure the "tool T-BOX terminal" as a slave configuration (Slave), and then set the "tested T-BOX terminal" as the master configuration (Master); finally, set the IP addresses of the test PC, the "tool T-BOX terminal" and the "tested T-BOX terminal" in the same address segment, for example, the target IP address of the "tested T-BOX terminal" is set to 192.168.1.1, the IP address of the "tool T-BOX terminal" is set to 192.168.1.2, and the IP address of the test PC is set to 192.168.1.8. At this time, when the test PC is connected to the "tool T-BOX terminal" via a USB cable, and then pings the IP address 192.168.1.1 of the "tested T-BOX terminal", it can be pinged through.

[0023] It can be seen that in this embodiment, the above-mentioned "tool T-BOX terminal" plays the role of a tool and a routing conversion, thereby conveniently realizing the mutual ping-through from the test PC (192.168.1.8) to the device under test (192.168.1.1), and realizing the continuity test of the Ethernet path of the device under test.

[0024] Similarly, in this embodiment, the method for implementing multiple Ethernets can also adopt operations similar to the above scheme. For example, if the device under test has four Ethernets, four IP addresses are configured on the tool terminal and the device under test respectively, so that each Ethernet can be pinged separately on the test PC; further, in this embodiment, a batch test script is edited on the test PC to ping four Ethernets at the same time, which will greatly improve the test efficiency without adding extra costs.

[0025] The beneficial effect of this embodiment is that by obtaining the first network address of the tested end and determining the address segment to which the first network address belongs; allocating the second network address of the tool end and the third network address of the test end in the address segment, wherein the first network address, the second network address and the third network address are different; setting the tool end and the tested end as slave configuration and master configuration respectively, so that the diagnostic signal of the test end reaches the tested end via the tool end. An efficient and convenient TBOX network test solution is realized, which simplifies the implementation steps of TBOX network test, saves the software, hardware and time costs of the test process, and improves production efficiency.

[0026] Figure 2 This is a second flow chart of the TBOX network testing method of the present invention. Based on the above embodiment, obtaining the first network address of the tested terminal further includes: S11, obtaining the number of Ethernet networks of the tested end; S12. Determine a plurality of the first network addresses corresponding to the number.

[0027] In this embodiment, when the number of Ethernet networks of the tested end is greater than one, multiple first network addresses of the tested end are determined accordingly; further, the multiple first network addresses are written to the test end, and the test end records the multiple first network addresses of the same TBOX under test and associates them with the model information of the TBOX, thereby facilitating batch execution of test tasks for multiple groups of TBOX under test at the test end.

[0028] Furthermore, in this embodiment, determining the address segment to which the first network address belongs further includes: respectively setting an address segment corresponding to each of the first network addresses, wherein the multiple address segments obtained by setting are different from each other.

[0029] In this embodiment, when a tested TBOX has multiple different first network addresses, address segments corresponding to each of the first network addresses are set at the test end, wherein the multiple address segments obtained by setting are different from each other. At the same time, the set multiple address segments are associated with the model information of the tested TBOX and recorded.

[0030] Furthermore, in this embodiment, determining the address segment to which the first network address belongs further includes: performing statistics on the address segment corresponding to each of the first network addresses to determine multiple first network addresses belonging to the same address segment.

[0031] In this embodiment, when a tested TBOX has multiple different first network addresses and at least two addresses belong to the same address segment, all the first network addresses are divided to determine multiple first network addresses belonging to the same address segment; or, two addresses belonging to the same address segment are re-divided into two different address segments to avoid mutual influence during the testing of the corresponding two paths.

[0032] Furthermore, in this embodiment, allocating the second network address of the tool end and the third network address of the test end in the address segment further includes: setting the second network address and the third network address in multiple address segments respectively, wherein the first network address, the second network address and the third network address in each address segment are different.

[0033] In this embodiment, the first network address, the second network address and the third network address are grouped, and the three addresses in each group are different from each other and belong to the same address segment.

[0034] Furthermore, in this embodiment, allocating the second network address of the tool end and the third network address of the test end in the address segment further includes: for multiple first network addresses belonging to the same address segment, correspondingly setting different second network addresses and third network addresses in the same address segment.

[0035] In this embodiment, at the test end, a one-to-one correspondence is established between the first network address, the second network address and the third network address, so that even in the above situation, each path of the tested end can be tested individually.

[0036] Figure 3 This is the third flow chart of the TBOX network testing method of the present invention. Based on the above embodiment, the tool end and the tested end are respectively set to slave configuration and master configuration, further comprising: S31, detecting whether the number of Ethernets is greater than a preset value; S32. If the number of the Ethernets is greater than the preset value, a batch test script is created, and test paths corresponding to the number of entries are created in the batch test script, wherein each test path includes a diagnostic signal transmission path corresponding to the first network address, the second network address and the third network address.

[0037] In this embodiment, for example, if the number of networks at the tested end is three, three manual testing operations are still used. If the number of networks at the tested end is more than three, a batch test script is created through the test end, and test paths corresponding to the number of entries are created in the batch test script, wherein each test path includes a diagnostic signal transmission path corresponding to the first network address, the second network address and the third network address.

[0038] Figure 4 This is a fourth flow chart of the TBOX network testing method of the present invention. Based on the above embodiment, the tool end and the tested end are respectively set to slave configuration and master configuration, further comprising: S33, setting the test priorities of different Ethernet paths in the batch test script; S34, executing the number of tests according to the test priority until all Ethernet path tests of the tested end are completed.

[0039] In this embodiment, the test results of all Ethernet path tests of the tested end are recorded by the test end, and are associated with the model information of the tested TBOX and exported.

[0040] Based on the above embodiments, the present invention also proposes a TBOX network testing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the TBOX network testing method described in any one of the above items are implemented.

[0041] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the device embodiment, which will not be repeated here.

[0042] Based on the above embodiments, the present invention further proposes a computer-readable storage medium, on which a TBOX network test program is stored. When the TBOX network test program is executed by a processor, the steps of the TBOX network test method as described in any one of the above items are implemented.

[0043] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the medium embodiment, which will not be repeated here.

[0044] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0045] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0046] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A TBOX network testing method, applied to a tool end, characterized in that: One end of the tool end is connected to the test end through a data cable, and the other end is connected to the tested end through an Ethernet cable. The method includes: Acquire a first network address of the tested terminal, and determine the address segment to which the first network address belongs; Allocating a second network address of the tool end and a third network address of the test end in the address segment, wherein the first network address, the second network address and the third network address are different from each other; The tool end and the tested end are respectively set to a slave configuration and a master configuration, so that the diagnostic signal of the test end reaches the tested end via the tool end.

2. The TBOX network testing method according to claim 1, characterized in that: The obtaining of the first network address of the tested end further comprises: Obtaining the number of Ethernets of the tested end; A plurality of the first network addresses corresponding to the number is determined.

3. The TBOX network testing method according to claim 2, characterized in that: The determining the address segment to which the first network address belongs further comprises: An address segment corresponding to each of the first network addresses is set respectively, wherein the multiple address segments obtained by setting are different from each other.

4. The TBOX network testing method according to claim 2, characterized in that: The determining the address segment to which the first network address belongs further comprises: Statistics are collected on the address segment corresponding to each of the first network addresses to determine multiple first network addresses belonging to the same address segment.

5. The TBOX network testing method according to claim 3, characterized in that: The allocating the second network address of the tool end and the third network address of the test end in the address segment further comprises: The second network address and the third network address are respectively set in a plurality of the address segments, wherein the first network address, the second network address and the third network address in each of the address segments are different.

6. The TBOX network testing method according to claim 4, characterized in that: The allocating the second network address of the tool end and the third network address of the test end in the address segment further comprises: For a plurality of the first network addresses belonging to the same address segment, the second network addresses and the third network addresses which are different from each other are correspondingly set in the same address segment.

7. The TBOX network testing method according to claim 2, characterized in that: The step of setting the tool end and the tested end to a slave configuration and a master configuration respectively further includes: Detecting whether the number of Ethernets is greater than a preset value; If the number of the Ethernets is greater than the preset value, a batch test script is created, and test paths corresponding to the number of entries are created in the batch test script, wherein each test path includes a diagnostic signal transmission path corresponding to the first network address, the second network address and the third network address.

8. The TBOX network testing method according to claim 7, characterized in that: The step of setting the tool end and the tested end to a slave configuration and a master configuration respectively further includes: Setting the test priorities of different Ethernet paths in the batch test script; The number of tests are executed according to the test priority until all Ethernet path tests of the tested end are completed.

9. A TBOX network testing device, characterized in that: The device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the TBOX network testing method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a TBOX network test program, and when the TBOX network test program is executed by the processor, the steps of the TBOX network test method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Efficient production test method, device and system for TBOX test

    CN120238479A