Logistics vehicle updating method and device

By using the OTA vehicle terminal program to download and verify the update package when the logistics vehicle is powered on, and determining the update based on the operating status and network quality, the problem of low update efficiency of unmanned logistics vehicles is solved, and automatic update and version rollback are realized. Improved update success rate and maintenance efficiency.

CN119002955APending Publication Date: 2024-11-22SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410982790.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

During the development, testing and production operation and maintenance of unmanned logistics vehicles, the update efficiency is low, because the update can only be carried out when powered on, which affects the delivery speed, and the existing technology cannot download the update package in advance in the automatic operation state. Causes frequent update failures.

Method used

Provide a method and device for updating logistics vehicles. The OTA vehicle terminal program sends an update request when powering on the logistics vehicle, downloads and safely verifies the update package, determines whether to update based on the operating status parameters, and updates when the network quality is met. , add version rollback function to handle update failures.

Benefits of technology

It realizes that unmanned logistics vehicles receive and perform update tasks in any state, improves update efficiency, ensures file integrity and security of the update process, reduces update failures and version errors, and improves maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002955A_ABST
    Figure CN119002955A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of vehicles, and discloses a logistics vehicle updating method and device. The method comprises the following steps: when the logistics vehicle is in a power-on state, sending an update request to a server; receiving an update task issued by the server, downloading an update package of the logistics vehicle according to the update task, and performing security verification on the update package; obtaining operation state parameters of the logistics vehicle, and according to the operation state parameters, determining whether the logistics vehicle meets the operation state parameters of the update requirements; and if the logistics vehicle meets the operation state parameter of the update requirement, controlling the logistics vehicle to update based on the update package. According to the invention, the updating efficiency of the unmanned logistics vehicle can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a method and device for updating a logistics vehicle. Background Art

[0002] At present, unmanned logistics vehicles often need to update system software modules during development, testing, production and maintenance to meet new requirements or fix defects in old versions. In the prior art, when unmanned logistics vehicles are updated, some control modules will be updated. In order to avoid affecting the delivery speed of unmanned logistics vehicles, unmanned logistics vehicles do not perform update operations during automatic operation. Therefore, the unmanned logistics vehicles can only be updated when powered on, and the update efficiency of unmanned logistics vehicles is low. Summary of the invention

[0003] Based on this, it is necessary to provide a method and device for updating logistics vehicles in response to the above technical problems.

[0004] In a first aspect, a method for updating a logistics vehicle is provided, the method being applied to an over-the-air upgrade OTA vehicle-side program of a logistics vehicle, the OTA vehicle-side program being installed in the logistics vehicle, the method comprising:

[0005] When the logistics vehicle is in a powered-on state, sending an update request to the server;

[0006] Receive the update task sent by the server, and download the update package of the logistics vehicle according to the update task, and perform security verification on the update package;

[0007] Acquire the operating status parameters of the logistics vehicle, and determine whether the logistics vehicle meets the operating status parameters required for updating according to the operating status parameters;

[0008] If the logistics vehicle meets the operating status parameters required for the update, the logistics vehicle is controlled to be updated based on the update package.

[0009] As an optional implementation, the operating status parameter includes a vehicle operating status code, and judging whether the logistics vehicle meets the operating status parameter required for updating according to the operating status parameter includes:

[0010] The vehicle operation status code is compared with a pre-stored operation status code that allows update. If the vehicle operation status code is the pre-stored operation status code that allows update, it is determined that the operation status parameters of the logistics vehicle meet the update requirements. Otherwise, the step of obtaining the operation status parameters of the logistics vehicle is executed.

[0011] As an optional implementation manner, the operating state parameter includes the current vehicle speed, and judging whether the logistics vehicle meets the operating state parameter required for updating according to the operating state parameter includes:

[0012] Determine whether the current vehicle speed is zero. If the current vehicle speed is zero, determine that the logistics vehicle meets the operating status parameters required for updating. Otherwise, execute the step of obtaining the operating status parameters of the logistics vehicle.

[0013] As an optional implementation, the security check includes password check and file size check, and the security check of the update package includes:

[0014] Decompressing the update package to obtain an update file and a first information digest algorithm MD5 value and a first file size value of the update file;

[0015] Sending an information query request for the update file to the server;

[0016] Receive the target MD5 value and target file size value of the update file sent by the server;

[0017] The first MD5 value is matched with the target MD5 value, and the first file size value is matched with the target file size value, and if the matches are successful, it indicates that the security verification is completed;

