OTA upgrading method and device for vehicle and storage medium

By performing OTA upgrades in the vehicle operating or non-operating state, and using regional network transmission and data partition switching technology, the problem of vehicles requiring static updates in the existing technology has been solved, and the timely update and stability improvement of vehicle software has been achieved.

CN119127246APending Publication Date: 2024-12-13ZOOMLION HEAVY INDUSTRY SCIENCE AND TECHNOLOGY CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411072007.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The existing OTA technology requires that the vehicle be in a stationary or idle state to be updated, resulting in the inability to update the vehicle software in time, which increases the time cost of users and has a poor user experience.

Method used

When the vehicle is in operation or non-operating state, the firmware upgrade package is parsed and data packaged through the server according to the protocol of the target controller, and the upgrade package data is transmitted through the regional network, written to the target controller to update the firmware version, and segmentation is supported Transmission and data partition replacement ensure the stability and timeliness of upgrades.

Benefits of technology

It realizes timely updates of vehicle software, reduces time costs, improves user experience, reduces the probability of upgrade failure, and improves the stability of upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127246A_ABST
    Figure CN119127246A_ABST
Patent Text Reader

Abstract

The invention provides an OTA upgrading method and device for a vehicle and a storage medium. The method is applied to a target controller installed on a vehicle, and the OTA upgrading method comprises the steps that after an upgrading request sent by a server is received, equipment information of the target controller is returned to the server; under the condition that the vehicle is in a running state or a non-running state, receiving upgrade package data which is transmitted by the server through a local area network and which is used for carrying out analysis and data packaging operation on the firmware upgrade package according to a protocol adaptive to the target controller; and writing the upgrade package data into the target controller to update the firmware version of the target controller. According to the scheme, the firmware of the target controller on the vehicle can be upgraded at any time without being limited to the situation that the vehicle is in a static state or a non-starting state, so that upgrading is more timely and convenient, more time cost does not need to be consumed, and user experience is also improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle software updating, and in particular to an OTA upgrading method, device and storage medium for a vehicle. Background Art

[0002] With the development of intelligent network technology, OTA (over-the-air download) technology has become an important means of vehicle software upgrades and functional improvements. In the prior art, the process of vehicle software upgrades is usually: the developer uploads the prepared firmware upgrade package to the OTA cloud server and fills in the relevant upgrade information. The vehicle side regularly sends a request to the OTA server to check for updates. After querying that there is an upgrade package update, the server will pass the update information to the vehicle side. The vehicle side determines whether a firmware upgrade is required based on the information and sends the result to the server. When the vehicle is in a stationary idle state, if an update is performed, the T-BOX (converter) will download the upgrade package from the cloud server and confirm the status with the controller on the vehicle side to ensure the stability and security of the upgrade.

[0003] It can be seen that the existing OTA technology requires the vehicle to be stationary or idle in order to update its software version, resulting in the inability to update the vehicle's software system in a timely manner. The upgrade requires a specific time, which unnecessarily increases the user's time cost and leads to a poor user experience. Summary of the invention

[0004] The object of the present invention is to provide an OTA upgrade method, device and storage medium for a vehicle.

[0005] In order to achieve the above object, the first aspect of the present invention provides an OTA upgrade method for a vehicle, the method is applied to a target controller installed on the vehicle, and the OTA upgrade method includes:

[0006] After receiving the upgrade request sent by the server, the device information of the target controller is returned to the server;

[0007] When the vehicle is in a running state or a non-running state, the receiving server parses and packages the firmware upgrade package according to a protocol adapted to the target controller and transmits the upgrade package data through the local area network;

[0008] Write the upgrade package data to the target controller to update the firmware version of the target controller.

[0009] In the present invention, the receiving server parses and packages the firmware upgrade package according to a protocol adapted to the target controller and transmits the upgrade package data through a local area network, including: after the server parses and packages the firmware upgrade package according to a protocol adapted to the target controller and transmits it to the on-board converter through the local area network, receiving the on-board network data transmitted by the on-board converter, wherein the on-board network data is obtained by the on-board converter based on the received data conversion.

[0010] In the present invention, when transmitting a firmware upgrade package, the server processes and transmits the firmware upgrade package in segments according to the current network conditions of the local area network, and the memory partition of the target controller includes an operating area and a backup and restore area; writing the upgrade package data to the target controller includes: parsing the upgrade package data through the operating area, and writing the parsed data to the backup and restore area; when all the segmented data are written to the backup and restore area, it is determined that the firmware version of the target controller has been updated.

[0011] In the present invention, the OTA upgrade method also includes: after determining that the firmware version of the target controller has been updated, creating and storing an upgrade completion mark; when the target controller is powered on again, detecting whether there is an upgrade completion mark; when the upgrade completion mark is detected, swapping the running area with the backup and restore area to execute the latest firmware version in the backup and restore area.

