Vehicle-mounted optical communication equipment testing method, device, equipment, storage medium and product

By determining the test items and modes according to the test parameters of the vehicle-mounted optical communication equipment, multi-dimensional automated testing of the vehicle-mounted optical communication equipment is realized, the problem of inaccurate test results in the existing technology is solved, and the accuracy and efficiency of the test are improved. The reliability and security of the vehicle communication system are ensured.

CN118611752APending Publication Date: 2024-09-06DONGFENG MOTOR GRP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410747199.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing technology cannot accurately perform automated testing of vehicle-mounted optical communication equipment, making it difficult to guarantee the accuracy of test results.

Method used

By determining the test items and modes according to the test parameters of the vehicle-mounted optical communication equipment, the communication test mode, power test mode, etc. are used to conduct automated tests, including CAN communication test, Ethernet communication test, optical power test and optical sensitivity test, and a test report is generated.

Benefits of technology

Complete multi-dimensional automated testing of vehicle optical communication equipment without manual intervention, improving the accuracy and efficiency of the test and ensuring the reliability and safety of the vehicle communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611752A
    Figure CN118611752A
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted optical communication equipment testing method and device, equipment, a storage medium and a product, and relates to the technical field of automatic testing, and the method comprises the steps: determining a test item corresponding to the vehicle-mounted optical communication equipment according to the test parameter of the vehicle-mounted optical communication equipment; testing the vehicle-mounted optical communication equipment based on a test mode corresponding to the test item, and generating a test report based on test data; wherein the test mode comprises at least one of a communication test mode and a power test mode, and the test items comprise at least one of a CAN communication test, an Ethernet communication test, an optical power test and an optical sensitivity test. According to the invention, at least one of a CAN communication test, an Ethernet communication test, an optical power test and an optical sensitivity test is carried out on the vehicle-mounted optical communication equipment according to the corresponding test mode, and the multi-dimensional automatic test of the vehicle-mounted optical communication equipment is completed without any manual intervention, so that the test accuracy is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated testing technology, and in particular to a method, device, equipment, storage medium and product for testing vehicle-mounted optical communication equipment. Background Art

[0002] Optical fiber is a fiber made of glass or plastic. Since it transmits optical signals, it uses the principle of total reflection of light to transmit signals, and its transmission process will not be interfered by electromagnetic fields. In addition, the weight of optical fiber per meter is about 10 to 20 grams lighter than twisted pair cable, so optical fiber on vehicles has become an important trend in vehicle communication research. Based on this, the test quality of vehicle optical communication equipment, as the carrier of optical fiber on vehicles, is directly related to the reliability of data transmission of the entire vehicle.

[0003] Traditional vehicle-mounted optical communication equipment testing methods often rely on the experience of technicians. However, the accuracy of the test results obtained through this test method with human subjectivity is difficult to guarantee. Therefore, the industry is in urgent need of a method that can accurately perform automated testing on vehicle-mounted optical communication equipment.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a method, device, equipment, storage medium and product for testing vehicle-mounted optical communication equipment, aiming to solve the technical problem that the prior art cannot accurately perform automated testing of vehicle-mounted optical communication equipment.

[0006] To achieve the above object, the present application provides a method for testing a vehicle-mounted optical communication device, the method comprising the following steps:

[0007] Determining the test items corresponding to the vehicle-mounted optical communication equipment according to the test parameters of the vehicle-mounted optical communication equipment;

[0008] Testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item, and generating a test report based on the test data;

[0009] The test mode includes at least one of a communication test mode and a power test mode, and the test items include at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test.

[0010] In one embodiment, the step of testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item includes:

[0011] When the test item is a CAN communication test, setting the test mode corresponding to the vehicle-mounted optical communication device to a communication test mode;

[0012] generating a first data frame in the communication test mode, and sending the first data frame to the vehicle-mounted optical communication device;

[0013] A second data frame received by the vehicle-mounted optical communication device is acquired from a CAN interface of the vehicle-mounted optical communication device, and the vehicle-mounted optical communication device is tested based on the first data frame and the second data frame.

