A Working Method for Testing the Main Control CAN of a New Energy Vehicle ECU

By converting the automotive CAN bus test report data into binary form and adding specific codes, the problem of insufficient security of vulnerability analysis reports in the prior art is solved, and data security protection and integrity guarantee are achieved.

CN119065351BActive Publication Date: 2025-06-20SUZHOU AOYIKESI AUTOMOBILE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411192210.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2025-06-20
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

The prior art fails to effectively protect the security of vulnerability analysis reports in automotive CAN bus information security testing, resulting in potential data theft risks.

Method used

The security protection of test report data is achieved by converting the test report data into binary form and adding a specific number of binary addition codes thereafter. The specific steps include obtaining test report data, converting it into binary form, generating test codes, and ensuring the integrity and security of the data through aligned calculations.

Benefits of technology

Effectively protect the generated test report data, prevent data theft, and ensure the security and integrity of the test report.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065351B_ABST
    Figure CN119065351B_ABST
Patent Text Reader

Abstract

The present invention provides a working method for testing the main control CAN of an ECU in a new energy vehicle, including the following steps: S1, obtaining test report data to be sent; S2, converting the test report data obtained in step S1 into binary test report data and a test code; and proceeding to the next step; S3, converting the test code in step S1 into a binary test code; and performing step S5; S4, converting the test code obtained in step S1 into v additional codes; adding v binary additional codes after the binary test code; and proceeding to the next step; S5, judging the size relationship between U and V; S6, performing a bitwise calculation on the binary test report data after step S5 and the binary test code to obtain vehicle report data; and proceeding to the next step; S7, sending the test code and the vehicle report data to the host computer. The present invention can achieve security protection for the generated test report data and prevent data theft.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobiles, and particularly to a working method for testing the main control CAN of a new energy vehicle ECU. Background Art

[0002] With the development of Internet technology and the integration of communication technology and control technology, traditional industrial control systems are gradually developing towards the network direction. More information resource sharing, more efficient data processing technology, and faster data transmission technology have brought rapid development to the traditional industrial control field, but at the same time, potential risks have also been brought. Patent Application No. 2019113208091, with the name of "A Method for Testing the Information Security of an Automotive CAN Bus", discloses identifying the pins of an automotive CAN bus; identifying the baud rate of an automotive CAN bus; reading the data of an automotive CAN bus; generating security test data for the automotive CAN bus, analyzing the CAN bus data, generating specific test data packets for the CAN bus data of each path; sending CAN bus security data, observing the vehicle status, and determining whether there are security problems with the vehicle; analyzing the vulnerabilities obtained from the test, outputting a vulnerability analysis report, and giving repair suggestions. However, this invention does not provide security protection for the vulnerability analysis report. Summary of the Invention

[0003] The present invention aims to at least solve the technical problems existing in the prior art, and particularly innovatively proposes a working method for testing the main control CAN of a new energy vehicle ECU.

[0004] To achieve the above object of the present invention, the present invention provides a working method for testing the main control CAN of a new energy vehicle ECU, including the following steps:

[0005] S1, obtaining the test report data to be sent; performing the next step;

[0006] S2, converting the test report data obtained in step S1 into binary test report data, and generating a test code for the test report data according to the binary test report data; performing the next step;

[0007] S3, converting the test code in step S1 into a binary test code; performing step S5;

[0008] S4, converting the test code obtained in step S1 into v increment codes; adding v binary increment codes after the binary test code; performing the next step;

[0009] S5, judging the size relationship between U and V:

[0010] If U > V, where U is the number of character bits of the binary test report data and V is the number of character bits of the binary test code, then perform step S4;

[0011] If U < V, where U is the number of character bits of the binary test report data and V is the number of character bits of the binary test code, then reduce u bits at the end of the binary test code; proceed to the next step;

[0012] If U = V, where U is the number of character bits of the binary test report data and V is the number of character bits of the binary test code, then proceed to the next step;

[0013] Make the number of character bits of U and V the same through step S4;