[0018] If the match fails, the step of downloading the update package of the logistics vehicle is executed until the security check is completed.

[0019] As an optional implementation manner, after the logistics vehicle is in a powered-on state, the method further includes:

[0020] Detecting the network quality of the logistics vehicle, and if the network quality meets the network quality required for update, executing the step of sending an update request to the server;

[0021] If the network quality does not meet the updated network quality requirements, the network is reconnected and the network quality of the logistics vehicle after the connection is detected until the network quality of the logistics vehicle meets the updated network quality requirements.

[0022] As an optional implementation, the method further includes:

[0023] After the logistics vehicle is updated, obtaining an update file under the target path, and obtaining a second MD5 value and a second file size value of the update file;

[0024] The second MD5 value and the target MD5 value, as well as the second file size value and the target file size value are matched respectively. If the matches are successful, it indicates that the update is successful; otherwise, it indicates that the update fails.

[0025] As an optional implementation, the method further includes:

[0026] Backing up the old version file of the logistics vehicle;

[0027] If the logistics vehicle fails to be updated, the backed-up old version file is restored, and the third MD5 value and the third file size value of the old version file in the backup folder are obtained, and a version rollback is performed based on the old version file;

[0028] After the logistics vehicle is rolled back, a rollback file under a target path and a fourth MD5 value and a fourth file size value of the rollback file are obtained;

[0029] The third MD5 value is matched with the fourth MD5 value, and the third file size value is matched with the fourth file size value. If the match is successful, it indicates that the version rollback is successful. If the match fails, it indicates that the version rollback fails.

[0030] In a second aspect, a logistics vehicle update device is provided, the device is applied to an over-the-air upgrade OTA vehicle-side program of a logistics vehicle, the logistics vehicle is installed with the OTA vehicle-side program, and the device includes:

[0031] A sending module, used for sending an update request to a server when the logistics vehicle is in a powered-on state;

[0032] A verification module, used to receive the update task sent by the server, and download the update package of the logistics vehicle according to the update task, and perform security verification on the update package;

[0033] A determination module, used for obtaining the operating status parameters of the logistics vehicle, and determining whether the logistics vehicle meets the operating status parameters required for updating according to the operating status parameters;

[0034] An update module is used to control the logistics vehicle to be updated based on the update package if the operating status parameters of the logistics vehicle meet the update requirements.

[0035] As an optional implementation, the device further includes:

[0036] A network diagnosis module, used to detect the network quality of the logistics vehicle, and if the network quality meets the network quality required for the update, the step of sending the update request to the server is executed;

[0037] The network diagnosis module is further used to reconnect the network if the network quality does not meet the network quality required for the update, and detect the network quality of the logistics vehicle after the connection until the network quality of the logistics vehicle meets the network quality required for the update;

[0038] The version rollback module is used to determine whether the update of the logistics vehicle fails. When the update of the logistics vehicle fails, the backed-up old version file is restored, and the version is rolled back based on the old version file.

[0039] In a third aspect, a logistics vehicle updating system is provided, the logistics vehicle updating system comprising: the logistics vehicle updating method as described in the first aspect and the logistics vehicle updating device as described in the second aspect.

[0040] In a fourth aspect, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, the method steps described in the first aspect are implemented.

[0041] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method steps described in the first aspect are implemented.

[0042] The present application provides a method and device for updating a logistics vehicle. The technical solution provided by the embodiment of the present application brings at least the following beneficial effects: when the logistics vehicle is in a power-on state, an update request is sent to a server; an update task issued by the server is received, and according to the update task, the update package of the logistics vehicle is downloaded, and the update package is security-checked; the running state parameters of the logistics vehicle are obtained, and according to the running state parameters, whether the logistics vehicle meets the running state parameters required for the update is determined; if the logistics vehicle meets the running state parameters required for the update, the logistics vehicle is controlled to be updated based on the update package. In this way, the logistics vehicle can receive and execute the update task and download the update package in any state. Then it is determined whether the running state parameters of the logistics vehicle meet the running state parameters required for the update, and if they do, the update is performed based on the update package. If not, the running state parameters of the logistics vehicle are obtained, and the update task is continued when the running state parameters of the logistics vehicle meet the update requirements. The vehicle can receive and execute the update task in any state, and the unmanned logistics vehicle in the automatic running state can download the update package in advance, which improves the update efficiency of the unmanned logistics vehicle by relying on the power-on update problem.