[0014] In one embodiment, the step of testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item further includes:

[0015] When the test item is an Ethernet communication test, setting the test mode corresponding to the vehicle-mounted optical communication device to a communication test mode;

[0016] In the communication test mode, a service command is generated according to the network bandwidth of the vehicle-mounted optical communication device, and the vehicle-mounted optical communication device is tested based on the service command.

[0017] In one embodiment, the step of testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item further includes:

[0018] When the test item is an optical power test, setting the test mode corresponding to the vehicle-mounted optical communication device to a power test mode;

[0019] generating a standard test light source in the power test mode, and sending the standard test light source to the vehicle-mounted optical communication device;

[0020] An output optical signal of the vehicle-mounted optical communication device is acquired from an optical receiving port of the vehicle-mounted optical communication device, and the vehicle-mounted optical communication device is tested based on the standard test light source and the output optical signal.

[0021] In one embodiment, the step of testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item further includes:

[0022] When the test item is a light sensitivity test, setting the test mode corresponding to the vehicle-mounted optical communication device to a power test mode;

[0023] A sequence pulse signal is generated in the power test mode, and the vehicle-mounted optical communication device is tested based on the sequence pulse signal.

[0024] In one embodiment, the step of testing the vehicle-mounted optical communication device based on the sequence pulse signal includes:

[0025] Sending the sequence pulse signal to the vehicle-mounted optical communication device, and acquiring a receiving signal of the vehicle-mounted optical communication device from an optical receiving port of the vehicle-mounted optical communication device;

[0026] The bit error rate corresponding to the vehicle-mounted optical communication device in the process of signal transmission and reception is determined according to the sequence pulse signal and the received signal, and the vehicle-mounted optical communication device is tested based on the bit error rate.

[0027] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle-mounted optical communication equipment testing device, the vehicle-mounted optical communication equipment testing device comprising:

[0028] A test preparation module, used to determine the test mode and test items corresponding to the vehicle-mounted optical communication device according to the test parameters of the vehicle-mounted optical communication device;

[0029] A test execution module, configured to test the vehicle-mounted optical communication device based on a test mode corresponding to the test item, and generate a test report based on the test data;

[0030] The test mode includes at least one of a communication test mode and a power test mode, and the test items include at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle-mounted optical communication equipment testing device, which includes: a memory, a processor, and a vehicle-mounted optical communication equipment testing program stored on the memory and executable on the processor, and the vehicle-mounted optical communication equipment testing program is configured to implement the steps of the vehicle-mounted optical communication equipment testing method as described above.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and on which is stored a vehicle-mounted optical communication equipment test program. When the vehicle-mounted optical communication equipment test program is executed by a processor, the steps of the vehicle-mounted optical communication equipment test method described above are implemented.

[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer program product, which includes a vehicle-mounted optical communication equipment test program, and when the vehicle-mounted optical communication equipment test program is executed by a processor, the steps of the vehicle-mounted optical communication equipment test method described above are implemented.

[0034] The present application determines the test items corresponding to the vehicle-mounted optical communication equipment according to the test parameters of the vehicle-mounted optical communication equipment; tests the vehicle-mounted optical communication equipment based on the test mode corresponding to the test item, and generates a test report based on the test data; wherein the test mode includes at least one of a communication test mode and a power test mode, and the test items include at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test. Compared with the traditional vehicle-mounted optical communication equipment testing method, since the above method of the present application determines the corresponding test mode (including a communication test mode and a power test mode) according to the test items corresponding to the vehicle-mounted optical communication equipment, and performs at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test on the vehicle-mounted optical communication equipment based on the test mode, the multi-dimensional automated test of the vehicle-mounted optical communication equipment is completed without any manual intervention, thereby ensuring the accuracy of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of the structure of a vehicle-mounted optical communication equipment test device in the hardware operating environment involved in the embodiment of the present application;

[0036] Figure 2 A schematic diagram of the flow chart of the first embodiment of the vehicle-mounted optical communication equipment testing method of the present application;

[0037] Figure 3 A schematic diagram of a test system in a vehicle-mounted optical communication device test method of the present application;

[0038] Figure 4 A schematic diagram of the flow chart of the second embodiment of the vehicle-mounted optical communication equipment testing method of the present application;

[0039] Figure 5 A schematic diagram of a flow chart of a third embodiment of a vehicle-mounted optical communication device testing method of the present application;

[0040] Figure 6 This is a structural block diagram of the first embodiment of the vehicle-mounted optical communication equipment testing device of the present application.

[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

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

[0043] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of the vehicle-mounted optical communication equipment testing equipment in the hardware operating environment involved in the embodiment of the present application.

[0044] like Figure 1 As shown, the vehicle-mounted optical communication equipment test equipment may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0045] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the vehicle-mounted optical communication device test equipment, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0046] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a vehicle-mounted optical communication equipment test program.

