Communication performance test method, device and system

By simulating the dynamic voltage changes in the actual vehicle environment in the on-board module test, the problem of unreliable test results in the prior art is solved, and a more reliable communication performance test is achieved.

CN119521282APending Publication Date: 2025-02-25BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311084518.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

When testing the communication performance of vehicle-mounted modules, the prior art fails to consider the changes in the power supply state in the actual vehicle-mounted environment, resulting in unreliable test results.

Method used

By obtaining the communicable voltage range and test demand information of the on-board module, determining the matching voltage regulation method, controlling the power supply status of the programmable power supply to the on-board module, and simulating the dynamic voltage changes in the actual on-board environment.

Benefits of technology

It realizes communication performance testing of vehicle-mounted modules in simulated actual vehicle-mounted environments, improves the reliability of test results, and can more effectively identify and reduce potential hidden dangers of vehicle-mounted modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119521282A_ABST
    Figure CN119521282A_ABST
Patent Text Reader

Abstract

The invention discloses a communication performance test method, device and system. The method comprises the following steps: acquiring a communicable voltage range and test demand information of a vehicle-mounted module; determining a voltage regulation and control mode matched with the test demand information according to the communicable voltage range; controlling the power supply state of a programmable power supply for supplying power to the vehicle-mounted module according to the voltage regulation and control mode; and controlling the vehicle-mounted module to perform service processing in the power supply state to obtain a test result of the communication state of the vehicle-mounted module in the power supply state. According to the embodiment of the invention, the method can achieve the dynamic change environment of the vehicle-mounted voltage, can effectively guarantee the reliability of the communication performance test of the vehicle-mounted module in a power supply state, and provides a powerful basis for solving the potential hazards of the vehicle-mounted module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of testing technology, and in particular, relates to a communication performance testing method, device and system. Background Art

[0002] With the development of science and technology, the automotive industry is also developing rapidly. The equipment in the car is becoming more and more intelligent, and there are more and more types of vehicle-mounted modules, such as GPS (Global Positioning System) positioning module, communication module, display module, audio module and driving recorder module. In order to cope with the complex vehicle-mounted environment, it is necessary to test the communication performance of the vehicle-mounted module to determine whether it will fail during long-term operation, so as to reduce safety hazards.

[0003] In the related art, the test of the vehicle-mounted module is usually carried out under a stable power supply environment. However, in the actual vehicle-mounted environment, the power supply state to the vehicle-mounted module will change with the change of factors such as the physical environment. Therefore, the test of the vehicle-mounted module based on the stable power supply condition in the related art does not take into account the change of the power supply state to the vehicle-mounted module in the actual vehicle-mounted environment, resulting in unreliable communication performance test results of the vehicle-mounted module, and thus cannot be used as a reliable reference for reducing potential risks of the vehicle-mounted module. Summary of the invention

[0004] The embodiments of the present application provide a communication performance test method, device and system, which take into account the changes in the power supply state of the vehicle-mounted module in the vehicle environment and improve the reliability of the communication performance test results.

[0005] In a first aspect, an embodiment of the present application provides a communication performance testing method, the method comprising:

[0006] Obtain the communication voltage range and test requirement information of the vehicle-mounted module;

[0007] Determining a voltage control method that matches the test requirement information according to the communicable voltage range;

[0008] Controlling the power supply state of the programmable power supply to the vehicle-mounted module according to the voltage regulation method;

[0009] The vehicle-mounted module is controlled to perform service processing in the power supply state, and a test result of the communication state of the vehicle-mounted module in the power supply state is obtained.

[0010] In a second aspect, an embodiment of the present application provides a communication performance testing device, the device comprising:

[0011] An acquisition module is used to obtain the communicable voltage range and test requirement information of the vehicle-mounted module;

[0012] A determination module, used to determine a voltage control method that matches the test requirement information according to the communicable voltage range;

