5G-based vehicle-mounted TBOX protocol test method, equipment and medium

By building a 5G-based in-vehicle TBOX protocol test system and using protocol simulation technology to achieve parallel testing and dynamic protocol adaptation of multiple TBOX devices, the non-standardization problem of TBOX and vehicle-machine interaction protocols was solved, the degree of test automation and efficiency were improved, and development costs were reduced.

CN120692205AActive Publication Date: 2025-09-23YODO SMART
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202511198425.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-26
Publication Date
2025-09-23
Estimated Expiration
2045-08-26

AI Technical Summary

Technical Problem

In existing technologies, the interaction protocol between TBOX and vehicle computers lacks unification and standardization, resulting in the need to adapt a completely new interaction protocol for each new OEM project, which increases development costs and project risks. Furthermore, it is impossible to fully verify the interaction protocol independently, and reliance on actual vehicle testing leads to serious problems with test resource dependence.

Method used

A 5G-based in-vehicle TBOX protocol testing method is adopted. A test system is built through an in-vehicle Ethernet converter, switch, and protocol simulation test platform to achieve parallel testing of multiple TBOX devices, dynamically identify and adapt to different protocols, use protocol simulation instances to simulate the behavior logic of the vehicle-computer interaction protocol, execute common test cases in parallel, and generate test reports.

Benefits of technology

It achieves full protocol coverage testing of TBOX devices, eliminates physical dependence on the vehicle system, improves the degree of test automation and efficiency, facilitates access to TBOX devices from different manufacturers and protocol types, and reduces development costs and risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120692205A_ABST
    Figure CN120692205A_ABST
Patent Text Reader

Abstract

The invention provides a 5G-based vehicle-mounted TBOX protocol test method, equipment and medium, and relates to the field of vehicle-mounted TBOX tests.The method comprises the steps that to-be-tested TBOX equipment is connected with a switch through a vehicle-mounted Ethernet converter, and the switch is connected with a protocol simulation test platform; configuring the to-be-tested TBOX equipment and the protocol simulation test platform into the same network segment; the protocol simulation test platform identifies a vehicle-machine interaction protocol operated by the to-be-tested TBOX device to generate a protocol simulation instance; the protocol simulation test platform sends a preset test case corresponding to the protocol simulation instance to the protocol simulation instance; and the protocol simulation instance performs a protocol interaction test on the to-be-tested TBOX device according to the test case to obtain a test result corresponding to the to-be-tested TBOX device, so that the effects of one-time writing and full-protocol coverage are realized, and the automation degree and the test efficiency of the vehicle-mounted TBOX test are 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-mounted TBOX testing, and in particular to a 5G-based vehicle-mounted TBOX protocol testing method, equipment, and medium. Background Art

[0002] As new energy vehicles accelerate their intelligent advancement, the collaborative work of TBOX (Telematics Box) and in-vehicle systems (such as in-vehicle infotainment systems), as the core carriers of intelligent connectivity, is becoming increasingly crucial. Under the current technical architecture, both the TBOX and the in-vehicle system are connected to a gateway device via in-vehicle Ethernet, with communications between the TBOX and the in-vehicle system forwarded by the gateway. The TBOX not only provides 4G / 5G network functionality for the in-vehicle system but also facilitates multiple critical service interactions, including vehicle positioning, remote diagnostics, and FOTA firmware upgrades.

[0003] However, the interaction protocols between TBOX and vehicle computers are not standardized within the industry, and different OEMs customize their own proprietary communication protocols. This situation presents significant engineering challenges for TBOX suppliers. Each new OEM project requires tailored adaptation of a new interaction protocol and collaborative development with different vehicle computer suppliers. More critically, during the project development cycle, TBOX is often unable to fully verify the interaction protocols independently, requiring coordinated debugging with the vehicle computer during the vehicle testing phase. This post-verification approach significantly increases project risk and development costs.

[0004] The current testing method for the on-board TBOX vehicle-machine protocol must rely on the physical connection of the actual vehicle-machine system for joint testing. The defects of the existing technology are that not only the development and testing progress of TBOX is completely subject to the development progress and quality status of the vehicle-machine system, but also lead to serious test resource dependence problems on the critical path of the project. Summary of the Invention