[0014] S6, perform bit-by-bit calculation on the binary test report data after step S5 and the binary test code to obtain the vehicle report data; proceed to the next step;

[0015] S7, send the test code and the vehicle report data to the host computer.

[0016] In a preferred embodiment of the present invention, the calculation method of q additional codes in step S4 is as follows:

[0017] Addstring1 = Addstringenerateway(Testingstring),

[0018] where Addstring1 represents the first additional code generated according to the obtained test code;

[0019] Addstringenerateway() represents the generation method of the additional code, and the sha256 digest algorithm can be used;

[0020] Testingstring represents the obtained test code;

[0021] Addstring2 = Addstringenerateway(Addstring1),

[0022] where Addstring2 represents the second additional code generated according to the first additional code;

[0023] Addstringenerateway() represents the generation method of the additional code;

[0024] Addstring1 represents the first additional code;

[0025] Addstring3 = Addstringenerateway(Addstring2),

[0026] where Addstring3 represents the third additional code generated according to the second additional code;

[0027] Addstringenerateway() represents the generation method of the additional code;

[0028] Addstring2 represents the second additional code;

[0029] Addstring4 = Addstringenerateway(Addstring3),

[0030] wherein, Addstring4 represents the fourth additional code generated based on the third additional code;

[0031] Addstringenerateway() represents the generation method of the additional code;

[0032] Addstring3 represents the third additional code;

[0033] ……;

[0034] Addstring q = Addstringenerateway(Addstring q-1 )

[0035] wherein, Addstring q represents the qth additional code generated based on the (q - 1)th additional code;

[0036] Addstringenerateway() represents the generation method of the additional code, and the sha256 digest algorithm can be adopted;

[0037] Addstring q-1 represents the (q - 1)th additional code; q is a positive integer greater than 1.

[0038] In a preferred embodiment of the present invention, in step S4, the method for adding q binary additional codes after the binary test code is as follows:

[0039]

[0040] wherein, Testingstring Binary represents the binary test code;

[0041] Addstring 1,Binary represents the first binary additional code;

[0042] Addstring 2,Binary represents the second binary additional code;

[0043] Addstring 3,BinaryRepresents the 3rd increment code in binary;

[0044] Addstring 4,Binary Represents the 4th increment code in binary;

[0045] Addstring q-1,Binary Represents the (q - 1)th increment code in binary;

[0046] Addstring q,Binary Represents the qth increment code in binary;

[0047] Represents the character concatenation symbol;

[0048]

[0049] Represents the q added binary increment codes.

[0050] In a preferred embodiment of the present invention, in step S4, the calculation method of v is:

[0051]

[0052] where v is the number of increments;

[0053] Represents the floor function;

[0054] U represents the number of characters of the binary test report data;

[0055] V represents the number of characters of the binary test code.

[0056] In a preferred embodiment of the present invention, in step S5, the calculation method of u is:

[0057] u = V - U,

[0058] where u represents the number of decreases;

[0059] U represents the number of characters of the binary test report data;

[0060] V represents the number of characters of the binary test code.

[0061] In a preferred embodiment of the present invention, in step S6, the method of obtaining the vehicle report data by performing bit - by - bit calculation on the binary test data after step S5 and the binary test code is:

[0062] U1U2U3…U K ⊙V1V2V3…V K =U1′U2′U3′…U′ K ,

[0063] Wherein, U1 represents the value at the first position from left to right in the binary test report data;

[0064] U2 represents the value at the second position from left to right in the binary test report data;

[0065] U3 represents the value at the third position from left to right in the binary test report data;

[0066] U K Indicates the value at the Kth position from left to right in the binary test report data;

[0067] V1 represents the value of the first bit from left to right in the binary test code;

[0068] V2 represents the value of the second bit from left to right in the binary test code;

[0069] V3 represents the value of the third bit from left to right in the binary test code;

[0070] V K Indicates the value at the Kth position from left to right in the binary test code;