[0013] A first control module, used for controlling the power supply state of the programmable power supply to the vehicle-mounted module according to the voltage regulation mode;

[0014] The second control module is used to control the vehicle-mounted module to perform business processing in the power supply state, and obtain a test result of the communication state of the vehicle-mounted module in the power supply state.

[0015] In a third aspect, an embodiment of the present application provides a communication performance test system, including: a programmable power supply, a controller area network bus development environment CANoe hardware, and a communication performance test device as described in the second aspect;

[0016] The program-controlled power supply is used to control the power supply state of the vehicle-mounted module through the communication performance test device;

[0017] The CANoe hardware is used to connect the vehicle-mounted module and the communication performance test device respectively, so that the communication performance test device establishes a connection with the vehicle-mounted module to control the vehicle-mounted module to perform business processing under the power supply state, and obtain the test result of the communication status of the vehicle-mounted module under the power supply state.

[0018] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the steps of the communication performance testing method described in any one of the embodiments of the first aspect are implemented.

[0019] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the communication performance testing method described in any one of the embodiments of the first aspect are implemented.

[0020] In a sixth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the steps of the communication performance testing method as described in any one of the embodiments of the first aspect.

[0021] The communication performance testing method, device and system of the embodiments of the present application determine the voltage control method based on the communicative voltage range of the vehicle-mounted module and the test requirement information to control the power supply state of the programmable power supply to the vehicle-mounted module, take into account the changes in the power supply state of the vehicle-mounted module in the vehicle environment, and realize the dynamic change environment of the vehicle voltage, that is, it can more objectively simulate the actual vehicle environment; thereby, the communication performance test of the vehicle-mounted module in the power supply state is realized, the reliability of the test is effectively guaranteed, and a strong basis is provided for solving the potential hidden dangers of the vehicle-mounted module. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0023] Figure 1 It is a flow chart of a communication performance testing method provided in an embodiment of the present application;

[0024] Figure 2 It is a flowchart of another communication performance testing method provided in an embodiment of the present application;

[0025] Figure 3 It is a structural schematic diagram of a communication performance testing device provided in an embodiment of the present application;

[0026] Figure 4 It is a structural diagram of a communication performance testing system provided in an embodiment of the present application;

[0027] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0029] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0030] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.

[0031] The Electronic Control Unit (ECU) is used to represent the vehicle-mounted module that controls the vehicle by collecting and exchanging data with various sensors and buses. It is used to judge and control the vehicle status. ECU can be divided into different types according to the difference in the functions it implements, such as Body Control Module (BCM) and Battery Management System (BMS).

[0032] Controller Area Network (CAN) is a fieldbus based on the ISO (International Organization for Standardization) internationally standardized serial communication protocol. In the automotive application field, it is used to achieve real-time and reliable data communication between various nodes or modules, thereby achieving information sharing between multiple vehicle modules.

[0033] Controller Area Network Bus Development Environment (CAN open environment, CANoe) is used to represent the development environment designed for automotive bus development.

[0034] Programmable power supply (PPS) is used to indicate that program control is used to achieve soft start, stop, voltage and current control, thereby avoiding impact and damage to the instrument.

[0035] CAPL (Communication Access Programming Language) is used to represent a high-level scripting language dedicated to writing CAN bus communication applications, that is, the CAPL scripting language can be used for CAN bus applications developed using CANoe software. The execution of program blocks in CAPL is controlled by events. CAPL programs are developed and compiled in a dedicated editor to access all objects (messages, signals, environment variables) and system variables contained in the database.

[0036] With the development of science and technology, the automotive industry is also developing rapidly. The equipment in the car is becoming more and more intelligent, and there are more and more types of vehicle-mounted modules, such as GPS (Global Positioning System) positioning module, communication module, display module, audio module and driving recorder module. In order to cope with the complex vehicle-mounted environment, it is necessary to test the communication performance of the vehicle-mounted module to determine whether it will fail during long-term operation, so as to reduce safety hazards.