[0005] In view of the above technical problems, the technical solution adopted by the present invention is: According to one aspect of the present application, a 5G-based vehicle-mounted TBOX protocol testing method is provided, which is applied to a vehicle-mounted TBOX testing system. The vehicle-mounted TBOX testing system includes an on-board Ethernet converter, a switch, and a protocol simulation test platform. The on-board Ethernet converter is used to convert the dedicated on-board Ethernet interface into a standard Ethernet interface. The switch supports access to multiple TBOX devices. The protocol simulation test platform is used to test the TBOX devices. Among them, the 5G-based vehicle-mounted TBOX protocol test methods include: Connect the TBOX device to be tested to the switch via the vehicle-mounted Ethernet converter, and then connect the switch to the protocol simulation test platform. Configure the TBOX device to be tested and the protocol simulation test platform to be in the same network segment; The protocol simulation test platform identifies the vehicle-machine interaction protocol running on the TBOX device to be tested, and generates a protocol simulation instance corresponding to the vehicle-machine interaction protocol running on the TBOX device to be tested. The protocol simulation instance is used to simulate the vehicle-machine end behavior logic of the corresponding vehicle-machine interaction protocol. The protocol simulation test platform sends the preset test case corresponding to the protocol simulation instance to the protocol simulation instance; The protocol simulation instance performs protocol interaction testing on the TBOX device to be tested according to the test case to obtain the test results corresponding to the TBOX device to be tested.

[0006] In an exemplary embodiment of the present application, the TBOX device to be tested is configured to perform the following steps: In response to being configured as the same network segment as the protocol simulation test platform, an active discovery mechanism based on IP multicast is used to periodically broadcast key identity information of the TBOX device to be tested to a predefined multicast address and port.

[0007] In an exemplary embodiment of the present application, the key identity information of the TBOX device to be tested includes the vehicle identification code of the TBOX device to be tested, the protocol type of the vehicle-machine interaction protocol currently running on the TBOX device to be tested, and the protocol service listening port of the TBOX device to be tested.

[0008] In an exemplary embodiment of the present application, the protocol simulation test platform identifies the vehicle-machine interaction protocol run by the TBOX device to be tested to generate a protocol simulation instance corresponding to the vehicle-machine interaction protocol run by the TBOX device to be tested, including: When the protocol simulation test platform obtains the broadcast message of the TBOX device to be tested, a mapping relationship is established between the Internet Protocol address of the TBOX device to be tested, the protocol type of the vehicle-machine interaction protocol currently running on the TBOX device to be tested, and the protocol service listening port of the TBOX device to be tested; The protocol simulation test platform dynamically loads the protocol stack library corresponding to the identified vehicle-machine interaction protocol run by the TBOX device to be tested; The protocol simulation test platform creates an independent and isolated protocol simulation instance corresponding to the vehicle-machine interaction protocol run by the TBOX device to be tested for the multicast group where the TBOX device to be tested is located.

[0009] In an exemplary embodiment of the present application, the protocol simulation test platform sends a preset test case corresponding to the protocol simulation instance to the protocol simulation instance, including: The protocol simulation test platform determines the test case corresponding to the protocol simulation instance from several preset general test cases according to the type of the protocol simulation instance corresponding to the TBOX device to be tested; Send the test case corresponding to the protocol simulation instance to the protocol simulation instance.

[0010] In an exemplary embodiment of the present application, the protocol simulation instance performs a protocol interaction test on the TBOX device to be tested according to the test case to obtain a test result corresponding to the TBOX device to be tested, including: Trigger the test case execution engine and drive the protocol simulation instance to execute the test steps included in the test case to perform protocol interaction test on the TBOX device to be tested; The protocol simulation instance sends the test logs generated during the protocol interaction test of the TBOX device to be tested to the protocol simulation test platform; The protocol simulation test platform integrates several test information in the test log to obtain the test results corresponding to the TBOX device to be tested.