[0012] In the present invention, when an upgrade completion mark is detected, the running area and the backup and restore area are swapped to execute the latest firmware version in the backup and restore area, including: when an upgrade completion mark is detected, the data in the running area is copied to the data transfer area or the data in the backup and restore area is copied to the data transfer area, so as to swap the running area with the backup and restore area through the data transfer area to execute the latest firmware version in the backup and restore area.

[0013] In the present invention, the OTA upgrade method further includes: when an exception occurs during the process of writing any segmented data into the backup and restore area, the target controller continues to execute the firmware version at the last power-on when it is powered on next time.

[0014] In the present invention, the OTA upgrade method also includes: after returning the device information of the target controller to the server, judging whether the firmware upgrade is allowed based on the version information and upgrade setting information of the target controller; if it is determined that the firmware upgrade is allowed, sending a notification of allowing the upgrade to the server, so that the server responds to the notification of allowing the upgrade and starts parsing and packaging the firmware upgrade package according to the protocol adapted to the target controller and transmits it.

[0015] A second aspect of the present invention provides an OTA upgrade method for a vehicle, the method is applied to a server, and the OTA upgrade method includes:

[0016] Obtain a firmware upgrade package, and send an upgrade request to a target controller installed on the vehicle based on configuration information of the firmware upgrade package;

[0017] After receiving the notification of permission to upgrade returned by the target controller, the firmware upgrade package is parsed and data packaged according to the protocol adapted to the target controller;

[0018] The processed firmware upgrade package is transmitted to the target controller via the local area network, so as to write the firmware upgrade package to the target controller to update the firmware version of the target controller, wherein the vehicle is in a running state or a non-running state.

[0019] In the present invention, transmitting the processed firmware upgrade package to the target controller via the local area network also includes: transmitting the processed firmware upgrade package to the vehicle-mounted converter via the local area network, so as to convert the received data into vehicle-mounted network data through the vehicle-mounted converter, and transmit the vehicle-mounted network data to the target controller.

[0020] In the present invention, transmitting the processed firmware upgrade package to the on-board converter via the local area network includes: determining the current network status of the local area network; segmenting the processed firmware upgrade package according to the network status, and transmitting the segmented data packets to the on-board converter via the local area network in sequence.

[0021] In the present invention, the OTA upgrade method also includes: after obtaining the firmware upgrade package, determining update parameter information for the firmware upgrade package; sending a parameter request to the target controller based on the update parameter information; and obtaining device information returned by the target controller in response to the parameter request.

[0022] A third aspect of the present invention provides an OTA upgrade method for a vehicle, the OTA upgrade method comprising:

[0023] The server obtains the firmware upgrade package, and sends an upgrade request to a target controller installed on the vehicle based on the configuration information of the firmware upgrade package;

[0024] After receiving the upgrade request sent by the server, the target controller returns the device information of the target controller to the server;

[0025] When the vehicle is in operation or non-operation, the server parses and packages the firmware upgrade package according to the protocol adapted to the target controller, and transmits the processed firmware upgrade package to the target controller via the local area network;

[0026] The target controller receives the processed firmware upgrade package and writes it into the target controller to update the firmware version of the target controller.

[0027] In the present invention, the server parses and packages the firmware upgrade package according to a protocol adapted to the target controller, and transmits the processed firmware upgrade package to the target controller through a local area network, which also includes: after the server parses and packages the firmware upgrade package according to a protocol adapted to the target controller, the server transmits the processed firmware upgrade package to the vehicle-mounted converter through the local area network, so that the received data is converted into vehicle-mounted network data through the vehicle-mounted converter; the target controller receives the vehicle-mounted network data transmitted by the vehicle-mounted converter, and writes the vehicle-mounted network data to the target controller to update the firmware version of the target controller.

[0028] A fourth aspect of the present invention provides an OTA upgrade device for a vehicle, comprising:

[0029] a memory configured to store instructions;

[0030] A processor is configured to call instructions from a memory and implement the OTA upgrade method for a vehicle according to any one of the above items when executing the instructions.

[0031] A fifth aspect of the present invention provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configure the processor to execute the above-mentioned OTA upgrade method for a vehicle.

[0032] In the above technical solution, after there is a new firmware upgrade package on the server, the server can parse and package the firmware upgrade package according to the protocol adapted to the target controller, and send it directly to the target controller installed on the vehicle when the vehicle is in operation. This solution is not limited to the vehicle being in a stationary or non-starting state, but the firmware of the target controller on the vehicle can be upgraded at any time. This upgrade is more timely and convenient, does not require more time cost, and also improves the user experience.

[0033] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0035] Figure 1 A schematic diagram of an application environment of an OTA upgrade method for a vehicle according to an embodiment of the present invention is schematically shown;

[0036] Figure 2 A schematic diagram of a process flow of an OTA upgrade method for a vehicle according to an embodiment of the present invention is shown;

[0037] Figure 3 A schematic diagram schematically shows a partition swap according to an embodiment of the present invention;