[0071] U1′ represents the value at the first position from left to right in the automobile report data;

[0072] U2′ represents the value at the second position from left to right in the automobile report data;

[0073] U3′ represents the value at the third position from left to right in the automobile report data;

[0074] U′ K Indicates the value at the Kth position from left to right in the car report data;

[0075] ⊙ represents the same position operator;

[0076] K represents the total number of digits;

[0077] U1U2U3…U K Represents binary test report data;

[0078] V1V2V3…V K represents a binary test code;

[0079] U1′U2′U3′…U′ K Represents vehicle reporting data.

[0080] In a preferred embodiment of the present invention, U k The calculation method of ′ is:

[0081]

[0082] Among them, U k ′ represents the value at the k-th position from left to right in the vehicle report data;

[0083] if represents the logical condition if;

[0084] U k represents the value at the k-th position from left to right in the binary test report data;

[0085] V k represents the value at the k-th position from left to right in the binary test code;

[0086] or represents the logical condition or;

[0087] and represents the logical condition and;

[0088] K represents the total number of bits.

[0089] In summary, due to the adoption of the above technical solution, the present invention can achieve secure protection of the generated test report data and prevent data theft.

[0090] The additional aspects and advantages of the present invention will be partly given in the following description, partly become obvious from the following description, or be understood through the practice of the present invention. Brief Description of the Drawings

[0091] The above and / or additional aspects and advantages of the present invention will become obvious and easy to understand from the description of the embodiments in conjunction with the following drawings, wherein:

[0092] Figure 1 is a schematic flowchart of the process of the present invention. Detailed Embodiments

[0093] The embodiments of the present invention will be described in detail below. The examples of the embodiments are shown in the drawings, wherein the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and are only used to explain the present invention and should not be construed as a limitation of the present invention.

[0094] The present invention discloses a working method for the main control CAN test of a new energy vehicle ECU, as Figure 1 shown, including the following steps:

[0095] S1, obtain the test report data to be sent; execute the next step;

[0096] S2, convert the test report data obtained in step S1 into binary test report data, and generate a test code for the test report data according to the binary test report data; execute the next step;

[0097] S3. Convert the test code in step S1 into a binary test code; execute step S5;

[0098] S4. Convert the test code obtained in step S1 into v increment codes; add v binary increment codes after the binary test code; execute the next step;

[0099] S5. Judge the size relationship between U and V:

[0100] If U > V, where U is the number of characters of the binary test report data and V is the number of characters of the binary test code, then execute step S4;

[0101] If U < V, where U is the number of characters of the binary test report data and V is the number of characters of the binary test code, then reduce u bits after the binary test code; execute the next step;

[0102] If U = V, where U is the number of characters of the binary test report data and V is the number of characters of the binary test code, then execute the next step;

[0103] Make the number of characters of U and V the same through step S4;

[0104] S6. Perform a bit-by-bit calculation on the binary test report data after step S5 and the binary test code to obtain the vehicle report data; execute the next step;

[0105] S7. Send the test code and the vehicle report data to the host computer. The test code can also be saved separately by the administrator.

[0106] In a preferred embodiment of the present invention, the calculation method of q increment codes in step S4 is as follows:

[0107] Addstring1 = Addstringenerateway(Testingstring),

[0108] where Addstring1 represents the first increment code generated according to the obtained test code;

[0109] Addstringenerateway() represents the generation method of the increment code, and the sha256 digest algorithm can be used;

[0110] Testingstring represents the obtained test code;

[0111] Addstring2 = Addstringenerateway(Addstring1),

[0112] Among them, Addstring2 represents the second additional code generated according to the first additional code;

[0113] Addstringenerateway() represents the generation method of the additional code;

[0114] Addstring1 represents the first additional code;

[0115] Addstring3 = Addstringenerateway(Addstring2),

[0116] Among them, Addstring3 represents the third additional code generated according to the second additional code;

[0117] Addstringenerateway() represents the generation method of the additional code;