[0011] In an exemplary embodiment of the present application, the test information in the test log includes test instruction information, test response information, test timestamp information, and test status.

[0012] In an exemplary embodiment of the present application, the vehicle-mounted TBOX test system further includes: Power supply, connected to the protocol simulation test platform to simulate the vehicle power supply environment; The signal test bench is connected to the protocol simulation test platform to simulate the vehicle wiring harness interface; The network positioning combination antenna is connected to the protocol simulation test platform to provide network connection channels and satellite positioning signals.

[0013] According to another aspect of the present application, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored. The at least one instruction or the at least one program is loaded and executed by a processor to implement the aforementioned 5G-based on-vehicle TBOX protocol testing method.

[0014] According to yet another aspect of the present application, an electronic device is provided, comprising a processor and the aforementioned non-transitory computer-readable storage medium.

[0015] The present invention has at least the following beneficial effects: The 5G-based on-vehicle TBOX protocol testing method of the present invention is executed by an on-vehicle TBOX testing system, which is composed of an on-vehicle Ethernet converter, a switch, and a protocol simulation test platform. When testing the TBOX device to be tested, the TBOX device to be tested is connected to the switch through the on-vehicle Ethernet converter, and the switch is connected to the protocol simulation test platform. The TBOX device to be tested and the protocol simulation test platform are configured as the same network segment to ensure the interoperability of the second-layer network. The protocol simulation test platform identifies the vehicle-machine interaction protocol run by the TBOX device to be tested to generate a protocol simulation corresponding to the vehicle-machine interaction protocol run by the TBOX device to be tested, which is used to simulate the vehicle-machine behavior logic of the corresponding vehicle-machine interaction protocol. Instance, the protocol simulation test platform then sends the test case corresponding to the protocol simulation instance to the protocol simulation instance. The protocol simulation instance performs protocol interaction test on the TBOX device to be tested according to the test case to obtain the test result corresponding to the TBOX device to be tested. By building an on-board TBOX test system to eliminate the physical dependency of the on-board TBOX on the vehicle system, it is possible to simultaneously access multiple on-board TBOXs of different manufacturers and different protocol types for testing, dynamically identify and adapt to multiple protocols, execute common test cases in parallel and generate test reports based on the test results, achieving the effect of one-time writing and full protocol coverage, thereby improving the automation level and test efficiency of the on-board TBOX test and facilitating the expansion and access of new TBOX vehicle-machine interaction protocols. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0017] Figure 1 Flowchart of a 5G-based vehicle-mounted TBOX protocol testing method provided in an embodiment of the present invention; Figure 2 A system configuration diagram for testing multiple TBOX devices provided in an embodiment of the present invention; Figure 3 A schematic diagram of the matching between the protocol adapter and the test case provided by the embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.

[0019] This application proposes a 5G-based on-vehicle TBOX protocol testing method, which is applied to an on-vehicle TBOX testing system. The on-vehicle TBOX testing system includes an on-vehicle Ethernet converter, a switch, a protocol simulation test platform, a power supply, a signal stand, and a network positioning combination antenna.

[0020] When testing the on-board TBOX, connect the on-board TBOX to the on-board Ethernet converter, connect the on-board Ethernet converter to the switch, connect the switch to the protocol simulation test platform, connect the power supply to the protocol simulation test platform, connect the signal stand to the protocol simulation test platform, and connect the network positioning combination antenna to the protocol simulation test platform.

[0021] The in-vehicle Ethernet converter is used to convert the dedicated in-vehicle Ethernet interface into a standard Ethernet interface (such as a standard RJ45 Ethernet interface). The switch supports the access of multiple TBOX devices, which means that multiple TBOX devices can be tested in parallel at the same time. The power supply is used to simulate the power supply environment of the entire vehicle. The signal test bench is used to simulate the wiring harness interface of the entire vehicle. The network positioning combination antenna is used to provide a stable and reliable network connection channel and satellite positioning signal to ensure the effectiveness of communication and positioning function testing.