[0038] Figure 4 A schematic diagram of a process flow of an OTA upgrade method for a vehicle according to another embodiment of the present invention is shown;

[0039] Figure 5 A schematic diagram of a process flow of an OTA upgrade method for a vehicle according to yet another embodiment of the present invention is shown;

[0040] Figure 6 A timing diagram of an OTA upgrade method for a vehicle according to an embodiment of the present invention is schematically shown;

[0041] Figure 7 The internal structure of a computer device according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0043] The OTA upgrade method for a vehicle provided by the present invention can be applied to Figure 1In the application environment shown in the figure. Among them, the vehicle includes a target controller and a converter. The target controller and the converter can communicate through the vehicle network, such as the CAN network. The OTA cloud server storing the upgrade package communicates with the converter through a wireless network. The target controller includes a main chip, and in this solution, the partition of the main chip can be divided into a Front area (i.e., an operating area) and a Back area (i.e., a backup and restore area). Specifically, the converter can be a T-Box converter. T-Box (short for Telematics Box), i.e., a telematics processor, is one of the four major parts of the Internet of Vehicles system. Relevant personnel can first store the upgrade data packet to the OTA cloud server, and then the OTA cloud server can send an upgrade request to the target controller. After receiving the upgrade request sent by the server, the target controller installed on the vehicle can return its own device information to the server. Then, when the vehicle is in a running state or a non-running state, the receiving server parses and packages the firmware upgrade package according to the protocol adapted to the target controller and transmits the upgrade package data through the regional network, and then the upgrade package data can be written to the chip of the target controller to update the firmware version of the target controller.

[0044] Figure 2 The following is a schematic diagram of a process flow of an OTA upgrade method for a vehicle according to an embodiment of the present invention. Figure 2 As shown, in one embodiment of the present invention, a method for OTA upgrade of a vehicle is provided. This embodiment mainly applies the method to the above Figure 1 Taking the target controller in as an example, the following steps are included:

[0045] Step 202: after receiving the upgrade request sent by the server, the device information of the target controller is returned to the server.

[0046] Step 204, when the vehicle is in a running state or a non-running state, the receiving server parses and packages the firmware upgrade package according to a protocol adapted to the target controller and transmits the upgrade package data through the local area network.

[0047] Step 206 , writing the upgrade package data to the target controller to update the firmware version of the target controller.

[0048] There are multiple versions of upgrade packages stored on the server, and technicians can upload the latest version of the upgrade package as needed. Therefore, when the server detects that the version of the upgrade package has been updated, it can actively initiate an upgrade request to the target controller installed on the vehicle to notify the target controller that there is currently an upgrade package that can be upgraded. After receiving the upgrade request sent by the server, the target controller can return the device information of the target controller to the server. Among them, the device information of the target controller can refer to the device model, device ID, etc. of the target controller. After receiving the device information of the target controller, the server can ignore the current operating state of the vehicle. In other words, even if the vehicle is in operation, the server can parse and package the firmware upgrade package according to the protocol adapted to the target controller, and then send it to the target controller. After receiving the upgrade package data transmitted by the server through the regional network, the target controller can write the upgrade package data to the target controller. Specifically, the target controller writes the upgrade package data to the main chip to update the firmware version of the target controller. Later, when the vehicle is powered on again, that is, restarted, the latest firmware version in the main chip can be run, so that the latest upgrade package can take effect.

[0049] In this solution, after there is a new firmware upgrade package on the server, the server can parse and package the firmware upgrade package according to the protocol adapted to the target controller, and send it directly to the target controller installed on the vehicle when the vehicle is in operation. This solution is not limited to the vehicle being stationary or non-starting, but the firmware of the target controller on the vehicle can be upgraded at any time. This upgrade is more timely and convenient, does not require more time and cost, and also improves the user experience.

[0050] In one embodiment, receiving upgrade package data that is parsed and packaged by a server according to a protocol adapted to a target controller and transmitted through a local area network includes: after the server parses and packages the firmware upgrade package according to a protocol adapted to a target controller and transmits it to the on-board converter through the local area network, receiving the on-board network data transmitted by the on-board converter, wherein the on-board network data is converted by the on-board converter based on the received data.

[0051] In this solution, an on-board converter is introduced. That is to say, the server can first parse and package the firmware upgrade package according to the protocol adapted to the target controller, and then transmit the packaged upgrade package data to the on-board converter through the local area network. The on-board converter can convert the received upgrade package data into on-board network data, and then transmit the converted on-board network data to the target controller based on the CAN network. Since the data transmitted by the server through the wireless network, if it is directly transmitted to the target controller, the target controller needs to identify the data first. In this solution, an on-board converter is introduced, and the wireless network data can be intelligently converted into on-board network data through the on-board converter. Analogous to UART to USB. On-board network data refers to data transmitted in the on-board network, and the on-board network can be CAN, LIN, Ethernet, etc. If the on-board converter is not introduced, it means that the target controller has its own data conversion function, that is, after receiving the upgrade package data directly transmitted by the server through the wireless network, the target controller can convert the wireless network data into on-board network data, and then write the converted data into the main chip to update the firmware version of the target controller. Further, after the firmware version update on the target controller is completed, the target controller may send an upgrade completion result to the server based on the converter.

