CN111049707B - Test method for verifying correctness of communication protocol content code of controller - Google Patents

Test method for verifying correctness of communication protocol content code of controller Download PDF

Info

Publication number
CN111049707B
CN111049707B CN201911353577.XA CN201911353577A CN111049707B CN 111049707 B CN111049707 B CN 111049707B CN 201911353577 A CN201911353577 A CN 201911353577A CN 111049707 B CN111049707 B CN 111049707B
Authority
CN
China
Prior art keywords
calibration
controller
variable
detected
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.)
Active
Application number
CN201911353577.XA
Other languages
Chinese (zh)
Other versions
CN111049707A (en
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.)
Suzhou Lvkon Transmission S&T Co Ltd
Original Assignee
Suzhou Lvkon Transmission S&T Co Ltd
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 Suzhou Lvkon Transmission S&T Co Ltd filed Critical Suzhou Lvkon Transmission S&T Co Ltd
Priority to CN201911353577.XA priority Critical patent/CN111049707B/en
Publication of CN111049707A publication Critical patent/CN111049707A/en
Application granted granted Critical
Publication of CN111049707B publication Critical patent/CN111049707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers

Abstract

The invention provides a test method for verifying correctness of a communication protocol content code of a controller, which is quick and convenient to build a frame, high in test coverage rate and good in universality, reduces the detection cost and has high test efficiency. The CAN bus calibration device is provided with a calibration platform, a test platform and a controller to be detected, wherein the calibration platform comprises calibration software and calibration equipment, the calibration software is provided with a first calibration observation interface, the calibration equipment is used for calibrating a CAN bus, and information exchange is carried out between the calibration software and the calibration equipment through internal communication; writing a received and sent processing code related to the communication protocol content into the controller to be detected; the test platform comprises an upper computer and a lower computer, the upper computer is provided with a second calibration observation interface, the lower computer is equipment for running a controlled object model in real time, the controlled object model corresponding to the lower computer is downloaded to the lower computer through the upper computer, and information interaction is carried out between the upper computer and the lower computer through internal communication.

Description