[0047] exist Figure 1 In the vehicle-mounted optical communication equipment test equipment shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the vehicle-mounted optical communication equipment test equipment of the present application can be set in the vehicle-mounted optical communication equipment test equipment, and the vehicle-mounted optical communication equipment test equipment calls the vehicle-mounted optical communication equipment test program stored in the memory 1005 through the processor 1001, and executes the vehicle-mounted optical communication equipment test method provided in the embodiment of the present application.

[0048] The present application provides a method for testing a vehicle-mounted optical communication device. Figure 2 , Figure 2 This is a flow chart of the first embodiment of the vehicle-mounted optical communication equipment testing method of the present application.

[0049] In this embodiment, the vehicle-mounted optical communication equipment testing method includes the following steps:

[0050] Step S10: determining the test items corresponding to the vehicle-mounted optical communication equipment according to the test parameters of the vehicle-mounted optical communication equipment.

[0051] It should be noted that the execution subject of the method of this embodiment can be a terminal device with testing functions, data processing and program running functions, such as a smart phone, a computer, etc., or an electronic device with the same or similar functions, such as the above-mentioned vehicle-mounted optical communication equipment test equipment. The following takes the vehicle-mounted optical communication equipment test equipment (hereinafter referred to as the test equipment) as an example to illustrate this embodiment and the following embodiments.

[0052] It is understandable that the above-mentioned vehicle-mounted optical communication equipment can be a vehicle-mounted optical fiber gateway, or a vehicle-mounted optical fiber transceiver, a vehicle-mounted optical fiber switch, a vehicle-mounted optical fiber amplifier, etc., and this embodiment does not limit this.

[0053] It should be understood that the above test parameters may include but are not limited to optical power, bit error rate, bandwidth, signal integrity, insertion loss and return loss of the optical connector, etc.

[0054] Step S20: testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item, and generating a test report based on the test data.

[0055] It should be noted that the test mode includes at least one of a communication test mode and a power test mode, and the test items include at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test.

[0056] It should be understood that the CAN communication test in this embodiment is a test process for the CAN (Controller Area Network) bus system used in the vehicle. The CAN bus system is an important network used to achieve communication between different control units (ECUs) in the vehicle. These control units are responsible for monitoring and controlling various parts of the vehicle, such as the engine, brake system, safety system, comfort system, etc. The main purpose of the vehicle's CAN communication test is to ensure that the CAN bus system can work properly and the data transmission is accurate to meet the requirements of vehicle safety, performance and comfort. The Ethernet communication test in this embodiment is a test process for the Ethernet system used in the vehicle. This test ensures that the application of Ethernet technology in the vehicle can stably and reliably transmit data to meet the communication needs of the vehicle. The optical power test in this embodiment is to measure and evaluate the optical power (brightness) of the lights in the vehicle lighting system to ensure that it meets the expected standards and requirements. Optical power testing is an important part of the performance detection of the vehicle lighting system and is of great significance for ensuring nighttime driving safety and vehicle visibility. The light sensitivity test in this embodiment is to evaluate the sensitivity of the vehicle lighting system or related sensors to light changes. This test is crucial to ensuring the driving safety and comfort of the vehicle under different lighting conditions.