[0052] In one embodiment, when transmitting a firmware upgrade package, the server processes and transmits the firmware upgrade package in segments according to the current network conditions of the local area network, and the memory partition of the target controller includes an operating area and a backup and restore area; writing the upgrade package data to the target controller includes: parsing the upgrade package data through the operating area, and writing the parsed data to the backup and restore area; when all the segmented data are written to the backup and restore area, it is determined that the firmware version of the target controller has been updated.

[0053] The main chip of the target controller may have multiple partitions, specifically including at least an operating area and a backup and restore area. When the server transmits the firmware upgrade package, it may process and transmit the firmware upgrade package in segments according to the current network conditions of the regional network. For example, when the network conditions are relatively stable, more data can be transmitted, and fewer segments can be used; when the network fluctuates, the amount of data can be reduced, that is, more segments can be used, so that the amount of data transmitted in each segment is reduced to avoid wasting time due to excessive data errors and retransmissions. After receiving the upgrade package data that the server parses and packages the firmware upgrade package according to the protocol adapted to the target controller and transmits through the regional network, the target controller may write the received upgrade package data to the target controller. Specifically, the received upgrade package data may be written into the operating area first, and the upgrade package data may be parsed by the operating area, and then the operating area may write the parsed data into the backup and restore area. In this way, the data of each segment may be written into the backup and restore area. When all the segment data are written into the backup and restore area, it can be determined that the firmware version of the target controller has been updated.

[0054] Specifically, Figure 3 As shown, after determining that the firmware version of the target controller has been updated, if the target controller is restarted (i.e. Figure 3 The second reset restart in the left picture), if you want to execute the latest firmware version, you can swap the running area (front area) with the backup and restore area (back area), and then you can execute the latest firmware version stored in the backup and restore area to run the updated firmware version.

[0055] In one embodiment, the above-mentioned OTA upgrade method also includes: after determining that the firmware version of the target controller has been updated, creating and storing an upgrade completion mark; when the target controller is powered on again, detecting whether there is an upgrade completion mark; when the upgrade completion mark is detected, swapping the running area with the backup and restore area to execute the latest firmware version in the backup and restore area.

[0056] After determining that the firmware version of the target controller has been updated, the target controller can create an upgrade completion mark corresponding to the firmware version and store the upgrade completion mark. At the same time, the target controller can also send the upgrade completion mark to the server to notify the server that the firmware version on the target controller has been updated. If the target controller is powered on again, such as restarting, the target controller will first detect whether there is an upgrade completion mark. If an upgrade completion mark is detected, it means that the firmware version of the target controller has been updated. At this time, the running area of ​​the main chip of the target controller can be swapped with the backup and restore area, so that the latest firmware version in the backup and restore area can be executed, so that the latest firmware version after the previous upgrade can take effect.

[0057] In one embodiment, when an indicator indicating that the upgrade is complete is detected, the running area and the backup and restore area are swapped to execute the latest firmware version in the backup and restore area, including: when an indicator indicating that the upgrade is complete is detected, the data in the running area is copied to the data transfer area or the data in the backup and restore area is copied to the data transfer area, so as to swap the running area and the backup and restore area through the data transfer area to execute the latest firmware version in the backup and restore area.

[0058] When the target controller detects an upgrade completion mark, it means that the firmware version of the target controller has been updated. At this time, the operating area and the backup and restore area of ​​the main chip of the target controller can be swapped. In this embodiment, the way to swap the operating area and the backup and restore area is to introduce a data transfer area. That is, the data in the operating area can be copied to the data transfer area first, and then the data in the operating area can be imported into the backup and restore area through the data transfer area to swap the operating area with the backup and restore area. Alternatively, the data in the backup and restore area can be copied to the data transfer area first, and then the data in the backup and restore area can be imported into the operating area through the data transfer area to swap the operating area with the backup and restore area. After the swap, the latest firmware version in the backup and restore area can be executed, so that the latest firmware version after the previous upgrade can take effect.

[0059] In one embodiment, the above OTA upgrade method further includes: when an exception occurs during the process of writing any segmented data to the backup and restore area, the target controller continues to execute the firmware version at the last power-on when it is powered on next time.

[0060] In the actual upgrade process, when writing each segment data to the backup and restore area, an exception may occur. For example, a sudden power outage, etc. At this time, it means that the firmware version upgrade in the target controller has failed. If the target controller is powered on again, that is, the target controller will still execute the firmware version executed at the last power-on when it is powered on next time to ensure the normal operation of the target controller.