[0043] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A schematic diagram of the structure of a logistics vehicle update system provided in an embodiment of the present application;

[0046] Figure 2 A flow chart of a method for updating a logistics vehicle provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of an update architecture of a logistics vehicle provided in an embodiment of the present application;

[0048] Figure 4 A schematic diagram of the structure of an updating device for a logistics vehicle provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0051] The updating method of the logistics vehicle provided in the embodiment of the present application can be applied to the updating system of the logistics vehicle. Figure 1 As shown, the update system of the logistics vehicle includes a logistics vehicle 101 and a server 102. An OTA (Over-the-Air Technology) vehicle-side program is installed in the logistics vehicle 101.

[0052] Logistics vehicle 101, used for when the logistics vehicle 101 is in the power-on state, the OTA vehicle-side program sends an update request to the server 102. The OTA vehicle-side program receives the update task issued by the server 102, and obtains the operating status parameters of the logistics vehicle 101. According to the operating status parameters, the OTA vehicle-side program determines whether the logistics vehicle 101 meets the operating status parameters required for the update. If the logistics vehicle 101 meets the operating status parameters required for the update, the OTA vehicle-side program downloads the update package of the logistics vehicle 101 and performs a security check on the update package. After the security check is completed, the logistics vehicle 101 is controlled to be updated based on the update package.

[0053] The server 102 is used to send an update task to the logistics vehicle 101 after receiving the update request sent by the logistics vehicle 101.

[0054] The following will describe in detail a logistics vehicle updating method provided by an embodiment of the present application in combination with a specific implementation method. Figure 2 A flow chart of a method for updating a logistics vehicle provided in an embodiment of the present application, such as Figure 2 As shown, the specific steps are as follows:

[0055] Step 201, when the logistics vehicle is in a powered-on state, an update request is sent to the server.

[0056] In implementation, unmanned logistics vehicles often need to update system software modules during development, testing, and production and maintenance to meet new requirements or fix defects in old versions. In the prior art, when unmanned logistics vehicles are updated, some control modules will be updated. In order to avoid affecting the delivery speed of unmanned logistics vehicles, unmanned logistics vehicles do not perform update operations during automatic operation. Therefore, it can only rely on unmanned logistics vehicles to perform update operations when powered on, and the update efficiency of unmanned logistics vehicles is low. In order to improve the update efficiency of logistics vehicles and not affect the delivery of logistics vehicles, this application allows logistics vehicles to pre-download the update package required for the update function when the logistics vehicle is powered on. Then, when the operating state of the logistics vehicle meets the operating state during the update, that is, when it does not affect the delivery, the update operation is performed. Among them, the logistics vehicle can be an unmanned logistics vehicle or an unmanned logistics vehicle. Therefore, when the logistics vehicle is powered on, the technical developer can submit an update task on the OTA vehicle-side program management platform, and the OTA vehicle-side program sends an update request to the server. In this way, the update package can be downloaded based on the feedback from the server.

[0057] Furthermore, if the logistics vehicle is in an unpowered state, the automatic update is converted to a power-on update, and the automatic update operation is triggered when the logistics vehicle is powered on later.

[0058] Furthermore, when the logistics vehicle is powered on, the network status of the logistics vehicle can be determined first, and the update operation can be performed only if the network status meets the update requirements. The specific steps are as follows:

[0059] Step a, detecting the network quality of the logistics vehicle, if the network quality meets the network quality required for the update, executing the step of sending an update request to the server.

[0060] In implementation, when the logistics vehicle is powered on, the OTA vehicle-side program will perform real-time network diagnosis on the logistics vehicle, obtain the network quality of the logistics vehicle, and determine whether the network quality meets the update requirements. Only when the network quality meets the update requirements will the OTA vehicle-side program send an update request to the server. Therefore, the OTA vehicle-side program detects the network quality of the logistics vehicle. If the network quality meets the update requirements, the step of sending an update request to the server is executed. For example, the update request will be made only when the network status is good.

[0061] Step b: If the network quality does not meet the updated network quality requirements, reconnect the network and detect the network quality of the connected logistics vehicle until the network quality of the logistics vehicle meets the updated network quality requirements.

[0062] During implementation, the OTA vehicle-side program will perform real-time network diagnosis on the logistics vehicle during the power-on process of the logistics vehicle to obtain the network quality of the logistics vehicle. The OTA vehicle-side program also determines whether the obtained network quality of the logistics vehicle meets the network quality required for the update. If the network quality does not meet the network quality required for the update, the network is reconnected. The OTA vehicle-side program continues to detect the network quality of the connected logistics vehicle and determines whether the network quality after the connection meets the network quality required for the update until the network quality of the logistics vehicle meets the network quality required for the update. For example, if the network of the logistics vehicle cannot be connected, a reconnection operation will be performed every minute until the network is reconnected. The network is also monitored every minute during the power-on process of the vehicle, and it will automatically reconnect if the connection is disconnected.

[0063] Step 202, receiving the update task sent by the server, and downloading the update package of the logistics vehicle according to the update task, and performing a security check on the update package.

[0064] In implementation, after the server receives the update request sent by the OTA vehicle-side program, it will directly push the update task to the logistics vehicle that needs to be updated. The OTA vehicle-side program receives the update task sent by the server, and according to the update task, downloads the update package required for the logistics vehicle to update the software or system from the server. In order to ensure the integrity and accuracy of the update package download, after the update package is downloaded, a security check is performed on the update package. Therefore, the update task sent by the server is received, and according to the update task, the update package of the logistics vehicle is downloaded, and the update package is security checked.

[0065] Specifically, the security check includes password check and file size check. The specific process of performing the security check steps for the update package is as follows:

[0066] Step 1: decompress the update package to obtain the update file and the first information digest algorithm MD5 value and the first file size value of the update file.

[0067] In the implementation, the downloaded update package is subjected to password verification and file size verification. First, the update package is decompressed to obtain the decompressed update file. In order to ensure the integrity of the update file and the accuracy of the download, after obtaining the update file, the first MD5 value and the first file size value of the update file are read. Subsequently, it can be determined whether the update package is successfully downloaded based on the first MD5 value and the first file size value.

[0068] Step 2: Send an information query request for the update file to the server.

[0069] In implementation, after the OTA vehicle-side program reads the first MD5 value and the first file size value of the update file downloaded by the logistics vehicle, in order to ensure that the downloaded update file is correct, it is necessary to compare the update file with the update file on the server side. Among them, the information query is the MD5 value and file size value of the update file recorded on the server side. Therefore, this requires the OTA vehicle-side program to send an information query request for the update file to the server. Subsequently, the queried file information can be compared with the decompressed file information to ensure that the download is correct.

[0070] Step 3: Receive the target MD5 value and target file size value of the update file sent by the server.

[0071] In implementation, after receiving the information query request, the server sends the target MD5 value and target file size value of the update file to the OTA vehicle-side program. The target MD5 value is the MD5 value of the update file required by the logistics vehicle pre-recorded by the server, and the target file size value is the file size value of the update file required by the logistics vehicle pre-recorded by the server.

[0072] Step 4: Match the first MD5 value with the target MD5 value, and the first file size value with the target file size value respectively. If the match is successful, it indicates that the security verification is completed.

[0073] In implementation, after the OTA vehicle-side program receives the target MD5 value and target file size value sent by the server, it can compare the first MD5 value obtained by decompression with the target MD5 corresponding to the required update file, and compare the first file size value obtained by decompression with the target file size value corresponding to the required file. If the first MD5 value matches the target MD5 value, and the first file size value matches the target file size value, it means that the decompressed update file is the update file required for this logistics vehicle update, and then it indicates that the security check is completed.

[0074] Step 5: If the match fails, execute the step of downloading the update package of the logistics vehicle until the security check is completed.

[0075] In implementation, the OTA vehicle-side program matches the first MD5 value with the target MD5 value, and the first file size value with the target file size value. If the match fails, it means that the decompressed update file is not the update file required for this logistics vehicle update, and then it is necessary to re-download the update package required for this logistics vehicle update. Therefore, if the match fails, the step of downloading the update package of the logistics vehicle is executed until the security check is completed.

[0076] Step 203, obtaining the operating status parameters of the logistics vehicle, and determining whether the logistics vehicle meets the operating status parameters required for updating based on the operating status parameters.

[0077] In implementation, after downloading the update package required for the update, it is necessary to determine whether to perform the update operation immediately. In order to avoid affecting the delivery efficiency of the logistics vehicle, it is necessary to determine whether the current operating status of the current logistics vehicle meets the operating status required for the logistics vehicle to be updated. Then, based on the operating status parameters of the logistics vehicle, it can be determined whether the current logistics vehicle is suitable for updating. Therefore, the operating status parameters of the logistics vehicle are obtained. Then, it is determined whether the operating status parameters of the logistics vehicle are the operating status parameters corresponding to the update requirements of the logistics vehicle. Therefore, the operating status parameters of the logistics vehicle are obtained, and based on the operating status parameters, it is determined whether the logistics vehicle meets the operating status parameters required for the update.