Test method for verifying correctness of communication protocol content code of controller
Technical Field
The invention relates to the technical field of controller detection, in particular to a test method for verifying correctness of a communication protocol content code of a controller.
Background
In the field of automobiles, a controller plays a role in information interaction, the controller performs information interaction according to the content of a communication protocol of each part, and whether the content of the information interaction of the controller is correct or not is determined by the accuracy of a communication protocol processing code in the controller; in the field of automobile control, the correctness of a communication protocol content code of a controller needs to be tested, in the prior art, the test is generally carried out through entity equipment, and whether the code transmission accuracy is required to be detected through the running state of an entity, so that the detection cost is high, and the detection efficiency is low.
Disclosure of Invention
Aiming at the problems, the invention provides a test method for verifying the correctness of the communication protocol content code of the controller, which is quick and convenient to build a frame, high in test coverage rate and good in universality, reduces the detection cost and has high test efficiency.
A test method for verifying correctness of a communication protocol content code of a controller is characterized in that: the CAN bus calibration device is provided with a calibration platform, a test platform and a controller to be detected, wherein the calibration platform comprises calibration software and calibration equipment, the calibration software is provided with a first calibration observation interface, the calibration equipment is used for calibrating a CAN bus, and information exchange is carried out between the calibration software and the calibration equipment through internal communication;
writing a received and sent processing code related to the communication protocol content into the controller to be detected;
the test platform comprises an upper computer and a lower computer, the upper computer is provided with a second calibration observation interface, the lower computer is equipment for running a controlled object model in real time, the controlled object model corresponding to the lower computer is downloaded into the lower computer through the upper computer, and information interaction is carried out between the upper computer and the lower computer through internal communication;
the controller to be detected, the calibration equipment and the lower computer are communicated with each other through external communication respectively to carry out information interaction;
setting a first calibration observation interface and a second calibration measurement interface to display the values of related variables in the communication protocol, and observing whether the changed values are correct or not in the other calibration interface after the code conversion processing of the controller is carried out when the values in one calibration observation interface are changed, thereby directly verifying the correctness of the content codes of the communication protocol of the controller.
It is further characterized in that: adjusting the connection normal working state of the calibration platform, the test platform and the controller to be detected, ensuring the respective internal communication of the test platform and the calibration platform to be normal, ensuring the external communication between the controller to be detected and the calibration equipment and the lower computer to be normal, and setting normal display variables and corresponding numerical value ranges in the first calibration observation interface and the second calibration observation interface;
when the correctness of the processing code of the variable sent by the controller to be detected is verified, the physical value of the relevant variable needs to be calibrated in the first calibration observation interface, after calibration, whether the bus value of the variable in the second calibration observation interface is consistent with the expected bus value or not is observed, the physical value of the variable is modified for many times according to the test cases, if the bus value of the variable in the second calibration observation interface is consistent with the expected bus value every time, the processing code of the sending mode of the variable in the controller to be detected is considered to be correct, otherwise, the defect is considered to exist;
when the correctness of the processing code of the variable received by the controller to be detected is verified, the bus value of the relevant variable needs to be modified in the second calibration observation interface, after modification, whether the physical value of the variable in the first calibration observation interface is consistent with the expected physical value is observed, the bus value of the variable is modified for many times according to the test cases, if the physical value of the variable in the first calibration observation interface is consistent with the expected physical value every time, the processing code of the variable receiving mode in the controller is considered to be correct, otherwise, the defect is considered to exist.
After the technical scheme is adopted, different coverage rates are tested on the communication protocol content codes in the software development stage, and the code defects are found in the early stage, so that the product maintenance cost is reduced; the testing and verification are carried out aiming at different communication protocols, the device has high universality, and the development cycle of products can be shortened; the frame is quickly and conveniently built, the test coverage rate is high, the universality is good, the detection cost is reduced, and the test efficiency is high.
Drawings
Fig. 1 is a schematic block diagram of the present invention.
Detailed Description
A test method for verifying correctness of content codes of a communication protocol of a controller, as shown in fig. 1: the CAN bus calibration device is provided with a calibration platform, a test platform and a controller to be detected, wherein the calibration platform comprises calibration software and calibration equipment, the calibration software is provided with a first calibration observation interface, the calibration equipment is used for calibrating a CAN bus, and information exchange is carried out between the calibration software and the calibration equipment through internal communication; writing a received and sent processing code related to the communication protocol content into the controller to be detected; the test platform comprises an upper computer and a lower computer, the upper computer is provided with a second calibration observation interface, the lower computer is equipment for running a controlled object model in real time, the controlled object model corresponding to the lower computer is downloaded into the lower computer through the upper computer, and information interaction is carried out between the upper computer and the lower computer through internal communication; the controller to be detected, the calibration equipment and the lower computer are communicated with each other through external communication respectively; setting a first calibration observation interface and a second calibration measurement interface to display the values of related variables in the communication protocol, and observing whether the changed values are correct or not in the other calibration interface after the code conversion processing of the controller is carried out when the values in one calibration observation interface are changed, thereby directly verifying the correctness of the content codes of the communication protocol of the controller.
Adjusting the connection of the calibration platform, the test platform and the controller to be detected to a normal working state, ensuring the respective internal communication of the test platform and the calibration platform to be normal, ensuring the external communication between the controller to be detected, the calibration equipment and the lower computer to be normal, and setting normal display variables and corresponding numerical value ranges in the first calibration observation interface and the second calibration observation interface;
when the correctness of the processing code of the variable sent by the controller to be detected is verified, the physical value of the relevant variable needs to be calibrated in the first calibration observation interface, after calibration, whether the bus value of the variable in the second calibration observation interface is consistent with the expected bus value or not is observed, the physical value of the variable is modified for many times according to the test cases, if the bus value of the variable in the second calibration observation interface is consistent with the expected bus value every time, the processing code of the sending mode of the variable in the controller to be detected is considered to be correct, otherwise, the defect is considered to exist;
when the correctness of the processing code of the variable received by the controller to be detected is verified, the bus value of the relevant variable needs to be modified in the second calibration observation interface, after modification, whether the physical value of the variable in the first calibration observation interface is consistent with the expected physical value is observed, the bus value of the variable is modified for many times according to the test cases, if the physical value of the variable in the first calibration observation interface is consistent with the expected physical value every time, the processing code of the variable receiving mode in the controller is considered to be correct, otherwise, the defect is considered to exist.
According to the test case, the physical values and the bus values of different variables are modified for multiple times, the correctness of codes compiled for the content of the communication protocol is verified on line, the codes of the content of the communication protocol are tested at different coverage rates in the software development stage, the defects of the codes are found in the early stage, and the product maintenance cost is reduced; the testing and verification are carried out aiming at different communication protocols, the device has high universality, and the development cycle of products can be shortened; the frame is quickly and conveniently built, the test coverage rate is high, the universality is good, the detection cost is reduced, and the test efficiency is high.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (4)