[0061] In one embodiment, Figure 3 As shown, under normal circumstances, after receiving the upgrade package data from the server that parses and packages the firmware upgrade package according to the protocol compatible with the target controller and transmits it through the local area network, the target controller can write the received upgrade package data to the target controller. If the firmware version of the target controller is updated, a corresponding successful update flag can be generated and a record can be stored. When the target controller is powered on next time, the running area and the backup and restore area can be swapped. After the swap, the latest firmware version in the backup and restore area can be executed, so that the latest firmware version after the previous upgrade can take effect. Figure 3As shown in the right figure in the figure, in this embodiment, the operation area may have an abnormality during actual operation, so the technical feature of the reset number is introduced in this embodiment. If an abnormality occurs when executing the operation area, that is, the operation of the operation area is abnormal, the abnormal situation of this time can be recorded, and it can be detected whether the number of abnormalities has reached the upper limit. If the number of abnormalities has not been reached, the number of abnormalities can be increased by 1, and then the operation area can be tried again. On the contrary, if the number of abnormalities reaches the preset upper limit, the operation area can be exchanged with the backup and restore area, so that the next reset can run the firmware version in the backup and restore area to ensure the normal operation of the target controller.

[0062] In one embodiment, the above-mentioned OTA upgrade method also includes: after returning the device information of the target controller to the server, judging whether the firmware upgrade is allowed based on the version information and upgrade setting information of the target controller; if it is determined that the firmware upgrade is allowed, sending a notification of allowing the upgrade to the server, so that the server responds to the notification of allowing the upgrade and starts parsing and packaging the firmware upgrade package according to the protocol adapted to the target controller and transmits it.

[0063] After the server sends an upgrade request to the target controller, the target controller will return its own device information to the server. Then, the target controller will also determine whether to allow firmware upgrades based on its own version information and upgrade setting information. For example, whether the current status is suitable for upgrading, or whether the current version information is the latest version, so whether it is necessary to upgrade, etc. There is no specific limitation here. In the case where the target controller determines that the firmware upgrade is allowed, the target controller will send a notification allowing the upgrade to the server, so that the server responds to the notification allowing the upgrade, and the server will begin to parse and package the firmware upgrade package according to the protocol adapted to the target controller and transmit it.

[0064] In traditional chip technology, the real-time operation and update of program data stored in on-chip memory (ROM, FLASH) often need to be operated separately, because the CPU's erase operation on memory cannot be interrupted by other instructions, even in different areas. The emergence of runtime programmable (Background Operation) technology has broken this limitation, so that the erasure of area A can be realized without interrupting the operation of area B. In other words, the operating logic of the chip used in this solution is that the program data can be updated for non-operating areas (externally displayed as normal vehicle driving) without waiting for the chip to be idle (vehicle idle and stationary). At the same time, in the prior art, since the parsing and protocol adaptation of the upgrade package are both in the T-BOX, the requirements for the T-BOX are very high, and the requirements for the T-BOX of different products are different and cannot be unified. In this solution, only the function of converting wireless data to vehicle network data of the T-BOX is needed, that is, only a data converter is needed. If the main control chip is equipped with a wireless driver, that is, the main chip on the target controller has the function of converting unlimited data into vehicle network data, this solution does not need to use a converter. At the same time, in this solution, the upgrade package parsing and protocol adaptation are carried out on the server side. For different product servers, only the corresponding protocol plug-ins need to be called. The production design of T-BOX can be unified for different products.

[0065] Moreover, upgrade failures in the prior art mainly occur when the server transfers data to the converter or target controller, which couples data transmission and erasing of the running area. If any of the three, T-BOX, vehicle network, and main control chip, has a problem, the entire upgrade process will fail, resulting in the missing running code and the inability to start the controller normally, requiring re-burning, backup rollback, and other measures to fill the gap. In this solution, data transmission and erasing of the chip running area are carried out separately, greatly reducing the probability of upgrade failure. The data in the Front area is maintained and protected to the greatest extent, and data transmission failure does not affect chip operation at all, effectively improving the stability of program upgrades and user experience.

[0066] Figure 4 The following is a schematic diagram of a process flow of an OTA upgrade method for a vehicle according to an embodiment of the present invention. Figure 4 As shown, in one embodiment of the present invention, a method for OTA upgrade of a vehicle is provided. This embodiment mainly applies the method to the above Figure 1 Taking the server in as an example, the following steps are included:

[0067] Step 402 , obtaining a firmware upgrade package, and sending an upgrade request to a target controller installed on the vehicle based on configuration information of the firmware upgrade package.

[0068] Step 404: after receiving the notification of permission to upgrade returned by the target controller, the firmware upgrade package is parsed and data packaged according to a protocol adapted to the target controller.

[0069] Step 406 , transmitting the processed firmware upgrade package to the target controller via the local area network, so as to write the firmware upgrade package to the target controller to update the firmware version of the target controller, wherein the vehicle is in a running state or a non-running state.