[0078] Specifically, the running state parameters include the vehicle running state code and the current vehicle speed. The specific process of executing step 203 is as follows:

[0079] Step six, compare the vehicle operation status code with the pre-stored operation status code that allows update. If the vehicle operation status code is the pre-stored operation status code that allows update, determine that the logistics vehicle meets the operation status parameters required for update; otherwise, execute the step of obtaining the operation status parameters of the logistics vehicle.

[0080] In implementation, the running status parameters include the vehicle running status code. When determining whether the logistics vehicle meets the running status parameters required for the update based on the running status parameters, it is necessary to first determine whether the vehicle running status code meets the update requirements. The vehicle running status code can be compared with the pre-stored running status code that allows update. If the vehicle running status code is the pre-stored running status code that allows update, it means that the vehicle running status code of the current logistics vehicle meets the update requirements. Among them, the running status code corresponding to the pre-stored running status code that allows update is the running status code that the logistics vehicle can perform the update operation. If the vehicle running status code is not the pre-stored running status code that allows update, it means that the current vehicle does not meet the update requirements. Since the update package has been downloaded, in order to determine when the logistics vehicle can perform the update operation, it is necessary to execute the step of obtaining the running status parameters of the logistics vehicle, and obtain the running status parameters of the logistics vehicle again until the vehicle running status code is the pre-stored running status code that allows update. For example, the pre-stored running status codes that allow update are 0, 1, and 3, and the vehicle running status code of the logistics vehicle is 0, which means that the running status parameters of the logistics vehicle meet the update requirements. Among them, 0 can represent the running status code of vehicle initialization, 1 can represent the running status code of manual takeover, and 3 represents other running status codes that allow status update.

[0081] Step seven, determine whether the current vehicle speed is zero. If the current vehicle speed is zero, determine that the logistics vehicle meets the operating status parameters required for the update. Otherwise, execute the step of obtaining the operating status parameters of the logistics vehicle.

[0082] In implementation, the operating status parameters include the current vehicle speed. After determining the vehicle operating status code, it is also necessary to determine whether the current vehicle speed meets the update requirements, and then determine whether the current vehicle speed is zero. If the current vehicle speed is zero, it is determined that the logistics vehicle meets the operating status parameters required for the update, indicating that the current operating status parameters of the logistics vehicle meet the operating status parameters required for the update, and the logistics vehicle can perform the update operation. If the current speed of the logistics vehicle is not zero, it means that the speed does not meet the update requirements. In order to determine when the logistics vehicle can perform the update operation, it is necessary to execute the step of obtaining the operating status parameters of the logistics vehicle.

[0083] Step 204: If the logistics vehicle meets the operating status parameters required for the update, the logistics vehicle is controlled to be updated based on the update package.

[0084] During implementation, if the operating status parameters of the logistics vehicle meet the operating status parameters required for the update, the OTA vehicle-side program can control the logistics vehicle to perform update operations based on the update package.

[0085] Furthermore, if the vehicle operating status of the logistics vehicle does not meet the automatic update conditions, a delayed update will be triggered, and the update operation will continue when the vehicle operating status of the logistics vehicle meets the update conditions.

[0086] Furthermore, after the logistics vehicle is updated, in order to further ensure that the update file copied to the target path during the update is correct, it is also necessary to perform a security check on the copied update file. The specific steps are as follows:

[0087] Step A, after the logistics vehicle is updated, obtain the update file under the target path, and obtain the second MD5 value and the second file size value of the update file.

[0088] In practice, during the update process, the logistics vehicle will copy the update file downloaded from the server to the target path for update operation. In order to ensure that the update file is complete and correct after being copied to the target path, the update file in the target path after the update is completed can also be checked for security. Therefore, after the logistics vehicle is updated, the update file in the target path is obtained, and the second MD5 value and the second file size value of the update file are obtained.

[0089] Step B, respectively matching the second MD5 value and the target MD5 value, and the second file size value and the target file size value, if the match is successful, the update is successful, otherwise, the update fails.

