Whole vehicle OTA upgrade debugging simulation system, method and device
By using a vehicle OTA upgrade and debugging simulation system, the problems of strong hardware dependence, high testing costs, limited testing scenarios, and difficulties in concurrent testing during the development of OTA systems have been solved. This has enabled efficient OTA function development and testing on the PC, improving testing efficiency and ECU testing quality.
Patent Information
- Application Number
- CN202611295658.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the development of OTA systems suffers from problems such as strong hardware dependence, high testing costs, limited testing scenarios, difficulties in concurrent testing, and low debugging efficiency. In particular, it is difficult to complete the development and testing of OTA functions in the early stages of a project when hardware is insufficient.
A vehicle OTA upgrade debugging simulation system is provided, including a tool layer, a model layer, a control layer, and a view layer. It simulates and controls the OTA upgrade process through MQTT communication encryption and decryption, JSON tools, model layer connection, and control simulator, and supports testing on a PC.
It improves the efficiency of UI interface function testing, saves time, enhances ECU testing quality, provides automated testing methods, reduces project manpower input, and supports the rapid collection of parts upgrade acceptance standards.
Smart Images

Figure CN123178258A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle testing technology, specifically to a whole vehicle OTA upgrade and debugging simulation system, method and equipment. Background Technology
[0002] With the rapid development of intelligent connected vehicles, OTA (Over the Air Technology) technology has become an important means of vehicle software updates. However, the following technical challenges exist in the development of OTA systems: (1) Strong hardware dependence: Traditional OTA testing requires a real vehicle hardware environment, including ECU (Electronic Control Unit), TCU (Telematics Control Unit), etc., which is often not met in the early stages of project development; (2) High testing costs: Building a complete vehicle testing environment requires a large investment of hardware equipment, which is costly and testing resources are limited; (3) Limited testing scenarios: It is difficult to simulate various abnormal situations and boundary conditions in the actual hardware environment, such as network interruption, insufficient power, insufficient storage space, etc.; (4) Difficulty in concurrent testing: It is difficult to conduct large-scale concurrent stress testing on OTA systems and it is impossible to evaluate the performance of the system under high load conditions; (5) Low debugging efficiency: Locating problems in the actual hardware environment requires repeated software flashing, which is cumbersome and time-consuming.
[0003] Therefore, how to complete the development and testing of OTA functionality when hardware is insufficient in the early stages of a project has become an urgent problem to be solved. Summary of the Invention
[0004] This application provides a whole vehicle OTA upgrade and debugging simulation system, method and equipment, which can effectively realize the development and testing of OTA functions.
[0005] In a first aspect, embodiments of this application provide a vehicle OTA upgrade and debugging simulation system, the vehicle OTA upgrade and debugging simulation system comprising: The tool layer provides encryption / decryption processing, expression processing, and JSON tools for MQTT communication during OTA upgrades. The model layer is used to provide the connections, components, and controls related to the OTA upgrade process; The control layer provides message processors, task managers, MQTT managers, and file data storage during the OTA upgrade process. The view layer is used to implement visual editing operations for connections, components, and controls in the model layer.
[0006] In conjunction with the first aspect, in one implementation method, The expression processing is used to perform substitution calculations for global variables, sample variables, and parameter variables, as well as calculations for mathematical expressions. The JSON tool is used to read the value of a specified element in a JSON object based on a path, and to modify the value of a specified element in a JSON object based on a path.
[0007] In conjunction with the first aspect, in one implementation method, The connection in the model layer is used to connect to the MQTT server of the vehicle OTA. The connection attributes include connection name, ClientId, MQTT server IP, MQTT server port, username, password, whether to encrypt, and encryption key. A single connection includes multiple components. The components in the model layer are MQTT communication simulators, and the UCM module, UE module, DPC module, and UCLite module are used to simulate OTA communication. The attributes of the components include the component name and a list of global variables, and a single component includes multiple active and passive controls. The controls in the model layer include active controls and passive controls. The active controls are used to send MQTT messages to the MQTT server, and the passive controls are used to receive MQTT messages to trigger relevant OTA upgrade operations.
[0008] In conjunction with the first aspect, in one implementation method, The attributes of the active control include name, topic, message sample, message adjustment settings, action settings, next control, waiting time, passed parameters, and loop sending; The attributes of the passive control include name, theme, message sample, action settings, next control, wait time, passed parameters, trigger condition, and matching attributes.
[0009] In conjunction with the first aspect, in one implementation method, The global variables are used to apply to components, adding the current component's list of global variables and their initial values to the component's properties, thereby allowing reference to global variables in active and passive controls and triggering actions to modify global variables; The parameter variable is used to act on the triggered active control, so that after the active control or passive control is triggered, the next triggered active control is set, and the parameter is passed to the next active control so that the next active control can reference the parameter. The sample variables are used to apply to both active and passive controls. The communication messages during the OTA upgrade process are in JSON format. Active controls extract values from the message sample attributes, while passive controls extract values from the received messages. The value extraction methods include multi-segment name extraction from JSON and array subscript extraction.
[0010] In conjunction with the first aspect, in one implementation method, The message processor is used to process the business logic of each active and passive control. The task manager is used to provide thread pool management; The MQTT manager is responsible for MQTT connection configuration, reconnection after disconnection, message subscription and sending / receiving logic; The file data storage device is used for storing and synchronizing data in the model layer.
[0011] Secondly, embodiments of this application provide a vehicle OTA upgrade and debugging simulation method, based on the aforementioned vehicle OTA upgrade and debugging simulation system, including: Establish an Ethernet connection between the vehicle IVI and the vehicle OTA upgrade and debugging simulation system, and confirm the local area network IP of the vehicle IVI; Create a new connection in the model layer, and set the corresponding IP and port based on the confirmed local area network IP to connect to the MQTT server of the vehicle IVI; Create new components in the model layer and add active and passive controls. The properties of the active and passive controls are designed according to the communication protocol of the vehicle OTA. By matching MQTT messages, the corresponding MQTT messages for OTA upgrade simulation are triggered to simulate the logic of the corresponding components during the OTA upgrade process.
[0012] In conjunction with the second aspect, in one implementation, establishing the Ethernet connection between the vehicle IVI and the vehicle OTA upgrade and debugging simulation system specifically involves: The system drives the vehicle IVI and the vehicle OTA upgrade and debugging simulation system to connect to the same network, or drives the vehicle IVI to connect to the network hotspot of the vehicle OTA upgrade and debugging simulation system, or drives the vehicle OTA upgrade and debugging simulation system to connect to the network hotspot of the vehicle IVI.
[0013] In conjunction with the second aspect, in one implementation, confirming the local area network IP of the vehicle's IVI specifically includes: Use the ifconfig command to check and confirm the local area network IP of the vehicle's IVI.
[0014] Thirdly, this application provides a vehicle OTA upgrade and debugging simulation device, which includes a processor, a memory, and a vehicle OTA upgrade and debugging simulation program stored in the memory and executable by the processor. When the vehicle OTA upgrade and debugging simulation program is executed by the processor, it implements the steps of the vehicle OTA upgrade and debugging simulation method described above.
[0015] The beneficial effects of the technical solutions provided in this application include: Improve UI interface function testing efficiency: UI interface function testing eliminates the need to wait for download and upgrade processes, directly testing the display effects under various conditions, saving significant time; Improve ECU testing quality: Enables rapid and repeated stress testing and upgrades of ECUs; Provide automated testing methods: Test commands can be remotely transmitted to the vehicle's infotainment system for testing in various scenarios; Establish parts upgrade acceptance standards and quickly collect vehicle parts upgrade parameters, saving project manpower investment. Attached Figure Description
[0016] Figure 1 This is a framework diagram of the vehicle OTA upgrade and debugging simulation system for this application; Figure 2 This is a flowchart of the whole vehicle OTA upgrade and debugging simulation method of this application; Figure 3 This is a schematic diagram of the hardware structure of the vehicle OTA upgrade and debugging simulation equipment for this application. Detailed Implementation
[0017] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present application.
[0018] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0019] Firstly, this application provides a vehicle OTA upgrade and debugging simulation system. Specifically, it provides a vehicle OTA upgrade and debugging simulation system that does not rely on actual hardware environments, enabling the development and testing of OTA functions even when hardware is insufficient in the early stages of a project, while also supporting stress testing of component upgrades. In practical applications, this vehicle OTA upgrade and debugging simulation system is implemented by adding a PC to the existing vehicle OTA architecture.
[0020] It should be noted that the UCM in the original vehicle OTA architecture is the main control program for the vehicle OTA, used for tasks such as upgrade task detection, upgrade package download, pre-upgrade part version verification, part flashing, post-upgrade version verification, and upgrade result log uploading. Specifically, the UCM communicates with the cloud via an HTTP interface and with the UE (User Experience) and DPC (OTA diagnostic flashing module) modules via an MQTT (Message Queuing Telemetry Transport) interface to complete the above tasks. The vehicle OTA upgrade debugging simulation system in this application runs on a PC, simulating the sending and receiving of messages to the MQTT server of the IVI (In-Vehicle Infotainment system) to achieve simulation and control, completing the debugging and stress testing of the OTA upgrade.
[0021] In one embodiment, reference is made to Figure 1 , Figure 1 This is a framework diagram of the vehicle OTA upgrade and debugging simulation system for this application. Figure 1 As shown, the vehicle OTA upgrade and debugging simulation system includes: tool layer, model layer, control layer, and view layer.
[0022] The tool layer provides encryption and decryption processing (specifically AES encryption and decryption), expression processing, and JSON tools for MQTT communication during OTA upgrades. Furthermore, the tool layer also includes logging tools, which are used to print logs to files and the console according to specified levels and formats.
[0023] The model layer provides the connections, components, and controls related to the OTA upgrade process; specifically, the model layer includes three types of models: connections, components, and controls. The control layer provides the message processor, task manager, MQTT manager, and file data storage during the OTA upgrade process. The view layer enables the visual editing of the connections, components, and controls in the model layer.
[0024] Furthermore, in one embodiment, expression processing is used to perform substitution calculations for global variables, sample variables, parameter variables, and mathematical expressions; the JSON tool is used to read the value of a specified element in a JSON (an open standard lightweight data interchange format) according to a path and to modify the value of a specified element in a JSON object according to a path.
[0025] Furthermore, in one embodiment, the connection in the model layer is used to connect to the MQTT server of the vehicle OTA. The connection attributes include connection name, ClientId, MQTT server IP, MQTT server port, username, password, whether to encrypt, and encryption key. A single connection includes multiple components.
[0026] The components in the model layer are MQTT communication simulators, and are used to simulate OTA communication UCM module, UE module, DPC module (OTA diagnostic flashing module), and UCLite module (lightweight and simplified version of UCM upgrade management module). The attributes of the components include component name and global variable list, and a single component includes multiple active and passive controls. The controls in the model layer include active controls and passive controls. The active controls are used to send MQTT messages to the MQTT server, and the passive controls are used to receive MQTT messages to trigger relevant OTA upgrade operations.
[0027] The properties of active controls include: Name (unique value, cannot be repeated within the same component), Topic (used for sending MQTT messages), Message Sample (JSON format, a sample message to be sent), Message Adjustment Settings (format: Sample message attribute1=value1, attribute2=${1}, attribute3=${fsm}; before sending the message, the values corresponding to the specified attributes in the sample message are replaced with the set values; here, attribute names support JSON path expressions, and values support the variable system), Action Settings (supports global variable settings and logging functions), Next Control (the name of the next active control triggered after the message is sent), Wait Time (the waiting time before the next control is triggered after the current control is triggered), Pass Parameters (the name of the parameter passed to the next control, supporting the variable system), and Loop Sending (this message is sent repeatedly, format: parameter name, start value, increment, end value, interval in milliseconds; the parameter name uses a JSON path expression; when sending messages repeatedly, the value of the JSON message corresponding to the parameter is sent repeatedly according to the set method). It should be noted that JSON path expressions are string syntax used to describe how to access a specific location in JSON data, similar to a file system path.
[0028] The passive control's properties include: Name (unique value, cannot be repeated within the same component), Topic (used for receiving MQTT messages), Message Sample (JSON format, the received message sample), Action Settings (supports global variable settings and logging), Next Control (the name of the next active control triggered after the message is received), Wait Time (the waiting time after the current control is triggered before the next control is triggered), Passed Parameters (the parameter name passed to the next control, supporting the variable system), Trigger Condition (the condition that must be met to trigger the passive control, in the format: attribute name, comparison symbol (>, <, =, >=, <=), value, where the attribute name supports JSON path expressions), and Matching Attribute (the passive control is triggered only if the value of the corresponding attribute in the received message is the same as the value of the corresponding attribute in the sample message; multiple attributes are separated by commas, such as: attribute1, attribute2, attribute3).
[0029] Furthermore, in one embodiment, global variables are used on components to add a list of global variables and their initial values to the component's properties. This allows global variables to be referenced in active and passive controls and actions to modify them to be triggered. The reference format is: ${variable name}.
[0030] Parameter variables are used to act on the triggered active control, thus setting the next triggered active control after an active or passive control is triggered, and passing parameters to the next active control so that the next active control can reference these parameters. Specifically, after an active or passive control is triggered, the next triggered active control can be set, and parameters can be passed to the next active control. When the next active control needs to reference these parameters, it can use the form ${number}, where the number represents the parameter variable number. The reference format for parameter variables is: ${number}.
[0031] Sample variables are applied to both active and passive controls. Communication messages during OTA upgrades use JSON format. Active controls extract values from message sample attributes, while passive controls retrieve values from the received message. Value retrieval methods include using JSON multi-segment names and array indices. The reference format for sample variables is @{JSON path}.
[0032] Furthermore, in one embodiment, the message processor is used to process the business logic of each active and passive control; the task manager is used to provide thread pool management; the MQTT manager is used to be responsible for MQTT connection configuration, disconnection reconnection, message subscription and sending / receiving logic; and the file data storage is used to store and synchronize data in the model layer.
[0033] Furthermore, the view layer is designed around three models: connection, component, and control. The interface elements mainly include a model list, model attributes, and a list of components and controls (including active and passive controls). Clicking on a list item will pop up a window to display the detailed attributes of that model for editing and modification.
[0034] Furthermore, the following explanation uses the example of simulating TBOX part information query to illustrate the configuration of active and passive controls.
[0035] Set the passive control to receive MQTT messages to the topic: ota / dftc / slave-tbox / getEcuInfoInd. The message sample describes the format of the MQTT message. It also sets the trigger for the next control to be: getEcuInfoRsp (message response control), with a trigger wait time of 0 and a trigger parameter of: @{msgInd}. This means that the received message's field is passed to the next control. This field contains the message ID, so that subsequent reply messages will also use the same ID.
[0036] Meanwhile, the active control has message adjustment settings: msgInd=${0}, msgBody.ecuInfo.ecuSVer=${sver}. Therefore, before the above message is sent, the value of msgInd will be adjusted to ${0}, which is the first parameter variable, that is, the value of msgInd when the message is received. At the same time, the value of msgBody.ecuInfo.ecuSVer (that is, the content marked in red in the above message content) will be changed to ${sver}, which is the global variable value of the component.
[0037] For parts information query, the overall runtime flow is as follows: trigger ignition, trigger ignition task, detect vehicle parts information, parts information query command, distribute message to passive controls under all components, passive control detects trigger conditions, passive control executes action, passive control triggers the next active control, active control prepares message, calculates expression, modifies JSON message, active control sends MQTT message in a loop according to loop configuration, active control triggers the next active control after loop ends, active control sends MQTT message, active control executes action, active control triggers the next active control, simulated parts information message.
[0038] During the vehicle OTA upgrade process, when there is no TBOX, the vehicle OTA upgrade debugging simulation system of this application is used to replace the TBOX. The specific execution process is as follows: the ignition information of the vehicle's IVI is sent to the UCM via the UE module. The UCM sends a part information query command to the TBOX. The vehicle OTA upgrade debugging simulation system receives the query command and distributes the command to all passive controls. The passive control first checks whether the topic of the received message matches the topic of the passive control. Then, if there is a set trigger condition, it checks whether the trigger condition is met. Then, if there is a set matching attribute, it further checks whether the matching attribute matches. Only after all these are passed is the passive control triggered. Then the next active control is triggered, that is, the part information response active control is triggered. Then the message to be sent is prepared, the message ID and the software version of the TBOX (global variable) are replaced in the message sample, and the response MQTT message is sent to reply to the UCM with the part information.
[0039] Secondly, this application also provides a vehicle OTA upgrade and debugging simulation method, which is based on the vehicle OTA upgrade and debugging simulation system described above.
[0040] In one embodiment, reference is made to Figure 2 , Figure 2 This is a flowchart illustrating the vehicle OTA upgrade and debugging simulation method described in this application. Figure 2 As shown, the whole vehicle OTA upgrade and debugging simulation method includes: S1: Establish an Ethernet connection between the vehicle IVI and the vehicle OTA upgrade and debugging simulation system, and confirm the local area network IP of the vehicle IVI; Specifically, establishing an Ethernet connection between the vehicle's IVI and the vehicle's OTA upgrade and debugging simulation system involves: Drive the vehicle IVI and the vehicle OTA upgrade and debugging simulation system to connect to the same network, or drive the vehicle IVI to connect to the network hotspot of the vehicle OTA upgrade and debugging simulation system, or drive the vehicle OTA upgrade and debugging simulation system to connect to the network hotspot of the vehicle IVI; This includes confirming the local area network IP of the vehicle's IVI, specifically by using the ifconfig command to query the local area network IP of the vehicle's IVI.
[0041] S2: Create a new connection in the model layer, and set the corresponding IP and port based on the confirmed local area network IP to connect to the MQTT server of the vehicle IVI; S3: Create a new component in the model layer and add an active control (used to listen for MQTT messages during the vehicle OTA upgrade process) and a passive control (used to send simulated MQTT messages). The properties of the active and passive controls are designed according to the vehicle OTA communication protocol. S4: By matching MQTT messages, the corresponding MQTT message simulated for OTA upgrade is triggered to simulate the logic of the corresponding component during the OTA upgrade process. Specifically, by matching MQTT messages, the corresponding MQTT message simulated for OTA upgrade is triggered, thereby simulating the logic of a certain component in the whole vehicle OTA upgrade process.
[0042] The following examples illustrate the vehicle OTA upgrade and debugging simulation system of this application.
[0043] For rapid design and verification of UI functionality, when it is necessary to quickly modify the UI effects displayed during the upgrade process, in order to avoid configuring upgrade tasks, configuring part information, configuring vehicle model part configuration information, configuring certificates, configuring vehicle VIN codes, etc., the MQTT messages printed in the logs of the actual vehicle OTA upgrade process can be made into a simulated UCM component and sent to the UE as simulated upgrade messages. This allows for rapid verification of whether the upgraded UI display effect achieves the expected effect, thereby saving a lot of time.
[0044] The specific timing sequence for quick verification of the UI interface is as follows: Clicking triggers an active control to initiate an OTA mode request. The request enters OTA mode. Upon successful entry into OTA mode, a passive control OTA mode response is triggered, which in turn triggers the next active control to initiate upgrade environment preparation. Once the upgrade environment is prepared, the next active control ECU flashing progress notification is triggered. ECU flashing progress is then triggered, and the next active control ECU upgrade result notification is obtained. The ECU upgrade result is then obtained.
[0045] The MQTT message sent by the vehicle OTA upgrade and debugging simulation system of this application arrives at the IVI via the UE. By designing corresponding active and passive controls, the message content and sending sequence of the MQTT are made consistent with the message sequence of the actual upgrade process. This allows the IVI to display the entire upgrade interface process, thereby verifying whether the interface display meets the design requirements.
[0046] For rapid and repeated stress testing of a single component, the component's upgrade package can be pushed to the device in advance. By simulating UCM messages and setting a cyclic sending strategy, a scenario of repeated flashing of a single ECU can be implemented, thereby stress testing the upgrade performance of a single component.
[0047] The specific timing sequence for single-part cyclic upgrades is as follows: the active control is triggered to initiate an ECU flashing request, the flashing script is executed to send data to the CAN network, the flashing progress is monitored, the passive control is triggered to notify the flashing progress, the flashing result is obtained, the passive control is triggered to notify the flashing result, and if the flashing is successful, the next control is triggered to initiate an ECU flashing request.
[0048] For rapid debugging and upgrades, in the early stages of project development when functionality is incomplete, the vehicle OTA upgrade and debugging simulation system described in this application can be used to simulate skipping unfinished steps, thereby verifying the completed steps. For example, before querying part information, the vehicle OTA must first confirm the OTA mode to ensure that the vehicle is not in OBD diagnostic mode or remote diagnostic mode before initiating the query for part information. If the OTA mode query function is abnormal and not yet fully developed, the vehicle OTA upgrade and debugging simulation system described in this application can simulate MQTT messages, making the vehicle believe that the OTA mode query is normal, thus skipping this step and directly querying part information for the ECU.
[0049] Thirdly, embodiments of this application provide a vehicle OTA upgrade and debugging simulation device, which can be a personal computer (PC), laptop computer, server, or other device with data processing capabilities.
[0050] Reference Figure 3 , Figure 3 This is a schematic diagram of the hardware structure of the vehicle OTA upgrade and debugging simulation device involved in the embodiments of this application. In this embodiment, the vehicle OTA upgrade and debugging simulation device may include a processor, a memory, a communication interface, and a communication bus.
[0051] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.
[0052] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces used for interconnecting components within the vehicle OTA upgrade and debugging simulation equipment, as well as interfaces used for interconnecting the vehicle OTA upgrade and debugging simulation equipment with other devices (such as other computing devices or user equipment). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc.; user equipment can be displays, keyboards, etc.
[0053] Memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0054] The processor can be a general-purpose processor, which can call the vehicle OTA upgrade and debugging simulation program stored in the memory and execute the vehicle OTA upgrade and debugging simulation method provided in the embodiments of this application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the vehicle OTA upgrade and debugging simulation program is called can be referred to in the various embodiments of the vehicle OTA upgrade and debugging simulation method of this application, and will not be repeated here.
[0055] Those skilled in the art will understand that Figure 3 The hardware structure shown does not constitute a limitation of this application and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0056] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus. The terms "first," "second," and "third," etc., are used to distinguish different objects, etc., and do not indicate a sequence, nor do they limit "first," "second," and "third" to different types.
[0057] In the description of the embodiments of this application, terms such as "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a concrete manner.
[0058] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0059] In some processes described in the embodiments of this application, multiple operations or steps are included in a specific order. However, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of this application, or they may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.
[0060] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.
[0061] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A vehicle OTA upgrade and debugging simulation system, characterized in that, The vehicle OTA upgrade and debugging simulation system includes: The tool layer provides encryption / decryption processing, expression processing, and JSON tools for MQTT communication during OTA upgrades. The model layer is used to provide the connections, components, and controls related to the OTA upgrade process; The control layer provides message processors, task managers, MQTT managers, and file data storage during the OTA upgrade process. The view layer is used to implement visual editing operations for connections, components, and controls in the model layer.
2. The vehicle OTA upgrade and debugging simulation system as described in claim 1, characterized in that: The expression processing is used to perform substitution calculations for global variables, sample variables, and parameter variables, as well as calculations for mathematical expressions. The JSON tool is used to read the value of a specified element in a JSON object based on a path, and to modify the value of a specified element in a JSON object based on a path.
3. The whole vehicle OTA upgrade and debugging simulation system as described in claim 2, characterized in that: The connection in the model layer is used to connect to the MQTT server of the vehicle OTA. The connection attributes include connection name, ClientId, MQTT server IP, MQTT server port, username, password, whether to encrypt, and encryption key. A single connection includes multiple components. The components in the model layer are MQTT communication simulators, and the UCM module, UE module, DPC module, and UCLite module are used to simulate OTA communication. The attributes of the components include the component name and a list of global variables, and a single component includes multiple active and passive controls. The controls in the model layer include active controls and passive controls. The active controls are used to send MQTT messages to the MQTT server, and the passive controls are used to receive MQTT messages to trigger relevant OTA upgrade operations.
4. The whole vehicle OTA upgrade and debugging simulation system as described in claim 3, characterized in that: The attributes of the active control include name, topic, message sample, message adjustment settings, action settings, next control, waiting time, passed parameters, and loop sending; The attributes of the passive control include name, theme, message sample, action settings, next control, wait time, passed parameters, trigger condition, and matching attributes.
5. The whole vehicle OTA upgrade and debugging simulation system as described in claim 3, characterized in that: The global variables are used to apply to components, adding the current component's list of global variables and their initial values to the component's properties, thereby allowing reference to global variables in active and passive controls and triggering actions to modify global variables; The parameter variable is used to act on the triggered active control, so that after the active control or passive control is triggered, the next triggered active control is set, and the parameter is passed to the next active control so that the next active control can reference the parameter. The sample variables are used to apply to both active and passive controls. The communication messages during the OTA upgrade process are in JSON format. Active controls extract values from the message sample attributes, while passive controls extract values from the received messages. The value extraction methods include multi-segment name extraction from JSON and array subscript extraction.
6. The whole vehicle OTA upgrade and debugging simulation system as described in claim 3, characterized in that: The message processor is used to process the business logic of each active and passive control. The task manager is used to provide thread pool management; The MQTT manager is responsible for MQTT connection configuration, reconnection after disconnection, message subscription and sending / receiving logic; The file data storage device is used for storing and synchronizing data in the model layer.
7. A method for simulating over-the-air (OTA) upgrades and debugging of a vehicle, based on the vehicle OTA upgrade and debugging simulation system described in any one of claims 1 to 6, characterized in that, include: Establish an Ethernet connection between the vehicle IVI and the vehicle OTA upgrade and debugging simulation system, and confirm the local area network IP of the vehicle IVI; Create a new connection in the model layer, and set the corresponding IP and port based on the confirmed local area network IP to connect to the MQTT server of the vehicle IVI; Create new components in the model layer and add active and passive controls. The properties of the active and passive controls are designed according to the communication protocol of the vehicle OTA. By matching MQTT messages, the corresponding MQTT messages for OTA upgrade simulation are triggered to simulate the logic of the corresponding components during the OTA upgrade process.
8. The whole vehicle OTA upgrade and debugging simulation method as described in claim 7, characterized in that, The establishment of the Ethernet connection between the vehicle IVI and the vehicle OTA upgrade and debugging simulation system specifically involves: The system drives the vehicle IVI and the vehicle OTA upgrade and debugging simulation system to connect to the same network, or drives the vehicle IVI to connect to the network hotspot of the vehicle OTA upgrade and debugging simulation system, or drives the vehicle OTA upgrade and debugging simulation system to connect to the network hotspot of the vehicle IVI.
9. The whole vehicle OTA upgrade and debugging simulation method as described in claim 7, characterized in that, The confirmation of the vehicle's IVI local area network IP specifically includes: Use the ifconfig command to check and confirm the local area network IP of the vehicle's IVI.
10. A vehicle OTA upgrade and debugging simulation device, characterized in that, The vehicle OTA upgrade and debugging simulation device includes a processor, a memory, and a vehicle OTA upgrade and debugging simulation program stored in the memory and executable by the processor, wherein when the vehicle OTA upgrade and debugging simulation program is executed by the processor, it implements the steps of the vehicle OTA upgrade and debugging simulation method as described in any one of claims 7 to 9.