[0118] Addstring2 represents the second additional code;

[0119] Addstring4 = Addstringenerateway(Addstring3),

[0120] Among them, Addstring4 represents the fourth additional code generated according to the third additional code;

[0121] Addstringenerateway() represents the generation method of the additional code;

[0122] Addstring3 represents the third additional code;

[0123] ……;

[0124] Addstring q = Addstringenerateway(Addstring q-1 ),

[0125] Among them, Addstring q represents the qth additional code generated according to the (q - 1)th additional code;

[0126] Addstringenerateway() represents the generation method of the additional code, and the sha256 digest algorithm can be adopted;

[0127] Addstring q-1 represents the (q - 1)th additional code; q is a positive integer greater than 1.

[0128] In a preferred embodiment of the present invention, in step S4, the method of adding q binary additional codes after the binary test code is as follows:

[0129]

[0130] Among them, Testingstring Binary represents a binary test code;

[0131] Addstring 1,Binary represents the first increment code in binary;

[0132] Addstring 2,Binary represents the second increment code in binary;

[0133] Addstring 3,Binary represents the third increment code in binary;

[0134] Addstring 4,Binary represents the fourth increment code in binary;

[0135] Addstring q-1,Binary represents the (q - 1)th increment code in binary;

[0136] Addstring q,Binary represents the qth increment code in binary;

[0137] represents a character concatenation symbol; that is, it connects the end of one string to the start of another string; for example, if Addstring 1,Binary = 101101111110, Addstring 1,Binary = 100001110110, then

[0138]

[0139]

[0140] represents q added binary increment codes.

[0141] In a preferred embodiment of the present invention, in step S4, the calculation method of v is:

[0142]

[0143] where v is the number of increments;

[0144] represents the floor function;

[0145] U represents the number of characters of the binary test report data;

[0146] V represents the number of characters of the binary test code.

[0147] In a preferred embodiment of the present invention, in step S5, the calculation method of u is as follows:

[0148] u = V - U,

[0149] where u represents the reduced number;

[0150] U represents the number of characters of the binary test report data;

[0151] V represents the number of characters of the binary test code.

[0152] In a preferred embodiment of the present invention, in step S6, the method of obtaining the vehicle report data by performing bit - by - bit calculation on the binary test data after step S5 and the binary test code is as follows:

[0153] U1U2U3…U K ⊙V1V2V3…V K =U1′U2′U3′…U′ K ,

[0154] where U1 represents the value at the 1st position from left to right in the binary test report data;

[0155] U2 represents the value at the 2nd position from left to right in the binary test report data;

[0156] U3 represents the value at the 3rd position from left to right in the binary test report data;

[0157] U K represents the value at the Kth position from left to right in the binary test report data;

[0158] V1 represents the value at the 1st position from left to right in the binary test code;

[0159] V2 represents the value at the 2nd position from left to right in the binary test code;

[0160] V3 represents the value at the 3rd position from left to right in the binary test code;

[0161] V K represents the value at the Kth position from left to right in the binary test code;

[0162] U1′ represents the value at the 1st position from left to right in the vehicle report data;

[0163] U2′ represents the value at the 2nd position from left to right in the vehicle report data;

[0164] U3′ represents the value at the 3rd position from left to right in the vehicle report data;

[0165] U′ K represents the value at the Kth position from left to right in the vehicle report data;

[0166] ⊙ represents the bitwise operator;

[0167] K represents the total number of bits;

[0168] U1U2U3…U K represents the binary test report data;

[0169] V1V2V3…V K represents the binary test code; it can also be represented by Testingstring Binary represents;

[0170] U1′U2′U3′…U′ K represents the vehicle report data.

[0171] In a preferred embodiment of the present invention, the calculation method of U k ′ is as follows:

[0172]

[0173] wherein, U k ′ represents the value at the kth position from left to right in the vehicle report data;

[0174] if represents the logical condition if;

[0175] U k represents the value at the kth position from left to right in the binary test report data;

