Disclosure of Invention
The invention aims to provide a local communication server, an OTA (over the air) upgrading method thereof, a cloud server, electronic equipment and a computer readable storage medium, so as to solve the problem that in the prior art, upgrading notification information cannot be accurately and completely downloaded to the local communication server, and the OTA upgrading efficiency is influenced.
According to a first aspect of the present invention, an OTA upgrading method for a local communication server includes: the method comprises the steps that when receiving OTA (over the air) upgrading information comprising the latest integral version, the cloud server generates an integral upgrading packet and generates and continuously sends upgrading notification information according to the integral upgrading packet; the whole upgrading package comprises the latest software version information of all ECUs of the target type transportation means under the latest whole version and the downloading address information of each ECU upgrading package; each local communication server of the target model automatically receives the upgrading notification information when being positioned in a mobile communication signal coverage area; analyzing the upgrade notification information to obtain the integral upgrade package, and downloading the upgrade packages of all ECUs to be upgraded under the latest integral version according to the integral upgrade package and the current versions of the ECUs of the transportation means to which the local communication server belongs; and after downloading the upgrade packages of all the ECUs to be upgraded under the latest overall version, the local communication server executes the upgrade operation of all the ECUs to be upgraded according to the received upgrade execution instruction and the downloaded upgrade packages of the ECUs.
Further, the step of generating and continuously sending the upgrade notification information according to the whole upgrade package includes: and generating and continuously sending upgrade notification information according to the integral upgrade package until receiving OTA upgrade information of the next latest integral version or receiving feedback information of the finish of the upgrade operation of all ECUs needing to be upgraded in the target model, and then stopping sending the upgrade notification information.
Further, the step of downloading the upgrade packages of all ECUs to be upgraded under the latest overall version according to the overall upgrade package and the current versions of the ECUs of the transportation means to which the local communication server belongs includes; comparing the integral upgrade package with the current version of each ECU of the transportation means to which the local communication server belongs; determining the ECU with the current version inconsistent with the latest software version information of the corresponding ECU in the whole upgrade package as the ECU needing to be upgraded; and downloading the upgrade packages of all ECUs to be upgraded under the latest overall version according to the overall upgrade package.
Further, after downloading the upgrade package of all the ECUs that need to be upgraded under the latest overall version, the local communication server includes: the local communication server checks all the upgrading packages of the ECUs to be upgraded and sends upgrading inquiry information to the operation end after the checking is finished; and the operation end sends the upgrade execution instruction, and comprises a user terminal or an intelligent central control end.
Further, according to the received upgrade execution instruction and the downloaded upgrade package of the ECU, executing all the steps of the upgrade operations of the ECU which needs to be upgraded, including: after receiving the upgrading execution instruction, checking whether a preset upgrading condition is met; when a preset upgrading condition is met, sequentially carrying out upgrading operation on all ECUs needing upgrading, and displaying upgrading progress information to the operation end in the upgrading process; and when the upgrade is completed or fails, respectively sending first upgrade feedback information and second upgrade feedback information to the operation end.
Further, the transportation vehicle is a vehicle, a ship or an airplane.
According to a second aspect of the invention, an electronic device comprises:
a memory for storing a computer program;
a processor for executing the computer program stored in the memory, and when the computer program is executed, implementing any of the methods described above.
According to a third aspect of the invention, a computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements any of the methods described above.
According to a fourth aspect of the present invention, a cloud server includes: the receiving module is used for receiving OTA upgrading information comprising the latest integral version; the updating information generating module is used for generating an integral updating packet when the receiving module receives the OTA updating information comprising the latest integral version; generating upgrading notification information according to the integral upgrading packet; the whole upgrading package comprises the latest software version information of all ECUs of the target type transportation means under the latest whole version and the downloading address information of each ECU upgrading package;
and the sending module is used for continuously sending the upgrade notification information.
Further, the sending module is specifically configured to continuously send the upgrade notification information until the receiving module receives the OTA upgrade information of the next latest overall version or receives feedback information that the upgrade operation of all the ECUs of the target model that need to be upgraded is completed, and then stop sending the upgrade notification information.
According to a fifth aspect of the invention, a local communication server of a transportation means comprises: the communication module is used for automatically receiving the upgrading notification information when the mobile communication signal coverage area is located; the analysis module is used for analyzing the upgrade notification information to obtain an integral upgrade package; the whole upgrading package comprises the latest software version information of all ECUs of the target type transportation means under the latest whole version and the downloading address information of each ECU upgrading package; the processing module is used for downloading the upgrade packages of all the ECUs to be upgraded under the latest overall version according to the overall upgrade package and the current versions of the ECUs of the transportation means to which the communication module belongs; and the upgrading module is used for executing upgrading operation of all ECUs needing upgrading according to the received upgrading execution instruction and the downloaded upgrading packages of the ECUs after downloading the upgrading packages of all the ECUs needing upgrading under the latest integral version.
Further, the processing module is specifically configured to: comparing the integral upgrade package with the current version of each ECU of the transportation means to which the local communication server belongs; determining the ECU with the current version inconsistent with the latest software version information of the corresponding ECU in the whole upgrade package as the ECU needing to be upgraded; and downloading the upgrade packages of all ECUs to be upgraded under the latest overall version according to the overall upgrade package.
Further, the local communication server further includes: the verification module is used for verifying all the upgrading packages of the ECUs to be upgraded and sending upgrading inquiry information to the operation end after the verification is finished; the operation end comprises a user terminal or an intelligent central control end; the processing module is further configured to check whether a preset upgrade condition is met after the communication module receives an upgrade execution instruction sent by the operating terminal, sequentially perform upgrade operations on all ECUs to be upgraded when the preset upgrade condition is met, and display upgrade progress information to the operating terminal in the upgrade process; when the upgrading is completed or fails, respectively sending first upgrading feedback information and second upgrading feedback information to the operation end; the upgrading condition comprises gear information and residual electric quantity of the vehicle.
Further, the transportation vehicle is a vehicle, a ship or an airplane.
According to the local communication server of the transportation tool, the OTA upgrading method thereof and the cloud server, when receiving the OTA upgrading information comprising the latest integral version through the cloud server, the cloud server generates the integral upgrading packet and generates and continuously sends the upgrading notification information according to the integral upgrading packet, the local communication server of each transportation tool of a target model automatically receives the upgrading notification information as long as the local communication server is positioned in a mobile communication signal coverage area, and the accurate issuing of the upgrading notification information in an OTA flow and the complete downloading of the upgrading packet into the local communication server are ensured; meanwhile, the latest overall version of the overall upgrade package is uniformly managed, and the local communication server executes the upgrade operation of all ECUs to be upgraded after downloading all the upgrade packages of the ECUs to be upgraded under the latest overall version, so that the version information of all the ECUs of each transportation tool can be clearly and conveniently managed.
Other characteristic features and advantages of the invention will become apparent from the following description of exemplary embodiments, which is to be read in connection with the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
As shown in fig. 1, the OTA upgrading method for the local communication server of the transportation vehicle according to the present invention includes:
step 101: the method comprises the steps that when receiving OTA (over the air) upgrading information comprising the latest integral version, the cloud server generates an integral upgrading packet and generates and continuously sends upgrading notification information according to the integral upgrading packet; the whole upgrading package comprises the latest software version information of all ECUs of the target type transportation means under the latest whole version and the downloading address information of each ECU upgrading package;
step 102: each local communication server of the target model automatically receives the upgrading notification information when being positioned in a mobile communication signal coverage area; analyzing the upgrade notification information to obtain the integral upgrade package, and downloading the upgrade packages of all ECUs to be upgraded under the latest integral version according to the integral upgrade package and the current versions of the ECUs of the transportation means to which the local communication server belongs;
and generating and continuously sending upgrade notification information according to the integral upgrade package until receiving OTA upgrade information of the next latest integral version or receiving feedback information of the finish of the upgrade operation of all ECUs needing to be upgraded in the target model, and then stopping sending the upgrade notification information.
Step 103: and after downloading the upgrade packages of all the ECUs to be upgraded under the latest overall version, the local communication server executes the upgrade operation of all the ECUs to be upgraded according to the received upgrade execution instruction and the downloaded upgrade packages of the ECUs.
According to the embodiment of the OTA upgrading method of the local communication server of the transportation tool, when the OTA upgrading information comprising the latest integral version is received by the cloud server, the integral upgrading packet is generated, and the upgrading notification information is generated and continuously sent according to the integral upgrading packet, so that the local communication server of each transportation tool with a target model can automatically receive the upgrading notification information as long as the local communication server is positioned in a mobile communication signal coverage area, and the upgrading notification information in the OTA process is accurately issued and the upgrading packet can be completely downloaded into the local communication server; meanwhile, the latest integral version of the integral upgrade package is uniformly managed, the local communication server executes the upgrade operation of all the ECUs to be upgraded after downloading all the upgrade packages of all the ECUs to be upgraded under the latest integral version, the version information of all the ECUs of all the transportation means can be definitely and conveniently managed, downloading and upgrading are automatically carried out, the use experience of a user is improved, the operation of the user is simplified, and the waiting time of the user is saved.
As shown in fig. 2, the OTA upgrading method for a local communication server of a transportation vehicle provided by the present invention is a preferred implementation manner ofstep 101 andstep 102 in the embodiment of the method shown in fig. 1, an explanation of the embodiment shown in fig. 1 may be applied to this embodiment, an OTA upgrading method for a local communication server of this embodiment is explained by taking a transportation vehicle as an example, and the method includes:
step 201: the cloud server providing the upgrading service maintains upgrading packages of specific transportation tools of various types, integral version information (namely the integral vehicle version information) and version information of various ECUs;
step 202: the cloud server generates an integral upgrade package (namely an integral vehicle upgrade package) when receiving OTA upgrade information comprising the latest integral version;
step 203: the cloud server generates and continuously sends upgrading notification information to TBOX of all vehicles of the target vehicle type according to the whole upgrading packet;
step 204: once the TBOX of the vehicle enters a mobile communication signal coverage area, the vehicle receives upgrade notification information;
step 205: the TBOX of the vehicle compares the whole upgrade package with the current version of each ECU of the vehicle;
step 206: and determining the ECU with the current version inconsistent with the latest software version information of the corresponding ECU in the whole upgrade package as the ECU needing to be upgraded, adding the ECU into an upgrade queue, and downloading the corresponding upgrade package according to a download address (such as URL) in the whole upgrade package.
Step 207: and finishing downloading the upgrade packages of all ECUs needing to be upgraded under the latest overall version.
During specific operation, the technology of network disconnection and power-off continuous transmission can be utilized, the flow waste caused by the fact that the ECU needs to be downloaded from the head after network disconnection and power-off every time is avoided, meanwhile, the upgrading package of each ECU contained in the whole vehicle version can be stored in a URL, the software version information of all the ECUs of the vehicle is maintained in TBOX, when a new OTA upgrading notice is received, the updated ECU downloads the upgrading package of each ECU in the whole vehicle package compared with the current version number of the ECU, the ECU which is not updated does not perform downloading processing, and the (4G) network flow is saved by completely downloading the whole upgrading package.
In the present embodiment, each ECU has its own software version, and version management is performed by using the entire version, for example, the entire vehicle version information includes version information of all ECUs. The method comprises the steps that a vehicle manufacturer issues a whole vehicle version of a specified vehicle type, under the condition that a user does not know, a cloud server informs that a whole vehicle has an updated message, the message is issued to TBOX of all vehicles of the vehicle type through a (4G) network, an issuing mode adopts a 'issuing-subscribing' mode, namely, a cloud server issues a message that the whole vehicle OTA has upgrade, the message is always stored in a issuing cache of the cloud server before all vehicles feed back the upgrade city or a next new version is issued, once vehicles of corresponding vehicle types enter a region covered by (4G) signals to be accessed into an Ethernet, the TBOX receives the message that the whole vehicle has the update through subscription, and therefore 'the message must be answered' is achieved. After OTA upgrade notice is issued by a background server of a car factory, once a vehicle of a corresponding vehicle type is accessed to a network, the upgrade notice is necessarily received, URL information of an upgrade package of each ECU in an integral upgrade package is automatically analyzed, and then the upgrade package is silently downloaded without being known by a user.
In the embodiment, the time for the TBOX to download the upgrade package from the cloud server due to the influence of network coverage is reduced in the time for waiting for upgrading by the user, the cloud server performs version management on all vehicle-mounted electronic equipment by taking the whole vehicle version as a unit, the method is more convenient and efficient, and the complexity can be reduced for differential upgrading; the user's experience of upgrading the progress bar is very good.
Fig. 3 is a preferred implementation manner ofstep 103 in the embodiment of the method shown in fig. 1, where an explanation of the embodiment shown in fig. 1 may be applied to this embodiment, and the OTA upgrading method of the local communication server of this embodiment is explained by taking a transportation vehicle as an example, where the method includes:
step 301: after downloading all the upgrading packages of the ECUs to be upgraded under the latest overall version, the local communication server verifies all the upgrading packages of the ECUs to be upgraded and sends upgrading inquiry information to the operation end after verification is completed;
step 302: TBOX informs intelligent central control and mobile phone terminal that whole vehicle software is updated
Step 303: and the operation end sends the upgrade execution instruction or appoints upgrade time, and comprises a user terminal or an intelligent central control end.
Step 304: after the upgrading execution instruction is received, checking whether a preset upgrading condition is met, wherein the upgrading condition comprises gear information and residual electric quantity of the vehicle;
step 305: when the preset upgrading conditions are met, sequentially carrying out upgrading operation on all ECUs needing upgrading; the specific upgrade flashing process can refer to the process shown in fig. 4;
step 306: displaying upgrading progress information to the operation end in the upgrading process; the specific process of sending the progress bar may refer to the process shown in fig. 4.
The writing of TBOX to the ECU necessarily requires that a user cannot use the vehicle, because the ECU which does not have double partitions is in a programming state during software burning and cannot work normally. Due to the fact that the logic of whole vehicle upgrading is adopted, a user does not need to pay attention to the details of the dependency relationship, the upgrading sequence and the like, and the upgrading time and the progress bar pre-estimated by the user can be displayed by the central control or the mobile phone end, so that the upgrading experience of daily intelligent equipment like mobile phones is more approximate. In order to show the upgrading progress more intuitively for a user, the ECU upgrading packet is tested before being issued to obtain the average value of the brushing time length as a reference, the reference upgrading time of the ECUs needing upgrading under the version of the whole vehicle is accumulated to be used as the total estimated upgrading time, and the percentage is calculated in a weighting mode when each ECU is upgraded when the progress bar is shown at the central control or the mobile phone end in the process of sequential upgrading.
Step 307: judging whether the upgrading operation is normally performed, and if the upgrading operation is abnormal, repeating thestep 304 for a preset number of times, such as failure;
step 308: and when the upgrade is completed or fails, respectively sending first upgrade feedback information and second upgrade feedback information to the operation end.
In this embodiment, after the upgrade package is downloaded, the TBOX sends a new OTA upgrade notification to the central control screen of the vehicle or the mobile phone of the vehicle owner, which means that the long process of "downloading the upgrade package" is silently performed by the vehicle by using each time of accessing the 4G network, and the user does not need to occupy time to actively download and wait for the end. After the user receives the notice of the new integral upgrade package on the central control screen or the mobile phone end, the upgrade package is downloaded to the vehicle-mounted TBOX disk, so that the user does not depend on the existence of the 4G network when selecting 'upgrade immediately' or 'upgrade with reserved time' to start the flash process of the TBOX to the ECU.
As shown in fig. 5, the present invention further provides a cloud server, which is an embodiment of the cloud server corresponding to the method embodiments shown in fig. 1 to 4, and the explanation of the embodiment shown in fig. 1 to 4 can be applied to this embodiment, where the cloud server includes:
a receiving module 501, configured to receive OTA upgrade information including a latest overall version;
an upgrade information generation module 502, configured to generate an integral upgrade package when the receiving module receives OTA upgrade information including a latest integral version; generating upgrading notification information according to the integral upgrading packet; the whole upgrading package comprises the latest software version information of all ECUs of the target type transportation means under the latest whole version and the downloading address information of each ECU upgrading package;
the sending module 503 continues to send the upgrade notification information.
Further, the sending module 503 is specifically configured to continuously send the upgrade notification information until the receiving module receives the OTA upgrade information of the next latest overall version or receives feedback information that the upgrade operation of all the ECUs of the target model that need to be upgraded is completed, and then stops sending the upgrade notification information.
The cloud server of the embodiment has the corresponding technical effects of the cloud server in the OTA upgrading method of the local communication server of each transportation means, and the details are not repeated herein.
As shown in fig. 6, the present invention further provides a local communication server of a transportation vehicle, which is an embodiment of the corresponding local communication server in the embodiment of the method shown in fig. 1 to 4, and an explanation of the embodiment shown in fig. 1 to 4 can be applied to this embodiment, where the local communication server of the transportation vehicle of this embodiment includes:
the communication module 601 is configured to automatically receive upgrade notification information when the mobile communication signal coverage area is located;
the analysis module 602 is configured to analyze the upgrade notification information to obtain an overall upgrade package; the whole upgrading package comprises the latest software version information of all ECUs of the target type transportation means under the latest whole version and the downloading address information of each ECU upgrading package;
the processing module 603 is configured to download all the upgrade packages of the ECUs that need to be upgraded in the latest overall version according to the overall upgrade package and the current versions of the ECUs of the transportation means to which the communication module belongs;
and the upgrading module 604 is configured to, after downloading the upgrade packages of all the ECUs that need to be upgraded in the latest overall version, execute the upgrading operations of all the ECUs that need to be upgraded according to the received upgrade execution instruction and the downloaded upgrade packages of the ECUs.
Further, the processing module 603 is specifically configured to: comparing the integral upgrade package with the current version of each ECU of the transportation means to which the local communication server belongs; determining the ECU with the current version inconsistent with the latest software version information of the corresponding ECU in the whole upgrade package as the ECU needing to be upgraded; and downloading the upgrade packages of all ECUs to be upgraded under the latest overall version according to the overall upgrade package.
The local communication server of the transportation means may further include:
the verification module (not shown in the figure) is used for verifying all the upgrading packages of the ECUs to be upgraded and sending upgrading inquiry information to the operation end after the verification is finished; the operation end comprises a user terminal or an intelligent central control end;
the processing module 603 is further configured to check whether a preset upgrade condition is met after the communication module receives an upgrade execution instruction sent by the operation terminal, sequentially perform an upgrade operation on all ECUs to be upgraded when the preset upgrade condition is met, and display upgrade progress information to the operation terminal in an upgrade process; when the upgrading is completed or fails, respectively sending first upgrading feedback information and second upgrading feedback information to the operation end; the upgrading condition comprises gear information and residual electric quantity of the vehicle.
There is also provided, in accordance with an embodiment of the present invention, electronic apparatus including:
a memory for storing a computer program;
a processor for executing the computer program stored in the memory, and when the computer program is executed, implementing any of the methods described above.
There is also provided, in accordance with an embodiment of the present invention, a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the methods described above.
The local communication server of the transportation vehicle of this embodiment has the corresponding technical effects of the local communication server in the above OTA upgrading method of the local communication server of each transportation vehicle, and is not described herein again.
The above-described aspects may be implemented individually or in various combinations, and such variations are within the scope of the present invention.
Finally, it should be noted that: the above examples are only for illustrating the technical solutions of the present invention, and are not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.