CN117880157A - Communication protocol testing method and device, vehicle and storage medium - Google Patents

Communication protocol testing method and device, vehicle and storage medium Download PDF

Info

Publication number
CN117880157A
CN117880157A CN202311866960.1A CN202311866960A CN117880157A CN 117880157 A CN117880157 A CN 117880157A CN 202311866960 A CN202311866960 A CN 202311866960A CN 117880157 A CN117880157 A CN 117880157A
Authority
CN
China
Prior art keywords
target
vehicle
information
target test
communication protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311866960.1A
Other languages
Chinese (zh)
Inventor
张静
汤利顺
孙克文
蔡文静
赵泽华
贾政权
王艳博
闫帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202311866960.1A priority Critical patent/CN117880157A/en
Publication of CN117880157A publication Critical patent/CN117880157A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a device, a vehicle and a storage medium for testing a communication protocol, wherein the method for testing the communication protocol comprises the following steps: obtaining target test parameters; generating a target test case according to the target test parameters; executing the target test case and sending a target request message to obtain a target test result; and generating a target test report according to the target test result. The invention solves the technical problem of low testing efficiency caused by manually testing the communication protocol in the prior art.

Description

Communication protocol testing method and device, vehicle and storage medium
Technical Field
The invention relates to the technical field of intelligent driving, in particular to a method and a device for testing a communication protocol, a vehicle and a storage medium.
Background
DOIP (Diagnostic over Internet Protocol) is a protocol that is specifically used for diagnosis and programming in a vehicle diagnostic system. It allows the diagnostic device to be connected to the diagnostic system of the vehicle via the internet, thereby enabling remote diagnosis and programming. The DOIP protocol enables remote diagnosis and programming of vehicles worldwide, providing a more flexible and efficient diagnostic solution for vehicle manufacturers and repair services.
In an automobile electronic control unit based on Ethernet communication, the main function of the DOIP protocol is to transmit data of the UDS protocol, and the DOIP protocol is applied to scenes such as after-sales diagnosis, ECU (electronic control Unit) flashing and the like. DOIP CAN transmit a large amount of data and has high response speed, remote diagnosis CAN be performed through Ethernet, and with the development of intelligent networking and the increase of automatic driving functions, DOIP diagnosis CAN gradually replace traditional CAN diagnosis, and becomes a necessary trend of vehicle-mounted network diagnosis. Testing of the DOIP protocol is therefore particularly important. At present, no universal automatic test scheme exists in the industry, and the verification of DOIP protocol is mainly performed by manual test, so that the working efficiency is low and errors are easy to occur in the test process.
For the above-mentioned problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a vehicle and a storage medium for testing a communication protocol, which at least solve the technical problem of low testing efficiency caused by manually testing the communication protocol in the prior art.
According to one embodiment of the present invention, there is provided a method for testing a communication protocol, including: obtaining target test parameters; generating a target test case according to the target test parameters; executing the target test case and sending a target request message to obtain a target test result; and generating a target test report according to the target test result.
Optionally, the method for testing a communication protocol further includes: pre-configuring a plurality of target vehicle identifications in a target vehicle; acquiring a plurality of vehicle identifications; and verifying the plurality of vehicle identifications to obtain an identification verification result.
Optionally, the method for testing a communication protocol further includes: determining whether the first identifier is a first target identifier or not to obtain a first verification result; determining whether the second identifier is a second target identifier to obtain a second verification result; and determining whether the third identifier is a third target identifier to obtain a third verification result.
Optionally, the method for testing a communication protocol further includes: pre-configuring target route activation information in a target vehicle; acquiring route activation information; and determining whether the route activation information is target route activation information or not to obtain a route verification result.
Optionally, the method for testing a communication protocol further includes: pre-configuring a plurality of target diagnostic information in a target vehicle; acquiring a plurality of diagnostic information; and verifying the plurality of diagnosis information to obtain diagnosis verification results.
Optionally, the method for testing a communication protocol further includes: determining whether the first diagnosis information is first target diagnosis information or not to obtain a fourth verification result; and determining whether the second diagnosis information is the second target diagnosis information, and obtaining a fifth verification result.
Optionally, the method for testing a communication protocol further includes: pre-configuring target time parameter information in a target vehicle; acquiring time parameter information; and determining whether the time parameter information is the target time parameter information, and obtaining a time parameter verification result.
According to one embodiment of the present invention, there is also provided a test device for a communication protocol, including: the acquisition module is used for acquiring target test parameters; the first generation module is used for generating a target test case according to the target test parameters; the execution module is used for executing the target test case and sending a target request message to obtain a target test result; and the second generation module is used for generating a target test report according to the target test result.
According to one embodiment of the present invention, there is also provided a vehicle including a memory having a computer program stored therein and a processor configured to run the computer program to perform the method of testing the communication protocol in any one of the above.
According to one embodiment of the present invention, there is also provided a non-volatile storage medium in which a computer program is stored, wherein the computer program is arranged to execute the method of testing the communication protocol in any one of the above-mentioned claims at run-time.
In the embodiment of the invention, the target test parameters are acquired, the target test case is generated according to the target test parameters, the purposes of executing the target test case and sending the target request message to obtain the target test result are achieved, the technical effect of generating the target test report according to the target test result is achieved, and the technical problem that the communication protocol is usually tested manually in the prior art, so that the test efficiency is low is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of a method of testing a communication protocol according to one embodiment of the present invention;
fig. 2 is a block diagram of a communication protocol testing apparatus according to one embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present invention, there is provided an embodiment of a method of testing a communication protocol, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system comprising at least one set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
The method embodiments may also be performed in an electronic device comprising a memory and a processor, a similar control device or an in-vehicle terminal. Taking an in-vehicle terminal as an example, the in-vehicle terminal may include one or more processors and a memory for storing data. Optionally, the vehicle-mounted terminal may further include a communication device for a communication function and a display device. It will be appreciated by those skilled in the art that the above description of the structure is merely illustrative, and is not intended to limit the structure of the above-described vehicle-mounted terminal. For example, the in-vehicle terminal may further include more or less components than the above-described structural description, or have a different configuration from the above-described structural description.
The processor may include one or more processing units. For example: the processor may include a processing device of a central processing unit (central processing unit, CPU), a graphics processor (graphics processing unit, GPU), a digital signal processing (digital signal processing, DSP) chip, a microprocessor (microcontroller unit, MCU), a programmable logic device (field-programmable gate array, FPGA), a neural-grid processor (neural-network processing unit, NPU), a tensor processor (tensor processing unit, TPU), an artificial intelligence (artificial intelligent, AI) type processor, or the like. Wherein the different processing units may be separate components or may be integrated in one or more processors. In some examples, the electronic device may also include one or more processors.
The memory may be used to store a computer program, for example, a computer program corresponding to a test method of a communication protocol in the embodiment of the present invention, and the processor implements the test method of a communication protocol by running the computer program stored in the memory. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory may further include memory remotely located with respect to the processor, the remote memory being connectable to the electronic device through the grid. Examples of such grids include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication device is arranged to receive or transmit data via a mesh. Specific examples of the above-described mesh may include a wireless mesh provided by a communication provider of the mobile terminal. In one example, the communication device includes a mesh adapter (network interface controller, NIC) that can connect to other mesh devices through a base station to communicate with the internet. In one example, the communication device may be a Radio Frequency (RF) module for communicating with the internet wirelessly. In some embodiments of the present solution, the communication device is configured to connect to a mobile device such as a mobile phone, a tablet, or the like, and may send an instruction to the vehicle terminal through the mobile device.
The display devices may be touch screen type liquid crystal displays (liquid crystal display, LCD) and touch displays (also referred to as "touch screens" or "touch display screens"). The liquid crystal display may enable a user to interact with a user interface of the in-vehicle terminal. In some embodiments, the vehicle-mounted terminal has a graphical user interface (graphical user interface, GUI) with which a user can interact with the GUI by touching finger contacts and/or gestures on the touch-sensitive surface, where the human-machine interaction functionality may include a vehicle gear shifting functionality, executable instructions for performing the human-machine interaction functionality described above being configured/stored in one or more processor-executable computer program products or readable storage media.
Fig. 1 is a flowchart of a method for testing a communication protocol according to one embodiment of the present invention, as shown in fig. 1, the method includes the steps of:
step S102, obtaining target test parameters.
Optionally, the execution body of the embodiment is a protocol test system, and it should be noted that other electronic devices and processors may also be used as the execution body, which is not limited herein.
In the technical scheme provided in the step S102, the protocol test system should acquire the test parameters of the protocol test before the protocol test is performed.
Optionally, the protocol test system needs to monitor the update status of the executable file in real time, and when it monitors that the executable file needs to be updated, it indicates that there is a change in content of the executable file, then the corresponding protocol test task is triggered.
Step S104, generating a target test case according to the target test parameters.
In the technical scheme provided in the step S104, after the protocol test system re-triggers the protocol test task, a corresponding test case is further generated according to the acquired test parameters.
Optionally, after the protocol test system configures the test parameters to generate the corresponding test cases, the test cases should be screened for a second time through the updated executable file label information, so that redundant test cases can be reduced, and the test time is further improved.
For example, if the executable file includes two tag information of a and B, the protocol test system shall also filter the tag information of a and B after detecting that the executable file has an update, so as to filter out test cases corresponding to the tag information having the update, thereby reducing a large number of redundant tests.
And S106, executing the target test case and sending a target request message to obtain a target test result.
In the technical scheme provided in the step S106 of the present invention, the protocol test system executes the target test case by sending a plurality of target request messages, thereby obtaining the target test result.
And S108, generating a target test report according to the target test result.
In the technical scheme provided in the step S108 of the present invention, the protocol test system needs to obtain the target test result first, and then generate a corresponding target test report according to the target test result.
Optionally, the protocol test system may generate a desired test report in advance, and after the protocol test system generates the target test report, compare the target test report with the desired test report, and generate a comparison report for a relevant technician to check and monitor the test result.
The step S102 to the step S108 can be known, in the present invention, the target test parameters are obtained, and the target test case is generated according to the target test parameters, so as to achieve the purposes of executing the target test case and sending the target request message to obtain the target test result, thereby achieving the technical effect of generating the target test report according to the target test result, and further solving the technical problem of low test efficiency caused by manually testing the communication protocol in the prior art.
The invention provides an automatic test system and method for DOIP protocol in vehicle-mounted Ethernet communication. The test cases are automatically generated according to the parameter configuration file, and the secondary screening is carried out on the test cases according to the label state of the executable file, so that redundant tests can be reduced, and the test efficiency is improved. Meanwhile, after the task is finished, a test report with expected results and actual measurement results can be generated, so that the test report is convenient for a tester to check, and the technical effects of testing the DOIP protocol by an automatic test method, greatly reducing the later maintenance cost and shortening the product development life cycle are achieved.
The above-described method of this embodiment is described in further detail below.
As an optional implementation manner, the target vehicle includes a plurality of vehicle identifiers, executing the target test case and sending a target request message, and obtaining the target test result includes: a plurality of target vehicle identifications in the target vehicle are configured in advance, the plurality of vehicle identifications are obtained, and verification is carried out on the plurality of vehicle identifications, so that an identification verification result is obtained.
In this embodiment, the target vehicle may include a plurality of vehicle identifiers, where the protocol test system executes the target test case and sends a target request packet, and the obtaining the target test result includes the following steps: the protocol test system can pre-configure a plurality of target vehicle identifications in the target vehicle, acquire a plurality of real vehicle identifications in the target vehicle, and verify the acquired real vehicle identifications and the transmitted message format to obtain an identification verification result.
Specifically, the vehicle identifier includes a vehicle identifier, a vehicle identifier with an EID, and a vehicle identifier with a VIN.
Alternatively, the EID vehicle identification refers to an electronic identification (Electronic Identification) vehicle identification, which is a technique for identifying and tracking vehicles. A small chip and an antenna are embedded into a vehicle identifier by using a Radio Frequency Identification (RFID) technology, and remote identification and management of the vehicle can be realized by reading information of the chip. The technology has wide application in the aspects of vehicle management, parking lot management, traffic violation management and the like.
Alternatively, the VIN vehicle identification refers to a vehicle code (Vehicle Identification Number) vehicle identification, which is a 17-digit code consisting of numbers and letters, for uniquely identifying the vehicle. VINs are commonly engraved on the body, engine compartment, and vehicle registration certificates of automobiles for identifying the manufacturer, model, year of production, and other important information of the automobile.
As an optional implementation manner, the plurality of vehicle identifications include a first identification, a second identification and a third identification, the plurality of target vehicle identifications include a first target identification, a second target identification and a third target identification, the plurality of vehicle identifications are verified, and obtaining the identification verification result includes: determining whether the first identifier is a first target identifier to obtain a first verification result, determining whether the second identifier is a second target identifier to obtain a second verification result, and determining whether the third identifier is a third target identifier to obtain a third verification result.
In this embodiment, the plurality of vehicle identifiers includes a first identifier, a second identifier, and a third identifier, the plurality of target vehicle identifiers includes a first target identifier, a second target identifier, and a third target identifier, and the protocol test system verifies the plurality of vehicle identifiers to obtain an identifier verification result, where the method includes the following steps: the protocol test system needs to determine whether the first identifier is a first target identifier to obtain a first verification result, determine whether the second identifier is a second target identifier to obtain a second verification result, and determine whether the third identifier is a third target identifier to obtain a third verification result.
Specifically, the first identifier is a vehicle identifier, the protocol test system configures the vehicle identifier to be 0x0001 in advance, the protocol test system shall verify the real vehicle identifier in the target vehicle by sending a message, that is, verify whether the real vehicle identifier is 0x0001, and if the real vehicle identifier in the target vehicle is 0x0001, the parameter test is normal.
Specifically, the second identifier is an EID vehicle identifier, the protocol test system configures the EID vehicle identifier to be 0x0002 in advance, the protocol test system shall verify the real EID vehicle identifier in the target vehicle by sending a message, that is, verify whether the real EID vehicle identifier is 0x0002, and if the real EID vehicle identifier in the target vehicle is 0x0002, the parameter test is normal.
Specifically, the third identifier is a VIN vehicle identifier, the protocol test system configures the VIN vehicle identifier to be 0x0003 in advance, the protocol test system shall verify the real VIN vehicle identifier in the target vehicle by sending a message, that is, verify whether the real VIN vehicle identifier is 0x0003, and if the real VIN vehicle identifier in the target vehicle is 0x0003, the parameter test is normal.
Optionally, the identification verification result includes a first verification result, a second verification result and a third verification result.
As an optional implementation manner, the target vehicle includes routing activation information, executing the target test case and sending a target request message, and obtaining the target test result includes: and pre-configuring target route activation information in the target vehicle, acquiring the route activation information, and determining whether the route activation information is the target route activation information or not to obtain a route verification result.
In this embodiment, the target vehicle further includes routing activation information, and the protocol test system executes the target test case and sends a target request packet, and the obtaining the target test result further includes the following steps: the protocol test system can pre-configure target route activation information in the target vehicle, acquire real route activation information in the target vehicle, determine whether the real route activation information is the target route activation information, and obtain a route verification result.
In particular, routing activation refers to configuring and enabling routers in a network to enable transmission of data packets and direct the flow of data to a destination address. By activating the routing, the network device can identify and transmit the data packets, thereby enabling network communication and data transmission. In networks, routing activation is a very important step that ensures that network devices can properly receive and transmit data and can find the correct path to deliver the data packet to the destination address.
Specifically, the protocol test system configures the route activation information of the target vehicle to be 0x0005 in advance, the protocol test system shall verify the real route activation information in the target vehicle by sending a message, namely, verify whether the real route activation information is 0x0005, and if the real route activation information in the target vehicle is 0x0005, the parameter test is normal.
Optionally, the protocol test system executes the target test case and sends a target request message, and the method further includes the following steps: the protocol test system can pre-configure the target online detection information in the target vehicle, acquire the real online detection information in the target vehicle, and determine whether the real online detection information is the target online detection information or not to obtain an online detection result.
Specifically, the protocol test system configures the online detection information of the target vehicle to be 0x0007 in advance, the protocol test system shall verify the real online detection information in the target vehicle by sending a message, namely, verify whether the real online detection information is 0x0007, and if the real online detection information in the target vehicle is 0x0007, the parameter test is normal.
As an optional implementation manner, the target vehicle includes a plurality of diagnostic information, executing the target test case and sending a target request message, and obtaining the target test result includes: and pre-configuring a plurality of target diagnosis information in the target vehicle, acquiring the plurality of diagnosis information, and verifying the plurality of diagnosis information to obtain a diagnosis verification result.
In this embodiment, the target vehicle further includes a plurality of diagnostic information, and the protocol test system executes the target test case and sends a target request message, and the method further includes the following steps: the protocol test system can pre-configure a plurality of target diagnosis information in the target vehicle, acquire a plurality of real diagnosis information in the target vehicle, and verify the plurality of real diagnosis information to obtain a diagnosis verification result.
Specifically, the above-described diagnostic information includes vehicle self-diagnostic information and power mode diagnostic information.
Alternatively, the power mode diagnosis information may include contents of a power supply condition, a power connection state, a power mode selection, a power management state, and the like. For example, the diagnostic information may indicate that the power supply is normal, the connection state is good, the currently selected power mode is the power saving mode, and the power management state is active. The information can help the user to know the working state of the power supply, discover problems in time and adjust or maintain.
As an alternative embodiment, the plurality of diagnostic information includes first diagnostic information and second diagnostic information, the plurality of target diagnostic information includes first target diagnostic information and second target diagnostic information, verifying the plurality of diagnostic information, and obtaining a diagnostic verification result includes: and determining whether the first diagnosis information is the first target diagnosis information to obtain a fourth verification result, and determining whether the second diagnosis information is the second target diagnosis information to obtain a fifth verification result.
In this embodiment, the plurality of diagnostic information includes first diagnostic information and second diagnostic information, the plurality of target diagnostic information includes first target diagnostic information and second target diagnostic information, and the protocol test system verifies the plurality of diagnostic information to obtain a diagnostic verification result, including the steps of: the protocol test system needs to determine whether the first diagnosis information is the first target diagnosis information to obtain a fourth verification result, and then determine whether the second diagnosis information is the second target diagnosis information to obtain a fifth verification result.
Specifically, the first diagnostic information is vehicle self-diagnostic information, the protocol test system configures the vehicle self-diagnostic information to be 0x8001 in advance, the protocol test system shall verify the real vehicle self-diagnostic information in the target vehicle by sending a message, that is, verify whether the real vehicle self-diagnostic information is 0x8001, and if the real diagnostic information in the target vehicle is 0x8001, the parameter test is normal.
Specifically, the second diagnostic information is vehicle power mode information, the protocol test system configures the vehicle power mode diagnostic information to be 0x4003 in advance, the protocol test system shall verify the real power mode diagnostic information in the target vehicle by sending a message, that is, verify whether the real power mode diagnostic information is 0x4003, and if the real diagnostic information in the target vehicle is 0x04003, the parameter test is normal.
As an optional implementation manner, the target vehicle includes time parameter information, executing the target test case and sending a target request message, and obtaining the target test result includes: the method comprises the steps of pre-configuring target time parameter information in a target vehicle, obtaining time parameter information, determining whether the time parameter information is the target time parameter information, and obtaining a time parameter verification result.
In this embodiment, the target vehicle further includes time parameter information, and the protocol test system executes the target test case and sends a target request packet, so as to obtain a target test result, which includes the following steps: the protocol test system can pre-configure target time parameter information in the target vehicle, acquire real time parameter information in the target vehicle, and then determine whether the real time parameter information is the target time parameter information or not to obtain a time parameter verification result.
In particular, the time parameter of the DOIP generally refers to a time limit or timeout setting required when performing remote diagnosis or programming to ensure stability and security of the communication process. These time parameters may include connection time-outs, response time-outs, data transmission time-outs, etc., which may be set and adjusted according to the specific application scenario and requirements.
Specifically, the protocol test system pre-configures time parameter information of the target vehicle, the protocol test system shall verify real time parameter information in the target vehicle by means of sending a message, that is, verify whether the real time parameter is consistent with the pre-configured time parameter information of the target vehicle, and if the real time parameter information is the pre-configured target time parameter information, the parameter test is normal.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus a necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a grid device, etc.) to perform the method of the various embodiments of the present invention.
The embodiment also provides a device for testing a communication protocol, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 2 is a block diagram of a communication protocol testing apparatus 200 according to one embodiment of the present invention, as shown in fig. 2, the apparatus includes: an acquisition module 201, a first generation module 202, an execution module 203 and a second generation module 204.
An acquisition module 201, configured to acquire a target test parameter;
a first generation module 202, configured to generate a target test case according to the target test parameter;
the execution module 203 is configured to execute the target test case and send a target request packet, so as to obtain a target test result;
and the second generating module 204 is configured to generate a target test report according to the target test result.
Optionally, the execution module 203 includes: a first configuration unit configured to pre-configure a plurality of target vehicle identifications in a target vehicle; a first acquisition unit configured to acquire a plurality of vehicle identifications; and the first verification unit is used for verifying the plurality of vehicle identifications to obtain an identification verification result.
Optionally, the first verification unit includes: the first determining subunit is used for determining whether the first identifier is a first target identifier or not to obtain a first verification result; the second determining subunit is used for determining whether the second identifier is a second target identifier or not to obtain a second verification result; and the third determining subunit is used for determining whether the third identifier is a third target identifier or not to obtain a third verification result.
Optionally, the execution module 203 includes: a second configuration unit configured to pre-configure target route activation information in a target vehicle; a second obtaining unit, configured to obtain route activation information; and the first determining unit is used for determining whether the route activation information is the target route activation information or not to obtain a route verification result.
Optionally, the execution module 203 includes: a third configuration unit configured to pre-configure a plurality of target diagnostic information in a target vehicle; a third acquisition unit configured to acquire a plurality of diagnostic information; and the second verification unit is used for verifying the plurality of diagnosis information to obtain diagnosis verification results.
Optionally, the third verification unit includes: a fourth determining subunit, configured to determine whether the first diagnostic information is first target diagnostic information, and obtain a fourth verification result; and a fifth determining subunit, configured to determine whether the second diagnostic information is second target diagnostic information, and obtain a fifth verification result.
Optionally, the execution module 203 includes: a fourth configuration unit configured to pre-configure target time parameter information in a target vehicle; a fourth acquisition unit configured to acquire time parameter information; and the second determining unit is used for determining whether the time parameter information is the target time parameter information or not to obtain a time parameter verification result.
An embodiment of the invention also provides a vehicle comprising a memory in which a computer program is stored and a processor arranged to run the computer program to perform the method of testing a communication protocol as described above.
Alternatively, in the present embodiment, the above-described vehicle may be configured to store a computer program for executing the steps of:
step S102, obtaining target test parameters;
step S104, generating a target test case according to the target test parameters;
step S106, executing the target test case and sending a target request message to obtain a target test result;
and S108, generating a target test report according to the target test result.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In some embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of units may be a logic function division, and there may be another division manner in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or partly in the form of a software product or all or part of the technical solution, which is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, a grid device, or the like) to perform all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A method of testing a communication protocol for application to a target vehicle, the method comprising:
obtaining target test parameters;
generating a target test case according to the target test parameters;
executing the target test case and sending a target request message to obtain a target test result;
and generating a target test report according to the target test result.
2. The method for testing a communication protocol according to claim 1, wherein the target vehicle includes a plurality of vehicle identifications, executing the target test case and sending the target request message, and obtaining the target test result includes:
pre-configuring a plurality of target vehicle identifications in the target vehicle;
acquiring the plurality of vehicle identifications;
and verifying the plurality of vehicle identifications to obtain an identification verification result.
3. The method for testing a communication protocol according to claim 2, wherein the plurality of vehicle identifications includes a first identification, a second identification, and a third identification, the plurality of target vehicle identifications includes a first target identification, a second target identification, and a third target identification, and verifying the plurality of vehicle identifications, the obtaining the identification verification result includes:
determining whether the first identifier is the first target identifier or not, and obtaining a first verification result;
determining whether the second identifier is the second target identifier or not to obtain a second verification result;
and determining whether the third identifier is the third target identifier, and obtaining a third verification result.
4. The method for testing a communication protocol according to claim 1, wherein the target vehicle includes routing activation information, executing the target test case and sending the target request message, and obtaining the target test result includes:
pre-configuring target route activation information in the target vehicle;
acquiring the route activation information;
and determining whether the route activation information is the target route activation information or not to obtain a route verification result.
5. The method for testing a communication protocol according to claim 1, wherein the target vehicle includes a plurality of diagnostic information, executing the target test case and transmitting the target request message, and obtaining the target test result includes:
pre-configuring a plurality of target diagnostic information in the target vehicle;
acquiring the plurality of diagnostic information;
and verifying the plurality of diagnosis information to obtain diagnosis verification results.
6. The method according to claim 5, wherein the plurality of diagnostic information includes first diagnostic information and second diagnostic information, the plurality of target diagnostic information includes first target diagnostic information and second target diagnostic information, and verifying the plurality of diagnostic information to obtain the diagnostic verification result includes:
determining whether the first diagnosis information is the first target diagnosis information or not, and obtaining a fourth verification result;
and determining whether the second diagnosis information is the second target diagnosis information, and obtaining a fifth verification result.
7. The method for testing a communication protocol according to claim 1, wherein the target vehicle includes time parameter information, executing the target test case and sending the target request message, and obtaining the target test result includes:
pre-configuring target time parameter information in the target vehicle;
acquiring the time parameter information;
and determining whether the time parameter information is the target time parameter information or not to obtain a time parameter verification result.
8. A test device for a communication protocol, for application to a target vehicle, the device comprising:
the acquisition module is used for acquiring target test parameters;
the first generation module is used for generating a target test case according to the target test parameters;
the execution module is used for executing the target test case and sending a target request message to obtain a target test result;
and the second generation module is used for generating a target test report according to the target test result.
9. A vehicle comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of testing a communication protocol as claimed in any of the preceding claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, wherein the computer program is arranged to perform the method of testing a communication protocol according to any of the preceding claims 1 to 7 when run on a computer or processor.
CN202311866960.1A 2023-12-29 2023-12-29 Communication protocol testing method and device, vehicle and storage medium Pending CN117880157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311866960.1A CN117880157A (en) 2023-12-29 2023-12-29 Communication protocol testing method and device, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311866960.1A CN117880157A (en) 2023-12-29 2023-12-29 Communication protocol testing method and device, vehicle and storage medium