[0176] V k represents the value at the kth position from left to right in the binary test code;

[0177] or represents the logical condition or;

[0178] and represents the logical condition and;

[0179] K represents the total number of bits.

[0180] In a preferred embodiment of the present invention, the method for generating the test code of the test data according to the binary test report data in step S2 is:

[0181] Testingstring = Testingstringenerateway(Testdata),

[0182] wherein, Testingstring represents the test code generated according to the obtained test report data;

[0183] Testing string generate way() represents the method for generating test codes, and the sha256 digest algorithm can be adopted;

[0184] Test data represents the test report data.

[0185] In a preferred embodiment of the present invention, the method for a host computer or other devices to view the test report data includes the following steps:

[0186] S71, Obtain the test code and vehicle report data sent by the host computer; Proceed to the next step;

[0187] S72, Convert the vehicle report data obtained in step S1 into binary vehicle report data; Proceed to the next step;

[0188] S73, Convert the test code obtained in step S1 into binary test code; Execute step S75;

[0189] S74, Convert the test code obtained in step S1 into q additional codes; Add q binary additional codes after the binary test code; Proceed to the next step;

[0190] S75, Judge the size relationship between P and Q:

[0191] If P > Q, where P is the number of characters of the binary vehicle report data and Q is the number of characters of the binary test code, then execute step S4;

[0192] If P < Q, where P is the number of characters of the binary vehicle report data and Q is the number of characters of the binary test code, then reduce p bits after the binary test code; Proceed to the next step;

[0193] If P = Q, where P is the number of characters of the binary vehicle report data and Q is the number of characters of the binary test code, then proceed to the next step;

[0194] S76, Perform bitwise calculation on the binary vehicle report data after step S75 and the binary test code to obtain binary test report data;

[0195] S77, Convert the binary test report data into test report data.

[0196] In a preferred embodiment of the present invention, in step S76, it further includes calculating the vehicle code corresponding to the binary test report data and judging whether the binary vehicle code is consistent with the binary test code:

[0197] If the binary vehicle code is consistent with the binary test code, then the test report data is correct test report data;

[0198] If the binary vehicle code is inconsistent with the binary test code, the test report data is incorrect test report data.

[0199] In a preferred embodiment of the present invention, the method for calculating the vehicle code corresponding to the binary test report data is as follows:

[0200] Cardatastring = Datastringenerateway(Cartestcode),

[0201] where Cardatastring represents the vehicle code calculated based on the binary test report data;

[0202] Datastringenerateway() represents the method for calculating the vehicle code, and the sha256 digest algorithm can be used;

[0203] Cartestcode represents the binary test report data.

[0204] In step S74, the method for calculating the q additional codes is as follows:

[0205] Addstring1 = Addstringenerateway(Testingstring),

[0206] where Addstring1 represents the first additional code generated based on the obtained test code;

[0207] Addstringenerateway() represents the method for generating the additional code, and the sha256 digest algorithm can be used;

[0208] Testingstring represents the obtained test code;

[0209] Addstring2 = Addstringenerateway(Addstring1),

[0210] where Addstring2 represents the second additional code generated based on the first additional code;

[0211] Addstringenerateway() represents the method for generating the additional code;

[0212] Addstring1 represents the first additional code;

[0213] Addstring3 = Addstringenerateway(Addstring2),

[0214] Among them, Addstring3 represents the third additional code generated according to the second additional code;

[0215] Addstringenerateway() represents the generation method of the additional code;

[0216] Addstring2 represents the second additional code;

[0217] Addstring4 = Addstringenerateway(Addstring3),

[0218] Among them, Addstring4 represents the fourth additional code generated according to the third additional code;

[0219] Addstringenerateway() represents the generation method of the additional code;

[0220] Addstring3 represents the third additional code;

[0221] ……;

[0222] Addstring q = Addstringenerateway(Addstring q-1 ),

[0223] Among them, Addstring q represents the qth additional code generated according to the (q - 1)th additional code;