[0022] The protocol simulation test platform is used to test TBOX equipment. It has built-in private vehicle-machine interaction protocols of multiple manufacturers. It can automatically identify the protocol type of TBOX, create corresponding protocol simulation instances in real time, execute automated test case scripts in parallel, automatically summarize the results of each test instance, and generate detailed and traceable test reports. By building an automated test host computer platform (protocol simulation test platform) independent of the actual vehicle-machine system, the interactive behavior of the vehicle-machine system can be fully reproduced through protocol simulation technology to achieve full-cycle independent verification of the TBOX vehicle-machine interaction protocol.

[0023] Among them, such as Figure 1 As shown, the 5G-based vehicle-mounted TBOX protocol testing method of this application includes: Step S100: Connect the TBOX device to be tested to the switch via the vehicle-mounted Ethernet converter, and connect the switch to the protocol simulation test platform; The TBOX device to be tested is the test object.

[0024] like Figure 2As shown in the figure, if there are multiple TBOX devices to be tested, and the manufacturers and protocol types of the multiple TBOX devices to be tested are different, this system can test multiple TBOX devices to be tested at the same time, and connect each TBOX device to be tested to the switch through an in-vehicle Ethernet converter, so that each TBOX device to be tested can be tested in parallel through the protocol simulation test platform.

[0025] Step S200: Configuring the TBOX device to be tested and the protocol simulation test platform to be in the same network segment; Furthermore, in response to being configured as the same network segment as the protocol simulation test platform, the TBOX device to be tested adopts an active discovery mechanism based on IP multicast (implemented through the IGMP protocol (Internet Group Management Protocol), whose core function is to dynamically manage the joining and leaving of group members) to periodically broadcast the key identity information of the TBOX device to be tested to the predefined multicast address and port.

[0026] The key identity information of the TBOX device to be tested includes the vehicle identification number (VIN) of the TBOX device to be tested, the protocol type of the vehicle-machine interaction protocol currently running on the TBOX device to be tested, and the protocol service listening port of the TBOX device to be tested.

[0027] Step S300: The protocol simulation test platform identifies the vehicle-machine interaction protocol run by the TBOX device to be tested, so as to generate a protocol simulation instance corresponding to the vehicle-machine interaction protocol run by the TBOX device to be tested; The protocol simulation instance is used to simulate the vehicle-side behavior logic of the corresponding vehicle-machine interaction protocol.

[0028] Furthermore, in step S300, the protocol simulation test platform identifies the vehicle-machine interaction protocol run by the TBOX device to be tested, so as to generate a protocol simulation instance corresponding to the vehicle-machine interaction protocol run by the TBOX device to be tested, including steps S310 to S330: Step S310: When the protocol simulation test platform obtains the broadcast message of the TBOX device to be tested, a mapping relationship is established between the Internet Protocol address (IP address) of the TBOX device to be tested, the protocol type of the vehicle-machine interaction protocol currently running on the TBOX device to be tested, and the protocol service listening port of the TBOX device to be tested; After the protocol simulation test platform is configured with the same network segment (same IP subnet address) as the TBOX device to be tested, it acts as a listener and joins the same multicast group as the TBOX device to be tested. Once the protocol simulation test platform receives the broadcast message from the TBOX device to be tested, it can parse and establish a mapping relationship between the IP address and protocol type of the TBOX device to be tested, as well as the protocol service listening port, in real time. This method realizes the discovery of the TBOX device to be tested and the automatic identification of the protocol, eliminating the need for manual configuration of each connected TBOX device to be tested, greatly simplifying the test preparation process.

[0029] Step S320: The protocol simulation test platform dynamically loads the protocol stack library corresponding to the identified vehicle-machine interaction protocol running on the TBOX device to be tested according to the protocol type. Step S330: The protocol simulation test platform creates an independent and isolated protocol simulation instance corresponding to the vehicle-machine interaction protocol run by the TBOX device to be tested for the multicast group where the TBOX device to be tested is located.