[0057] You can refer to Figure 3 , Figure 3 This is a schematic diagram of the test system in the vehicle-mounted optical communication equipment test method of this application. Figure 3 In the test equipment, the data processing platform can be built into the above test equipment, and the test and result analysis can be performed by sending and receiving data or reading the status of both ends at the same time without any manual intervention in the automatic test link. The entire test process is carried out sequentially in time periods to test various contents to ensure the real-time performance of the system and the accuracy of the test results. At the same time, the detection speed and intelligence of the test equipment are improved, and the system under test and the test system form a loop. Among them, the input interface is used for test parameter input, single test item or multiple test item selection, test item sequence setting, attenuation module setting, etc.; the receiving channel is used to process the identification of test items and test modes.

[0058] In addition, the test system in the test equipment also supports demultiplexing, and therefore supports the analysis and comprehensive testing of multiple protocols. More specifically, for a device under test with only one communication mode (such as a domain controller for the device under test, which only communicates with CAN), the optical signal sent by the optical transmission port of the device under test is of one wavelength (such as λ1), and a mode of the test system can be selected without passing through a peak multiplexing and demultiplexing module. For a device under test that supports multiple communication modes and multiplexes multiple optical signals (such as a domain controller for the device under test, which supports CAN communication and Ethernet communication, and is converted into two wavelength optical signals of λ1 and λ2 through an internal optoelectronic conversion module), the optical signal sent by the optical transmission port of the device under test through the peak multiplexer, the test system separates the corresponding wavelength signals through the peak multiplexing and demultiplexing module to achieve multiple communication mode testing.

[0059] This embodiment determines the test items corresponding to the vehicle-mounted optical communication device according to the test parameters of the vehicle-mounted optical communication device; tests the vehicle-mounted optical communication device based on the test mode corresponding to the test item, and generates a test report based on the test data; wherein the test mode includes at least one of a communication test mode and a power test mode, and the test items include at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test. Compared with the traditional vehicle-mounted optical communication device testing method, since the above method of this embodiment determines the corresponding test mode (including a communication test mode and a power test mode) according to the test items corresponding to the vehicle-mounted optical communication device, and performs at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test on the vehicle-mounted optical communication device based on the test mode, the multi-dimensional automated test of the vehicle-mounted optical communication device is completed without any manual intervention, thereby ensuring the accuracy of the test.

[0060] refer to Figure 4 , Figure 4 This is a flow chart of a second embodiment of a method for testing vehicle-mounted optical communication equipment of the present application.

[0061] In a feasible implementation manner, the step S20 may include:

[0062] Step S200: When the test item is a CAN communication test, the test mode corresponding to the vehicle-mounted optical communication device is set to a communication test mode.

[0063] Step S201: generating a first data frame in the communication test mode, and sending the first data frame to the vehicle-mounted optical communication device.

[0064] Step S202: Acquire a second data frame received by the vehicle-mounted optical communication device from the CAN interface of the vehicle-mounted optical communication device, and test the vehicle-mounted optical communication device based on the first data frame and the second data frame.

[0065] In a specific implementation, the CAN communication test of the vehicle-mounted optical communication equipment can be implemented based on the following steps. Through the input interface, the data frame in the configuration software includes the rate, frame type, sending interval and number of sending times (such as 1 million frames). The data processing module of the test system generates CAN communication test data, in which the data field data is randomly generated by the data processing module. The CAN data is sent to the CAN interface of the system under test through the CAN bus module, and the test system receiving processing module receives the optical signal from the system under test. Through the peak multiplexing and demultiplexing module, the corresponding wavelength optical signal is transmitted to the corresponding optoelectronic conversion module. The optoelectronic conversion module converts it into a corresponding electrical signal and outputs it to the data processing platform. The data processing platform compares the sending signal (i.e., corresponding to the above-mentioned first data frame) and the receiving signal (i.e., corresponding to the above-mentioned second data frame), and outputs the test results. The comparison indicators include: sending and receiving delay, packet loss rate, etc.