[0037] In the related art, the test of the vehicle-mounted module is usually carried out in a stable power supply environment (for example, a voltage-stabilized environment). However, in the actual vehicle-mounted environment, the power supply state to the vehicle-mounted module will change with the change of factors such as the physical environment, that is, there is instability. Therefore, the test results in the related art cannot be used as a reliable reference for reducing the potential risks of the vehicle-mounted module.

[0038] In order to solve the problems of the related art, the embodiments of the present application provide a communication performance testing method, device and system.

[0039] The communication performance testing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0040] Figure 1 FIG. 1 is a flow chart of a communication performance testing method 100 according to an embodiment of the present application. Figure 1 As shown, the communication performance testing method 100 may specifically include the following steps:

[0041] S101, obtaining the communicable voltage range and test requirement information of the vehicle-mounted module;

[0042] S102, determining a voltage control method that matches the test requirement information according to the communicable voltage range;

[0043] S103, controlling the power supply state of the programmable power supply to the vehicle-mounted module according to the voltage regulation method;

[0044] S104: Control the vehicle-mounted module to perform service processing in the power supply state, and obtain a test result of the communication state of the vehicle-mounted module in the power supply state.

[0045] Therefore, the voltage control method is determined based on the communicative voltage range of the on-board module and the test requirement information to control the power supply state of the programmable power supply to the on-board module. The changes in the power supply state of the on-board module in the on-board environment are taken into consideration, and the dynamic change environment of the on-board voltage is realized, that is, the actual on-board environment can be simulated more objectively; thereby, the communication performance test of the on-board module in the power supply state is realized, which effectively ensures the reliability of the test, and provides a strong basis for solving the potential hidden dangers of the on-board module.

[0046] The specific implementation methods of the above steps are introduced below.

[0047] It should be noted that the vehicle-mounted module in the embodiment of the present application may include a communication module, a control module, etc., such as an ECU, which is a vehicle-mounted module that controls the car by collecting and exchanging data with various sensors and buses. In addition, the specific type of ECU may include an engine control ECU, a seat adjustment ECU, an air conditioning control ECU, etc., which is not specifically limited in this embodiment.

[0048] In some embodiments, before step S101, connections are established with the program-controlled power supply and the CANoe hardware respectively. Specifically, the connection with the program-controlled power supply can be realized through a DB9 interface, and the DB9 interfaces can be connected through a serial signal line, and the serial signal line can use the RS232 standard to transmit data signals, thereby realizing communication based on the RS232 serial communication protocol, or using a Python script.

[0049] In addition, in some embodiments, the vehicle-mounted module is connected to CANoe hardware, and specifically, the vehicle-mounted module and the CANoe hardware can be connected by a connecting line, which is equivalent to interconnecting the programmable power supply, the vehicle-mounted module, and the CANoe hardware, so that communication can be established.

[0050] It should be understood that CANoe hardware is equivalent to a simulated vehicle module (e.g., a simulated ECU), which can be used to receive messages sent by the vehicle module under test, send messages by simulating other real vehicle modules, and monitor and check data messages, etc. Specifically, CANoe hardware can include VN1640, VN1630, or VN1670, etc.

[0051] In some embodiments, in step S101, the communicable voltage range of the vehicle-mounted module can be determined based on the simulation test database established by the simulation experiment or the historical test data in the actual vehicle-mounted environment. Taking the vehicle-mounted module to be tested as an ECU as an example, the target simulation test database or target historical test data matching the ECU is searched and determined, so as to analyze these test data to obtain the corresponding communicable voltage range, for example, 8 to 18V.

[0052] In some embodiments, the test requirement information may include simulated scenarios or simulated conditions of the vehicle environment, such as simulated long-term high load, simulated random voltage jumps, simulated power-on or simulated power-off, etc.