[0070] There are multiple versions of upgrade packages stored on the server, and technicians can upload the latest version of the upgrade package as needed. Therefore, when the server obtains the firmware upgrade package and detects that the version of the upgrade package has been updated, it can actively initiate an upgrade request to the target controller installed on the vehicle based on the configuration information of the firmware upgrade package to notify the target controller that there is currently an upgrade package that can be upgraded and the upgrade version of the upgrade package.

[0071] In one embodiment, the OTA upgrade method further includes: after obtaining the firmware upgrade package, determining update parameter information for the firmware upgrade package; sending a parameter request to the target controller based on the update parameter information; and obtaining device information returned by the target controller in response to the parameter request.

[0072] Development and maintenance personnel can upload the upgrade package to the server (ie, OTA cloud server), and can also configure the parameters required for the upgrade package to be updated. When the server obtains the firmware upgrade package and detects that the version of the upgrade package has been updated, it can send a parameter request to the target controller based on the update parameter information for the firmware upgrade package. Specifically, the parameter request can be sent to the target controller through the converter. At this point, the target controller may be in working condition, but this does not affect the upgrade. After receiving the parameter request, the target controller can feed back its own device information to the server through the converter.

[0073] In one embodiment, transmitting the processed firmware upgrade package to the target controller via the local area network also includes: transmitting the processed firmware upgrade package to the vehicle-mounted converter via the local area network, so as to convert the received data into vehicle-mounted network data through the vehicle-mounted converter, and transmit the vehicle-mounted network data to the target controller.

[0074] In this solution, an on-board converter is introduced. That is to say, the server can first parse and package the firmware upgrade package according to the protocol adapted to the target controller, and then transmit the packaged upgrade package data to the on-board converter through the local area network. The on-board converter can convert the received upgrade package data into on-board network data, and then transmit the converted on-board network data to the target controller based on the CAN network. Since the data transmitted by the server through the wireless network, if it is directly transmitted to the target controller, the target controller needs to identify the data first. In this solution, an on-board converter is introduced, and the wireless network data can be intelligently converted into on-board network data through the on-board converter. Analogous to UART to USB. On-board network data refers to data transmitted in the on-board network, and the on-board network can be CAN, LIN, Ethernet, etc. If the on-board converter is not introduced, it means that the target controller has its own data conversion function, that is, after receiving the upgrade package data directly transmitted by the server through the wireless network, the target controller can convert the wireless network data into on-board network data, and then write the converted data into the main chip to update the firmware version of the target controller.

[0075] In one embodiment, transmitting the processed firmware upgrade package to the on-board converter via the local area network includes: determining the current network status of the local area network; segmenting the processed firmware upgrade package according to the network status, and transmitting the segmented data packets in sequence to the on-board converter via the local area network.

[0076] When transmitting the firmware upgrade package, the server can process the firmware upgrade package in segments and transmit it in segments according to the current network conditions of the regional network. For example, when the network conditions are relatively stable, more data can be transmitted, and fewer segments can be used; when the network fluctuates, the amount of data can be reduced, that is, more segments can be used, so that the amount of data transmitted in each segment is reduced to avoid wasting time due to excessive data errors and retransmissions. Therefore, the server can process the processed firmware upgrade package in segments according to the network conditions, and transmit the segmented data packets to the on-board converter through the regional network in sequence, thereby realizing segmented transmission. Specifically, the main chip of the target controller can have multiple partitions, specifically including at least an operating area and a backup and restore area. The target controller can first write the received upgrade package data into the operating area, parse the upgrade package data through the operating area, and then the operating area can write the parsed data into the backup and restore area. In this way, the data of each segment can be written to the backup and restore area. When all the segmented data are written to the backup and restore area, it can be determined that the firmware version of the target controller has been updated. Further, after the firmware version update on the target controller is completed, the target controller can send the upgrade completion result to the server based on the converter.

[0077] In one embodiment, Figure 5 As shown, an OTA upgrade method for a vehicle is provided.

[0078] Specifically, the OTA upgrade method includes the following steps:

[0079] Step 502 : The server obtains a firmware upgrade package, and sends an upgrade request to a target controller installed on the vehicle based on configuration information of the firmware upgrade package.

[0080] Step 504: After receiving the upgrade request sent by the server, the target controller returns the device information of the target controller to the server.

[0081] Step 506, when the vehicle is in a running state or a non-running state, the server parses and packages the firmware upgrade package according to a protocol adapted to the target controller, and transmits the processed firmware upgrade package to the target controller via the local area network.

[0082] Step 508 : The target controller receives the processed firmware upgrade package and writes it into the target controller to update the firmware version of the target controller.

[0083] In one embodiment, the server parses and packages the firmware upgrade package according to a protocol adapted to the target controller, and transmits the processed firmware upgrade package to the target controller through a local area network, which also includes: after the server parses and packages the firmware upgrade package according to a protocol adapted to the target controller, the server transmits the processed firmware upgrade package to the on-board converter through the local area network, so that the received data is converted into on-board network data through the on-board converter; the target controller receives the on-board network data transmitted by the on-board converter, and writes the on-board network data to the target controller to update the firmware version of the target controller.