[0224] Addstringenerateway() represents the generation method of the additional code, and the sha256 digest algorithm can be adopted;

[0225] Addstring q-1 represents the (q - 1)th additional code; q is a positive integer greater than 1.

[0226] In a preferred embodiment of the present invention, in step S74, the method of adding q binary additional codes after the binary test code is as follows:

[0227]

[0228] Among them, Testingstring Binary represents the binary test code;

[0229] Addstring 1,Binary represents the first binary additional code;

[0230] Addstring 2,Binary represents the second binary additional code;

[0231] Addstring 3,Binary Represents the 3rd increment code in binary;

[0232] Addstring 4,Binary Represents the 4th increment code in binary;

[0233] Addstring q-1,Binary Represents the (q - 1)th increment code in binary;

[0234] Addstring q,Binary Represents the qth increment code in binary;

[0235] Represents a character concatenation symbol.

[0236] In a preferred embodiment of the present invention, in step S75, the calculation method of q is as follows:

[0237]

[0238] Where q is the number of increments;

[0239] Represents the floor function;

[0240] P represents the number of characters of the binary vehicle report data;

[0241] Q represents the number of characters of the binary test code.

[0242] In a preferred embodiment of the present invention, in step S75, the calculation method of p is as follows:

[0243] p = Q - P,

[0244] Where p represents the number of decrements;

[0245] P represents the number of characters of the binary vehicle report data;

[0246] Q represents the number of characters of the binary test code.

[0247] In a preferred embodiment of the present invention, in step S76, the method of performing a bit - by - bit calculation on the binary vehicle report data after step S75 and the binary test code to obtain the binary test report data is as follows:

[0248] P1P2P3…P J ⊙Q1Q2Q3…Q J =P1′P2′P3′…P J ′,

[0249] Wherein, P1 represents the value at the first position from left to right in the binary automobile report data;

[0250] P2 represents the value at the second position from left to right in the binary automobile report data;

[0251] P3 represents the value at the third position from left to right in the binary automobile report data;

[0252] P J Indicates the value at the Jth position from left to right in the binary car report data;

[0253] Q1 represents the value of the first bit from left to right in the binary test code;

[0254] Q2 represents the value of the second bit from left to right in the binary test code;

[0255] Q3 represents the value at the third position from left to right in the binary test code;

[0256] Q J Indicates the value at the Jth position from left to right in the binary test code;

[0257] P1′ represents the value at the first position from left to right in the automobile test report data;

[0258] P2′ represents the second value from left to right in the automobile test report data;

[0259] P3′ represents the third value from left to right in the automobile test report data;

[0260] P J ' represents the value at the Jth position from left to right in the automobile test report data;

[0261] ⊙ represents the same position operator;

[0262] J represents the total number of digits;

[0263] P1P2P3…P J Represents binary car report data;

[0264] Q1Q2Q3…Q J represents a binary test code;

[0265] P1′P2′P3′…P J ' indicates test report data.

[0266] In a preferred embodiment of the present invention, P j The calculation method of ′ is:

[0267]

[0268] Among them, P j ′ represents the value at the j-th position from left to right in the test report data;

[0269] if represents the logical condition if;

[0270] P j represents the value at the j-th position from left to right in the binary vehicle report data;

[0271] Q j represents the value at the j-th position from left to right in the binary test code;

[0272] or represents the logical condition or;

[0273] and represents the logical condition and;

[0274] J represents the total number of bits.

[0275] Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirit of the present invention. The scope of the present invention is defined by the claims and their equivalents.

Claims