[0030] Step S400: The protocol simulation test platform sends the preset test case corresponding to the protocol simulation instance to the protocol simulation instance; Furthermore, in step S400, the protocol simulation test platform sends the preset test case corresponding to the protocol simulation instance to the protocol simulation instance, including steps S410 to S420: Step S410: The protocol simulation test platform determines a test case corresponding to the protocol simulation instance from a plurality of preset general test cases according to the type of the protocol simulation instance corresponding to the TBOX device to be tested; Step S420: Send the test case corresponding to the protocol simulation instance to the protocol simulation instance.

[0031] Select or import a preset universal test case set on the protocol simulation test platform. This universal test case set includes several common test cases, such as vehicle status query, location services, remote diagnosis, and FOTA firmware upgrade. The protocol simulation test platform intelligently distributes the corresponding test cases to the corresponding instances based on the type of each protocol simulation instance. A universal test case set can be distributed to all compatible protocol instances simultaneously to ensure parallel testing of multiple TBOX devices under test.

[0032] Step S500: The protocol simulation instance performs a protocol interaction test on the TBOX device to be tested according to the test case to obtain a test result corresponding to the TBOX device to be tested; Furthermore, in step S500, the protocol simulation instance performs a protocol interaction test on the TBOX device to be tested according to the test case to obtain a test result corresponding to the TBOX device to be tested, including steps S510 to S530: Step S510: triggering the execution engine of the test case to drive the protocol simulation instance to execute the test steps included in the test case to perform a protocol interaction test on the TBOX device to be tested; Each protocol simulation instance independently performs protocol interaction with the corresponding TBOX device to be tested, sends instructions, receives responses and verifies results.

[0033] Step S520: The protocol simulation instance sends the test log generated during the protocol interaction test of the TBOX device to be tested to the protocol simulation test platform; Step S530: The protocol simulation test platform integrates the test information in the test log to obtain the test result corresponding to the TBOX device to be tested.

[0034] Among them, the test information in the test log includes test instruction information, test response information, test timestamp information, and test status. Each protocol simulation instance records detailed logs in real time during execution. After the test execution of all TBOX devices to be tested is completed, the protocol simulation test platform will automatically aggregate the test results of each protocol simulation instance, classify them by device / IP / protocol type, and generate a structured test report, which clearly displays the test details, pass rate, problem points and log snapshots of each TBOX device, thereby improving the automation level and test efficiency of TBOX device testing.

[0035] Furthermore, the TBOX vehicle-machine interaction protocols defined by different OEMs, and even by different vehicle models within the same OEM, vary significantly in message structure, instruction sets, and communication mechanisms (request / response, publish / subscribe). Therefore, to achieve universal test case compatibility, a protocol adapter must be developed for each supported proprietary protocol. This protocol adapter has two core interfaces: an upper-level interface that exposes a set of standardized, protocol-independent functional interfaces that abstract the core business functions of the TBOX device; and a lower-level interface that interfaces with specific proprietary protocols and handles protocol-specific functions such as encoding and decoding, serialization / deserialization, and communication session management. Test case scripts are written only for standardized functional interfaces. Therefore, regardless of the underlying protocol, as long as the adapter correctly implements these standard interfaces, the same test case script can be run on that protocol, improving test reusability.

[0036] In addition, if Figure 3As shown, for the very few proprietary protocols with distinct functional logic or that cannot be fully mapped to standard interfaces, a dedicated protocol adapter can be written. This adapter distinguishes differences within the protocol adapter using OEM or vehicle model fields, and handles these unique logic within the test case. The test case itself can still maintain a large degree of commonality, with only differentiated calls for specific parts. Through standardized interface design, dynamic multi-protocol adaptation, and parallel testing mechanisms, functional verification of TBOX devices from different manufacturers and protocol types can be efficiently supported, significantly improving the automation and execution efficiency of in-vehicle terminal testing.