[0053] In some embodiments, in step S102, the voltage control method may include any of the following: voltage gradient adjustment, voltage transient, power on or power off. It can be understood that voltage gradient adjustment is to linearly control the voltage value, voltage transient is to jump the voltage value within an instant, and power on or off is to control the power state to control the voltage value.

[0054] In this way, the corresponding voltage control method can be determined according to the test requirement information. For example, if the test requirement information is to simulate random voltage jumps, the voltage control method is a voltage transient in which the voltage value jumps within an instant; and then the specific voltage control method is further determined according to the obtained communicable voltage range of the vehicle-mounted module.

[0055] In some embodiments, the voltage upper limit corresponding to the communication range and the preset percentage may be multiplied to determine the first voltage, and the voltage lower limit corresponding to the communication range and the preset percentage may be multiplied to determine the second voltage; then, according to the test requirement information, the voltage control method may be determined to be voltage gradient adjustment or voltage transient within the target voltage interval span. The target voltage interval span is the voltage interval span between the first voltage and the second voltage.

[0056] It should be noted that the preset percentage may be less than, equal to or greater than 100%, and this embodiment does not limit this.

[0057] In specific implementation, the product of the target voltage interval span and the preset accuracy can be determined as the target step length, so that the voltage gradient can be adjusted according to the target step length within the target voltage interval span. For example, the communicable voltage range of the vehicle-mounted module is 8 to 18V, the preset percentage is 100%, the preset accuracy is 0.01, then the first voltage is 18V, the second voltage is 8V, and the target step length is 0.1V. That is, the voltage control method is to adjust the voltage gradient by 0.1V between 8 and 18V.

[0058] In specific implementation, the voltage value can be regulated to an undervoltage or overvoltage state according to the target step length, and then regulated to a regulated voltage state. Specifically, the voltage can be gradually increased to a first voltage according to the target step length, and the first voltage can be gradually decreased to a regulated voltage according to the target step length; or, the voltage can be gradually decreased to a second voltage according to the target step length, and the second voltage can be gradually increased to a regulated voltage according to the target step length. For the regulated voltage, taking the communication voltage range of 8 to 18V as an example, the regulated voltage can be 12V.

[0059] In specific implementation, voltage transient regulation can be achieved by instantaneously increasing the voltage to a first voltage and instantaneously decreasing the first voltage to a regulated voltage; or, instantaneously decreasing the voltage to a second voltage and instantaneously increasing the second voltage to a regulated voltage.

[0060] In a specific implementation, the voltage can be instantaneously reduced to a third voltage, the value of which is 0. It can be understood that the voltage value instantaneously becomes zero in the control mode based on power off.

[0061] In addition, in the related art, the power supply state of the vehicle-mounted module is usually controlled by manually adjusting the program power supply, but the manual control has a large error and a large control gradient, which results in damage to the test environment and low accuracy of the test results. Therefore, this embodiment controls the power supply state of the program-controlled power supply to the vehicle-mounted module according to the voltage control method.

[0062] In some embodiments, in step S103, a control instruction indicating a voltage control method can be generated according to the determined voltage control method, and the control instruction can be sent to the programmable power supply to control the power supply state of the programmable power supply to the vehicle-mounted module, that is, the programmable power supply adjusts the power supply state to the vehicle-mounted module according to the control instruction.

[0063] In specific implementation, the target interface (eg, DB9 interface) encapsulated in the library corresponding to the programmable power supply can be called, so as to send control instructions to the programmable power supply through the target interface to control the power supply state of the programmable power supply to the vehicle-mounted module.

[0064] In some embodiments, in step S104, since a connection is established with the CANoe hardware in advance and thus with the vehicle-mounted module, the vehicle-mounted module can be controlled to perform business processing under a power supply state corresponding to the voltage control method.