[0090] In implementation, after obtaining the second MD5 value and the second file size value of the update file, it is necessary to compare the update file with the MD5 value and the file size value of the update file recorded on the server side, that is, it is necessary to match the second MD5 value with the target MD5 value, and the second file size value with the target file size value. If the match is successful, it means that the copied update file is the update file required for this logistics vehicle update, indicating that the update is successful. If the match fails, it means that the copied update file is not the update file required for this logistics vehicle update, indicating that the update failed.

[0091] Furthermore, in order to avoid the situation where developers need to manually refresh to the old version after the logistics vehicle update fails or the version is wrong, which leads to low version maintenance efficiency, a version rollback function can be added to the logistics vehicle. The specific steps are as follows:

[0092] Step C, back up the old version file of the logistics vehicle.

[0093] During implementation, between software updates or system updates of logistics vehicles, old version files of the logistics vehicle software or system can be backed up so that after a logistics vehicle update fails, it can automatically roll back to the old version without the need for technicians to manually refresh to the old version.

[0094] Step D: If the logistics vehicle update fails, restore the backed-up old version file, obtain the third MD5 value and the third file size value of the old version file in the backup folder, and perform version rollback based on the old version file.

[0095] In practice, if the logistics vehicle fails to update, the backed-up old version file can be restored and the version can be rolled back based on the old version file. After the version is rolled back, a security check is required to determine whether the version rollback is successful, that is, the password and file size of the old version file need to be checked. Therefore, the third MD5 value and the third file size value of the old version file in the backup folder need to be obtained to determine whether the version rollback is successful in the subsequent steps.

[0096] Step E: After the logistics vehicle is rolled back, the rollback file under the target path and the fourth MD5 value and the fourth file size value of the rollback file are obtained.

[0097] In practice, after the version rollback is completed, in order to ensure that the restored backup old version file is correct, the old version file needs to be password-checked and file-size-checked. Therefore, it is also necessary to obtain the rollback file under the target path and the fourth MD5 value and fourth file size value of the rollback file, and then the fourth MD5 value and fourth file size value of the rollback file can be compared with the third MD5 value and third file size value of the restored old version file to ensure that the restoration is correct.

[0098] Step F, respectively matching the third MD5 value with the fourth MD5 value, and the third file size value with the fourth file size value. If the match is successful, it indicates that the version rollback is successful. If the match fails, it indicates that the version rollback fails.

[0099] In implementation, the OTA vehicle-side program can compare the third MD5 value corresponding to the restored old version file with the fourth MD5 corresponding to the rollback file, and match and compare the third file size value corresponding to the restored old version file with the fourth file size value corresponding to the rollback file. If the third MD5 value matches the fourth MD5 value, and the third file size value matches the fourth file size value, it indicates that the version rollback is successful; if the match fails, it indicates that the version rollback fails.

[0100] Furthermore, if the logistics vehicle does not meet the operating status parameters required for the update, the step of obtaining the operating status parameters of the logistics vehicle is executed.

[0101] During implementation, if the logistics vehicle does not meet the operating status parameters required for the update, the step of obtaining the operating status parameters of the logistics vehicle is executed until the operating status parameters of the logistics vehicle meet the operating status parameters required for the update.

[0102] In the prior art, when updating the OTA vehicle-side program of an unmanned logistics vehicle, the vehicle-side program must simultaneously meet the conditions that the logistics vehicle is powered on, the network is stable, it is not in the automatic running state, and the vehicle speed is 0. This requires frequent docking with on-site logistics vehicle maintenance personnel to start the vehicle, and the update efficiency is low. The unmanned logistics vehicle cannot download the update package in advance when it is running automatically, and it depends on the logistics vehicle to download when it is powered on. At this time, the network stability is not high, and it is easy for the download to fail, resulting in the failure of the update task, affecting the operating efficiency of the unmanned logistics vehicle. During the software update process of the unmanned logistics vehicle, only one password verification is performed, which is not secure enough and is prone to update failures caused by update version errors. After an update failure or version error, the developer needs to manually refresh to the old version, and the version maintenance efficiency is low.

[0103] The embodiment of the present application provides a method for updating logistics vehicles, which can realize that after the update task is submitted, the logistics vehicle can receive and execute the update task in any state, and the unmanned logistics vehicle in the automatic operation state can download the update package in advance and automatically continue the update task when it is powered on next time. In addition, the update process is optimized, a network diagnosis reconnection module and a triple verification mechanism are added, and the built-in version rollback function will greatly improve the success rate of software update tasks and the maintenance efficiency of unmanned logistics vehicles.

[0104] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0105] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.