[0037] The 5G-based on-vehicle TBOX protocol testing method of the present invention is executed by an on-vehicle TBOX testing system, which is composed of an on-vehicle Ethernet converter, a switch, and a protocol simulation test platform. When testing the TBOX device to be tested, the TBOX device to be tested is connected to the switch through the on-vehicle Ethernet converter, and the switch is connected to the protocol simulation test platform. The TBOX device to be tested and the protocol simulation test platform are configured as the same network segment to ensure the interoperability of the second-layer network. The protocol simulation test platform identifies the vehicle-machine interaction protocol run by the TBOX device to be tested to generate a protocol simulation corresponding to the vehicle-machine interaction protocol run by the TBOX device to be tested, which is used to simulate the vehicle-machine behavior logic of the corresponding vehicle-machine interaction protocol. Instance, the protocol simulation test platform then sends the test case corresponding to the protocol simulation instance to the protocol simulation instance. The protocol simulation instance performs protocol interaction test on the TBOX device to be tested according to the test case to obtain the test result corresponding to the TBOX device to be tested. By building an on-board TBOX test system to eliminate the physical dependency of the on-board TBOX on the vehicle system, it is possible to simultaneously access multiple on-board TBOXs of different manufacturers and different protocol types for testing, dynamically identify and adapt to multiple protocols, execute common test cases in parallel and generate test reports based on the test results, achieving the effect of one-time writing and full protocol coverage, thereby improving the automation level and test efficiency of the on-board TBOX test and facilitating the expansion and access of new TBOX vehicle-machine interaction protocols.

[0038] An embodiment of the present invention further provides a computer program product comprising program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.

[0039] Furthermore, although the steps of the method of the present disclosure are described in a particular order in the accompanying drawings, this does not require or imply that the steps must be performed in this particular order, or that all steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0040] Through the description of the above embodiments, it will be readily understood by those skilled in the art that the example embodiments described herein can be implemented via software or via a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, or mobile hard drive) or on a network and includes several instructions for enabling a computing device (such as a personal computer, server, mobile terminal, or network device) to execute the methods according to the embodiments of the present disclosure.

[0041] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0042] Those skilled in the art will appreciate that various aspects of the present invention may be implemented as systems, methods, or program products. Therefore, various aspects of the present invention may be implemented in the following forms: entirely in hardware, entirely in software (including firmware, microcode, etc.), or in a combination of hardware and software, collectively referred to herein as "circuits," "modules," or "systems."

[0043] The electronic device according to this embodiment of the present invention is merely an example and should not limit the functions and scope of use of the embodiments of the present invention.

[0044] The electronic device is implemented as a general-purpose computing device. Components of the electronic device may include, but are not limited to, the at least one processor, the at least one memory, and a bus connecting different system components (including the memory and the processor).

[0045] The storage stores program codes, which can be executed by the processor, so that the processor performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.

[0046] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).

[0047] The storage may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0048] The bus may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.

[0049] An electronic device may also communicate with one or more external devices (e.g., a keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., a router, modem, etc.). This communication may occur via an input / output (I / O) interface. Furthermore, the electronic device may communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter.

[0050] In exemplary embodiments of the present disclosure, a computer-readable storage medium is also provided, on which is stored a program product capable of implementing the aforementioned methods of this specification. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product comprising program code. When the program product is executed on a terminal device, the program code is configured to cause the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the "Exemplary Methods" section of this specification.

[0051] The program product may utilize any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0052] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0053] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0054] Program code for performing the operations of the present invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0055] Furthermore, the above-described figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention and are not intended to be limiting. It is readily understood that the processes illustrated in the above-described figures do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0056] It should be noted that although several modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0057] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A 5G-based vehicle-mounted TBOX protocol testing method, characterized in that: Applied to the vehicle-mounted TBOX test system, the vehicle-mounted TBOX test system includes an on-vehicle Ethernet converter, a switch, and a protocol simulation test platform; the on-vehicle Ethernet converter is used to convert the dedicated on-vehicle Ethernet interface into a standard Ethernet interface; the switch supports access to multiple TBOX devices; and the protocol simulation test platform is used to test the TBOX devices. The 5G-based vehicle-mounted TBOX protocol testing method includes: Connecting the TBOX device to be tested to the switch via the vehicle-mounted Ethernet converter, and connecting the switch to the protocol simulation test platform; Configuring the TBOX device to be tested and the protocol simulation test platform to be in the same network segment; The protocol simulation test platform identifies the vehicle-machine interaction protocol run by the TBOX device to be tested to generate a protocol simulation instance corresponding to the vehicle-machine interaction protocol run by the TBOX device to be tested; the protocol simulation instance is used to simulate the vehicle-machine end behavior logic of the corresponding vehicle-machine interaction protocol; The protocol simulation test platform sends the preset test case corresponding to the protocol simulation instance to the protocol simulation instance; The protocol simulation instance performs a protocol interaction test on the TBOX device to be tested according to the test case to obtain a test result corresponding to the TBOX device to be tested.