[0066] In a feasible implementation manner, the step S20 may further include:

[0067] Step S203: When the test item is an Ethernet communication test, the test mode corresponding to the vehicle-mounted optical communication device is set to a communication test mode.

[0068] Step S204: generating a service command according to the network bandwidth of the vehicle-mounted optical communication device in the communication test mode, and testing the vehicle-mounted optical communication device based on the service command.

[0069] In a specific implementation, the Ethernet communication test of the vehicle-mounted optical communication equipment can be implemented based on the following steps. The test system first determines whether the system under test is connected to the Ethernet at 1000M, 100M or 10M, and uses the ping command (corresponding to the above service command) through the input interface to perform data connection tests on each other. It supports the setting of the number of connection tests, such as 600 times, and performs automatic default allocation of the payload carrying byte length test, or specific allocation (the CAN bus is a short frame data transmission, and no additional configuration of the data field is required. Ethernet is different, and its data field length can reach thousands of bytes, which has a relatively large impact on transmission). The automatic default allocation is (adjustable parameters): 64byte, 512byte, 1518byte, 200 times each. Then the received data is compared with the sent data, and the comparison indicators include: receiving and sending delay, packet loss rate, error rate, etc.

[0070] In this embodiment, when the test item is a CAN communication test, the test mode corresponding to the vehicle-mounted optical communication device is set to a communication test mode; a first data frame is generated in the communication test mode, and the first data frame is sent to the vehicle-mounted optical communication device; a second data frame received by the vehicle-mounted optical communication device is obtained from the CAN interface of the vehicle-mounted optical communication device, and the vehicle-mounted optical communication device is tested based on the first data frame and the second data frame; when the test item is an Ethernet communication test, the test mode corresponding to the vehicle-mounted optical communication device is set to a communication test mode; a service command is generated according to the network bandwidth of the vehicle-mounted optical communication device in the communication test mode, and the vehicle-mounted optical communication device is tested based on the service command. Compared with the traditional vehicle-mounted optical communication device testing method that relies on the experience of technicians, the above method of this embodiment improves the detection speed and intelligence of the test scheme by performing CAN communication tests and Ethernet communication tests on the vehicle-mounted optical communication device, thereby ensuring the reliability and safety of the vehicle communication system.

[0071] refer to Figure 5 , Figure 5 This is a flow chart of a third embodiment of a method for testing vehicle-mounted optical communication equipment of the present application.

[0072] In a feasible implementation manner, the step S20 may further include:

[0073] Step S205: When the test item is an optical power test, the test mode corresponding to the vehicle-mounted optical communication device is set to a power test mode.

[0074] Step S206: generating a standard test light source in the power test mode, and sending the standard test light source to the vehicle-mounted optical communication device.

[0075] It should be understood that the above-mentioned standard test light source can be generated based on the required key parameters of the light source such as color temperature, spectral distribution, brightness, etc. For example, the standard A light source simulates the white light emitted by a tungsten filament lamp with a color temperature of 2856K, and its spectral energy is mainly concentrated in the long-wave region, showing an orange-red white color. In addition, the standard test light source can also be calibrated and tested using equipment such as a photometer and a spectrum analyzer to ensure that the color temperature, brightness, spectral distribution and other parameters output by the light source meet the test requirements.

[0076] Step S207: acquiring an output optical signal of the vehicle-mounted optical communication device from an optical receiving port of the vehicle-mounted optical communication device, and testing the vehicle-mounted optical communication device based on the standard test light source and the output optical signal.

[0077] In a specific implementation, the optical power test of the vehicle-mounted optical communication equipment can be realized based on the following steps. The pulse generation module in the test system generates a sequence of pulses and sends them to the receiving interface of the system under test through channel 1 (the variable attenuation module is disabled in the test system). The standard pulse transmission signal reaches the system under test directly. The system under test will send the signal to the optical fiber cable after passing through its own optical signal processing module, and finally transmit it to the optical receiving port of the test system. The optical receiving port is pre-set to the power test mode, and the receiving signal passes through the optical power module, which sends the test value to the data combing module and then to the display module.

