New energy automobile ECU main control CAN test working method
By adjusting the number of bits and calculating the test report data in the automotive CAN bus test, safe car report data are generated, and the problem of insufficient security of vulnerability analysis report data in the prior art is solved, and the secure transmission of data is achieved.
Patent Information
- Application Number
- CN202411192210.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-28
AI Technical Summary
The prior art failed to effectively protect vulnerability analysis reports in automotive CAN bus information security testing, resulting in insufficient data security.
By converting the test report data into binary form, generating the test code and then adding or decreasing the binary increase code of a specific digit, making it consistent with the number of digits of the test report data, and then performing the same calculation to generate a safe car report and send the data to the host computer.
It realizes security protection of test report data, prevents data theft, and enhances the security of data transmission.
Smart Images

Figure CN119065351A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of automobiles, and in particular to a new energy automobile ECU main control CAN test working method. Background Art
[0002] With the development of Internet technology, the integration of communication technology and control technology, traditional industrial control systems are gradually developing in the direction of networking. 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, they have also brought potential risks. Patent application number 2019113208091, named "A method for testing the information security of an automobile CAN bus", discloses the identification of automobile CAN bus pins; identification of automobile CAN bus baud rate; reading automobile CAN bus data; generating automobile CAN bus security test data, analyzing CAN bus data, and producing specific test data packets for each CAN bus data; sending CAN bus security data, observing the status of the car, and judging whether the car has security problems; analyzing the vulnerabilities obtained from the test, outputting a vulnerability analysis report, and giving repair suggestions. However, the 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 in particular innovatively proposes a new energy vehicle ECU main control CAN test working method.
[0004] In order to achieve the above-mentioned object of the present invention, the present invention provides a new energy vehicle ECU main control CAN test working method, comprising the following steps:
[0005] S1, obtain the test report data to be sent; execute 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; executing the next step;
[0007] S3, converting the test code in step S1 into a binary test code; executing step S5;
[0008] S4, converting the test code obtained in step S1 into v increase codes; adding v binary increase codes after the binary test code; and executing the next step;
[0009] S5, determine the size relationship between U and V:
[0010] If U>V, 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;
[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; perform 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 perform 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; perform 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 method of generating the added code;
[0028] Addstring2 indicates the second added code;
[0029] Addstring4=Addstringenerateway(Addstring3),
[0030] Wherein, Addstring4 represents the fourth added code generated according to the third added code;
[0031] Addstringenerateway() represents the method of generating the added code;
[0032] Addstring3 indicates the third added code;
[0033] ……;
[0034] Addstring q =Addstringenerateway(Addstring q-1 ),
[0035] Among them, Addstring q represents the qth increasing code generated according to the q-1th increasing code;
[0036] Addstringenerateway() indicates the method of generating the added code, which can use the sha256 digest algorithm;
[0037] Addstring q-1 Indicates the q-1th added code; q is a positive integer greater than 1.
[0038] In a preferred embodiment of the present invention, in step S4, the method of adding q binary increase codes after the binary test code is:
[0039]
[0040] Among them, Testing string Binary Represents a binary test code;
[0041] Addstring 1,Binary Indicates the first increase code in binary;
[0042] Addstring 2,Binary Indicates the second increase code of binary;
[0043] Addstring 3,BinaryIndicates the third increase code in binary;
[0044] Addstring 4,Binary Indicates the 4th increase code in binary;
[0045] Addstring q-1,Binary Represents the q-1th increase code in binary;
[0046] Addstring q,Binary represents the qth increase code in binary;
[0047] Represents a character connector;
[0048]
[0049] Represents the added q binary increase codes.
[0050] In a preferred embodiment of the present invention, the calculation method of v in step S4 is:
[0051]
[0052] Among them, v is the number of increases;
[0053] represents the floor function;
[0054] U represents the number of characters in the binary test report data;
[0055] V represents the number of character bits of the binary test code.
[0056] In a preferred embodiment of the present invention, the calculation method of u in step S5 is:
[0057] u=VU,
[0058] Among them, u represents the number of reductions;
[0059] U represents the number of characters in the binary test report data;
[0060] V represents the number of character bits of the binary test code.
[0061] In a preferred embodiment of the present invention, in step S6, the binary test data after step S5 is subjected to parity calculation with the binary test code to obtain the vehicle report data as follows:
[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 kth position from left to right in the car report data;
[0083] If means logical condition;
[0084] U k Indicates the value at the kth position from left to right in the binary test report data;
[0085] V k Indicates the value at the kth position from left to right in the binary test code;
[0086] or indicates logical condition or;
[0087] and represents the logical condition and;
[0088] K represents the total number of digits.
[0089] In summary, by adopting the above technical solution, the present invention can achieve security protection for the generated test report data and prevent data theft.
[0090] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through 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 apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0092] Figure 1 It is a schematic block diagram of the process of the present invention. DETAILED DESCRIPTION
[0093] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0094] The present invention discloses a new energy vehicle ECU main control CAN test working method, such as Figure 1 As shown, the following steps are included:
[0095] S1, obtain the test report data to be sent; execute the next step;
[0096] 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; executing 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 consistent through step S4;
[0104] 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; 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] Wherein, Addstring2 represents the second added code generated according to the first added code;
[0113] Addstringenerateway() represents the method of generating the added code;
[0114] Addstring1 indicates the first added code;
[0115] Addstring3=Addstringenerateway(Addstring2),
[0116] Wherein, Addstring3 represents the third added code generated according to the second added code;
[0117] Addstringenerateway() represents the method of generating the added code;
[0118] Addstring2 indicates the second added code;
[0119] Addstring4=Addstringenerateway(Addstring3),
[0120] Wherein, Addstring4 represents the fourth added code generated according to the third added code;
[0121] Addstringenerateway() represents the method of generating the added code;
[0122] Addstring3 indicates the third added code;
[0123] ……;
[0124] Addstring q =Addstringenerateway(Addstring q-1 ),
[0125] Among them, Addstring q represents the qth increasing code generated according to the q-1th increasing code;
[0126] Addstringenerateway() indicates the method of generating the added code, which can use the sha256 digest algorithm;
[0127] Addstring q-1 Indicates the q-1th added 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 increase codes after the binary test code is:
[0129]
[0130] Among them, Testing string Binary Represents a binary test code;
[0131] Addstring 1,Binary Indicates the first increase code in binary;
[0132] Addstring 2,Binary Indicates the second increase code of binary;
[0133] Addstring 3,Binary Indicates the third increase code in binary;
[0134] Addstring 4,Binary Indicates the 4th increase code in binary;
[0135] Addstring q-1,Binary Represents the q-1th increase code in binary;
[0136] Addstring q,Binary represents the qth increase code in binary;
[0137] Represents a character concatenation operator; that is, it connects the end of a string to the beginning of another string; for example, if Addstring 1,Binary =101101111110,Addstring 1,Binary =100001110110, then
[0138]
[0139]
[0140] Represents the added q binary increase codes.
[0141] In a preferred embodiment of the present invention, the calculation method of v in step S4 is:
[0142]
[0143] Among them, v is the number of increases;
[0144] represents the floor function;
[0145] U represents the number of characters in the binary test report data;
[0146] V represents the number of character bits of the binary test code.
[0147] In a preferred embodiment of the present invention, the calculation method of u in step S5 is:
[0148] u=VU,
[0149] Among them, u represents the number of reductions;
[0150] U represents the number of characters in the binary test report data;
[0151] V represents the number of character bits of the binary test code.
[0152] In a preferred embodiment of the present invention, in step S6, the binary test data after step S5 is subjected to parity calculation with the binary test code to obtain the vehicle report data as follows:
[0153] U1U2U3…U K ⊙V1V2V3…V K =U1′U2′U3′…U′ K ,
[0154] Wherein, U1 represents the value at the first position from left to right in the binary test report data;
[0155] U2 represents the value at the second position from left to right in the binary test report data;
[0156] U3 represents the value at the third position from left to right in the binary test report data;
[0157] U K Indicates the value at the Kth position from left to right in the binary test report data;
[0158] V1 represents the value of the first bit from left to right in the binary test code;
[0159] V2 represents the value of the second bit from left to right in the binary test code;
[0160] V3 represents the value of the third bit from left to right in the binary test code;
[0161] V K Indicates the value at the Kth position from left to right in the binary test code;
[0162] U1′ represents the value at the first position from left to right in the automobile report data;
[0163] U2′ represents the value at the second position from left to right in the automobile report data;
[0164] U3′ represents the value at the third position from left to right in the automobile report data;
[0165] U′ K Indicates the value at the Kth position from left to right in the car report data;
[0166] ⊙ represents the same position operator;
[0167] K represents the total number of digits;
[0168] U1U2U3…U K Represents binary test report data;
[0169] V1V2V3…V K Represents a binary test code; Testingstring can also be used Binary express;
[0170] U1′U2′U3′…U′ K Represents vehicle reporting data.
[0171] In a preferred embodiment of the present invention, U k The calculation method of ′ is:
[0172]
[0173] Among them, U k ′ represents the value at the kth position from left to right in the car report data;
[0174] If means logical condition;
[0175] U k Indicates the value at the kth position from left to right in the binary test report data;
[0176] V k Indicates the value at the kth position from left to right in the binary test code;
[0177] or indicates logical condition or;
[0178] and represents the logical condition and;
[0179] K represents the total number of digits.
[0180] In a preferred embodiment of the present invention, the method for generating a test code of test data according to binary test report data in step S2 is:
[0181] Testingstring=Testingstringenerateway(Testdata),
[0182] Among them, Testingstring represents the test code generated according to the acquired test report data;
[0183] Testing string generate way() represents the generation method of 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 test report data includes the following steps:
[0186] S71, obtain the test code and vehicle report data sent by the host computer; execute the next step;
[0187] S72, convert the vehicle report data obtained in step S1 into binary vehicle report data; execute 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; execute 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; execute 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 execute the next step;
[0194] S76, perform bit-by-bit 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 also 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 erroneous 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:
[0200] Cardatastring=Datastringenerateway(Cartestcode),
[0201] Among them, Cardatastring represents the car code calculated according to the binary test report data;
[0202] Datastringenerateway() represents the calculation method of the car code, which can use the sha256 digest algorithm;
[0203] Cartestcode represents binary test report data.
[0204] 7. The new energy vehicle ECU main control CAN test working method according to claim 6 is characterized in that the calculation method of q increase codes in step S74 is:
[0205] Addstring1=Addstringenerateway(Testingstring),
[0206] Wherein, Addstring1 represents the first added code generated according to the acquired test code;
[0207] Addstringenerateway() indicates the method of generating the added code, which can use the sha256 digest algorithm;
[0208] Testingstring represents the obtained test code;
[0209] Addstring2=Addstringenerateway(Addstring1),
[0210] Wherein, Addstring2 represents the second added code generated according to the first added code;
[0211] Addstringenerateway() represents the method of generating the added code;
[0212] Addstring1 indicates the first added code;
[0213] Addstring3=Addstringenerateway(Addstring2),
[0214] Wherein, Addstring3 represents the third added code generated according to the second added code;
[0215] Addstringenerateway() represents the method of generating the added code;
[0216] Addstring2 indicates the second added code;
[0217] Addstring4=Addstringenerateway(Addstring3),
[0218] Wherein, Addstring4 represents the fourth added code generated according to the third added code;
[0219] Addstringenerateway() represents the method of generating the added code;
[0220] Addstring3 indicates the third added code;
[0221] ……;
[0222] Addstring q =Addstringenerateway(Addstring q-1 ),
[0223] Among them, Addstring q represents the qth increasing code generated according to the q-1th increasing code;
[0224] Addstringenerateway() indicates the method of generating the added code, which can use the sha256 digest algorithm;
[0225] Addstring q-1 Indicates the q-1th added 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 increase codes after the binary test code is:
[0227]
[0228] Among them, Testing string Binary Represents a binary test code;
[0229] Addstring 1,Binary Indicates the first increase code in binary;
[0230] Addstring2,Binary Indicates the second increase code of binary;
[0231] Addstring 3,Binary Indicates the third increase code in binary;
[0232] Addstring 4,Binary Indicates the 4th increase code in binary;
[0233] Addstring q-1,Binary Represents the q-1th increase code in binary;
[0234] Addstring q,Binary represents the qth increase code in binary;
[0235] Represents a character connector.
[0236] In a preferred embodiment of the present invention, the calculation method of q in step S75 is:
[0237]
[0238] Among them, q is the number of increases;
[0239] represents the floor function;
[0240] P represents the number of characters in binary car report data;
[0241] Q represents the number of character bits of the binary test code.
[0242] In a preferred embodiment of the present invention, the calculation method of p in step S75 is:
[0243] p = QP,
[0244] Among them, p represents the number of reductions;
[0245] P represents the number of characters in binary car report data;
[0246] Q represents the number of character bits of the binary test code.
[0247] In a preferred embodiment of the present invention, in step S76, the binary vehicle report data after step S75 is subjected to parity calculation with the binary test code to obtain the binary test report data 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 jth position from left to right in the test report data;
[0269] If means logical condition;
[0270] P j Represents the value at the jth position from left to right in the binary car report data;
[0271] Q j Indicates the value at the jth position from left to right in the binary test code;
[0272] or indicates logical condition or;
[0273] and represents the logical condition and;
[0274] J represents the total number of digits.
[0275] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that 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; append v binary increment codes to 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 from the end of the binary test code; 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: In step S4, the calculation method for q increment codes is: Addstring1 = Addstringenerateway(Testingstring), where Addstring1 represents the first increment code generated based on the obtained test code; Addstringenerateway() represents the generation method of the increment code; Testingstring represents the obtained test code; Addstring2 = Addstringenerateway(Addstring1), where Addstring2 represents the second increment code generated based on the first increment code; Addstringenerateway() represents the generation method of the increment code; Addstring1 represents the first increment code; Addstring3 = Addstringenerateway(Addstring2), where Addstring3 represents the third increment code generated based on the second increment code; Addstringenerateway() represents the generation method of the increment code; Addstring2 represents the second increment code; Addstring4 = Addstringenerateway(Addstring3), where Addstring4 represents the fourth increment code generated based on the third increment code; Addstringenerateway() represents the generation method of the increment code; Addstring3 represents the third increment code; ……; Addstring q =Addstringenerateway(Addstring q-1 ), Among them, Addstring q represents the qth increasing code generated according to the q-1th increasing code; Addstringenerateway() represents the generation method of the increment code Addstring q-1 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 appending q binary increment codes to the binary test code is: Among them, Testing string Binary Represents a binary test code; Addstring 1,Binary Indicates the first increase code in binary; Addstring 2,Binary Indicates the second increase code of binary; Addstring 3,Binary Indicates the third increase code in binary; Addstring 4,Binary Indicates the 4th increase code in binary; Addstring q-1,Binary Represents the q-1th increase code in binary; Addstring q,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 S4, v is calculated as follows: Among them, v is the number of increases; represents the floor function; U represents the number of characters in the binary test report data; V represents the number of character bits of the binary test code.
5. The new energy vehicle ECU main control CAN test working method according to claim 1 is characterized in that: In step S5, u is calculated as follows: u=VU, Among them, u represents the number of reductions; U represents the number of characters in the binary test report data; V represents the number of character bits of the binary test code.
6. The new energy vehicle ECU main control CAN test working method according to claim 1 is characterized in that: In step S6, the binary test data after step S5 is subjected to parity calculation with the binary test code to obtain the vehicle report data as follows: U1U2U3…U K ⊙V1V2V3…V K =U1′U2′U3′…U′ K , Wherein, U1 represents the value at the first position from left to right in the binary test report data; U2 represents the value at the second position from left to right in the binary test report data; U3 represents the value at the third position from left to right in the binary test report data; U K Indicates the value at the Kth position from left to right in the binary test report data; V1 represents the value of the first bit from left to right in the binary test code; V2 represents the value of the second bit from left to right in the binary test code; V3 represents the value of the third bit from left to right in the binary test code; V K Indicates the value at the Kth position from left to right in the binary test code; U1′ represents the value at the first position from left to right in the automobile report data; U2′ represents the value at the second position from left to right in the automobile report data; U3′ represents the value at the third position from left to right in the automobile report data; U′ K Indicates the value at the Kth position from left to right in the car report data; ⊙ represents the same position operator; K represents the total number of digits; U1U2U3…U K Represents binary test report data; V1V2V3…V K represents a binary test code; U1′U2′U3′…U′ K Represents vehicle reporting data.
7. The new energy vehicle ECU main control CAN test working method according to claim 1 is characterized in that: U k The calculation method of ′ is: Among them, U k ′ represents the value at the kth position from left to right in the car report data; If means logical condition; U k Indicates the value at the kth position from left to right in the binary test report data; V k Indicates the value at the kth position from left to right in the binary test code; or indicates logical condition or; and represents the logical condition and; K represents the total number of digits.
Citation Information
Patent Citations
SOC chip function test system and method
CN105446843A
White-box testing method and system
CN107038110A
A software testing method and device
CN109426611A
Binary optimization battery anomaly detection method based on panoramic theoretical analysis
CN113533967A
Block chain application traffic identification method and system based on extended hash and KNN
CN114710451A
