CN114661328B - OTA (over the air) upgrading method and device for equipment file program and electronic equipment - Google Patents
OTA (over the air) upgrading method and device for equipment file program and electronic equipment Download PDFInfo
- Publication number
- CN114661328B CN114661328B CN202210385838.1A CN202210385838A CN114661328B CN 114661328 B CN114661328 B CN 114661328B CN 202210385838 A CN202210385838 A CN 202210385838A CN 114661328 B CN114661328 B CN 114661328B
- Authority
- CN
- China
- Prior art keywords
- file
- upgrade
- version
- target controller
- ota
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 230000005540 biological transmission Effects 0.000 claims description 40
- 230000003993 interaction Effects 0.000 claims description 20
- 230000015654 memory Effects 0.000 claims description 17
- 238000012795 verification Methods 0.000 claims description 14
- 230000001360 synchronised effect Effects 0.000 claims description 13
- 238000004422 calculation algorithm Methods 0.000 claims description 11
- 238000004891 communication Methods 0.000 claims description 10
- 230000001960 triggered effect Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 6
- KKIMDKMETPPURN-UHFFFAOYSA-N 1-(3-(trifluoromethyl)phenyl)piperazine Chemical compound FC(F)(F)C1=CC=CC(N2CCNCC2)=C1 KKIMDKMETPPURN-UHFFFAOYSA-N 0.000 claims description 5
- 238000004458 analytical method Methods 0.000 claims description 3
- 239000000758 substrate Substances 0.000 claims 1
- 238000012790 confirmation Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000012546 transfer Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000007711 solidification Methods 0.000 description 1
- 230000008023 solidification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides an OTA (over the air) upgrading method and device for a device file program and electronic equipment.
Description
Technical Field
The present invention relates to the field of program upgrading technologies, and in particular, to an OTA upgrading method and apparatus for a device file program, and an electronic device.
Background
The intelligent equipment and the intelligent automobile perform communication interaction, and fusion and version update of multiple data sources of the Internet of vehicles are problems to be solved by factories and related standard departments. It is critical to take into account how The software of The electronic controller is updated using advanced Over-The-Air (OTA) technology throughout The vehicle lifecycle.
At present, most of MP5 and TBox in a vehicle factory have an OTA upgrading function, but upgrading of a controller (such as an ECU (Electronic Control Unit, an electronic control unit) and a gateway in the vehicle) is difficult, only a part of controllers of a small part of vehicles can be upgraded, various upgrading modes are not uniform, and how to realize synchronous upgrading of the controllers and the TBox through the OTA becomes a technical problem to be solved at present.
In summary, the prior art has the technical problems that synchronous upgrading of the controller and the TBox cannot be realized through OTA, and upgrading of the controller is difficult.
Disclosure of Invention
In view of the above, the present invention aims to provide an OTA upgrading method and apparatus for a device file program and an electronic device, so as to solve the technical problems that in the prior art, synchronous upgrading of a controller and a TBox cannot be achieved through OTA, and upgrading of the controller is difficult.
In a first aspect, an embodiment of the present invention provides an OTA upgrading method for a device file program, applied to a TBox, where the method includes:
An OTA upgrade request issued by a cloud platform is obtained, wherein the OTA upgrade request is triggered by an equipment management application adjusting an upgrade interface of the cloud platform, and information carried in the OTA upgrade request at least comprises: controller address, transmission mode, file address and file version;
Analyzing the OTA upgrading request, and sending a version inquiry instruction to a target controller according to the analyzed controller address so that the target controller can inquire a file version according to the version inquiry instruction;
Acquiring a file version inquired by the target controller, and comparing the file version with the analyzed file version;
Determining whether the latest file corresponding to the parsed file version needs to be downloaded according to the comparison result;
If the latest file needs to be downloaded, the latest file is downloaded from the cloud platform according to the resolved file address, and the latest file corresponding to the target controller in the latest file is uploaded to the target controller according to the resolved transmission mode;
sending an upgrade command to the target controller so that the target controller upgrades according to the latest file corresponding to the target controller based on the upgrade command, and upgrades according to the latest file corresponding to the TBox in the latest file;
And acquiring an upgrading state fed back by the target controller, and reporting the upgrading state and the upgrading state of the TBox to the cloud platform.
Further, the version inquiry instruction carries information of file types, file catalogues, file names and inquiry commands;
And the target controller inquires that the obtained file version carries information of file types, file catalogues, file names and version numbers.
Further, the transmission mode includes any one of the following: j1939, UDS, FTP, TFTP.
Further, the interaction between the upgrade command and the upgrade state is unified to a J1939 communication mode.
Further, the information carried in the upgrade command at least includes: file type, file directory, file name, file size, file verification mode, file verification code and transmission mode;
The information of the upgrade state fed back by the target controller at least comprises: file type, file directory, file name, and upgrade status.
Further, the latest file includes at least one of: firmware programs, library files, configuration files, control programs, and algorithms.
Further, the latest file is obtained after the verification of the target controller is passed on the target file which is configured on the cloud platform by the user.
In a second aspect, an embodiment of the present invention further provides an OTA upgrading device for a device file program, where the OTA upgrading device is applied to a TBox, and the device includes:
the first obtaining unit is configured to obtain an OTA upgrade request sent by the cloud platform, where the OTA upgrade request is triggered by the device management application adjusting an upgrade interface of the cloud platform, and information carried in the OTA upgrade request at least includes: controller address, transmission mode, file address and file version;
The analysis and instruction sending unit is used for analyzing the OTA upgrading request and sending a version inquiry instruction to a target controller according to the analyzed controller address so that the target controller can inquire a file version according to the version inquiry instruction;
The second acquisition unit is used for acquiring the file version inquired by the target controller and comparing the file version with the analyzed file version;
The determining unit is used for determining whether the latest file corresponding to the parsed file version needs to be downloaded according to the comparison result;
the downloading unit is used for downloading the latest file from the cloud platform according to the resolved file address and uploading the latest file corresponding to the target controller in the latest file to the target controller according to the resolved transmission mode if the latest file is required to be downloaded;
The updating command sending unit is used for sending an updating command to the target controller so that the target controller can update according to the latest file corresponding to the target controller based on the updating command and update according to the latest file corresponding to the TBox in the latest file;
And the acquisition and reporting unit is used for acquiring the upgrading state fed back by the target controller and reporting the upgrading state and the upgrading state of the TBox to the cloud platform.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method according to any one of the first aspects when the processor executes the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any one of the first aspects.
In an embodiment of the present invention, an OTA upgrading method for a device file program is provided, and the method is applied to TBox, and includes: an OTA upgrade request issued by the cloud platform is obtained, wherein the OTA upgrade request is triggered by an upgrade interface of the device management application cloud adjustment platform, and information carried in the OTA upgrade request at least comprises: controller address, transmission mode, file address and file version; analyzing the OTA upgrading request, and sending a version inquiry instruction to the target controller according to the analyzed controller address so that the target controller can inquire the file version according to the version inquiry instruction; acquiring a file version inquired by a target controller, and comparing the file version with the analyzed file version; determining whether the latest file corresponding to the parsed file version needs to be downloaded according to the comparison result; if the latest file needs to be downloaded, the latest file is downloaded from the cloud platform according to the resolved file address, and the latest file corresponding to the target controller in the latest file is uploaded to the target controller according to the resolved transmission mode; sending an upgrade command to the target controller so that the target controller upgrades according to the latest file corresponding to the target controller based on the upgrade command, and upgrading according to the latest file corresponding to the TBox in the latest file; and acquiring an upgrade state fed back by the target controller, and reporting the upgrade state and the upgrade state of the TBox to the cloud platform. As can be seen from the above description, the method for upgrading the OTA of the device file program of the present invention can realize the synchronous upgrading of the controller and the TBox by the overall control of the cloud platform, so that the upgrading of the controller is more convenient, and the technical problem that the synchronous upgrading of the controller and the TBox cannot be realized through the OTA in the prior art and the upgrading of the controller is difficult is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an OTA upgrading method of a device file program according to an embodiment of the present invention;
Fig. 2 is a schematic structural diagram of an OTA upgrading method according to an embodiment of the present invention;
Fig. 3 is a schematic flow chart of OTA upgrading according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an OTA upgrading device for a device file program according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
At present, the upgrading of the controller is difficult, only a part of controllers of a small part of automobiles can be upgraded, and various upgrading modes are not uniform.
Based on the method, the OTA upgrading method of the equipment file program can realize synchronous upgrading of the controller and the TBOX through integral management and control of the cloud platform, so that the upgrading of the controller is more convenient.
For the convenience of understanding the present embodiment, an OTA upgrading method for an equipment file program disclosed in the embodiment of the present invention is first described in detail.
Embodiment one:
In accordance with an embodiment of the present invention, there is provided an embodiment of an OTA upgrade method for a device file program, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and that although a logical sequence is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in a different order than that illustrated herein.
Fig. 1 is a flowchart of an OTA upgrading method of a device file program according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
Step S102, an OTA upgrade request issued by the cloud platform is obtained, wherein the OTA upgrade request is triggered by an upgrade interface of the device management application cloud platform, and information carried in the OTA upgrade request at least comprises: controller address, transmission mode, file address and file version;
In the embodiment of the present invention, the method for upgrading the OTA of the device file program can be applied to tboxes, wherein OTA upgrades are performed between the tboxes and between the cloud platforms, and local upgrades (BTA for short) are performed between the tboxes and the controllers. The structure diagram of the OTA upgrading method is shown in fig. 2, the OTA APP in fig. 2 represents an equipment management application, equipment model information is built in the equipment management application, when the equipment management application regulates an upgrading interface of a cloud platform, the corresponding controller address, transmission mode, file address, file version and other information are informed to the cloud platform, and the cloud platform sends an OTA upgrading request to a TBox; or, the user fills in relevant information in the device management application, and then adjusts the upgrade interface of the cloud platform, so that the cloud platform can be informed of the filled relevant information, and further the cloud platform issues an OTA upgrade request to the TBox.
The device file program includes a program of the TBox and a program of the controller, and the OTA request carries information of an upgrade address (server ip+ port or address), a user name and a password (for authority control), a file directory, a file name, a file type (a controller program, a configuration file, a library file, etc.), a file size, a file verification mode, and a file verification code in addition to the controller address, the transmission mode, the file address, and the file version information.
It should be noted that: when upgrading the equipment file program (including the TBox file program and the controller file program), the user needs to confirm, and according to different equipment models, two different confirmation points are provided, wherein the first confirmation point is: in the process of initiating the upgrade by the equipment management application, the cloud platform informs a user of confirmation through the equipment management application, and after the confirmation, the upgrade process is carried out, and meanwhile upgrade notes are prompted; the second confirmation point is: after receiving the upgrade command, the controller displays the upgrade through the interactive interface, and the user confirms the upgrade through the interactive interface and prompts the upgrade notice.
The first confirmation point and the second confirmation point are used for different equipment models, and the confirmation points are realized through controller solidification and cloud platform configuration; the first confirmation point is more used for controllers of unmanned aerial vehicle interaction modes and safe and compliant regions; the second confirmation point is used for security control of the device itself.
Step S104, analyzing the OTA upgrading request, and sending a version inquiry instruction to the target controller according to the analyzed controller address so that the target controller can inquire the file version according to the version inquiry instruction;
Step S106, acquiring a file version inquired by the target controller, and comparing the file version with the analyzed file version;
Step S108, determining whether the latest file corresponding to the parsed file version needs to be downloaded or not according to the comparison result;
Specifically, if the file version is lower than the parsed file version, determining that the latest file corresponding to the parsed file version needs to be downloaded; and otherwise, determining that the latest file corresponding to the parsed file version does not need to be downloaded.
Step S110, if the latest file needs to be downloaded, the latest file is downloaded from the cloud platform according to the resolved file address, and the latest file corresponding to the target controller in the latest file is uploaded to the target controller according to the resolved transmission mode;
specifically, after the latest file is downloaded, the original file is updated.
Step S112, an upgrade command is sent to the target controller, so that the target controller is upgraded according to the latest file corresponding to the target controller based on the upgrade command, and is upgraded according to the latest file corresponding to the TBox in the latest file;
step S114, obtaining an upgrade state fed back by the target controller, and reporting the upgrade state and the upgrade state of the TBox to the cloud platform.
A schematic flow chart of the OTA upgrade is also shown in fig. 3, where a specific procedure is shown, see the flow chart of the OTA upgrade in fig. 3.
In an embodiment of the present invention, an OTA upgrading method for a device file program is provided, and the method is applied to TBox, and includes: an OTA upgrade request issued by the cloud platform is obtained, wherein the OTA upgrade request is triggered by an upgrade interface of the device management application cloud adjustment platform, and information carried in the OTA upgrade request at least comprises: controller address, transmission mode, file address and file version; analyzing the OTA upgrading request, and sending a version inquiry instruction to the target controller according to the analyzed controller address so that the target controller can inquire the file version according to the version inquiry instruction; acquiring a file version inquired by a target controller, and comparing the file version with the analyzed file version; determining whether the latest file corresponding to the parsed file version needs to be downloaded according to the comparison result; if the latest file needs to be downloaded, the latest file is downloaded from the cloud platform according to the resolved file address, and the latest file corresponding to the target controller in the latest file is uploaded to the target controller according to the resolved transmission mode; sending an upgrade command to the target controller so that the target controller upgrades according to the latest file corresponding to the target controller based on the upgrade command, and upgrading according to the latest file corresponding to the TBox in the latest file; and acquiring an upgrade state fed back by the target controller, and reporting the upgrade state and the upgrade state of the TBox to the cloud platform. As can be seen from the above description, the method for upgrading the OTA of the device file program of the present invention can realize the synchronous upgrading of the controller and the TBox by the overall control of the cloud platform, so that the upgrading of the controller is more convenient, and the technical problem that the synchronous upgrading of the controller and the TBox cannot be realized through the OTA in the prior art and the upgrading of the controller is difficult is solved.
The above description briefly describes the OTA upgrading method of the device file program of the present invention, and details related to the method are described in detail below.
In an alternative embodiment of the present invention, the version query instruction carries information of file type, file directory, file name and query command;
The target controller inquires that the obtained file version carries information of file type, file directory, file name and version number.
In an alternative embodiment of the present invention, the information carried in the upgrade command includes at least: file type, file directory, file name, file size, file verification mode, file verification code and transmission mode;
the information of the upgrade state fed back by the target controller at least comprises: file type, file directory, file name, and upgrade status.
In an alternative embodiment of the present invention, the interaction of the upgrade order and upgrade status is unified into the J1939 communication mode. Namely, the version interaction, the upgrading command interaction and the upgrading state interaction between the TBOX and the controller are carried out through a standard J1939 interaction mode, and the corresponding CANID needs to be defined for carrying out the version interaction, the upgrading command interaction and the upgrading state interaction.
In an alternative embodiment of the present invention, the transmission means includes any one of the following: j1939, UDS, FTP, TFTP. The transmission method herein refers to a file transmission method.
For the J1939 transmission mode, a candid maximum transmits 1785 bytes, and the contents of the candid transmission of the file transmission include: controller address, file type (controller program, configuration file, library file) 1 byte, file directory 24 bytes (program directory, library directory, data directory), file name 50 bytes, file size 4 bytes, start address 4 bytes, transfer size 2 bytes, transfer file content 1700 bytes. Since one can is 1785 bytes maximum, the file needs to be transferred through the can multiple times in order, and the file content is controlled by the start address and the current transfer size.
In an embodiment of the present invention, the latest file includes at least one of: firmware programs, library files, configuration files, control programs, and algorithms.
Currently, in the OTA upgrade, the configuration file (configuration parameters, data) accounts for 75% of the OTA upgrade, the library file (Lib library, plug-in) accounts for 10% of the OTA upgrade, the control program and algorithm (e.g., codeSys) accounts for 10% of the OTA upgrade, and the firmware program accounts for 5% of the OTA upgrade.
The inventor considers four elements of upgrades: the proposal of the invention is designed by the site (address of the controller), the file or the firmware (namely the latest file in the invention), the reliable transmission of the file and the interaction of the upgrade command states. Upgrade order status interactions unify to J1939; the file transmission mode comprises any one of the following: j1939, UDS, FTP, TFTP; supporting the upgrade file includes: firmware programs, library files, configuration files, control programs, and algorithms. The file transmission mode is incorporated into the cloud platform for management, rather than being solidified in the TBOX, so that OTA upgrading can be flexibly realized even if equipment is changed.
In addition, the inventor considers that not all files can be embodied through version reporting, so the method of the invention needs to perform upgrading command state interaction and version inquiry.
The OTA upgrading method of the equipment file program has the following characteristics:
(1) The standard controller upgrading mode is designed, files in various modes are supported to be uploaded to the controller, and the expansion of future file transmission modes is supported;
(2) The file transmission mode and the interaction command state are designed separately, the interaction command state is standardized and abstract, and a unified upgrading interface is adopted for upgrading the controller by the cloud platform;
(3) The monitoring of the interaction command and the state is completely described, and the upgrading process is controllable;
(4) The unified specification is carried out on program upgrading, configuration file upgrading, data upgrading, algorithm and operation library upgrading, and the software definition function of the controller is realized.
In an optional embodiment of the present invention, the latest file is obtained after the verification of the target controller by the target file obtained by configuring the user on the cloud platform.
The following compares the conventional controller upgrade method with the OTA upgrade method in the present invention:
When an equipment upgrade is required, for example: 1. the sensor scenario is changed. The old sensor is disconnected, the new sensor address is changed, the measuring range is changed, and the conversion rule is changed; 2. a controller defect scenario. The control algorithm of the equipment work is not optimal, and the control algorithm needs to be updated to reach the latest index; 3. the frequency scenario is adjusted. The data sampling of the slave controller-TBox-cloud platform cannot meet the requirement, and the frequency needs to be adjusted; 4. the functional scene is added. The functions of data filtering, rule processing and service addition of the device meet the new business application.
In the traditional scheme, the requirement of equipment upgrading is informed to a developer, the developer codes and debugs according to the requirement of equipment upgrading, a file version is obtained after long-time effort, and then the file version is transferred to related personnel for debugs; the relevant personnel upgrade and debug the equipment according to the file version, observe whether the state and action of the equipment meet the expectations or not, and test the stability of the file version at the same time; after the test passes, the after-sales team contacts the device customer to update the device to be upgraded.
In the scheme of the invention, the requirement of equipment upgrading is informed to an operator, the operator configures an adjusting point table and a model (both are configuration files) on a cloud platform, a DBC file and an equipment digital model are generated on the cloud platform, the cloud platform transmits the DBC file and the equipment digital model to a TBOX and a controller of equipment, the OTA upgrading process is carried out, the operator only needs to observe the state of the equipment on the cloud platform, and if the requirement is met, the DBC file and the equipment digital model (namely the latest file) are solidified, so that the equipment is upgraded in batches according to the OTA upgrading process.
Compared with the prior art, the method reduces the development time of the hard coding program, reduces the software engineering risk caused by hard coding, reduces the debugging time, improves the flexibility of upgrading, and accelerates the response speed of new function requirements.
The method of the invention supports software definition everything: SCP2.0 describes the data matrix by DBC file structuring, defining the data, control and interaction capabilities of the device (controller part, configuration file/data file, including CANID, SP, SLOT, frequency and file transfer); STP1.0 defines device information, service capabilities, maintenance capabilities (TBox part, model files/programs including attributes, events, services, rules, algorithms) through a device digital model to implement device-to-cloud platform software definition (data, model, device, service, business). Through OTA capability of TBox and BTA capability of vehicle-mounted controller, realize data, calculation, algorithm, model and business function fast adjustment, it is everything that software defines, the important support of software dynamic upgrade (adopt network protocol communication between cloud platform and TBox, adopt equipment protocol communication between TBox and the controller).
According to the method, the online updating of the data parameters (the configuration files are configured on the cloud platform) is realized according to the configuration file resolving capability of the TBox and the controller, the decoupling is realized with the control program upgrading (the program upgrading of the TBox and the controller), and the synchronous updating of the TBox and the controller is realized through the whole management and control of the upgrading change of the cloud platform.
Embodiment two:
the embodiment of the invention also provides an OTA upgrading device of the equipment file program, which is mainly used for executing the OTA upgrading method of the equipment file program provided in the first embodiment of the invention, and the OTA upgrading device of the equipment file program provided in the embodiment of the invention is specifically introduced below.
Fig. 4 is a schematic diagram of an OTA upgrading device for a device file program according to an embodiment of the present invention, as shown in fig. 4, the device mainly includes: a first acquisition unit 10, a parsing and instruction transmission unit 20, a second acquisition unit 30, a determination unit 40, a download unit 50, an upgrade command transmission unit 60, an acquisition and reporting unit 70, wherein:
The first obtaining unit is configured to obtain an OTA upgrade request sent by the cloud platform, where the OTA upgrade request is triggered by an upgrade interface of the device management application cloud adjustment platform, and information carried in the OTA upgrade request at least includes: controller address, transmission mode, file address and file version;
the analysis and instruction sending unit is used for analyzing the OTA upgrading request and sending a version inquiry instruction to the target controller according to the analyzed controller address so that the target controller can inquire the file version according to the version inquiry instruction;
The second acquisition unit is used for acquiring a file version obtained by inquiring the target controller and comparing the file version with the analyzed file version;
the determining unit is used for determining whether the latest file corresponding to the parsed file version needs to be downloaded according to the comparison result;
the downloading unit is used for downloading the latest file from the cloud platform according to the resolved file address and uploading the latest file corresponding to the target controller in the latest file to the target controller according to the resolved transmission mode if the latest file needs to be downloaded;
The upgrade command sending unit is used for sending an upgrade command to the target controller so that the target controller upgrades according to the latest file corresponding to the target controller based on the upgrade command and upgrades according to the latest file corresponding to the TBox in the latest file;
The acquisition and reporting unit is used for acquiring the upgrade state fed back by the target controller and reporting the upgrade state and the upgrade state of the TBox to the cloud platform.
In an embodiment of the present invention, an OTA upgrading device for a device file program is provided, and the method is applied to TBox, and includes: an OTA upgrade request issued by the cloud platform is obtained, wherein the OTA upgrade request is triggered by an upgrade interface of the device management application cloud adjustment platform, and information carried in the OTA upgrade request at least comprises: controller address, transmission mode, file address and file version; analyzing the OTA upgrading request, and sending a version inquiry instruction to the target controller according to the analyzed controller address so that the target controller can inquire the file version according to the version inquiry instruction; acquiring a file version inquired by a target controller, and comparing the file version with the analyzed file version; determining whether the latest file corresponding to the parsed file version needs to be downloaded according to the comparison result; if the latest file needs to be downloaded, the latest file is downloaded from the cloud platform according to the resolved file address, and the latest file corresponding to the target controller in the latest file is uploaded to the target controller according to the resolved transmission mode; sending an upgrade command to the target controller so that the target controller upgrades according to the latest file corresponding to the target controller based on the upgrade command, and upgrading according to the latest file corresponding to the TBox in the latest file; and acquiring an upgrade state fed back by the target controller, and reporting the upgrade state and the upgrade state of the TBox to the cloud platform. According to the OTA upgrading device for the equipment file program, disclosed by the invention, through overall control of a cloud platform, synchronous upgrading of a controller and a TBox can be realized, so that the controller is more convenient to upgrade, and the technical problem that synchronous upgrading of the controller and the TBox cannot be realized through OTA in the prior art and the controller is difficult to upgrade is solved.
Optionally, the version inquiry instruction carries information of file type, file directory, file name and inquiry command; the target controller inquires that the obtained file version carries information of file type, file directory, file name and version number.
Optionally, the transmission mode includes any one of the following: j1939, UDS, FTP, TFTP.
Optionally, the interaction of the upgrade order and upgrade status is unified to the J1939 communication mode.
Optionally, the information carried in the upgrade command at least includes: file type, file directory, file name, file size, file verification mode, file verification code and transmission mode; the information of the upgrade state fed back by the target controller at least comprises: file type, file directory, file name, and upgrade status.
Optionally, the latest file includes at least one of: firmware programs, library files, configuration files, control programs, and algorithms.
Optionally, the latest file is obtained after the verification of the target controller is passed on the target file obtained by the configuration of the user on the cloud platform.
The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned.
As shown in fig. 5, an electronic device 600 provided in an embodiment of the present application includes: the device comprises a processor 601, a memory 602 and a bus, wherein the memory 602 stores machine-readable instructions executable by the processor 601, when the electronic device is running, the processor 601 communicates with the memory 602 through the bus, and the processor 601 executes the machine-readable instructions to execute the steps of the OTA upgrade method of the device file program.
Specifically, the memory 602 and the processor 601 can be general-purpose memories and processors, which are not limited herein, and the OTA upgrading method of the device file program can be executed when the processor 601 runs the computer program stored in the memory 602.
The processor 601 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 601 or instructions in the form of software. The processor 601 may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), and the like; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 602, and the processor 601 reads information in the memory 602 and performs the steps of the above method in combination with its hardware.
Corresponding to the OTA upgrade method of the device file program, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores machine executable instructions, and the computer executable instructions cause a processor to operate the steps of the OTA upgrade method of the device file program when the computer executable instructions are called and operated by the processor.
The OTA upgrading device of the device file program provided by the embodiment of the application can be specific hardware on the device or software or firmware installed on the device. The device provided by the embodiment of the present application has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned. It will be clear to those skilled in the art that, for convenience and brevity, the specific operation of the system, apparatus and unit described above may refer to the corresponding process in the above method embodiment, which is not described in detail herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
As another example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments provided in the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the vehicle marking method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a magnetic disk, or an optical disk, etc., which can store program codes.
It should be noted that: like reference numerals and letters in the following figures denote like items, and thus once an item is defined in one figure, no further definition or explanation of it is required in the following figures, and furthermore, the terms "first," "second," "third," etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit of the corresponding technical solutions. Are intended to be encompassed within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (10)
1. An OTA upgrading method for a device file program, which is applied to a TBox, and includes:
An OTA upgrade request issued by a cloud platform is obtained, wherein the OTA upgrade request is triggered by an equipment management application adjusting an upgrade interface of the cloud platform, and information carried in the OTA upgrade request at least comprises: controller address, transmission mode, file address and file version;
Analyzing the OTA upgrading request, and sending a version inquiry instruction to a target controller according to the analyzed controller address so that the target controller can inquire a file version according to the version inquiry instruction;
Acquiring a file version inquired by the target controller, and comparing the file version with the analyzed file version;
Determining whether the latest file corresponding to the parsed file version needs to be downloaded according to the comparison result;
If the latest file needs to be downloaded, the latest file is downloaded from the cloud platform according to the resolved file address, and the latest file corresponding to the target controller in the latest file is uploaded to the target controller according to the resolved transmission mode;
Sending an upgrade command to the target controller so that the target controller is upgraded according to a latest file corresponding to the target controller based on the upgrade command, and upgrading according to a latest file corresponding to the TBox in the latest file, so as to realize synchronous upgrade of the target controller and the TBox;
And acquiring an upgrading state fed back by the target controller, and reporting the upgrading state and the upgrading state of the TBox to the cloud platform.
2. The method of claim 1, wherein the version query instruction carries information of a file type, a file directory, a file name and a query command;
And the target controller inquires that the obtained file version carries information of file types, file catalogues, file names and version numbers.
3. The method of claim 1, wherein the transmission means comprises any one of: j1939, UDS, FTP, TFTP.
4. The method of claim 1, wherein the interaction of the upgrade order and the upgrade status is unified to a J1939 communication mode.
5. The method of claim 1, wherein the information carried in the upgrade command comprises at least: file type, file directory, file name, file size, file verification mode, file verification code and transmission mode;
The information of the upgrade state fed back by the target controller at least comprises: file type, file directory, file name, and upgrade status.
6. The method of claim 1, wherein the latest file comprises at least one of: firmware programs, library files, configuration files, control programs, and algorithms.
7. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The latest file is obtained after the target file configured on the cloud platform by the user passes the verification of the target controller.
8. An OTA upgrading device for a device file program, applied to a TBox, the device comprising:
the first obtaining unit is configured to obtain an OTA upgrade request sent by the cloud platform, where the OTA upgrade request is triggered by the device management application adjusting an upgrade interface of the cloud platform, and information carried in the OTA upgrade request at least includes: controller address, transmission mode, file address and file version;
The analysis and instruction sending unit is used for analyzing the OTA upgrading request and sending a version inquiry instruction to a target controller according to the analyzed controller address so that the target controller can inquire a file version according to the version inquiry instruction;
The second acquisition unit is used for acquiring the file version inquired by the target controller and comparing the file version with the analyzed file version;
The determining unit is used for determining whether the latest file corresponding to the parsed file version needs to be downloaded according to the comparison result;
the downloading unit is used for downloading the latest file from the cloud platform according to the resolved file address and uploading the latest file corresponding to the target controller in the latest file to the target controller according to the resolved transmission mode if the latest file is required to be downloaded;
An upgrade command sending unit, configured to send an upgrade command to the target controller, so that the target controller upgrades according to a latest file corresponding to the target controller based on the upgrade command, and upgrades according to a latest file corresponding to the TBox in the latest file, so as to realize synchronous upgrade of the target controller and the TBox;
And the acquisition and reporting unit is used for acquiring the upgrading state fed back by the target controller and reporting the upgrading state and the upgrading state of the TBox to the cloud platform.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any of the preceding claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium storing machine executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any one of the preceding claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210385838.1A CN114661328B (en) | 2022-04-13 | 2022-04-13 | OTA (over the air) upgrading method and device for equipment file program and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210385838.1A CN114661328B (en) | 2022-04-13 | 2022-04-13 | OTA (over the air) upgrading method and device for equipment file program and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114661328A CN114661328A (en) | 2022-06-24 |
CN114661328B true CN114661328B (en) | 2024-06-28 |
Family
ID=82035412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210385838.1A Active CN114661328B (en) | 2022-04-13 | 2022-04-13 | OTA (over the air) upgrading method and device for equipment file program and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114661328B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190633A (en) * | 2020-01-03 | 2020-05-22 | 东风汽车集团有限公司 | OTA (over the air) upgrading system and method for whole electric control unit |
CN112052017A (en) * | 2020-08-21 | 2020-12-08 | 东风汽车集团有限公司 | OTA (over the air) upgrading system and method for automobile CAN (controller area network) controller |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933150A (en) * | 2016-04-20 | 2016-09-07 | 努比亚技术有限公司 | OTA upgrade method, device and system |
CN107547591A (en) * | 2016-06-27 | 2018-01-05 | 中兴通讯股份有限公司 | Upgrade server, set top box, set top box upgrading file delivery method and system |
CN110032382A (en) * | 2019-03-25 | 2019-07-19 | 深圳猛犸电动科技有限公司 | A kind of vehicle electronic control unit upgrade method, system and terminal device |
CN110489143B (en) * | 2019-07-18 | 2023-10-13 | 南京依维柯汽车有限公司 | FOTA firmware remote upgrading system and method on new energy automobile |
CN112256294A (en) * | 2019-07-22 | 2021-01-22 | 中科云谷科技有限公司 | Deployment method, cloud platform, system and storage medium of terminal application |
CN113031980B (en) * | 2019-12-24 | 2024-08-27 | 华为技术有限公司 | OTA system software upgrading control method and terminal equipment |
WO2022067509A1 (en) * | 2020-09-29 | 2022-04-07 | Oppo广东移动通信有限公司 | Device upgrade control method and apparatus, and computer device and storage medium |
CN113010201A (en) * | 2021-03-24 | 2021-06-22 | 东莞铭普光磁股份有限公司 | Firmware file identification method, firmware upgrade pairing method and device |
CN113608763A (en) * | 2021-07-30 | 2021-11-05 | 上海华兴数字科技有限公司 | Vehicle-mounted OTA upgrading method, device, equipment and operation machine |
CN113934442A (en) * | 2021-09-30 | 2022-01-14 | 青岛海尔科技有限公司 | Software upgrading method and device |
-
2022
- 2022-04-13 CN CN202210385838.1A patent/CN114661328B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190633A (en) * | 2020-01-03 | 2020-05-22 | 东风汽车集团有限公司 | OTA (over the air) upgrading system and method for whole electric control unit |
CN112052017A (en) * | 2020-08-21 | 2020-12-08 | 东风汽车集团有限公司 | OTA (over the air) upgrading system and method for automobile CAN (controller area network) controller |
Also Published As
Publication number | Publication date |
---|---|
CN114661328A (en) | 2022-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2743685C (en) | Firmware upgrade system and method in a device management architecture | |
CN109787774B (en) | Upgrade downloading method and device based on digital signature verification, server and terminal | |
KR102557240B1 (en) | Methods for loading a profile to a secure element, manager and personalisable secure element | |
US20170262263A1 (en) | Process and system for the generation of an operating program in the form of a mobile application that is capable of operating on a mobile device | |
CN107797807A (en) | Generate method, apparatus, terminal, server and the system of container | |
CN110716538A (en) | Vehicle diagnosis method, device, equipment and readable storage medium | |
CN113873010A (en) | Equipment upgrading method and device, storage medium and electronic device | |
CN110750286A (en) | Management method, device, system, equipment and medium for upgrading Mbn through OTA | |
CN113778498A (en) | Vehicle data updating method, OTA cloud and vehicle data updating system | |
CN111371615B (en) | Online server, method and system for updating operation and maintenance tool and readable storage medium | |
US11726443B2 (en) | Efficient controller data generation and extraction | |
CN113835729B (en) | Upgrading method, upgrading device, terminal equipment and computer readable storage medium | |
CN114661328B (en) | OTA (over the air) upgrading method and device for equipment file program and electronic equipment | |
CN112399378B (en) | Internet of vehicles-based over-the-air downloading method, system, equipment and medium | |
CN110569046A (en) | Data processing method, device, equipment and storage medium | |
CN113094064A (en) | Gateway software module upgrading method, device, equipment and storage medium | |
KR20120117504A (en) | Communication system and method for updating software thereof | |
CN112540783A (en) | Client upgrading method and device, storage medium and electronic equipment | |
CN112667272A (en) | Ammeter upgrading method and system, intelligent ammeter and storage medium | |
CN112015454A (en) | System upgrade package generation method and device, electronic equipment and storage medium | |
CN115454575B (en) | jar packet conversion and automatic loading method, device, equipment and storage medium | |
CN112436974B (en) | CDN data resource consistency detection method and device and computer equipment | |
CN111770487B (en) | Access Point Name (APN) information configuration method, equipment and medium | |
CN114827127A (en) | File management method and system, cloud server and terminal equipment | |
CN114416420A (en) | Equipment problem feedback method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |