Upgrading test method, electronic device, and storage medium
By acquiring and storing upgrade packages and signature verification packages in the test equipment, the entertainment host system is simulated for local upgrades, which solves the problem of the central control module's dependence on the FOTA server and the real entertainment host system, and realizes efficient and flexible upgrade testing.
Patent Information
- Application Number
- CN202611129897.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-28
- Publication Date
- 2026-11-20
AI Technical Summary
Existing methods for upgrading automotive central electronic control modules firmware rely on FOTA servers and real infotainment systems, resulting in excessive dependence on external hardware and software conditions for testing, and a lack of flexibility and repeatability.
By acquiring and storing the upgrade package and signature verification package during the actual firmware upgrade process using testing equipment, the system simulates the entertainment host system sending upgrade commands to the central electronic control module, thus achieving local upgrades without needing to connect to an over-the-air firmware upgrade server and the actual entertainment host system.
It achieves a fully automated local upgrade process, reduces dependence on external hardware and software conditions, improves the flexibility and repeatability of upgrade testing, and provides efficient and low-cost technical support for subsequent stress testing.
Smart Images

Figure CN123138103A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive electronics testing technology, and more specifically to an upgrade testing method, electronic equipment, and storage medium. Background Technology
[0002] Firmware upgrades for downstream ECUs by the automotive central electronic control module (CEMM) commonly employ over-the-air (FOTA) updates. Current methods require creating a task on the FOTA server, having the infotainment system download the upgrade package and transmit it to the CEMM, which then completes the downstream upgrade. This entire process relies on the FOTA server and the actual infotainment system hardware, and requires manual intervention.
[0003] The automotive central electronic control module cannot be upgraded locally independently without the FOTA server and infotainment system, resulting in excessive reliance on external hardware and software conditions for testing. Summary of the Invention
[0004] The purpose of this application is to provide an upgrade testing method, electronic device, and storage medium to solve the problem that existing upgrade testing methods are too dependent on external hardware and software conditions.
[0005] To achieve the above objectives, in a first aspect, embodiments of this application provide an upgrade testing method applied to a local upgrade testing system, the system including testing equipment and a central electronic control module; the upgrade testing method includes: The test equipment acquires a pre-saved upgrade package and signature verification package, which are extracted and stored from a real firmware upgrade process between an entertainment host system and a central electronic control module. The test equipment simulates an entertainment host system and sends upgrade commands to the central electronic control module; After receiving the upgrade command, the central control module uses the upgrade package and signature verification package to perform a local upgrade on the downstream node. The local upgrade does not require connection to the over-the-air firmware upgrade server and the actual entertainment host system.
[0006] Optionally, the test device obtains a pre-saved upgrade package and signature verification package, specifically including: The test equipment captures data packets transmitted between a real entertainment host system and a central electronic control module during firmware upgrade communication. The testing equipment parses the upgrade package and signature verification package from the captured data packets and stores them in binary file format.
[0007] Optionally, the test device parses the upgrade package and signature verification package from the captured data packets, including: The test equipment parses specified types of messages in data packets and extracts payload data. The test equipment reassembles the load data into an upgrade package binary file and a signature verification package binary file.
[0008] Optionally, the test equipment simulates an entertainment console system, including: The testing equipment utilizes a computer and a network converter to form a simulation device; The test equipment sends upgrade commands to the central electronic control module through the simulation equipment, in accordance with the vehicle Ethernet communication protocol.
[0009] Optionally, a script runs on the computer, and the test device encapsulates upgrade instructions according to a preset IP-based diagnostic communication protocol by running the script, and sends them to the central control module through a network converter.
[0010] Optionally, before the test equipment simulates an entertainment host system and sends an upgrade command to the central electronic control module, the method further includes: Disconnect the central control module from the actual entertainment host system.
[0011] Optionally, after receiving the upgrade command, the central control module performs a local upgrade on the downstream node using the upgrade package and signature verification package. The method further includes: The test equipment uses pre-saved upgrade packages and signature verification packages to repeatedly perform local upgrade operations on the downstream nodes of the central electronic control module.
[0012] Optionally, the method further includes: in a vehicle body control test scenario, the test equipment sends an upgrade command to the central electronic control module through a simulated entertainment host system, so that the central electronic control module can perform a local upgrade of the downstream node using a pre-saved upgrade package and signature verification package.
[0013] Secondly, embodiments of this application provide an electronic device, which includes: a processor and a memory storing computer program instructions; The processor implements the aforementioned upgrade test method when executing computer program instructions.
[0014] Thirdly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the aforementioned upgrade testing method.
[0015] In this application, an upgrade package and signature verification package, pre-extracted and stored from a real firmware upgrade process, are obtained through a testing device. This eliminates the need to reconnect to the over-the-air (OTA) firmware upgrade server to download the upgrade package for each test, completely eliminating real-time dependence on the OTA server. The testing device directly simulates the entertainment host system sending upgrade commands to the central control module, without the involvement of the actual entertainment host hardware or manual task creation or upgrade clicking in the background, achieving a fully automated local upgrade process. After receiving the command, the central control module uses the obtained upgrade package to perform local upgrades on subsequent nodes. The entire upgrade process does not require connection to external servers or the actual host, significantly reducing dependence on external hardware and software conditions. This method enables the central control module to achieve local autonomous upgrades independent of the OTA server and the actual entertainment host system, transforming the testing scenario from dependence on the cloud and complex hardware environments to independent local operations. This greatly improves the flexibility and repeatability of upgrade testing, while providing efficient and low-cost technical support for subsequent stress testing.
[0016] Other features and advantages of the embodiments of this application will be described in detail in the following detailed description section. Attached Figure Description
[0017] The accompanying drawings are provided to further illustrate the embodiments of this application and form part of the specification. They are used together with the following detailed description to explain the embodiments of this application, but do not constitute a limitation on the embodiments of this application. In the drawings: Figure 1 The illustration shows a flowchart of an upgrade testing method according to an embodiment of this application; Figure 2 The schematic diagram illustrates the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0018] The specific embodiments of this application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the embodiments of this application.
[0019] The specific embodiments of this application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the embodiments of this application.
[0020] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application all comply with the relevant provisions of national laws and regulations. In the embodiments of this application, certain existing industry solutions such as software, components, and models may be mentioned. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solution of this application, and do not imply that the applicant has already used or necessarily used such solutions.
[0021] Figure 1 The illustration schematically shows a flowchart of an upgrade testing method according to an embodiment of this application. Figure 1 As shown in the embodiment of this application, an upgrade testing method is provided, the method comprising: Step 101: The test device obtains the pre-saved upgrade package and signature verification package, which are extracted and stored from a real firmware upgrade process between the entertainment host system and the central electronic control module. In this embodiment, during actual vehicle body control testing, a firmware package for local upgrades needs to be prepared first. This application obtains the upgrade package and signature verification package through a real over-the-air (OTA) firmware upgrade process: a controller area network analysis tool with Ethernet (such as CANOE) is connected in series between the infotainment system and the central electronic control module (CEMM). The infotainment system downloads the upgrade package from the OTA firmware upgrade server and transmits the upgrade package and signature verification package to the CEMM via an IP-based diagnostic communication protocol. During this process, the network analysis tool records all data packets transmitted between the two. Subsequently, a computer script (such as a Python script) parses specific messages (e.g., message 36) in the recorded data packets, extracts the payload data, and reassembles it into binary format upgrade package and signature verification package files, which are then saved by the test equipment. This upgrade package and signature verification package are extracted and stored from a real firmware upgrade process between the infotainment system and the CEMM for subsequent local upgrade testing.
[0022] Step 102: The test equipment simulates the entertainment host system and sends an upgrade command to the central electronic control module; In this embodiment, after obtaining the pre-saved upgrade package and signature verification package, the test device no longer relies on the actual infotainment system. The test device utilizes a computer and a network converter (such as a 100Mbps / 1Gbps Ethernet to single-pair twisted-wire bus media converter) to construct a simulation device, where a script (such as a Python script) runs on the computer. Through this simulation device, the test device encapsulates the upgrade command according to an in-vehicle Ethernet communication protocol (e.g., an IP-based diagnostic communication protocol) and sends the upgrade command to the central electronic control module. The simulation device completely replaces the function of the actual infotainment system, making the central electronic control module believe that it has received an upgrade command from the actual infotainment system.
[0023] Step 103: After receiving the upgrade command, the central electronic control module uses the upgrade package and signature verification package to perform a local upgrade on the downstream node. The local upgrade does not require connection to the over-the-air firmware upgrade server and the real entertainment host system.
[0024] In this embodiment, after receiving the upgrade command simulated by the test equipment, the central electronic control module reads the local upgrade package and local signature verification package that have been pre-provided or saved by the test equipment. The central electronic control module first verifies the signature verification package. After successful verification, it sends the upgrade package to the downstream node (such as the door control module, lighting control module, and other vehicle electronic control units) via the controller area network bus. The downstream node receives and installs the upgrade package, completing the local upgrade. Throughout the entire upgrade process, the central electronic control module does not need to connect to an over-the-air firmware upgrade server or a real infotainment system; it can complete the firmware update of the downstream node entirely based on the pre-saved upgrade package and the command sent by the simulated equipment.
[0025] In this application, an upgrade package and signature verification package, pre-extracted and stored from a real firmware upgrade process, are obtained through a testing device. This eliminates the need to reconnect to the over-the-air (OTA) firmware upgrade server to download the upgrade package for each test, completely eliminating real-time dependence on the OTA server. The testing device directly simulates the entertainment host system sending upgrade commands to the central control module, without the involvement of the actual entertainment host hardware or manual task creation or upgrade clicking in the background, achieving a fully automated local upgrade process. After receiving the command, the central control module uses the obtained upgrade package to perform local upgrades on subsequent nodes. The entire upgrade process does not require connection to external servers or the actual host, significantly reducing dependence on external hardware and software conditions. This method enables the central control module to achieve local autonomous upgrades independent of the OTA server and the actual entertainment host system, transforming the testing scenario from dependence on the cloud and complex hardware environments to independent local operations. This greatly improves the flexibility and repeatability of upgrade testing, while providing efficient and low-cost technical support for subsequent stress testing.
[0026] In one embodiment of this application, the test device acquires a pre-saved upgrade package and signature verification package, specifically including: The test equipment captures data packets transmitted between a real entertainment host system and a central electronic control module during firmware upgrade communication. The testing equipment parses the upgrade package and signature verification package from the captured data packets and stores them in binary file format.
[0027] In this embodiment, firstly, a controller area network analysis tool with Ethernet (such as CANOE) is connected in series between the actual entertainment host system and the central electronic control module. Then, the entertainment host system downloads the upgrade package from the over-the-air firmware upgrade server and transmits the upgrade package and signature verification package to the central electronic control module according to the IP-based diagnostic communication protocol. During this actual firmware upgrade communication process, the network analysis tool is in listening mode, recording all data packets transmitted between the entertainment host system and the central electronic control module, including upgrade commands, upgrade data, signature verification data, etc. These data packets completely record the communication content of the upgrade process, providing raw material for subsequent extraction of the upgrade package.
[0028] After capturing data packets, the test device (e.g., a computer with a scripting environment installed) reads the data packet file captured by the network analysis tool. A computer script (e.g., a Python script) running on the test device parses the data packets, focusing on extracting specific types of packets (e.g., packets with a 36 flag) carrying upgrade payloads. The parsing process includes: identifying packet types, extracting payload data fields, and reassembling the packets according to the upgrade package data format. The upgrade package and signature verification package are reassembled separately, ultimately generating two independent binary files: one for the upgrade package (e.g., .bin format) and the other for the signature verification package. These two binary files are saved by the test device to local storage media (e.g., a hard drive or solid-state drive) for subsequent local upgrade tests. Through the above capture, parsing, and storage operations, the test device obtains reusable upgrade packages and signature verification packages, eliminating the need to reconnect to the over-the-air firmware upgrade server for each test.
[0029] In this embodiment, data packets are captured and parsed into binary files through a real upgrade communication, and the upgrade package and signature verification package are solidified locally. This enables offline reuse of upgrade resources, avoids repeated reliance on servers and real hosts for subsequent tests, and provides a data foundation for efficient and repeatable local upgrade testing.
[0030] In one embodiment of this application, the testing device parses an upgrade package and a signature verification package from captured data packets, including: The test equipment parses specified types of messages in data packets and extracts payload data. The test equipment reassembles the load data into an upgrade package binary file and a signature verification package binary file.
[0031] In this embodiment, after the test device reads the captured data packet file, it runs a computer script to parse the data packets one by one. The script first identifies the message type field in the data packets and filters out messages of a specified type, such as thirty-six messages carrying an upgrade payload (i.e., 36 messages). For each of the thirty-six messages, the script extracts the payload data from its data field. This payload data is part of the content of the upgrade packet or signature verification packet. The script extracts the payload data of all thirty-six messages in the order of message transmission and temporarily stores this payload data in memory, forming a sequence of data fragments to be reassembled.
[0032] After extracting payload data from all specified message types, the script on the test device reassembles the temporarily stored data fragments according to the original message order. Specifically, the payload data extracted from the first thirty-six messages is used as the file header, and the payload data of subsequent messages is appended sequentially to ultimately reconstruct a complete binary data stream. According to the communication protocol of the upgrade process, upgrade packets and signature verification packets are transmitted separately. Therefore, the script needs to distinguish which messages belong to upgrade packets and which belong to signature verification packets based on the identifier bits or transmission order in the messages. The payload data extracted from the two types of messages is independently reassembled to generate two binary files: one for the upgrade packet (e.g., with the .bin extension) and the other for the signature verification packet. These two binary files are stored in the local memory of the test device for use in subsequent local upgrade tests. Through the above parsing and reassembly operations, the test device successfully extracts and saves reusable upgrade resources from the data packets of a real upgrade communication.
[0033] By parsing specified message types to extract payload data and reassembling it in order, the integrity and correctness of the upgrade package and signature verification package are ensured. The original communication data is converted into directly usable binary files, providing reliable and standardized firmware resources for subsequent local upgrades and reducing the risk of data parsing errors.
[0034] In one embodiment of this application, the test device simulates an entertainment console system, including: The testing equipment utilizes a computer and a network converter to form a simulation device; The test equipment sends upgrade commands to the central electronic control module through the simulation equipment, in accordance with the vehicle Ethernet communication protocol.
[0035] In this embodiment, the test equipment consists of a computer with a scripting environment (such as Python) and a network converter (e.g., a 100Mbps or 1Gbps Ethernet to single-pair twisted-pair bus media converter). The computer and network converter are connected via a standard Ethernet cable, and the other end of the network converter is connected to the Ethernet interface of the central electronic control module. The computer, network converter, and central electronic control module together form a physical communication link. The script running on the computer is responsible for generating upgrade instructions conforming to the communication protocol format, and the network converter is responsible for converting the standard Ethernet signal output by the computer into the in-vehicle Ethernet physical layer signal (such as 100BASE-T1 or 1000BASE-T1) required by the central electronic control module, thereby achieving physical layer matching between the two. Thus, the computer and network converter together simulate the function of a real entertainment host system.
[0036] After the simulation equipment is set up, the test equipment starts the script on the computer. The script encapsulates the upgrade command according to a preset in-vehicle Ethernet communication protocol (such as an IP-based diagnostic communication protocol, i.e., the DoIP protocol). The encapsulation process includes: constructing a diagnostic request message, setting the correct source IP address and destination IP address, and filling in the opcode and parameters of the upgrade command. The script sends the encapsulated upgrade command to the network converter through the computer's Ethernet interface. The network converter converts the command into an in-vehicle Ethernet physical signal and transmits it to the central electronic control module. After receiving the command, the central electronic control module regards it as a legitimate upgrade command from the real infotainment system, thereby triggering the subsequent local upgrade process. Through the above simulation equipment, the test equipment can send upgrade commands to the central electronic control module without the need for the real infotainment system, achieving a complete replacement of the real infotainment system.
[0037] By constructing a simulated device using computers and network converters, the actual entertainment host system can be replaced. This device can send upgrade commands to the central electronic control module according to the vehicle Ethernet protocol, thereby eliminating the dependence on real hardware devices, reducing testing costs, and improving the flexibility and repeatability of testing.
[0038] In one embodiment of this application, a script runs on the computer. The test device encapsulates upgrade instructions according to a preset IP-based diagnostic communication protocol by running the script and sends them to the central control module through a network converter.
[0039] The test equipment pre-stores and runs a script (e.g., a Python script) in the computer. This script implements the message encapsulation function of the IP-based diagnostic communication protocol (DoIP protocol). When an upgrade command needs to be sent, the test equipment starts the script, which constructs a diagnostic request message according to the DoIP protocol specification: first, it sets the message header, including fields such as protocol version, message type, and message length; then it fills in the opcode of the upgrade command (e.g., start upgrade, transmit upgrade package, etc.) and the corresponding parameter data; finally, it encapsulates the complete DoIP message in an Ethernet frame, setting the source IP address (the IP of the simulated entertainment host system) and the destination IP address (the IP of the central electronic control module). The script sends the encapsulated command message to the network converter through the computer's Ethernet interface. The network converter converts the standard Ethernet signal into an in-vehicle Ethernet physical layer signal (e.g., 100BASE-T1 or 1000BASE-T1) and transmits it to the central electronic control module. Through the automatic execution of this script, the test equipment can simulate the entertainment host system sending any required upgrade command to the central electronic control module without manual intervention.
[0040] In one embodiment of this application, before the test device simulates an entertainment host system and sends an upgrade command to the central electronic control module, the method further includes: Disconnect the central control module from the actual entertainment host system.
[0041] In this embodiment, the physical or logical connection between the central control module and the actual entertainment host system is disconnected. Specifically, after the actual entertainment host system and the central control module have completed the capture and saving of the upgrade package, in order to conduct local upgrade testing using the simulation equipment, it is necessary to avoid interference from the actual entertainment host system to the central control module. Test personnel or automated control devices disconnect the Ethernet cable between the central control module and the actual entertainment host system, or disable the communication link between them at the network configuration level. By disconnecting the connection, it is ensured that the central control module only receives upgrade instructions from the simulation equipment (computer and network converter) in subsequent steps, without being interfered with by unexpected instructions from the actual entertainment host system. This disconnection operation guarantees the purity of the simulation environment and the reliability of the test results.
[0042] In one embodiment of this application, after the central electronic control module receives the upgrade command, it performs a local upgrade on the downstream node using the upgrade package and the signature verification package. The method further includes: The test equipment uses pre-saved upgrade packages and signature verification packages to repeatedly perform local upgrade operations on the downstream nodes of the central electronic control module.
[0043] In this embodiment, the test equipment repeatedly performs local upgrade operations on the back-end node of the central electronic control module using pre-saved upgrade packages and signature verification packages. Specifically, the test equipment does not need to download upgrade packages from the over-the-air firmware upgrade server again, nor does it need to re-capture and parse data packets; instead, it directly uses the upgrade packages and signature verification packages already stored in the local binary file. The test equipment sends upgrade commands to the central electronic control module multiple times through a simulated entertainment host system (i.e., a computer and network converter). Each time the central electronic control module receives a command, it uses the same pre-saved upgrade packages and signature verification packages to perform a local upgrade on the back-end node. The number of repetitions can be preset according to the needs of the stress test (e.g., 100 times, 500 times, or more consecutively). After each upgrade operation is completed, the test equipment can record the upgrade result (success or failure) and performance indicators such as time consumption to evaluate the stability and reliability of the central electronic control module under continuous upgrade pressure. By repeatedly performing multiple local upgrade operations, this application achieves stress testing of the back-end node upgrade function of the central electronic control module, effectively verifying the system's durability and error recovery capability under long-term, high-frequency upgrade scenarios.
[0044] In one embodiment of this application, the method further includes: in a vehicle body control test scenario, the test equipment sends an upgrade command to the central electronic control module through a simulated entertainment host system, so that the central electronic control module can perform a local upgrade of the downstream node using a pre-saved upgrade package and signature verification package.
[0045] In this embodiment, in the vehicle body control test scenario, the test equipment (including a simulation device consisting of a computer and a network converter) pre-acquires and stores the upgrade package and signature verification package extracted from a real firmware upgrade process. The test equipment sends an upgrade command to the central electronic control module (CEMM) via a simulated infotainment system, following an in-vehicle Ethernet communication protocol (such as DoIP). Upon receiving the command, the CEMM uses the pre-saved upgrade package and signature verification package to perform a local upgrade on downstream nodes (such as door control modules, lighting control modules, seat control modules, and other vehicle electronic control units). The entire upgrade process does not require connection to an over-the-air firmware upgrade server or reliance on real infotainment system hardware; it is completed independently entirely in the local test environment. The test equipment can repeat the above operations multiple times as needed to verify the functional correctness, stability, and stress resistance of the CEMM during the downstream node firmware upgrade process. By applying this method to the vehicle body control test scenario, the dependence on external servers and real hosts can be significantly reduced, the test environment setup can be simplified, the test cycle can be shortened, and high-intensity stress testing can be supported, thereby improving the testing efficiency and coverage of firmware upgrade functions in the vehicle body control system.
[0046] Figure 2 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown.
[0047] The device may include a processor 201 and a memory 202 storing program instructions.
[0048] When processor 201 executes the program, it implements the steps in any of the above method embodiments.
[0049] For example, the program can be divided into one or more modules / units, one or more of which are stored in memory 202 and executed by processor 201 to complete this application. The one or more modules / units can be a series of program instruction segments capable of performing a specific function, which describe the execution process of the program in the device.
[0050] Specifically, the processor 201 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0051] Memory 202 may include mass storage for data or instructions. For example, and not limitingly, memory 202 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 202 may include removable or non-removable (or fixed) media. Where appropriate, memory 202 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 202 is non-volatile solid-state memory.
[0052] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this disclosure.
[0053] The processor 201 implements any of the methods described in the above embodiments by reading and executing program instructions stored in the memory 202.
[0054] In one example, the electronic device may also include a communication interface 203 and a bus 210. The processor 201, memory 202, and communication interface 203 are connected via the bus 210 and communicate with each other.
[0055] The communication interface 203 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0056] Bus 210 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 210 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.
[0057] Furthermore, in conjunction with the methods in the above embodiments, this application embodiment can provide a storage medium for implementation. This storage medium stores program instructions; when these program instructions are executed by a processor, they implement any of the methods in the above embodiments.
[0058] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0059] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0060] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here.
[0061] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0062] The functional modules shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer grids such as the Internet, intranets, etc.
[0063] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0064] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to create a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the function / action specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified function or action, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0065] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. An upgrade testing method, characterized in that, The method is applied to a local upgrade testing system, the system including testing equipment and a central electronic control module; the method includes: The test equipment acquires a pre-saved upgrade package and signature verification package, which are extracted and stored from a real firmware upgrade process between an entertainment host system and a central electronic control module. The test equipment simulates an entertainment host system and sends an upgrade command to the central electronic control module; After receiving the upgrade command, the central electronic control module uses the upgrade package and signature verification package to perform a local upgrade on the downstream node, wherein the local upgrade does not require connection to the over-the-air firmware upgrade server and the actual entertainment host system.
2. The method according to claim 1, characterized in that, The test device acquires the pre-saved upgrade package and signature verification package, specifically including: The test equipment captures data packets transmitted between a real entertainment host system and a central electronic control module during firmware upgrade communication. The testing device parses the upgrade package and signature verification package from the captured data packets and stores them in binary file format.
3. The method according to claim 2, characterized in that, The testing device parses the upgrade package and signature verification package from the captured data packets, including: The test equipment parses specified types of messages in data packets and extracts payload data; The testing equipment reassembles the load data into an upgrade package binary file and a signature verification package binary file.
4. The method according to claim 1, characterized in that, The test equipment simulates an entertainment console system, including: The testing equipment utilizes a computer and a network converter to form a simulation device; The test equipment sends upgrade commands to the central electronic control module through the simulation equipment in accordance with the vehicle Ethernet communication protocol.
5. The method according to claim 4, characterized in that, The computer runs a script, and the test device encapsulates upgrade instructions according to a preset IP-based diagnostic communication protocol by running the script, and sends them to the central control module through the network converter.
6. The method according to claim 1, characterized in that, Before the test equipment, simulating an entertainment console system, sends an upgrade command to the central electronic control module, the method further includes: Disconnect the central control module from the actual entertainment host system.
7. The method according to claim 1, characterized in that, After receiving the upgrade command, the central control module performs a local upgrade on the downstream node using the upgrade package and signature verification package. The method further includes: The test equipment uses the pre-saved upgrade package and signature verification package to repeatedly perform local upgrade operations on the back nodes of the central electronic control module.
8. The method according to claim 1, characterized in that, The method further includes: in a vehicle body control test scenario, the test equipment sends an upgrade command to the central electronic control module through a simulated entertainment host system, so that the central electronic control module can perform a local upgrade of the downstream node using the pre-saved upgrade package and signature verification package.
9. An electronic device, characterized in that, The electronic device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the upgrade test method as described in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, implement the upgrade testing method as described in any one of claims 1-8.