1. A new energy vehicle ECU main control CAN test working method, characterized in that: It includes the following steps: S1. Obtain the test report data to be sent; proceed to the next step; S2. Convert the test report data obtained in step S1 into binary test report data, and generate a test code for the test report data based on the binary test report data; proceed to the next step; S3. Convert the test code in step S1 into a binary test code; execute step S5; S4. Convert the test code obtained in step S1 into v increment codes; the calculation method of v is: , where v is the number of increments; represents the floor function; U represents the number of character bits of the binary test report data; V represents the number of character bits of the binary test code; Add v binary increment codes after the binary test code; proceed to the next step; S5. Judge the size relationship between U and V: If U > V, where U is the number of character bits of the binary test report data and V is the number of character bits of the binary test code, then execute step S4; If U < V, where U is the number of character bits of the binary test report data and V is the number of character bits of the binary test code, then reduce u bits after the binary test code; u = V - U, where u represents the number of bits reduced; U represents the number of character bits of the binary test report data; V represents the number of character bits of the binary test code, and proceed to the next step; If U = V, where U is the number of character bits of the binary test report data and V is the number of character bits of the binary test code, then proceed to the next step; S6. Perform a bit-by-bit calculation on the binary test report data and the binary test code after step S5 to obtain the vehicle report data; proceed to the next step; S7. Send the test code and the vehicle report data to the host computer.

2. The new energy vehicle ECU main control CAN test working method according to claim 1 is characterized in that: The calculation method of q increment codes in step S4 is: =Addstringenerateway(Testingstring), in, Indicates the first added code generated according to the acquired test code; Addstringenerateway( ) represents the generation method of increment codes; Testingstring represents the obtained test code; =Addstringenerateway( ), in, represents the second increase code generated according to the first increase code; Addstringenerateway( ) represents the generation method of increment codes; Indicates the first increase code; =Addstringenerateway( ), in, represents the third increase code generated according to the second increase code; Addstringenerateway( ) represents the generation method of increment codes; Indicates the second increase code; =Addstringenerateway( ), in, represents the fourth increase code generated according to the third increase code; Addstringenerateway( ) represents the generation method of increment codes; Indicates the third increase code; ……; =Addstringenerateway( ), in, represents the qth increasing code generated according to the q-1th increasing code; Addstringenerateway( ) represents the generation method of increment codes Indicates the q-1th added code; q is a positive integer greater than 1.

3. The new energy vehicle ECU main control CAN test working method according to claim 1 is characterized in that: In step S4, the method of adding q binary increment codes after the binary test code is: , in, Represents a binary test code; Indicates the first increase code in binary; Indicates the second increase code of binary; Indicates the third increase code in binary; Indicates the 4th increase code in binary; Represents the q-1th increase code in binary; represents the qth increase code in binary; Represents a character connector; Represents the added q binary increase codes.

4. The new energy vehicle ECU main control CAN test working method according to claim 1 is characterized in that: In step S6, the method of performing a bit-by-bit calculation on the binary test data and the binary test code after step S5 to obtain the vehicle report data is: , in, Indicates the value at the first position from left to right in the binary test report data; Indicates the value at the second position from left to right in the binary test report data; Indicates the value at the third position from left to right in the binary test report data; Indicates the value at the Kth position from left to right in the binary test report data; Indicates the value of the first bit from left to right in the binary test code; Indicates the value of the second bit from left to right in the binary test code; Indicates the value of the third bit from left to right in the binary test code; Indicates the value at the Kth position from left to right in the binary test code; Indicates the value at the first position from left to right in the car report data; Indicates the second value from left to right in the vehicle report data; Indicates the third value from left to right in the vehicle report data; Indicates the value at the Kth position from left to right in the car report data; Represents the bitwise equality operator; K represents the total number of bits; Represents binary test report data; represents a binary test code; Represents vehicle reporting data.

5. The new energy vehicle ECU main control CAN test working method according to claim 1 is characterized in that: The calculation method is: ,k=1、2、3、……、K, in, Indicates the value at the kth position from left to right in the car report data; if represents the logical condition if; Indicates the value at the kth position from left to right in the binary test report data; Indicates the value at the kth position from left to right in the binary test code; or represents the logical condition or; and represents the logical condition and; K represents the total number of bits.

Citation Information

Patent Citations

  • White-box testing method and system

    CN107038110A