[0084] like Figure 6As shown, the development and maintenance personnel can upload the upgrade package to the server (i.e., OTA cloud server) and can also configure the parameters required for the upgrade package to be updated. When the server obtains the firmware upgrade package and detects that the version of the upgrade package has been updated, it can send a parameter request to the target controller based on the update parameter information for the firmware upgrade package. Specifically, the parameter request can be sent to the target controller through the converter. At this time, the target controller may be in working state, but this does not affect the progress of the upgrade. After receiving the parameter request, the target controller can feed back its own device information to the server through the converter. It should be noted in this process that the server and the converter (such as the T-Box converter) are transmitted through wireless signals, while the converter and the target controller are transmitted through the vehicle network. After receiving the device information returned by the target controller based on the upgrade request, the server can send an upgrade request to the target controller installed on the vehicle based on the configuration information of the firmware upgrade package. At this time, the target controller can determine whether the firmware upgrade is allowed based on the configuration information of the firmware upgrade package. When the target controller determines that the firmware upgrade is allowed, the target controller will send a notification of allowing the upgrade to the server. After receiving the notification of allowing the upgrade returned by the target controller, the server can parse and package the firmware upgrade package according to the protocol adapted to the target controller. Then, the server can transmit the processed firmware upgrade package to the vehicle converter through the local area network, so as to convert the received data into vehicle network data through the vehicle converter, and then transmit the vehicle network data to the target controller through the vehicle converter, so as to write the firmware upgrade package to the target controller to update the firmware version of the target controller. The vehicle is in a running state or a non-running state. That is to say, in this solution, even if the vehicle is in a running state, the firmware version of the target controller on the vehicle can be upgraded and updated.

[0085] In this solution, after there is a new firmware upgrade package on the server, the server can parse and package the firmware upgrade package according to the protocol adapted to the target controller, and send it directly to the target controller installed on the vehicle when the vehicle is in operation. This solution is not limited to the vehicle being stationary or non-starting, but the firmware of the target controller on the vehicle can be upgraded at any time. This upgrade is more timely and convenient, does not require more time and cost, and also improves the user experience.

[0086] Figure 2 , 4 5 is a flow chart of an OTA upgrade method for a vehicle in one embodiment. It should be understood that although Figure 2 , 4The steps in the flowchart of , 5 are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , 4 At least part of the steps in 5 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0087] In one embodiment, an OTA upgrade device for a vehicle is provided, the device comprising:

[0088] a memory configured to store instructions;

[0089] A processor is configured to call the instructions from the memory and to implement the OTA upgrade method for a vehicle described in any one of the above embodiments when executing the instructions.

[0090] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the OTA upgrade method for the vehicle is implemented by adjusting the kernel parameters.

[0091] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0092] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned OTA upgrade method for a vehicle is implemented.

[0093] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes the above-mentioned OTA upgrade method for a vehicle when running.

[0094] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected via a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store data such as upgrade packages. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, an OTA upgrade method for a vehicle has been implemented.

[0095] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present invention, and does not constitute a limitation on the computer device to which the scheme of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0096] An embodiment of the present invention provides a computer (electronic) device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps of any of the above OTA upgrade methods for a vehicle are implemented.

[0097] The present invention also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initiating the steps of an OTA upgrade method for a vehicle.

[0098] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0099] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0100] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0102] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0103] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0104] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0105] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0106] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. An OTA upgrade method for a vehicle, characterized in that: The method is applied to a target controller installed on the vehicle, and the OTA upgrade method includes: After receiving the upgrade request sent by the server, returning the device information of the target controller to the server; When the vehicle is in a running state or a non-running state, receiving upgrade package data which is parsed and packaged by the server according to a protocol adapted to the target controller and transmitted through a local area network; The upgrade package data is written to the target controller to update the firmware version of the target controller.

2. The OTA upgrade method for a vehicle according to claim 1, characterized in that: The receiving of the upgrade package data by the server parsing and packaging the firmware upgrade package according to the protocol adapted to the target controller and transmitting the upgrade package data through the local area network includes: After the server parses and packages the firmware upgrade package according to the protocol adapted to the target controller and transmits it to the on-board converter through the local area network, the on-board network data transmitted by the on-board converter is received, wherein the on-board network data is obtained by the on-board converter based on the received data conversion.

3. The OTA upgrade method for a vehicle according to claim 1, characterized in that: When transmitting the firmware upgrade package, the server processes and transmits the firmware upgrade package in segments according to the current network conditions of the local area network, and the memory partition of the target controller includes a running area and a backup and restore area; Writing the upgrade package data to the target controller includes: Parsing the upgrade package data through the running area, and writing the parsed data into the backup and restore area; When all the segmented data are written into the backup and restoration area, it is determined that the firmware version of the target controller has been updated.