[0106] The present application embodiment provides a schematic diagram of the structure of an update architecture of a logistics vehicle. Figure 3As shown, the present application innovatively builds the data flow architecture of the update module, version rollback module, network diagnosis module and verification module of unmanned logistics vehicles. Compared with the prior art, the update module newly added in the present application effectively solves the problem that the automatic running vehicle cannot download the update package in advance and relies on power-on update. It can delay download and improve the update efficiency. Compared with the prior art, the verification module newly added in the present application ensures the integrity and accuracy of the files in the update process through the dual verification mechanism of password verification and file size verification. Compared with the prior art, the network diagnosis module newly added in the present application ensures the network connection during the vehicle power-on process, realizes the real-time monitoring network and disconnection reconnection function, and improves the update task push efficiency and file download success rate. Compared with the prior art, the version rollback function newly added in the present application automatically rolls back the previous version of the software when the update task fails, ensures the vehicle operation efficiency, and avoids system failure caused by software version errors. In this way, a new technical solution can be provided for realizing automatic update, version rollback, network diagnosis reconnection and password verification.

[0107] The present application also provides a logistics vehicle update device, such as Figure 4 As shown, the device comprises:

[0108] A sending module 401 is used to send an update request to a server when the logistics vehicle is in a powered-on state;

[0109] Verification module 402, used to receive the update task sent by the server, and download the update package of the logistics vehicle according to the update task, and perform security verification on the update package;

[0110] The determination module 403 is used to obtain the operating state parameters of the logistics vehicle and determine whether the logistics vehicle meets the operating state parameters required for updating according to the operating state parameters;

[0111] The update module 404 is used to control the logistics vehicle to be updated based on the update package if the operating status parameters of the logistics vehicle meet the update requirements.

[0112] As an optional implementation, the device further includes:

[0113] A network diagnosis module, used to detect the network quality of the logistics vehicle, and if the network quality meets the network quality required for the update, the step of sending the update request to the server is executed;

[0114] The network diagnosis module is further used to reconnect the network if the network quality does not meet the network quality required for the update, and detect the network quality of the logistics vehicle after the connection until the network quality of the logistics vehicle meets the network quality required for the update;

[0115] The version rollback module is used to determine whether the update of the logistics vehicle fails. When the update of the logistics vehicle fails, the backed-up old version file is restored, and the version is rolled back based on the old version file.

[0116] The embodiment of the present application provides an update device for logistics vehicles, which innovatively builds an automatic update module, version rollback module, network diagnosis module and verification module data flow architecture for unmanned logistics vehicles, and provides a new technical solution for realizing automatic update, version rollback, network diagnosis reconnection and password verification. A new delayed update module is added to effectively solve the problem that automatically running vehicles cannot download update packages in advance and rely on power-on updates, thereby improving update efficiency. A new verification module is added to ensure the integrity and accuracy of files during the update process through a dual verification mechanism of password verification and file size verification. A new network diagnostic module is added to ensure network connection during the vehicle's power-on process, realize real-time network monitoring and network disconnection reconnection functions, and improve the update task push efficiency and file download success rate. A new version rollback function is added to automatically roll back the previous version of the software when the update task fails, to ensure vehicle operation efficiency and avoid system failures caused by software version errors.

[0117] The specific definition of the updating device for logistics vehicles can be found in the definition of the updating method for logistics vehicles mentioned above, which will not be repeated here. Each module in the updating device for logistics vehicles can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0118] In one embodiment, a computer device is provided, such as Figure 5 As shown, it includes a memory and a processor, the memory stores a computer program that can be run on the processor, and the processor implements the above-mentioned logistics vehicle update method steps when executing the computer program.

[0119] In one embodiment, a computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned logistics vehicle update method.

[0120] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0121] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0122] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0123] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0124] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0125] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for updating a logistics vehicle, characterized in that: The method is to upgrade an OTA vehicle-side program over the air for a logistics vehicle, wherein the OTA vehicle-side program is installed in the logistics vehicle, and the method comprises: When the logistics vehicle is in a powered-on state, sending an update request to the server; Receive the update task sent by the server, and download the update package of the logistics vehicle according to the update task, and perform security verification on the update package; Acquire the operating status parameters of the logistics vehicle, and determine whether the logistics vehicle meets the operating status parameters required for updating according to the operating status parameters; If the logistics vehicle meets the operating status parameters required for the update, the logistics vehicle is controlled to be updated based on the update package.