2. The method according to claim 1, characterized in that The TBOX device to be tested is used to perform the following steps: In response to being configured as the same network segment as the protocol simulation test platform, an active discovery mechanism based on IP multicast is adopted to periodically broadcast the key identity information of the TBOX device to be tested to a predefined multicast address and port.

3. The method according to claim 2, characterized in that The key identity information of the TBOX device to be tested includes the vehicle identification code of the TBOX device to be tested, the protocol type of the vehicle-machine interaction protocol currently running on the TBOX device to be tested, and the protocol service listening port of the TBOX device to be tested.

4. The method according to claim 3, characterized in that The protocol simulation test platform identifies the vehicle-machine interaction protocol run by the TBOX device to be tested to generate a protocol simulation instance corresponding to the vehicle-machine interaction protocol run by the TBOX device to be tested, including: When the protocol simulation test platform obtains the broadcast message of the TBOX device to be tested, a mapping relationship is established among the Internet Protocol address of the TBOX device to be tested, the protocol type of the vehicle-machine interaction protocol currently running on the TBOX device to be tested, and the protocol service listening port of the TBOX device to be tested; The protocol simulation test platform dynamically loads a protocol stack library corresponding to the identified vehicle-machine interaction protocol running on the TBOX device to be tested; The protocol simulation test platform creates an independent and isolated protocol simulation instance corresponding to the vehicle-machine interaction protocol run by the TBOX device to be tested for the multicast group where the TBOX device to be tested is located.

5. The method according to claim 4, characterized in that The protocol simulation test platform sends a preset test case corresponding to the protocol simulation instance to the protocol simulation instance, including: The protocol simulation test platform determines the test case corresponding to the protocol simulation instance from a plurality of preset general test cases according to the type of the protocol simulation instance corresponding to the TBOX device to be tested; Sending the test case corresponding to the protocol simulation instance to the protocol simulation instance.

6. The method according to claim 5, characterized in that The protocol simulation instance performs a protocol interaction test on the TBOX device to be tested according to the test case to obtain a test result corresponding to the TBOX device to be tested, including: triggering the execution engine of the test case to drive the protocol simulation instance to execute the test steps included in the test case to perform a protocol interaction test on the TBOX device to be tested; The protocol simulation instance sends the test log generated during the protocol interaction test of the TBOX device to be tested to the protocol simulation test platform; The protocol simulation test platform integrates several test information in the test log to obtain the test result corresponding to the TBOX device to be tested.

7. The method according to claim 6, characterized in that The test information in the test log includes test instruction information, test response information, test timestamp information, and test status.

8. The method according to claim 7, characterized in that The vehicle-mounted TBOX test system further includes: A power supply connected to the protocol simulation test platform to simulate the power supply environment of the entire vehicle; A signal test bench, connected to the protocol simulation test platform, for simulating the vehicle wiring harness interface; The network positioning combined antenna is connected to the protocol simulation test platform and is used to provide a network connection channel and satellite positioning signals.

9. A non-transitory computer-readable storage medium, characterized in that The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method according to any one of claims 1 to 8.

10. An electronic device, characterized in that: The device comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 9.

Citation Information

Patent Citations

  • TBOX detection device and method

    CN111966084A

  • Performance verification system based on Tbox new energy automobile platform

    CN112600700A

  • Vehicle-mounted Ethernet protocol conformance test method and device, and related equipment

    CN115102888A

  • Vehicle-mounted Ethernet test method, device and equipment and storage medium

    CN117240738A

  • Automatic test platform and method adaptive to multi-protocol vehicle-mounted information interconnection terminal

    CN118659995A