[0078] In a feasible implementation manner, the step S20 may further include:

[0079] Step S208: When the test item is a light sensitivity test, the test mode corresponding to the vehicle-mounted optical communication device is set to a power test mode.

[0080] Step S209: generating a sequence pulse signal in the power test mode, and testing the vehicle-mounted optical communication device based on the sequence pulse signal.

[0081] In a specific implementation, digital circuit elements (such as counters, frequency dividers, logic gate circuits, etc.) can be used to generate the above-mentioned sequence pulse signal. For example, a counter can be used to generate a sequence pulse signal of a specific frequency, the pulse frequency can be adjusted by a frequency divider, and the pulse signal can be shaped or combined by a logic gate circuit. Among them, the characteristics of the sequence pulse signal may include pulse width, pulse interval (or frequency), pulse amplitude, etc., which are not limited in this embodiment.

[0082] In a feasible implementation manner, the step S209 may include:

[0083] Step S2091: sending the sequence pulse signal to the vehicle-mounted optical communication device, and acquiring a receiving signal of the vehicle-mounted optical communication device from an optical receiving port of the vehicle-mounted optical communication device.

[0084] Step S2092: determining a bit error rate corresponding to the vehicle-mounted optical communication device during signal transmission and reception according to the sequence pulse signal and the received signal, and testing the vehicle-mounted optical communication device based on the bit error rate.

[0085] In a specific implementation, the optical sensitivity test of the vehicle-mounted optical communication equipment can be implemented based on the following steps. Set the specified bit error rate from the input module to the data processing module, and also use the pulse generation module to generate a sequence pulse signal and send it to the device under test, and receive the signal from the device under test through the receiving module. At this time, the pulse generation module generates a sequence pulse signal and sends it to the system under test through the variable attenuation module via channel 2. The data processing platform receives the signal from the system under test and calculates the bit error rate. It adjusts the optical variable attenuation module to reduce the input optical power of the system under test until a critical point of an error code element appears and is maintained for a sufficiently long time. The measured bit error rate is consistent with the preset bit error rate, and then the optical power at this time, that is, the sensitivity, is tested through the optical power module.

[0086] In this embodiment, when the test item is an optical power test, the test mode corresponding to the vehicle-mounted optical communication device is set to a power test mode; a standard test light source is generated in the power test mode, and the standard test light source is sent to the vehicle-mounted optical communication device; the output optical signal of the vehicle-mounted optical communication device is obtained from the optical receiving port of the vehicle-mounted optical communication device, and the vehicle-mounted optical communication device is tested based on the standard test light source and the output optical signal; when the test item is a light sensitivity test, the test mode corresponding to the vehicle-mounted optical communication device is set to a power test mode; a sequence pulse signal is generated in the power test mode, and the sequence pulse signal is sent to the vehicle-mounted optical communication device, and the received signal of the vehicle-mounted optical communication device is obtained from the optical receiving port of the vehicle-mounted optical communication device; the bit error rate corresponding to the vehicle-mounted optical communication device in the signal receiving and sending process is determined according to the sequence pulse signal and the received signal, and the vehicle-mounted optical communication device is tested based on the bit error rate. Compared with the traditional vehicle-mounted optical communication equipment testing method, the above method of this embodiment can optimize the configuration of the vehicle-mounted optical communication system and the sensitivity parameters of the equipment by performing optical power testing and optical sensitivity testing on the vehicle-mounted optical communication equipment, such as adjusting the power of the light source, selecting a suitable optical cable, etc., so as to improve the overall performance and stability of the vehicle-mounted optical communication equipment.

[0087] In addition, an embodiment of the present application further proposes a storage medium, on which a vehicle optical communication equipment test program is stored. When the vehicle optical communication equipment test program is executed by a processor, the steps of the vehicle optical communication equipment test method described above are implemented.