Publications (1)

Publication Number Publication Date
CN117880157A true CN117880157A (en) 2024-04-12

Family

ID=90589517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311866960.1A Pending CN117880157A (en) 2023-12-29 2023-12-29 Communication protocol testing method and device, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN117880157A (en)

Similar Documents

Publication Publication Date Title
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
JP4416649B2 (en) Method and apparatus for telematic services for vehicles
CN112286171B (en) Remote diagnosis method, device, vehicle and storage medium
CN108769226A (en) The OAT upgrade methods and car-mounted terminal of vehicle
CN111381844A (en) Method and device for updating vehicle ECU firmware
CN104811979B (en) Method for testing pressure based on FOTA upgrading and device
CN106850241A (en) A kind of vehicle-mounted OBD terminals and its remote upgrade method
CN112764410B (en) Vehicle-mounted controller testing device, system and method
CN110602702A (en) Function detection method and system for T-BOX in whole vehicle
CN109491671A (en) Diagnostic software method for down loading, device, terminal device and storage medium
CN104735706A (en) Internet of Things terminal fault diagnosis method and device
CN108282365A (en) A kind of vehicle configuration method, device, terminal, car-mounted terminal and vehicle
CN113965904B (en) Device registration method, device and storage medium
CN117880157A (en) Communication protocol testing method and device, vehicle and storage medium
CN103491557B (en) The processing method and processing device of upgrading base station data
CN117261924A (en) Vehicle control method, device, equipment and storage medium
CN105207811B (en) Method and device for replacing non-AllJoyn equipment
CN113219937A (en) Fault analysis data processing method and device of vehicle-mounted terminal and vehicle-mounted terminal
CN112346441A (en) Automobile online diagnosis method and system and automobile diagnosis equipment
CN117632229A (en) Program refreshing method, device, vehicle and storage medium
CN118151622A (en) Vehicle controller diagnosis test method, storage medium and vehicle
CN116709253B (en) Vehicle-mounted gateway and vehicle
WO2023223825A1 (en) Vehicle-mounted device, information processing method, and information processing program
CN117939517A (en) Vehicle testing method, device, equipment and storage medium
CN117191414A (en) Vehicle testing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination