Test method and device of automobile software upgrade package, electronic equipment and storage medium

By automatically determining and executing the tampering location in the test interface, the problem of low testing efficiency in the existing technology is solved, and efficient software upgrade package testing is achieved to meet regulatory and standard requirements.

CN120803508APending Publication Date: 2025-10-17CATARC AUTOMOTIVE TEST CENT TIANJIN CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510952215.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-10
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

The testing efficiency of automobile software upgrade packages in existing technologies is low and cannot meet the testing requirements of EU R156 regulations and domestic standards.

Method used

By displaying the test interface and using the tampering location input box, upgrade package upload control and generation control, the tampering location is automatically determined and the original upgrade package is tampered with. The storage path of the tampered upgrade package is generated and displayed to achieve automated testing.

Benefits of technology

This improved testing efficiency, met the testing requirements of EU R156 regulations and domestic standards, and ensured the authenticity and integrity of the software upgrade package.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803508A_ABST
    Figure CN120803508A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a test method and device of an automobile software upgrade package, electronic equipment and a computer readable storage medium, and relates to the technical field of software. The method comprises the following steps: displaying a test interface; in response to an input operation for the tampering position input box, displaying a corresponding tampering position; in response to a trigger operation for the upgrade package uploading control, obtaining a to-be-tested original upgrade package from the first storage path, and displaying upload success prompt information; and in response to a trigger operation for the generation control, tampering the original upgrade package based on the tampering position, displaying tampering data, and displaying a second storage path corresponding to the generated tampering upgrade package, so as to perform software testing based on the tampering upgrade package. According to the embodiment of the invention, automatic tampering of the original upgrade package is realized, and the test efficiency can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the software technical field, and particularly relates to a test method and device of an automobile software upgrade package, an electronic device and a storage medium. BACKGROUND

[0002] With the accelerated promotion of the intelligent networked automobile industrialization process, the upgrading iteration of vehicle-mounted software and the rapid repair of software problems have increasingly become the focus of consumers. According to the R156 regulation of the European Union and the newly released "General Technical Requirements for Automobile Software Upgrade", the detection agency needs to test the authenticity and integrity inspection mechanism of the automobile software upgrade package of the host factory. In the prior art, the software upgrade package is usually tested based on manual operation, and there is a problem of low test efficiency. SUMMARY

[0003] The present application provides a test method of an automobile software upgrade package, which is used to solve the problem of low test efficiency in the prior art.

[0004] According to an aspect of the present application, a test method of an automobile software upgrade package is provided, and the method comprises the following steps.

[0005] A test interface is displayed, wherein the test interface comprises a tampering position input box, an upgrade package upload control and a generation control;

[0006] In response to an input operation on the tampering position input box, a corresponding tampering position is displayed;

[0007] In response to a trigger operation on the upgrade package upload control, an original upgrade package to be tested is obtained from a first storage path, and an upload success prompt information is displayed;

[0008] In response to a trigger operation on the generation control, the original upgrade package is tampered with based on the tampering position, tampered data is displayed, and a second storage path corresponding to a generated tampered upgrade package is displayed, so as to perform software testing based on the tampered upgrade package.

[0009] In one possible implementation, the original upgrade package is tampered with based on the tampering position, and the tampered data is displayed, which comprises the following steps.

[0010] The original upgrade package is converted into target format data;

[0011] A tampered value is generated based on the tampering position and the target format data;

[0012] The target format data is tampered with based on the tampered value, and the tampered data is obtained and displayed;

[0013] Before the second storage path corresponding to the generated tampered upgrade package is displayed, the method further comprises the following steps.

[0014] The tampered upgrade package is obtained based on the tampered data.

[0015] In a possible implementation, the tampered position input box includes a start position input box and an end position input box; and the tampered position includes a tampered start bit and a tampered end bit.

[0016] The corresponding tampered position is displayed in response to the input operation on the tampered position input box, including:

[0017] The tampered start bit is displayed in response to the input operation on the start position input box.

[0018] The tampered end bit is displayed in response to the input operation on the end position input box.

[0019] In a possible implementation, the original upgrade package is converted into the target format data, including:

[0020] A packaging manner of the original upgrade package is determined; and the packaging manner includes at least one of a compression format and an encryption manner.

[0021] The original upgrade package is decoded based on the packaging manner to obtain decoded data.

[0022] The decoded data is format-converted to obtain the target format data.

[0023] In a possible implementation, the tampered upgrade package is obtained based on the tampered data, including:

[0024] The tampered data is packaged based on the packaging manner to obtain the tampered upgrade package.

[0025] In yet another possible implementation, the display of the test interface further includes an access input box, a connection control and a transmission control.

[0026] The original upgrade package to be tested is obtained from the first storage path in response to the triggering operation on the upgrade package upload control, and before the upload success prompt information is displayed, including:

[0027] The access permission and the access path of the vehicle-mounted terminal are displayed in response to the input operation on the access input box.

[0028] The connection success prompt information with the vehicle-mounted terminal is displayed when the access permission and the access path are verified in response to the triggering operation on the connection control.

[0029] The original upgrade package to be tested is obtained from the vehicle-mounted terminal in response to the triggering operation on the transmission control, and the first storage path of the original upgrade package is displayed.

[0030] In yet another possible implementation, the tampered upgrade package is obtained, and then the method further includes:

[0031] replacing the original upgrade package in the vehicle terminal with the tampered upgrade package;

[0032] upgrading the vehicle terminal based on the tampered upgrade package.

[0033] In another possible implementation, the tampering value includes at least one of an added value, a deleted value, and a modified value.

[0034] After the tampering value is generated based on the tampering position and the target format data, the method further includes:

[0035] generating tampered-before data and tampered-after data corresponding to the tampered-before data based on the tampering value.

[0036] storing the tampered-before data and the tampered-after data in a preset tampering record.

[0037] In another possible implementation, the test interface further includes an added operation text box, a deleted operation text box, and a modified operation text box; and the tampered data includes added data, deleted data, and modified data.

[0038] The tampered data is displayed, including:

[0039] In the added operation text box, the added data is displayed.

[0040] In the deleted operation text box, the deleted data is displayed.

[0041] In the modified operation text box, the modified data is displayed.

[0042] According to another aspect of the embodiments of the present application, a testing device for an automobile software upgrade package is provided, and the device includes:

[0043] a display module configured to display a test interface; wherein the test interface includes a tampering position input box, an upgrade package upload control, and a generation control.

[0044] an input module configured to display a corresponding tampering position in response to an input operation on the tampering position input box.

[0045] a triggering module configured to acquire an original upgrade package to be tested from a first storage path in response to a triggering operation on the upgrade package upload control, and display an upload success prompt.

[0046] a tampering module configured to tamper the original upgrade package based on the tampering position in response to a triggering operation on the generation control, display tampered data, and display a second storage path corresponding to the generated tampered upgrade package, so as to perform software testing based on the tampered upgrade package.

[0047] According to another aspect of the present application, an electronic device is provided, comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method according to the first aspect of the present application.

[0048] According to still another aspect of the present application, a computer readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, implements the steps of the method according to the first aspect of the present application.

[0049] The technical solution provided by the present application has the following beneficial effects:

[0050] The test method for the automobile software upgrade package provided by the present application can determine the tampering position and the original upgrade package through the test interface and the operation of the control in the test interface, then tamper with the original upgrade package based on the tampering position, to generate and display the tampered data and the tampered upgrade package, and through the display of the second storage path corresponding to the tampered upgrade package, the user can perform software testing based on the tampered upgrade package; the present application embodiment realizes the automatic tampering of the original upgrade package through the user interaction of the test interface, which can effectively improve the testing efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0052] Figure 1 A flowchart of a test method for an automobile software upgrade package provided by an embodiment of the present application;

[0053] Figure 2 A test interface diagram of a test method for an automobile software upgrade package provided by an embodiment of the present application;

[0054] Figure 3 A tampered data display interface diagram of a test method for an automobile software upgrade package provided by an embodiment of the present application;

[0055] Figure 4-1 An upgrade package tampering terminal interface diagram of a test method for an automobile software upgrade package provided by an embodiment of the present application;

[0056] Figure 4-2 A flowchart of a test method for an automobile software upgrade package provided by an embodiment of the present application;

[0057] Figure 5A structural schematic diagram of a test device for an automobile software upgrade package provided by an embodiment of the present application is provided.

[0058] Figure 6 A structural schematic diagram of an electronic device provided by an embodiment of the present application is provided. DETAILED DESCRIPTION

[0059] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood, however, that the description is merely exemplary and is not intended to limit the scope of the present disclosure. Also, in the following description, the description of well-known structures and techniques is omitted to avoid obscuring the concept of the present disclosure.

[0060] In the drawings, various structural schematic diagrams according to embodiments of the present disclosure are shown. These diagrams are not drawn to scale, in which certain details are exaggerated for the purpose of clarity and precision, and certain details can be omitted. The shapes of various regions, layers, and their relative sizes and positional relationships shown in the drawings are merely exemplary, and in actuality, they can deviate due to manufacturing tolerances or technical limitations, and a person skilled in the art can additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0061] In the context of the present disclosure, when a layer / element is referred to as being located "on" another layer / element, the layer / element can be directly located on the other layer / element, or there can be an intervening layer / element between them. In addition, if a layer / element is located "on" another layer / element in one orientation, it can be located "under" the other layer / element when the orientation is reversed.

[0062] With the accelerated advancement of the intelligent and networked automobile industry, the upgrading and iteration of vehicle-mounted software and the rapid repair of software problems have increasingly become the focus of consumer attention. The upgrading of automobile software faces many challenges, including technical compatibility and stability issues, safety risks during the upgrading process, and limitations of computing power and storage resources. The development trend of intelligentization and networking makes it common to use online upgrade (OTA) technology for software updates, which greatly improves the user experience of consumers, but also brings new challenges in product regulation and product consistency.

[0063] On August 23, 2024, the Ministry of Industry and Information Technology of the People's Republic of China issued GB 44496-2024 "General Technical Requirements for Automotive Software Upgrades", which will be implemented on January 1, 2026. This standard is a mandatory national standard and applies to all vehicles that meet the scope of application of the standard. From the date of implementation of this standard, all automakers that need to apply for road motor vehicle product access must meet the requirements of this standard. For vehicles before the implementation of this announcement, a two-year buffer rectification period will be given to allow automakers to upgrade and modify the vehicles to ensure that they meet the requirements of this standard. From January 1, 2028, all vehicles on sale must comply with the requirements of this standard. This means that all vehicles on sale in the future must meet this standard to ensure that vehicle software upgrades are safe, reliable, and meet the latest standards.

[0064] According to the above standards, testing agencies need to test the authenticity and integrity verification mechanism of the OEM's automotive software upgrade packages. In the existing technology, software upgrade package testing is usually based on manual testing, which has the problem of low testing efficiency.

[0065] Based on the above technical problems, some embodiments of the present application determine the tampering location and the original upgrade package through a test interface and operations on controls in the test interface, and then tamper with the original upgrade package based on the tampering location to generate and display tampered data and the tampered upgrade package. By displaying the second storage path corresponding to the tampered upgrade package, the user can perform software testing based on the tampered upgrade package; the embodiments of the present application perform user interaction through the test interface, realize automatic tampering of the original upgrade package, and can effectively improve testing efficiency.

[0066] The following describes in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0067] The present application provides a method for testing an automobile software upgrade package, which can be applied to a terminal or server for testing, such as Figure 1 As shown, the method includes:

[0068] S101, displaying a test interface.

[0069] Among them, such as Figure 2 As shown, the test interface 20 may include at least interactive controls such as a tampering location input box 202 , an upgrade package upload control 201 , and a generation control 204 .

[0070] S102 : In response to an input operation on a tampering location input box, display the corresponding tampering location.

[0071] The input operation can be determined by a user based on an input device, which can include a mouse, a touch screen, a keyboard, a voice recognition device, or the like, and is not limited in the embodiments of the present application.

[0072] Optionally, the tampered position can be determined for signature, certificate, digital domain, or the like of the original upgrade package to be tested. The tampered position can be described by byte length, for example, when the original upgrade package has a total of 100,000 bytes, the user can specify that the positions from 300th to 304th are the tampered positions.

[0073] For example, the user initiates a voice instruction, and a voice recognition device recognizes the voice instruction to obtain an input operation for the tampered position input box. The terminal or server for testing can display the corresponding tampered position in the tampered position input box in response to the input operation.

[0074] A possible implementation manner is provided in the embodiments of the present application, as shown in Figure 2 The tampered position input box 202 includes a start position input box 2021 and an end position input box 2022, and the tampered position includes a tampered start bit and a tampered end bit.

[0075] The display of the corresponding tampered position in response to the input operation for the tampered position input box includes the following steps.

[0076] The tampered start bit is displayed in response to the input operation for the start position input box, and the tampered end bit is displayed in response to the input operation for the end position input box.

[0077] S103, in response to a trigger operation for the upgrade package upload control, the original upgrade package to be tested is acquired from the first storage path, and an upload success prompt information is displayed.

[0078] The original upgrade package can be directly acquired from a host factory and stored in the first storage path, or extracted from a vehicle-mounted terminal of the host factory and stored in the first storage path.

[0079] For example, the user can send a trigger instruction by clicking a touch screen to generate a trigger operation for the upgrade package upload control. The terminal or server for testing can acquire the original upgrade package to be tested from the first storage path in response to the trigger operation, and display an upload success prompt information.

[0080] S104, in response to a trigger operation for the generation control, the original upgrade package is tampered based on the tampered position, the tampered data is displayed, and the second storage path corresponding to the generated tampered upgrade package is displayed, so as to perform software testing based on the tampered upgrade package.

[0081] Specifically, the user can send a trigger operation for the generation control through the mouse, and the terminal or server for testing can respond to the trigger operation, first format-convert the original upgrade package to obtain target format data, then perform data tampering based on the tampering position and the target format data to generate tampered data and a tampered upgrade package. The second storage path corresponding to the generated tampered upgrade package is displayed, so that the user can perform software testing based on the tampered upgrade package.

[0082] The embodiments of the present application determine the tampering position and the original upgrade package through the test interface and the operation of the control in the test interface, then tamper the original upgrade package based on the tampering position to generate and display tampered data and a tampered upgrade package. By displaying the second storage path corresponding to the tampered upgrade package, the user can perform software testing based on the tampered upgrade package. The embodiments of the present application realize automatic tampering of the original upgrade package through user interaction with the test interface, which can effectively improve the testing efficiency.

[0083] In the embodiments of the present application, a possible implementation is provided. The above tampering of the original upgrade package based on the tampering position and the display of the tampered data include:

[0084] 201. Convert the original upgrade package into target format data.

[0085] The target format data can be hexadecimal data. The format of the original upgrade package can include mainstream compression formats such as.sff,.hex,.zip,.rsa, etc.

[0086] Specifically, the terminal or server for testing can first determine the format of the original upgrade package. If the format of the original upgrade package meets the preset condition, the original upgrade package can be parsed to determine the packaging method of the original upgrade package, and the original upgrade package can be converted into target format data based on the above packaging method.

[0087] Optionally, Figure 2 As shown, the test interface 20 can further include an original upgrade package conversion control 203 and a target format text control 205. In response to a touch operation on the original upgrade package conversion control 203, the target format data can be displayed in the target format text control 205.

[0088] S202. Generate a tampered value based on the tampering position and the target format data.

[0089] The tampered value includes at least one of an added value, a deleted value, and a modified value.

[0090] Specifically, the terminal or server for testing can first perform format verification on the tampering position. When the verification is successful, a tampered value is generated based on the tampering position and the target format data.

[0091] S203, tampering the target format data based on the tampering value to obtain tampered data and displaying the tampered data.

[0092] Before the displaying the second storage path corresponding to the generated tampered upgrade package, the method further includes:

[0093] Obtaining a tampered upgrade package based on the tampered data.

[0094] Specifically, the tampered target format data can be packaged to obtain the tampered upgrade package based on the format of the original upgrade package.

[0095] In an embodiment of the present application, a possible implementation is provided, and the original upgrade package is converted into the target format data, including:

[0096] S301, determining a packaging manner of the original upgrade package.

[0097] The packaging manner includes at least one of a compression format and an encryption manner.

[0098] Optionally, the compression format can include.sff,.hex,.zip,.rsa, etc., and the encryption manner can include a cyclic redundancy check (CRC) algorithm, an advanced encryption standard (AES) algorithm, a message-digest algorithm (MD5) algorithm, and a Rivest-Shamir-Adleman (RSA) algorithm, etc.

[0099] S302, decoding the original upgrade package based on the packaging manner to obtain decoded data.

[0100] S303, performing format conversion on the decoded data to obtain target format data.

[0101] The target format data can be hexadecimal data.

[0102] In an embodiment of the present application, a plurality of different compression formats and encryption manners can be built in to adapt to software upgrade packages of different host manufacturers, and then the original upgrade packages of different host manufacturers and different formats are uniformly converted into target format data, thereby enhancing the adaptability of the test method of the automobile software upgrade package and effectively improving the data processing efficiency.

[0103] In an embodiment of the present application, a possible implementation is provided, and the tampered upgrade package is obtained based on the tampered data, including:

[0104] The tampered data is packaged based on the packaging method to obtain a tampered upgrade package.

[0105] In an embodiment of the present application, after the target format data is tampered with by the tampering value, the tampered data can be repackaged based on the original packaging method to obtain a tampered upgrade package. That is to say, in the embodiment of the present application, except for the data at the tampered position in the tampered upgrade package, all other data are retained and restored, which improves the accuracy of the upgrade package tampering and lays a good foundation for subsequent testing.

[0106] A possible implementation method is provided in an embodiment of the present application, where the above-mentioned display test interface also includes an access input box, a connection control, and a transmission control.

[0107] The above-mentioned process of obtaining the original upgrade package to be tested from the first storage path in response to the triggering operation on the upgrade package upload control and before displaying the upload success prompt message includes:

[0108] S401 : In response to an input operation on an access input box, displaying the access permission and access path of the vehicle-mounted terminal.

[0109] S402 , in response to a triggering operation on the connection control, displaying a prompt message of successful connection with the vehicle terminal when the access authority and access path are verified.

[0110] S403 : In response to the triggering operation on the transmission control, the original upgrade package to be tested is obtained from the vehicle-mounted terminal, and a first storage path of the original upgrade package is displayed.

[0111] Specifically, the terminal or server used for testing may first request to connect to the vehicle terminal, and then perform security verification based on access rights. When the security verification passes, the connection with the vehicle terminal is successful.

[0112] An embodiment of the present application provides a possible implementation method, which includes, after obtaining the tampered upgrade package, further comprising:

[0113] The original upgrade package in the vehicle terminal is replaced with the tampered upgrade package, and the vehicle terminal is upgraded based on the tampered upgrade package.

[0114] In the embodiment of the present application, some OEMs will perform verification before sending the upgrade package to the vehicle terminal, and will take anti-tampering measures at this time. At this time, directly obtaining the original upgrade package for tampering will fail the verification, so the terminal or server that needs to be tested will grab the original upgrade package from the vehicle terminal by itself; the original upgrade package can be obtained through the access rights and access paths of the vehicle terminal provided by the OEM, further enhancing the test efficiency and test accuracy.

[0115] An embodiment of the present application provides a possible implementation method, wherein the tampered value includes at least one of an added value, a deleted value, and a modified value;

[0116] After generating the tampered value based on the tampered position and the target format data, the method comprises:

[0117] S501, generating pre-tampered data and post-tampered data corresponding to the pre-tampered data based on the tampered value.

[0118] S502, saving the pre-tampered data and the post-tampered data in a preset tampering record.

[0119] As shown in the table, the original value of the upgrade package, i.e., the data of the original upgrade package, and the data after the addition, deletion and modification operations are sequentially listed, so that the tampered position, i.e., the starting bit of tampering, and the specific operations of addition, deletion and modification can be clearly represented. Figure 3

[0120] In the embodiments of the present application, a possible implementation manner is provided, and the above software testing according to the tampered upgrade package comprises:

[0121] S601, performing software testing according to the tampered upgrade package to obtain a test result.

[0122] The above software testing is performed based on the authenticity and integrity of the upgrade package.

[0123] S602, generating a test report based on the tampering record and the test result.

[0124] In the embodiments of the present application, a possible implementation manner is provided, as shown in the table, the above display test interface 20 further comprises an addition operation text box 206, a deletion operation text box 207 and a modification operation text box 208; the tampered data comprises post-addition data, post-deletion data and post-modification data. Figure 2 The above display tampered data comprises:

[0125] In the addition operation text box 206, the post-addition data is displayed.

[0126] In the deletion operation text box 207, the post-deletion data is displayed.

[0127] In the modification operation text box 208, the post-modification data is displayed.

[0128]

[0129] ​​In order to better understand the above-mentioned test method of the automobile software upgrade package, the tool software level of the upgrade package tampering terminal is developed based on Python (a programming language), a Tkinter (Python standard graphical user interface toolkit interface) is used to design a visual interactive interface, and a rich library function of Python is used to realize the corresponding function of the software. The hardware is composed of Raspberry Pi, ADB (Android Debug Bridge, an Android development kit command line tool), and UART (Universal Asynchronous Receiver / Transmitter) serial communication line. When the upgrade package tampering terminal is used, the tampering software runs in Raspberry Pi, and can be connected to an external storage device for importing the upgrade package, and can support a software upgrade package of 20G at most, and support batch tampering of multiple files, saving time.

[0130] The following will be described in detail Figure 4-1 to Figure 4-2 An example of the test method of the automobile software upgrade package of the present application is described in detail, which comprises the following steps:

[0131] S701, the upgrade package tampering terminal obtains the access permission and access path of the vehicle terminal, first requests to connect the vehicle terminal, then performs security verification based on the access permission, and when the security verification is passed, the connection with the vehicle terminal is successful; and then the original upgrade package to be tested is obtained from the vehicle terminal based on the access path.

[0132] S702, the upgrade package tampering terminal receives the tampering instruction sent by the user terminal, and then determines the tampering position based on the tampering instruction.

[0133] Specifically, the user can input the tampering instruction based on the interface as Figure 4-1 shown in the figure, that is, the tampering start bit input box in the figure.

[0134] S703, the upgrade package tampering terminal determines the format of the original upgrade package, and if the format of the original upgrade package meets the preset condition, the original upgrade package can be parsed first to determine the packaging method of the original upgrade package, so as to convert the original upgrade package into target format data based on the packaging method.

[0135] The target format data can be hexadecimal data. The format of the original upgrade package can include mainstream compression formats such as.sff,.hex,.zip,.rsa, etc.

[0136] S704, the upgrade package tampering terminal performs format verification on the tampering position, and when the verification is successful, generates a tampering value based on the tampering position and the target format data.

[0137] The tampering value includes at least one of an increase value, a deletion value, and a modification value.

[0138] In S705, the tampering terminal tampers the target format data based on the tampering value to obtain tampered data, and packs the tampered data based on a packing mode to obtain a tampered upgrade package.

[0139] In S706, the tampering terminal replaces the original upgrade package in the vehicle terminal with the tampered upgrade package, and upgrades the vehicle terminal based on the tampered upgrade package to perform upgrade package testing.

[0140] The embodiments of the present application provide a testing device for an automobile software upgrade package, as shown in Figure 5 The testing device 50 for the automobile software upgrade package can include a display module 501, an input module 502, a trigger module 503, and a tampering module 504.

[0141] The display module 501 is configured to display a test interface, wherein the test interface includes a tampering position input box, an upgrade package upload control, and a generation control.

[0142] The input module 502 is configured to display a corresponding tampering position in response to an input operation on the tampering position input box.

[0143] The trigger module 503 is configured to obtain an original upgrade package to be tested from a first storage path in response to a trigger operation on the upgrade package upload control, and display an upload success prompt.

[0144] The tampering module 504 is configured to tamper the original upgrade package based on the tampering position in response to a trigger operation on the generation control, display tampered data, and display a second storage path corresponding to the generated tampered upgrade package, so as to perform software testing based on the tampered upgrade package.

[0145] In the embodiments of the present application, the tampering module 504 is configured to:

[0146] convert the original upgrade package into target format data;

[0147] generate a tampering value based on the tampering position and the target format data;

[0148] tamper the target format data based on the tampering value to obtain and display tampered data;

[0149] Before displaying the second storage path corresponding to the generated tampered upgrade package, the tampering module 504 is further configured to:

[0150] obtain the tampered upgrade package based on the tampered data.

[0151] In an embodiment of the present application, the tamper position input box includes a start position input box and an end position input box; and the tamper position includes a tamper start position and a tamper end position.

[0152] The input module 502 is configured to display the corresponding tamper position in response to an input operation on the tamper position input box.

[0153] The start position input box is displayed in response to an input operation on the start position input box.

[0154] The end position input box is displayed in response to an input operation on the end position input box.

[0155] In an embodiment of the present application, the tamper module 504 is configured to:

[0156] The tamper module 504 is configured to determine a packaging method of the original upgrade package, wherein the packaging method includes at least one of a compression format and an encryption method.

[0157] The tamper module 504 is configured to decode the original upgrade package based on the packaging method to obtain decoded data.

[0158] The tamper module 504 is configured to perform format conversion on the decoded data to obtain target format data.

[0159] In an embodiment of the present application, the tamper module 504 is configured to:

[0160] The tamper module 504 is configured to package the tamper data based on the packaging method to obtain a tamper upgrade package.

[0161] In an embodiment of the present application, the display test interface further includes an access input box, a connection control, and a transmission control.

[0162] The trigger module 503 is configured to:

[0163] The access rights and access paths of the vehicle-mounted terminal are displayed in response to an input operation on the access input box.

[0164] The connection success prompt information with the vehicle-mounted terminal is displayed in response to a trigger operation on the connection control when the access rights and access paths are verified.

[0165] The original upgrade package is obtained from the vehicle-mounted terminal in response to a trigger operation on the transmission control, and the first storage path of the original upgrade package is displayed.

[0166] In an embodiment of the present application, the tampering module 504, after obtaining the tampered upgrade package, is further configured to:

[0167] replace the original upgrade package in the vehicle terminal with the tampered upgrade package;

[0168] upgrade the vehicle terminal based on the tampered upgrade package.

[0169] In an embodiment of the present application, the tampering value includes at least one of an added value, a deleted value, and a modified value.

[0170] The tampering module 504, after generating the tampering value based on the tampering position and the target format data, is configured to:

[0171] generate tampered-before data and tampered-after data corresponding to the tampered-before data based on the tampering value;

[0172] save the tampered-before data and the tampered-after data in a preset tampering record.

[0173] In an embodiment of the present application, the display test interface further includes an added operation text box, a deleted operation text box, and a modified operation text box; and the tampered data includes added-after data, deleted-after data, and modified-after data.

[0174] The tampering module 504, when displaying the tampered data, is configured to:

[0175] display the added-after data in the added operation text box;

[0176] display the deleted-after data in the deleted operation text box;

[0177] display the modified-after data in the modified operation text box.

[0178] The device of the embodiment of the present application can perform the method provided by the embodiment of the present application, the implementation principles of which are similar. The actions performed by each module in the device of the embodiment of the present application are corresponding to the steps in the method of the embodiment of the present application. For the detailed function description of each module of the device, refer to the description of the corresponding method in the foregoing description, which will not be repeated here.

[0179] The embodiment of the present application determines the tampering position and the original upgrade package through the test interface and the operation of the control in the test interface, then tampers the original upgrade package based on the tampering position to generate and display the tampered data and the tampered upgrade package, and displays the second storage path corresponding to the tampered upgrade package, so that the user can perform software testing based on the tampered upgrade package. The embodiment of the present application realizes automatic tampering of the original upgrade package through user interaction of the test interface, which can effectively improve the testing efficiency.

[0180] An embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory. The processor executes the above-mentioned computer program to implement the steps of a testing method for an automobile software upgrade package. Compared with the relevant technology, the following can be achieved: the embodiment of the present application determines the tampering location and the original upgrade package through a test interface and the operation of controls in the test interface, and then tamperes with the original upgrade package based on the tampering location to generate and display tampered data and a tampered upgrade package. By displaying the second storage path corresponding to the tampered upgrade package, the user can perform software testing based on the tampered upgrade package; the embodiment of the present application performs user interaction through the test interface, realizes automatic tampering of the original upgrade package, and can effectively improve test efficiency.

[0181] In an alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6 The electronic device 60 shown includes: a processor 601 and a memory 603. The processor 601 and the memory 603 are connected, for example, via a bus 602. Optionally, the electronic device 60 may further include a transceiver 604, which can be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the number of transceivers 604 is not limited to one, and the structure of the electronic device 60 does not constitute a limitation on the embodiments of the present application.

[0182] The processor 601 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor 601 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0183] The bus 602 can include a path that transmits information between the above-mentioned components. The bus 602 can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 602 can be divided into an address bus, a data bus, a control bus, etc. For convenience of representation, Figure 6 Only one thick line is used in the figure to represent the bus, but it does not mean that there is only one bus or only one type of bus.

[0184] The memory 603 can be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, a magnetic disk storage medium, other magnetic storage device, or any other medium that can be used to carry or store computer programs and that can be read by a computer, without limitation.

[0185] The memory 603 is used to store a computer program for executing the embodiments of the present application, and is controlled by the processor 601 to execute. The processor 601 is used to execute the computer program stored in the memory 603 to realize the steps shown in the foregoing method embodiments.

[0186] The electronic device includes but is not limited to: mobile terminals such as mobile phones, notebook computers, PADs, etc., and fixed terminals such as digital TVs, desktop computers, etc.

[0187] The embodiments of the present application provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the steps of the method shown in the first aspect of the embodiments of the present application.

[0188] In the above description, detailed description of the configuration of each layer and the like is not made. However, it should be understood by those skilled in the art that the layer, region, and the like having a desired shape can be formed by various technical means. In addition, a method different from the above-described method can be designed by those skilled in the art in order to form the same structure. In addition, although each embodiment is described above separately, this does not mean that the measures in each embodiment cannot be used advantageously in combination.

[0189] Although preferred embodiments of the application have been described herein, it will be apparent to those skilled in the art that various modifications and changes can be made to the embodiments without departing from the spirit and scope of the application. Accordingly, it is intended that all such modifications and changes be included within the scope of the application as set forth in the following claims and their equivalents.

[0190] Obviously, various modifications and changes can be made to the present application by those skilled in the art without departing from the spirit and scope of the application. Accordingly, it is intended that all such modifications and changes be included within the scope of the application as claimed in the following claims and their equivalents.

Claims

1. A method for testing an automobile software upgrade package, characterized in that: The method comprises: Display the test interface; wherein, the test interface includes a tamper location input box, an upgrade package upload control, and a generation control; In response to an input operation on the tampering location input box, displaying a corresponding tampering location; In response to a triggering operation on the upgrade package upload control, obtaining the original upgrade package to be tested from the first storage path, and displaying a prompt message indicating that the upload is successful; In response to the triggering operation for the generation control, the original upgrade package is tampered with based on the tampering position, the tampered data is displayed, and the second storage path corresponding to the generated tampered upgrade package is displayed to perform software testing based on the tampered upgrade package.

2. The method according to claim 1, characterized in that The tampering of the original upgrade package based on the tampered location and displaying the tampered data includes: Converting the original upgrade package into target format data; generating a tampering value based on the tampering location and the target format data; Tampering the target format data based on the tampering value, obtaining and displaying tampered data; Before displaying the second storage path corresponding to the generated tampered upgrade package, the method further includes: A tampered upgrade package is obtained based on the tampered data.

3. The method according to claim 1, characterized in that The tampering position input box includes a start position input box and an end position input box; the tampering position includes a tampering start position and a tampering end position; The displaying of the corresponding tampering location in response to an input operation on the tampering location input box includes: In response to an input operation on the starting position input box, displaying the tampering starting position; In response to an input operation on the end position input box, the tamper end position is displayed.

4. The method according to claim 2, characterized in that The converting the original upgrade package into target format data includes: Determining a packaging method for the original upgrade package; wherein the packaging method includes at least one of a compression format and an encryption method; Decoding the original upgrade package based on the packaging method to obtain decoded data; Performing format conversion on the decoded data to obtain target format data; The obtaining of the tampered upgrade package based on the tampered data includes: The tampered data is packaged based on the packaging method to obtain a tampered upgrade package.

5. The method according to claim 4, characterized in that The display test interface also includes an access input box, a connection control, and a transmission control; The method of obtaining the original upgrade package to be tested from the first storage path in response to the triggering operation on the upgrade package upload control, and before displaying the upload success prompt message, includes: In response to an input operation on the access input box, displaying the access rights and access path of the vehicle-mounted terminal; In response to a triggering operation on the connection control, displaying a prompt message of a successful connection with the vehicle-mounted terminal when the access authority and the access path are verified; In response to a triggering operation on the transmission control, an original upgrade package to be tested is obtained from the vehicle-mounted terminal, and a first storage path of the original upgrade package is displayed.

6. The method according to claim 2, characterized in that The tampered value includes at least one of an added value, a deleted value, and a modified value; After generating the tampering value based on the tampering position and the target format data, the method includes: generating pre-tampering data and post-tampering data corresponding to the pre-tampering data based on the tampering value; The data before tampering and the data after tampering are stored in a preset tampering record.

7. The method according to claim 1, characterized in that The display test interface also includes an add operation text box, a delete operation text box and a modify operation text box; the tampered data includes added data, deleted data and modified data; The display tampering data includes: In the adding operation text box, the added data is displayed; In the deletion operation text box, the deleted data is displayed; The modified data is displayed in the modification operation text.

8. A testing device for an automobile software upgrade package, characterized in that: The device comprises: A display module is used to display a test interface; wherein the test interface includes a tampering location input box, an upgrade package upload control, and a generation control; An input module, configured to display a corresponding tampered location in response to an input operation on the tampered location input box; a trigger module, configured to, in response to a trigger operation on the upgrade package upload control, obtain the original upgrade package to be tested from the first storage path and display a prompt message indicating that the upload is successful; A tampering module is used to tamper with the original upgrade package based on the tampering position in response to the trigger operation for the generated control, display the tampered data, and display the second storage path corresponding to the generated tampered upgrade package, so as to perform software testing based on the tampered upgrade package.

9. An electronic device, characterized in that: The method is characterized in that it comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Software upgrading method and device, electronic equipment and storage medium

    CN113986313A

  • Vehicle end OTA upgrading method and device, electronic equipment and readable storage medium

    CN117544616A

  • Automatic firmware testing method and device based on fuzzy input and medium

    CN119961167A

  • User interface display testing system

    US20160154729A1