4. The OTA upgrade method for a vehicle according to claim 3, characterized in that: The OTA upgrade method further includes: After determining that the firmware version of the target controller has been updated, creating and storing an upgrade completion mark; When the target controller is powered on again, detecting whether there is a mark indicating that the upgrade is completed; When the upgrade completion mark is detected, the running area is swapped with the backup and restore area to execute the latest firmware version in the backup and restore area.

5. The OTA upgrade method for a vehicle according to claim 4, characterized in that: When the upgrade completion mark is detected, exchanging the running area with the backup and restore area to execute the latest firmware version in the backup and restore area includes: When the upgrade completion mark is detected, the data in the running area is copied to the data transfer area or the data in the backup and restore area is copied to the data transfer area, so that the running area and the backup and restore area are swapped through the data transfer area to execute the latest firmware version in the backup and restore area.

6. The OTA upgrade method for a vehicle according to claim 3, characterized in that: The OTA upgrade method further includes: When an exception occurs during the process of writing any segmented data into the backup and restoration area, the target controller continues to execute the firmware version used at the last power-on when it is powered on next time.

7. The OTA upgrade method for a vehicle according to claim 1, characterized in that: The OTA upgrade method further includes: After returning the device information of the target controller to the server, determining whether to allow firmware upgrade based on the version information and upgrade setting information of the target controller; When it is determined that the firmware upgrade is allowed, a notification of allowing the upgrade is sent to the server, so that the server begins to parse and package the firmware upgrade package and transmit it according to a protocol adapted to the target controller in response to the notification of allowing the upgrade.

8. An OTA upgrade method for a vehicle, characterized in that: The method is applied to a server, and the OTA upgrade method includes: Obtaining a firmware upgrade package, and sending an upgrade request to a target controller installed on the vehicle based on configuration information of the firmware upgrade package; After receiving the notification of permission to upgrade returned by the target controller, parsing and data packaging operations are performed on the firmware upgrade package according to a protocol adapted to the target controller; The processed firmware upgrade package is transmitted to the target controller via a local area network, so as to write the firmware upgrade package to the target controller to update the firmware version of the target controller, wherein the vehicle is in a running state or a non-running state.

9. The OTA upgrade method for a vehicle according to claim 8, characterized in that: Transmitting the processed firmware upgrade package to the target controller via the local area network further includes: The processed firmware upgrade package is transmitted to the vehicle-mounted converter through the local area network, so that the received data is converted into vehicle-mounted network data through the vehicle-mounted converter, and the vehicle-mounted network data is transmitted to the target controller.

10. The OTA upgrade method for a vehicle according to claim 9, characterized in that: Transmitting the processed firmware upgrade package to the vehicle converter via the local area network includes: Determine the current network status of the regional network; The processed firmware upgrade package is segmented according to the network conditions, and the segmented data packets are transmitted to the vehicle-mounted converter via the local area network in sequence.

11. The OTA upgrade method for a vehicle according to claim 8, characterized in that: The OTA upgrade method further includes: After obtaining the firmware upgrade package, determining update parameter information for the firmware upgrade package; sending a parameter request to the target controller based on the updated parameter information; The device information returned by the target controller in response to the parameter request is obtained.

12. An OTA upgrade method for a vehicle, characterized in that: The OTA upgrade method includes: The server obtains a firmware upgrade package, and sends an upgrade request to a target controller installed on the vehicle based on configuration information of the firmware upgrade package; After receiving the upgrade request sent by the server, the target controller returns the device information of the target controller to the server; When the vehicle is in a running state or a non-running state, the server parses and packages the firmware upgrade package according to a protocol adapted to the target controller, and transmits the processed firmware upgrade package to the target controller via a local area network; The target controller receives the processed firmware upgrade package and writes it into the target controller to update the firmware version of the target controller.

13. The OTA upgrade method for a vehicle according to claim 12, characterized in that: The server performs parsing and data packaging operations on the firmware upgrade package according to a protocol adapted to the target controller, and transmits the processed firmware upgrade package to the target controller via a local area network, further comprising: After the server parses and packages the firmware upgrade package according to the protocol adapted to the target controller, the server transmits the processed firmware upgrade package to the vehicle-mounted converter via the local area network, so that the received data is converted into vehicle-mounted network data through the vehicle-mounted converter; The target controller receives the vehicle network data transmitted by the vehicle converter, and writes the vehicle network data into the target controller to update the firmware version of the target controller.

14. An OTA upgrade device for a vehicle, characterized in that: include: a memory configured to store instructions; A processor is configured to call the instructions from the memory and implement the OTA upgrade method for a vehicle according to any one of claims 1 to 13 when executing the instructions.

15. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to perform the OTA upgrade method for a vehicle according to any one of claims 1 to 13.

Citation Information

Cited By

  • Electric energy meter upgrading method, device and system

    CN119473365A

  • Non-inductive OTA upgrading method for escalator main program

    CN121635930A