CN-121996271-A - Air upgrading method of vehicle, electronic equipment and vehicle
Abstract
The disclosure relates to an air upgrading method of a vehicle, electronic equipment and the vehicle, and relates to the technical field of vehicle control. The method comprises the steps of determining a target length of a swipe data frame corresponding to an air upgrade instruction under the condition that the air upgrade instruction is received, wherein the air upgrade instruction is used for indicating a vehicle controller of a vehicle to upgrade, obtaining a maximum length of the swipe data frame supported by the vehicle controller, adjusting the target length based on the maximum length under the condition that the maximum length is not equal to the target length, and executing upgrade operation indicated by the air upgrade instruction of the vehicle controller. According to the embodiment of the disclosure, even if the maximum lengths supported by the vehicle controllers are different, the success of OTA upgrading can be ensured, and an over-the-air upgrading program does not need to be independently developed for each different vehicle controller hardware possibly set by the vehicle, so that the success rate of over-the-air upgrading can be improved.
Inventors
- WANG DI
- LU YAO
- YANG YAGUANG
- WANG ZEXING
- WANG LANQING
Assignees
- 长城汽车股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260126
Claims (10)
- 1. A method of over-the-air upgrading of a vehicle, the method comprising: Under the condition that an air upgrading instruction is received, determining a target length of a brushing data frame corresponding to the air upgrading instruction, wherein the air upgrading instruction is used for indicating to upgrade a vehicle controller of a vehicle; Acquiring the maximum length of a data frame which is supported by the vehicle controller and is written by a brush; And when the maximum length is not equal to the target length, adjusting the target length based on the maximum length, and executing upgrading operation indicated by the air upgrading instruction to the vehicle controller.
- 2. The method of claim 1, wherein after the obtaining the maximum length of the swipe data frame supported by the vehicle controller, the method further comprises: Determining a target transmission rate when transmitting the brush data frame to the vehicle controller according to a comparison result of the maximum length and the target length under the condition that the maximum length is not equal to the target length; The performing an upgrade operation indicated by the over-the-air upgrade instruction to the vehicle controller includes: and transmitting a brushing data frame corresponding to the air upgrading instruction to the vehicle controller based on the target transmission rate so as to execute air upgrading operation on the vehicle controller.
- 3. The method according to claim 2, wherein determining a target transmission rate at which the frame of swiped data is transmitted to the vehicle controller based on the comparison of the maximum length and the target length comprises: when the maximum length is greater than or equal to the target length, determining that the target transmission rate is the initial transmission rate corresponding to the air upgrading instruction; And under the condition that the maximum length is smaller than the target length, determining the target transmission rate according to the initial transmission rate and the maximum length, wherein the target transmission rate is larger than the initial transmission rate.
- 4. A method according to claim 3, wherein said determining said target transmission rate from said initial transmission rate and said maximum length comprises: Determining a target rate coefficient according to the maximum length, wherein the target rate coefficient is greater than or equal to 1 and is inversely related to the maximum length; And determining the target transmission rate according to the product of the initial transmission rate and the target rate coefficient.
- 5. The method of any one of claims 1 to 4, wherein adjusting the target length based on the maximum length comprises: And performing assignment operation on the header file corresponding to the air upgrading instruction, wherein the assignment operation is used for modifying the target length to be equal to the maximum length.
- 6. The method of any one of claims 1 to 4, wherein the obtaining a maximum length of the swipe data frame supported by the vehicle controller comprises: the method comprises the steps of sending an acquisition instruction to a vehicle controller, wherein the acquisition instruction is used for indicating the vehicle controller to read the maximum length of a supported data frame for brushing, and sending the maximum length to a vehicle machine through a reply message; And receiving the reply message, and determining the maximum length based on the reply message.
- 7. The method of claim 6, wherein after said adjusting said target length based on said maximum length, said method further comprises: the acquisition instruction is sent to the vehicle controller again so as to acquire the maximum length of the brushing data frame supported by the vehicle controller; The performing an upgrade operation indicated by the over-the-air upgrade instruction to the vehicle controller includes: And executing the upgrading operation indicated by the air upgrading instruction to the vehicle controller under the condition that the adjusted target length is equal to the maximum length.
- 8. The method according to any one of claims 1 to 4, further comprising, after the vehicle acquires the maximum length corresponding to the vehicle controller: and under the condition that the maximum length is equal to the target length, executing air upgrading operation indicated by the air upgrading instruction on the vehicle controller according to the air upgrading instruction.
- 9. An electronic device, comprising: A memory; processor, and Executable program code; Wherein the executable program code is stored in the memory and is configured to be executed by the processor to implement the method of any of claims 1-8.
- 10. A vehicle, characterized by comprising: the electronic device of claim 9.
Description
Air upgrading method of vehicle, electronic equipment and vehicle Technical Field The disclosure relates to the technical field of vehicle control, and in particular relates to an air upgrading method of a vehicle, electronic equipment and the vehicle. Background Along with the updating iteration of the whole vehicle technology, the vehicle functions are continuously updated. Many new functions can be upgraded to a sold vehicle by Over The Air (OTA). In the related art, OTA upgrade to a vehicle controller is performed by a Head Unit (HUT). OTA upgrades need to follow specific protocols and specifications. The HUT needs to check that the maximum data length supported by the controller in the header file (HEADER FILE) is the same as the maximum data length actually supported by the controller when performing an OTA upgrade. The controller hardware used in the production of different batches of vehicles of the same model may be different, as may the maximum data length supported by the same model. While the OTA header file of the HUT only supports one type of flush length, this results in the problem that the OTA upgrade for all the already-sold vehicles fails to upgrade on vehicles that partially apply different controller hardware. Disclosure of Invention In order to solve the technical problems, the disclosure provides an over-the-air upgrading method of a vehicle, electronic equipment and the vehicle, which can avoid failure of OTA upgrading of a vehicle partially applying different controller hardware and improve the success rate of OTA upgrading. A first aspect of an embodiment of the present disclosure provides an over-the-air upgrade method for a vehicle, the method including: Under the condition that an air upgrading instruction is received, determining a target length of a brushing data frame corresponding to the air upgrading instruction, wherein the air upgrading instruction is used for indicating to upgrade a vehicle controller of a vehicle; Acquiring the maximum length of a data frame which is supported by a vehicle controller and is written by a brush; And in the case that the maximum length is not equal to the target length, adjusting the target length based on the maximum length, and executing the upgrade operation indicated by the air upgrade instruction to the vehicle controller. Optionally, in some embodiments of the present disclosure, after obtaining the maximum length of the swipe data frame supported by the vehicle controller, the method further comprises: Determining a target transmission rate when the data frame is transmitted to the vehicle controller according to a comparison result of the maximum length and the target length when the maximum length is not equal to the target length; performing an upgrade operation indicated by an over-the-air upgrade instruction to a vehicle controller, comprising: and transmitting a brushing data frame corresponding to the air upgrading instruction to the vehicle controller based on the target transmission rate so as to execute air upgrading operation on the vehicle controller. Optionally, in some embodiments of the present disclosure, determining the target transmission rate when transmitting the brush data frame to the vehicle controller according to the comparison of the maximum length and the target length includes: under the condition that the maximum length is greater than or equal to the target length, determining that the target transmission rate is the initial transmission rate corresponding to the air upgrading instruction; And determining a target transmission rate according to the initial transmission rate and the maximum length when the maximum length is smaller than the target length, wherein the target transmission rate is larger than the initial transmission rate. Optionally, in some embodiments of the present disclosure, determining the target transmission rate from the initial transmission rate and the maximum length includes: Determining a target rate coefficient according to the maximum length, wherein the target rate coefficient is greater than or equal to 1, and the target rate coefficient is inversely related to the maximum length; the target transmission rate is determined based on the product of the initial transmission rate and the target rate coefficient. Optionally, in some embodiments of the present disclosure, adjusting the target length based on the maximum length includes: And carrying out assignment operation on the header file corresponding to the air upgrading instruction, wherein the assignment operation is used for modifying the target length to be equal to the maximum length. Optionally, in some embodiments of the present disclosure, obtaining a maximum length of the swipe data frame supported by the vehicle controller includes: The acquisition instruction is used for indicating the maximum length of the brush data frame which is read and supported by the vehicle controller and sending the maximum length to th