[0065] In some embodiments, the data messages received and sent by the vehicle-mounted module can be monitored and checked to determine the stability of the message transmission, thereby testing the communication performance of the vehicle-mounted module, that is, testing the reliability of the vehicle-mounted module, and determining the stability result as the final test result. Specifically, it can include whether the message has a signal, whether an error frame occurs, whether the message signal cycle is stable, and the time from no signal to recovery to normal. It can be understood that in the undervoltage or overvoltage state, since the vehicle-mounted module cannot work, there is no message signal.

[0066] In addition, in some embodiments, a message signal ID may also be included to confirm the priority according to the ID and determine the signal to be filtered, screened or cached, so as to analyze the test results.

[0067] In addition, in some embodiments, a CAPL control script can be established based on the CANoe bus development environment to control the power supply state of the programmable power supply to the vehicle-mounted module and control the vehicle-mounted module to perform business processing under the power supply state based on the control script. In other words, the control script uses a dual-thread control mechanism, one thread is used to control the power supply state (power state and voltage), and the other thread is used to monitor and control the vehicle-mounted module to complete the corresponding business action.

[0068] Furthermore, it should be noted that the two threads do not interfere with each other and are executed synchronously. That is, the first thread controls the power supply state of the programmable power supply to the vehicle-mounted module according to the voltage regulation method; the second thread controls the vehicle-mounted module to perform business processing in the power supply state, and obtains the test result of the communication state of the vehicle-mounted module in the power supply state; wherein the first thread and the second thread are executed synchronously. In this way, the efficiency of the test can be effectively guaranteed.

[0069] Furthermore, in some embodiments, after step S104, the messages that are easily lost can be analyzed and determined based on the test results, thereby determining the specific CAN channel or LIN channel that is greatly affected by the voltage, and further analyzing the differences between the channels for subsequent optimization and fault tolerance adjustments. In other words, based on the test results, it can be determined whether the vehicle-mounted module will fail during a long period of operation, thereby reducing safety hazards.

[0070] In some embodiments, after step S104, a communication log can be further generated according to the test result. Specifically, the communication log corresponding to the test result can be generated by pre-configured CANoe software. In addition, the communication log can include the reception of the message and the change of the load, for example, the packet loss rate, the number of received message frames, the number of error frames and the load rate of the bus. In this way, when a fault occurs later, it can be located and reproduced by calling the matching communication log.

[0071] refer to Figure 2 , this application also provides another implementation method of communication performance testing.

[0072] like Figure 2 As shown, another implementation method 200 of the communication performance test provided in the present application includes the following steps: in step S201, the hardware environment is set up, that is, communication can be established by interconnecting with the programmable power supply, the vehicle-mounted module, and the CANoe hardware; in step S202, the programmable power supply is started; in step S203, the operating status of the programmable power supply is judged. If the programmable power supply operates normally, the programmable power supply can supply power to the vehicle-mounted module. If the programmable power supply cannot operate normally, return to step S202, that is, restart the programmable power supply; in step S204, the vehicle-mounted module operates based on the power supply of the programmable power supply; in step S205, the power supply status of the programmable power supply to the vehicle-mounted module is controlled according to the voltage control method, so as to obtain the test result of the communication status of the vehicle-mounted module in the power supply state.

[0073] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0074] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a communication performance testing device 300.

[0075] like Figure 3 As shown, the communication performance testing device 300 may include:

[0076] An acquisition module 301 is used to acquire the communicable voltage range and test requirement information of the vehicle-mounted module;

[0077] A determination module 302 is used to determine a voltage control method that matches the test requirement information according to the communicable voltage range;

[0078] A first control module 303, used for controlling the power supply state of the programmable power supply to the vehicle-mounted module according to the voltage regulation method;

[0079] The second control module 304 is used to control the vehicle-mounted module to perform service processing in the power supply state, and obtain a test result of the communication state of the vehicle-mounted module in the power supply state.

[0080] In some embodiments, the voltage control method includes any one of the following: voltage gradient adjustment, voltage transient, power startup or power shutdown.