2. The method according to claim 1, characterized in that The running status parameter includes a vehicle running status code. According to the running status parameter, determining whether the logistics vehicle meets the running status parameter required for updating includes: The vehicle operation status code is compared with a pre-stored operation status code that allows update. If the vehicle operation status code is the pre-stored operation status code that allows update, it is determined that the operation status parameters of the logistics vehicle meet the update requirements. Otherwise, the step of obtaining the operation status parameters of the logistics vehicle is executed.

3. The method according to claim 1 or 2, wherein the operating state parameter includes the current vehicle speed, and judging whether the logistics vehicle meets the operating state parameter required for updating according to the operating state parameter includes: Determine whether the current vehicle speed is zero. If the current vehicle speed is zero, determine that the logistics vehicle meets the operating status parameters required for updating. Otherwise, execute the step of obtaining the operating status parameters of the logistics vehicle.

4. The method according to claim 1, characterized in that: The security check includes password check and file size check, and the security check of the update package includes: Decompressing the update package to obtain an update file and a first information digest algorithm MD5 value and a first file size value of the update file; Sending an information query request for the update file to the server; Receive the target MD5 value and target file size value of the update file sent by the server; The first MD5 value is matched with the target MD5 value, and the first file size value is matched with the target file size value, and if the matches are successful, it indicates that the security verification is completed; If the match fails, the step of downloading the update package of the logistics vehicle is executed until the security check is completed.

5. The method according to claim 1, characterized in that After the logistics vehicle is in a powered-on state, the method further includes: Detecting the network quality of the logistics vehicle, and if the network quality meets the network quality required for update, executing the step of sending an update request to the server; If the network quality does not meet the updated network quality requirements, the network is reconnected and the network quality of the logistics vehicle after the connection is detected until the network quality of the logistics vehicle meets the updated network quality requirements.

6. The method according to claim 4, characterized in that The method further comprises: After the logistics vehicle is updated, obtaining an update file under the target path, and obtaining a second MD5 value and a second file size value of the update file; The second MD5 value and the target MD5 value, as well as the second file size value and the target file size value are matched respectively. If the matches are successful, it indicates that the update is successful; otherwise, it indicates that the update fails.

7. The method according to claim 1, characterized in that The method further comprises: Backing up the old version file of the logistics vehicle; If the logistics vehicle fails to be updated, the backed-up old version file is restored, and the third MD5 value and the third file size value of the old version file in the backup folder are obtained, and a version rollback is performed based on the old version file; After the logistics vehicle is rolled back, a rollback file under a target path and a fourth MD5 value and a fourth file size value of the rollback file are obtained; The third MD5 value is matched with the fourth MD5 value, and the third file size value is matched with the fourth file size value. If the match is successful, it indicates that the version rollback is successful. If the match fails, it indicates that the version rollback fails.

8. The method according to claim 1, characterized in that The method further comprises: If the logistics vehicle does not meet the operating status parameters required for the update, the step of obtaining the operating status parameters of the logistics vehicle is performed.

9. A logistics vehicle updating device, characterized in that: The device is applied to an over-the-air upgrade OTA vehicle-side program of a logistics vehicle, and the logistics vehicle is installed with the OTA vehicle-side program. The device includes: A sending module, used for sending an update request to a server when the logistics vehicle is in a powered-on state; A verification module, used to receive the update task sent by the server, and download the update package of the logistics vehicle according to the update task, and perform security verification on the update package; A determination module, used for obtaining the operating status parameters of the logistics vehicle, and determining whether the logistics vehicle meets the operating status parameters required for updating according to the operating status parameters; An update module is used to control the logistics vehicle to be updated based on the update package if the operating status parameters of the logistics vehicle meet the update requirements.

10. The device according to claim 9, characterized in that The device also includes: A network diagnosis module, used to detect the network quality of the logistics vehicle, and if the network quality meets the network quality required for the update, the step of sending the update request to the server is executed; The network diagnosis module is further used to reconnect the network if the network quality does not meet the network quality required for the update, and detect the network quality of the logistics vehicle after the connection until the network quality of the logistics vehicle meets the network quality required for the update; The version rollback module is used to determine whether the update of the logistics vehicle fails. When the update of the logistics vehicle fails, the backed-up old version file is restored, and the version is rolled back based on the old version file.

Citation Information

Cited By

  • Disaster recovery method in industrial equipment software OTA process

    CN120196481A

  • A disaster recovery method for industrial equipment software OTA process

    CN120196481B