[0088] Reference Figure 6 , Figure 6 This is a structural block diagram of the first embodiment of the vehicle-mounted optical communication equipment testing device of the present application.

[0089] like Figure 6 As shown, the vehicle-mounted optical communication equipment testing device proposed in the embodiment of the present application includes:

[0090] A test preparation module 601 is used to determine a test mode and a test item corresponding to the vehicle-mounted optical communication device according to a test parameter of the vehicle-mounted optical communication device;

[0091] A test execution module 602, configured to test the vehicle-mounted optical communication device based on the test mode corresponding to the test item, and generate a test report based on the test data;

[0092] The test mode includes at least one of a communication test mode and a power test mode, and the test items include at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test.

[0093] This embodiment determines the test items corresponding to the vehicle-mounted optical communication device according to the test parameters of the vehicle-mounted optical communication device; tests the vehicle-mounted optical communication device based on the test mode corresponding to the test item, and generates a test report based on the test data; wherein the test mode includes at least one of a communication test mode and a power test mode, and the test items include at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test. Compared with the traditional vehicle-mounted optical communication device testing method, since the above method of this embodiment determines the corresponding test mode (including a communication test mode and a power test mode) according to the test items corresponding to the vehicle-mounted optical communication device, and performs at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test on the vehicle-mounted optical communication device based on the test mode, the multi-dimensional automated test of the vehicle-mounted optical communication device is completed without any manual intervention, thereby ensuring the accuracy of the test.

[0094] Based on the first embodiment of the vehicle-mounted optical communication equipment testing device of the present application, a second embodiment of the vehicle-mounted optical communication equipment testing device of the present application is proposed.

[0095] In this embodiment, the test execution module 602 is also used to, when the test item is a CAN communication test, set the test mode corresponding to the vehicle-mounted optical communication device to a communication test mode; generate a first data frame in the communication test mode, and send the first data frame to the vehicle-mounted optical communication device; obtain the second data frame received by the vehicle-mounted optical communication device from the CAN interface of the vehicle-mounted optical communication device, and test the vehicle-mounted optical communication device based on the first data frame and the second data frame.

[0096] Furthermore, the test execution module 602 is also used to set the test mode corresponding to the vehicle-mounted optical communication device to a communication test mode when the test item is an Ethernet communication test; generate a service command according to the network bandwidth of the vehicle-mounted optical communication device in the communication test mode, and test the vehicle-mounted optical communication device based on the service command.

[0097] Furthermore, the test execution module 602 is also used to, when the test item is an optical power test, set the test mode corresponding to the vehicle-mounted optical communication device to a power test mode; generate a standard test light source in the power test mode, and send the standard test light source to the vehicle-mounted optical communication device; obtain the output optical signal of the vehicle-mounted optical communication device from the optical receiving port of the vehicle-mounted optical communication device, and test the vehicle-mounted optical communication device based on the standard test light source and the output optical signal.

[0098] Furthermore, the test execution module 602 is also used to set the test mode corresponding to the vehicle-mounted optical communication equipment to a power test mode when the test item is a light sensitivity test; generate a sequence pulse signal in the power test mode, and test the vehicle-mounted optical communication equipment based on the sequence pulse signal.

[0099] Furthermore, the test execution module 602 is also used to send the serial pulse signal to the vehicle-mounted optical communication device, and obtain the receiving signal of the vehicle-mounted optical communication device from the optical receiving port of the vehicle-mounted optical communication device; determine the bit error rate corresponding to the vehicle-mounted optical communication device in the signal receiving and sending process according to the serial pulse signal and the receiving signal, and test the vehicle-mounted optical communication device based on the bit error rate.

[0100] Other embodiments or specific implementation methods of the vehicle-mounted optical communication equipment testing device of the present application can refer to the above-mentioned method embodiments, which will not be repeated here.

[0101] 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 system 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 system. 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 system including the element.