1. A test method for verifying correctness of a communication protocol content code of a controller is characterized in that: the CAN bus calibration device is provided with a calibration platform, a test platform and a controller to be detected, wherein the calibration platform comprises calibration software and calibration equipment, the calibration software is provided with a first calibration observation interface, the calibration equipment is used for calibrating a CAN bus, and information exchange is carried out between the calibration software and the calibration equipment through internal communication;
writing a received and sent processing code related to the communication protocol content into the controller to be detected;
the test platform comprises an upper computer and a lower computer, the upper computer is provided with a second calibration observation interface, the lower computer is equipment for running a controlled object model in real time, the controlled object model corresponding to the lower computer is downloaded into the lower computer through the upper computer, and information interaction is carried out between the upper computer and the lower computer through internal communication;
the controller to be detected, the calibration equipment and the lower computer are communicated with each other through external communication respectively;
setting a first calibration observation interface and a second calibration measurement interface to display the values of related variables in the communication protocol, and observing whether the changed values are correct or not in the other calibration interface after the code conversion processing of the controller is carried out when the values in one calibration observation interface are changed, thereby directly verifying the correctness of the content codes of the communication protocol of the controller.
2. The method as claimed in claim 1, wherein the test method for verifying correctness of the content code of the communication protocol of the controller comprises: and adjusting the connection normal working states of the calibration platform, the test platform and the controller to be detected, ensuring the respective internal communication of the test platform and the calibration platform to be normal, ensuring the external communication between the controller to be detected, the calibration equipment and the lower computer to be normal, and setting the normal display variables and the corresponding numerical value ranges in the first calibration observation interface and the second calibration observation interface.
3. The method as claimed in claim 2, wherein the test method for verifying correctness of the content code of the communication protocol of the controller comprises: when the correctness of the processing code of the variable sent by the controller to be detected is verified, the physical value of the relevant variable needs to be calibrated in the first calibration observation interface, after calibration, whether the bus value of the variable in the second calibration observation interface is consistent with the expected bus value or not is observed, the physical value of the variable is modified for many times according to the test cases, if the bus value of the variable in the second calibration observation interface is consistent with the expected bus value every time, the processing code of the sending mode of the variable in the controller to be detected is considered to be correct, and otherwise, the defect is considered to exist.
4. The method as claimed in claim 3, wherein the test method for verifying correctness of the content code of the communication protocol of the controller comprises: when the correctness of the processing code of the variable received by the controller to be detected is verified, the bus value of the relevant variable needs to be modified in the second calibration observation interface, after modification, whether the physical value of the variable in the first calibration observation interface is consistent with the expected physical value is observed, the bus value of the variable is modified for many times according to the test cases, if the physical value of the variable in the first calibration observation interface is consistent with the expected physical value every time, the processing code of the variable receiving mode in the controller is considered to be correct, otherwise, the defect is considered to exist.
CN201911353577.XA 2019-12-25 2019-12-25 Test method for verifying correctness of communication protocol content code of controller Active CN111049707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911353577.XA CN111049707B (en) 2019-12-25 2019-12-25 Test method for verifying correctness of communication protocol content code of controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911353577.XA CN111049707B (en) 2019-12-25 2019-12-25 Test method for verifying correctness of communication protocol content code of controller

Publications (2)

Publication Number Publication Date
CN111049707A CN111049707A (en) 2020-04-21
CN111049707B true CN111049707B (en) 2022-06-17

Family

ID=70239453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911353577.XA Active CN111049707B (en) 2019-12-25 2019-12-25 Test method for verifying correctness of communication protocol content code of controller

Country Status (1)

Country Link
CN (1) CN111049707B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609614A (en) * 2008-06-19 2009-12-23 广东电子工业研究院有限公司 A kind of emulation platform of semi-matter simulating system reaches the method for goal systems being carried out online accent ginseng

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8745278B2 (en) * 2010-10-13 2014-06-03 Rosemount Inc. Field device with self description

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609614A (en) * 2008-06-19 2009-12-23 广东电子工业研究院有限公司 A kind of emulation platform of semi-matter simulating system reaches the method for goal systems being carried out online accent ginseng

Also Published As

Publication number Publication date
CN111049707A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN107222362B (en) Automatic test platform for finished vehicle CAN network and optimization method thereof
US9082242B2 (en) Vehicle network health assessment
CN102904701B (en) For the system and method for the packet error rate in Determinate test electronic equipment
CN102169846B (en) Method for writing multi-dimensional variable password in parallel in process of testing integrated circuit wafer
CN111064628B (en) CAN bus automatic test system
CN106444712A (en) CAN/LIN network interference automation test system
CN104516798B (en) Wireless one-to-many test system
CN105404568A (en) CAN bus test system and test method
CN101916087A (en) Diagnostic testing system based on CANoe
CN104568459A (en) OBD intelligent device, test method and system thereof, and ECU simulator
CN103324557A (en) CAN bus testing system and method
CN107256014A (en) A kind of vehicle automated diagnostic tester system based on automatic editor's cycle tests
CN113835410A (en) Finished automobile testing method and system based on signal simulation device
CN102707710A (en) Diagnosis function verification method and system for automobile electronic control unit
CN111381150B (en) Chip automatic verification system and method thereof
CN112710871A (en) Test method and device for positioning speed measurement system host
CN111049707B (en) Test method for verifying correctness of communication protocol content code of controller
CN108319516B (en) Test system and test method
JP2015005189A (en) Ecu evaluation device, computer program, and ecu evaluation method
CN104330685A (en) Connection check-up method and connection check-up device
CN108627195A (en) A kind of intelligent detecting method and intelligent checking system that memory body module is detected
CN103165405A (en) Mutli-dimensional variable code real-time generation method through general purpose interface bus (GPIB) interface
CN106788923B (en) Method for testing anti-interference capability of communication
US20150330317A1 (en) Real-time vehicle data acquisition and analysis
CN109960238B (en) Automatic test system and method for vehicle diagnostic instrument

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
GR01 Patent grant
GR01 Patent grant