[0081] In some embodiments, the determination module 302 is specifically used to determine the product of the voltage upper limit corresponding to the communicative range and a preset percentage as the first voltage, and to determine the product of the voltage lower limit corresponding to the communicative range and the preset percentage as the second voltage; according to the test requirement information, determine that the voltage control method is a voltage gradient adjustment or a voltage transient within a target voltage range span, and the target voltage range span is a voltage range span between the first voltage and the second voltage.

[0082] In some embodiments, the first control module 303 is specifically used to generate a control instruction indicating the voltage regulation method; call the target interface encapsulated in the library corresponding to the programmable power supply; and send the control instruction to the programmable power supply through the target interface to control the power supply state of the programmable power supply to the vehicle-mounted module.

[0083] In some embodiments, the communication performance testing device 300 further includes a generating module ( Figure 3 (not shown), the generating module is used to generate the communication log corresponding to the test result through the pre-configured CANoe software.

[0084] It should be noted that, for the convenience of description, the above device is described in various modules according to their functions. Of course, when implementing this application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0085] The device of the above embodiment is used to implement the corresponding communication performance testing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0086] For further reference, Figure 4 The present application also provides a communication performance testing system 400 , and the communication performance testing system 400 includes a communication performance testing device 300 .

[0087] like Figure 4 As shown, the communication performance test system 400 also includes a programmable power supply 401 and CANoe hardware 402 .

[0088] In some embodiments, the programmable power supply 401 is used to control the power supply state of the vehicle-mounted module through the communication performance testing device.

[0089] In some embodiments, CANoe hardware 402 is used to respectively connect the vehicle-mounted module and the communication performance testing device, so that the communication performance testing device establishes a connection with the vehicle-mounted module to control the vehicle-mounted module to perform business processing under the power supply state, and obtain the test result of the communication status of the vehicle-mounted module under the power supply state.

[0090] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides an electronic device.

[0091] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided by this embodiment is shown.

[0092] The electronic device 500 may include a processor 501 and a memory 502 storing computer program instructions.

[0093] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0094] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.

[0095] In certain embodiments, the memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present application.

[0096] The processor 501 implements any one of the communication performance testing methods in the above embodiments by reading and executing computer program instructions stored in the memory 502 .

[0097] In some examples, the electronic device 500 may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.

[0098] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0099] Bus 510 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus 510 may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0100] Exemplarily, the electronic device 500 may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA).

[0101] Based on the same technical concept, corresponding to any of the above-mentioned embodiments, the present application also provides a non-transitory computer-readable storage medium. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any of the communication performance test methods in the above-mentioned embodiments is implemented. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as portable disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, etc.

[0102] Based on the same technical concept, corresponding to any of the above-mentioned embodiments, the present application also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the communication performance test method. Corresponding to the execution subject corresponding to each step in each embodiment of the communication performance test method, the processor that executes the corresponding step may belong to the corresponding execution subject.

[0103] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0104] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0105] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0106] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0107] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A communication performance testing method, characterized in that: include: Obtain the communication voltage range and test requirement information of the vehicle-mounted module; Determining a voltage control method that matches the test requirement information according to the communicable voltage range; Controlling the power supply state of the programmable power supply to the vehicle-mounted module according to the voltage regulation method; The vehicle-mounted module is controlled to perform service processing in the power supply state, and a test result of the communication state of the vehicle-mounted module in the power supply state is obtained.

2. The method according to claim 1, characterized in that The voltage control method includes any one of the following: voltage gradient adjustment, voltage transient, power on or power off.

3. The method according to claim 1, characterized in that The step of controlling the power supply state of the programmable power supply to the vehicle-mounted module according to the voltage regulation mode, controlling the vehicle-mounted module to perform service processing in the power supply state, and obtaining a test result of the communication state of the vehicle-mounted module in the power supply state includes: Controlling the power supply state of the programmable power supply to the vehicle-mounted module according to the voltage regulation method through the first thread; Controlling the vehicle-mounted module to perform business processing in the power supply state through the second thread, and obtaining a test result of the communication state of the vehicle-mounted module in the power supply state; The first thread and the second thread are performed synchronously.

4. The method according to claim 1, characterized in that: The step of determining a voltage control method that matches the test requirement information according to the communicable voltage range includes: Determine the product of the voltage upper limit corresponding to the communicable range and a preset percentage as the first voltage, and determine the product of the voltage lower limit corresponding to the communicable range and the preset percentage as the second voltage; According to the test requirement information, it is determined that the voltage control mode is voltage gradient adjustment or voltage transient within a target voltage interval span, and the target voltage interval span is a voltage interval span between the first voltage and the second voltage.

5. The method according to claim 4, characterized in that The step of determining, according to the test requirement information, that the voltage control mode is voltage gradient adjustment or voltage transient within a target voltage interval includes: Determine the target step length by multiplying the target voltage interval span by a preset accuracy; According to the test requirement information, it is determined that the voltage control method is to adjust the voltage gradient according to the target step length within the target voltage range.

6. The method according to claim 1, characterized in that The power supply state of controlling the programmable power supply to supply power to the vehicle-mounted module according to the voltage regulation method includes: generating a control instruction indicating the voltage regulation mode; Calling the target interface encapsulated in the library corresponding to the programmable power supply; The control instruction is sent to the programmable power supply through the target interface to control the power supply state of the programmable power supply to the vehicle-mounted module.

7. The method according to claim 1, characterized in that The vehicle-mounted module is connected to the controller area network bus development environment CANoe hardware; Before controlling the vehicle-mounted module to perform service processing in the power supply state and obtaining a test result of the communication state of the vehicle-mounted module in the power supply state, the method further includes: A connection is established with the vehicle-mounted module through the CANoe hardware.

8. The method according to claim 1, characterized in that After controlling the vehicle-mounted module to perform service processing in the power supply state and obtaining a test result of the communication state of the vehicle-mounted module in the power supply state, the method further includes: The communication log corresponding to the test result is generated by the pre-configured CANoe software.

9. The method according to claim 1, characterized in that: The controlling the vehicle-mounted module to perform service processing in the power supply state to obtain a test result of the communication state of the vehicle-mounted module in the power supply state includes: The vehicle-mounted module is controlled to perform business processing in the power supply state, and it is determined whether the message sent by the vehicle-mounted module has a signal and whether an error frame occurs, so as to obtain a test result of the communication state of the vehicle-mounted module in the power supply state.

10. A communication performance testing device, characterized in that: The device comprises: An acquisition module is used to obtain the communicable voltage range and test requirement information of the vehicle-mounted module; A determination module, used to determine a voltage control method that matches the test requirement information according to the communicable voltage range; A first control module, used for controlling the power supply state of the programmable power supply to the vehicle-mounted module according to the voltage regulation mode; The second control module is used to control the vehicle-mounted module to perform business processing in the power supply state, and obtain a test result of the communication state of the vehicle-mounted module in the power supply state.

11. A communication performance test system, characterized in that: include: A program-controlled power supply, a controller area network bus development environment CANoe hardware and a communication performance test device as claimed in claim 10; The program-controlled power supply is used to control the power supply state of the vehicle-mounted module through the communication performance test device; The CANoe hardware is used to connect the vehicle-mounted module and the communication performance test device respectively, so that the communication performance test device establishes a connection with the vehicle-mounted module to control the vehicle-mounted module to perform business processing under the power supply state, and obtain the test result of the communication status of the vehicle-mounted module under the power supply state.

12. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the communication performance testing method as described in any one of claims 1 to 9 is implemented.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the communication performance testing method according to any one of claims 1 to 9 is implemented.

14. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the communication performance testing method as described in any one of claims 1 to 9.