[0102] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0103] 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 by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, 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 a read-only memory / random access memory, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0104] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A vehicle-mounted optical communication equipment testing method, characterized in that: The method comprises the following steps: Determining the test items corresponding to the vehicle-mounted optical communication equipment according to the test parameters of the vehicle-mounted optical communication equipment; Testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item, and generating a test report based on the test data; The test mode includes at least one of a communication test mode and a power test mode, and the test items include at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test.

2. The vehicle-mounted optical communication equipment testing method according to claim 1, characterized in that: The step of testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item includes: When the test item is a CAN communication test, setting the test mode corresponding to the vehicle-mounted optical communication device to a communication test mode; generating a first data frame in the communication test mode, and sending the first data frame to the vehicle-mounted optical communication device; A second data frame received by the vehicle-mounted optical communication device is acquired from a CAN interface of the vehicle-mounted optical communication device, and the vehicle-mounted optical communication device is tested based on the first data frame and the second data frame.

3. The vehicle-mounted optical communication equipment testing method according to claim 1, characterized in that: The step of testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item also includes: When the test item is an Ethernet communication test, setting the test mode corresponding to the vehicle-mounted optical communication device to a communication test mode; In the communication test mode, a service command is generated according to the network bandwidth of the vehicle-mounted optical communication device, and the vehicle-mounted optical communication device is tested based on the service command.

4. The vehicle-mounted optical communication equipment testing method according to claim 1, characterized in that: The step of testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item also includes: When the test item is an optical power test, setting the test mode corresponding to the vehicle-mounted optical communication device to a power test mode; generating a standard test light source in the power test mode, and sending the standard test light source to the vehicle-mounted optical communication device; An output optical signal of the vehicle-mounted optical communication device is acquired from an optical receiving port of the vehicle-mounted optical communication device, and the vehicle-mounted optical communication device is tested based on the standard test light source and the output optical signal.

5. The vehicle-mounted optical communication equipment testing method according to claim 1, characterized in that: The step of testing the vehicle-mounted optical communication device based on the test mode corresponding to the test item also includes: When the test item is a light sensitivity test, setting the test mode corresponding to the vehicle-mounted optical communication device to a power test mode; A sequence pulse signal is generated in the power test mode, and the vehicle-mounted optical communication device is tested based on the sequence pulse signal.

6. The vehicle-mounted optical communication equipment testing method according to claim 5, characterized in that: The step of testing the vehicle-mounted optical communication device based on the sequence pulse signal comprises: Sending the sequence pulse signal to the vehicle-mounted optical communication device, and acquiring a receiving signal of the vehicle-mounted optical communication device from an optical receiving port of the vehicle-mounted optical communication device; The bit error rate corresponding to the vehicle-mounted optical communication device in the process of signal transmission and reception is determined according to the sequence pulse signal and the received signal, and the vehicle-mounted optical communication device is tested based on the bit error rate.

7. A vehicle-mounted optical communication equipment testing device, characterized in that: The vehicle-mounted optical communication equipment testing device comprises: A test preparation module, used to determine the test mode and test items corresponding to the vehicle-mounted optical communication device according to the test parameters of the vehicle-mounted optical communication device; A test execution module, configured to test the vehicle-mounted optical communication device based on a test mode corresponding to the test item, and generate a test report based on the test data; The test mode includes at least one of a communication test mode and a power test mode, and the test items include at least one of a CAN communication test, an Ethernet communication test, an optical power test, and a light sensitivity test.

8. A vehicle-mounted optical communication equipment test device, characterized in that: The device comprises: a memory, a processor, and a vehicle optical communication equipment test program stored in the memory and executable on the processor, wherein the vehicle optical communication equipment test program is configured to implement the steps of the vehicle optical communication equipment test method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a vehicle-mounted optical communication equipment test program is stored on the storage medium. When the vehicle-mounted optical communication equipment test program is executed by a processor, the steps of the vehicle-mounted optical communication equipment test method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a vehicle-mounted optical communication device test program, and when the vehicle-mounted optical communication device test program is executed by a processor, the steps of the vehicle-mounted optical communication device test method according to any one of claims 1 to 6 are implemented.