CN117055922A - OTA upgrading method, OTA upgrading device, robot and storage medium - Google Patents

OTA upgrading method, OTA upgrading device, robot and storage medium Download PDF

Info

Publication number
CN117055922A
CN117055922A CN202311021957.XA CN202311021957A CN117055922A CN 117055922 A CN117055922 A CN 117055922A CN 202311021957 A CN202311021957 A CN 202311021957A CN 117055922 A CN117055922 A CN 117055922A
Authority
CN
China
Prior art keywords
upgraded
upgrading
equipment
rate
file
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.)
Pending
Application number
CN202311021957.XA
Other languages
Chinese (zh)
Inventor
尚子涵
杜坤
刘凯
丁松
易鹏
文林风
白忠星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Robot Technology Co ltd
Original Assignee
Beijing Xiaomi Robot Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Robot Technology Co ltd filed Critical Beijing Xiaomi Robot Technology Co ltd
Priority to CN202311021957.XA priority Critical patent/CN117055922A/en
Publication of CN117055922A publication Critical patent/CN117055922A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to an OTA upgrading method, an OTA upgrading device, a robot and a storage medium, wherein the OTA upgrading method comprises the following steps: upgrading a probe file on equipment to be upgraded, and determining the actual upgrading rate of the probe file as the simulated upgrading rate of the equipment to be upgraded after the upgrading is finished, wherein the probe file and a program file on the equipment to be upgraded are mutually independent; and upgrading the file to be upgraded on the equipment to be upgraded, and determining the upgrading progress according to the simulated upgrading rate of the equipment to be upgraded in the upgrading process, wherein the file to be upgraded is used for replacing the program file on the equipment to be upgraded.

Description

OTA upgrading method, OTA upgrading device, robot and storage medium
Technical Field
The disclosure relates to the technical field, and in particular relates to an OTA upgrading method, an OTA upgrading device, a robot and a storage medium.
Background
In recent years, the technology of robot technology is continuously developed, more and more intelligent and automatic are realized, and the richness, stability and flexibility of actions are improved to different degrees. In daily use, the robot needs to be upgraded regularly through OTA (Over-the-Air Technology), so that functions of the robot are enriched, and performance of the robot is improved. When OTA upgrades, the upgrade package is required to be downloaded to the local and the upgrade is finished by using the upgrade package locally, and the upgrade progress can be displayed in the upgrade process. However, in the related art, the upgrading progress cannot be accurately determined in the OTA upgrading process, so that problems often occur in progress display, and the use experience of a user is poor.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide an OTA upgrading method, device, robot and storage medium, which are used for solving the drawbacks in the related art.
According to a first aspect of an embodiment of the present disclosure, there is provided an OTA upgrading method, including:
upgrading a probe file on equipment to be upgraded, and determining the actual upgrading rate of the probe file as the simulated upgrading rate of the equipment to be upgraded after the upgrading is finished, wherein the probe file and a program file on the equipment to be upgraded are mutually independent;
and upgrading the file to be upgraded on the equipment to be upgraded, and determining the upgrading progress according to the simulated upgrading rate of the equipment to be upgraded in the upgrading process, wherein the file to be upgraded is used for replacing the program file on the equipment to be upgraded.
In one embodiment of the present disclosure, the updating the probe file on the device to be updated, and determining the actual update rate of the probe file as the simulated update rate of the device to be updated after the probe file is updated, includes:
upgrading the probe file at least once on the equipment to be upgraded, and determining the actual upgrading rate of the probe file after each upgrading is completed;
and determining the average upgrading rate of the probe file in the at least one upgrading process as the analog upgrading rate of the equipment to be upgraded in response to the average upgrading rate of the probe file in a preset rate range.
In one embodiment of the present disclosure, the method further comprises:
acquiring a medium type corresponding to the equipment to be upgraded, wherein the medium type is a type of a transmission medium for transmitting a file to be upgraded to the equipment to be upgraded;
the method for upgrading the probe file on the equipment to be upgraded and determining the simulated upgrading rate after the probe file is upgraded comprises the following steps:
and in response to the fact that the medium type corresponding to the equipment to be upgraded is different from the medium type corresponding to the latest upgraded equipment, upgrading the probe file on the equipment to be upgraded, and determining the actual upgrading rate of the probe file as the analog upgrading rate of the equipment to be upgraded after the upgrading is completed.
In one embodiment of the present disclosure, the method further comprises:
and determining the simulation upgrading rate of the latest upgraded equipment as the simulation upgrading rate of the equipment to be upgraded in response to the fact that the medium type corresponding to the equipment to be upgraded is the same as the medium type corresponding to the latest upgraded equipment.
In one embodiment of the present disclosure, the method further comprises:
acquiring the equipment type of the equipment to be upgraded;
the method for upgrading the probe file on the equipment to be upgraded and determining the current upgrading rate after the probe file is upgraded comprises the following steps:
and determining the actual upgrading rate of the probe file as the simulated upgrading rate of the equipment to be upgraded after the upgrading is finished in response to the equipment type of the equipment to be upgraded being different from the equipment type of the latest upgraded equipment.
In one embodiment of the present disclosure, the method further comprises:
and determining the simulation upgrading rate of the latest upgraded equipment as the simulation upgrading rate of the equipment to be upgraded in response to the equipment type of the equipment to be upgraded being the same as the equipment type of the latest upgraded equipment.
In one embodiment of the present disclosure, the method further comprises:
and after the file to be upgraded is upgraded, updating the analog upgrading rate of the equipment to be upgraded according to the actual upgrading rate of the equipment to be upgraded.
In one embodiment of the present disclosure, the method further comprises:
and taking the first device in the queue to be upgraded as the device to be upgraded, and deleting the device to be upgraded in the queue to be upgraded.
In one embodiment of the present disclosure, the method further comprises:
and determining that the OTA upgrade is successful in response to the queue to be upgraded being empty.
In one embodiment of the present disclosure, the method further comprises:
determining that OTA upgrade fails in response to the probe file upgrade failure; and/or the number of the groups of groups,
and responding to the upgrade failure of the file to be upgraded, and determining that the OTA upgrade fails.
According to a second aspect of an embodiment of the present disclosure, there is provided an OTA upgrading device, the device including:
the detection module is used for upgrading the probe file on the equipment to be upgraded, and determining the actual upgrading rate of the probe file as the simulated upgrading rate of the equipment to be upgraded after the upgrading is finished, wherein the probe file and the program file on the equipment to be upgraded are mutually independent;
the upgrading module is used for upgrading the file to be upgraded on the equipment to be upgraded, and determining the upgrading progress according to the simulated upgrading rate of the equipment to be upgraded in the upgrading process, wherein the file to be upgraded is used for replacing the program file on the equipment to be upgraded.
In one embodiment of the present disclosure, the detection module is configured to:
upgrading the probe file at least once on the equipment to be upgraded, and determining the actual upgrading rate of the probe file after each upgrading is completed;
and determining the average upgrading rate of the probe file in the at least one upgrading process as the analog upgrading rate of the equipment to be upgraded in response to the average upgrading rate of the probe file in a preset rate range.
In one embodiment of the disclosure, the apparatus further includes a first acquisition module configured to:
acquiring a medium type corresponding to the equipment to be upgraded, wherein the medium type is a type of a transmission medium for transmitting a file to be upgraded to the equipment to be upgraded;
the detection module is used for:
and in response to the fact that the medium type corresponding to the equipment to be upgraded is different from the medium type corresponding to the latest upgraded equipment, upgrading the probe file on the equipment to be upgraded, and determining the actual upgrading rate of the probe file as the analog upgrading rate of the equipment to be upgraded after the upgrading is completed.
In one embodiment of the disclosure, the apparatus further comprises a first simulation module for:
and determining the simulation upgrading rate of the latest upgraded equipment as the simulation upgrading rate of the equipment to be upgraded in response to the fact that the medium type corresponding to the equipment to be upgraded is the same as the medium type corresponding to the latest upgraded equipment.
In one embodiment of the disclosure, the apparatus further includes a second acquisition module configured to:
acquiring the equipment type of the equipment to be upgraded;
the detection module is used for:
and determining the actual upgrading rate of the probe file as the simulated upgrading rate of the equipment to be upgraded after the upgrading is finished in response to the equipment type of the equipment to be upgraded being different from the equipment type of the latest upgraded equipment.
In one embodiment of the disclosure, the apparatus further comprises a second simulation module for:
and determining the simulation upgrading rate of the latest upgraded equipment as the simulation upgrading rate of the equipment to be upgraded in response to the equipment type of the equipment to be upgraded being the same as the equipment type of the latest upgraded equipment.
In one embodiment of the disclosure, the apparatus further includes an update module configured to:
and after the file to be upgraded is upgraded, updating the analog upgrading rate of the equipment to be upgraded according to the actual upgrading rate of the equipment to be upgraded.
In one embodiment of the disclosure, the apparatus further includes a deletion module configured to:
and taking the first device in the queue to be upgraded as the device to be upgraded, and deleting the device to be upgraded in the queue to be upgraded.
In one embodiment of the disclosure, the apparatus further comprises a success module for:
and determining that the OTA upgrade is successful in response to the queue to be upgraded being empty.
In one embodiment of the disclosure, the apparatus further includes a failure module to:
determining that OTA upgrade fails in response to the probe file upgrade failure; and/or the number of the groups of groups,
and responding to the upgrade failure of the file to be upgraded, and determining that the OTA upgrade fails.
According to a third aspect of embodiments of the present disclosure, there is provided a robot comprising a memory for storing computer instructions executable on a processor for implementing the OTA upgrading method of the first aspect when executing the computer instructions.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the first aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the OTA upgrading method provided by the embodiment of the disclosure, before the to-be-upgraded file is upgraded on the to-be-upgraded device, the probe file is upgraded on the to-be-upgraded device in advance to determine the analog upgrading rate of the to-be-upgraded device, namely, the probe file is used for simulating the upgrading process, and the actual upgrading rate of the probe file is used as the analog upgrading rate of the to-be-upgraded device, so that the upgrading progress can be predicted by utilizing the analog upgrading rate when the to-be-upgraded file is upgraded. Because the probe file and the file to be upgraded are both upgraded on the equipment to be upgraded, the speed difference is smaller, so that the upgrading progress predicted by using the simulated upgrading speed is more accurate, and the method can improve the upgrading progress prediction precision in the upgrading process; and the probe file and the program file on the equipment to be upgraded are mutually independent, so that the normal operation of the equipment to be upgraded is not affected when the probe file is upgraded.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flow chart of an OTA upgrade method shown in an exemplary embodiment of the present disclosure;
fig. 2 is a flow chart of an OTA upgrade method shown in an exemplary embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an OTA upgrading device according to an exemplary embodiment of the present disclosure;
fig. 4 is a block diagram of a robot shown in an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
In recent years, the technology of robot technology is continuously developed, more and more intelligent and automatic are realized, and the richness, stability and flexibility of actions are improved to different degrees. In daily use, the robot needs to be upgraded regularly through OTA (Over-the-Air Technology), so that functions of the robot are enriched, and performance of the robot is improved. When OTA upgrades, the upgrade package is required to be downloaded to the local and the upgrade is finished by using the upgrade package locally, and the upgrade progress can be displayed in the upgrade process. In the related art, however, the upgrading progress cannot be accurately determined in the OTA upgrading process, the progress information can be predicted only according to the experience value, and the prediction error is large; the progress display is often problematic, for example, the progress of the display reaches 100%, but the upgrade has not been completed, which makes the use experience of the user poor.
Based on this, in a first aspect, at least one embodiment of the present disclosure provides an OTA upgrading method, please refer to fig. 1, which illustrates a flow of the method, including steps S101 to S102.
The method can be applied to robots, such as bipedal robots (profiling robots) or quadruped robots. By way of example, the method can predict the upgrading progress when the robot performs OTA upgrading, so that the prediction precision and accuracy of the upgrading progress are improved, the prediction error of the upgrading progress is reduced, and the use experience of a user is improved.
The robot is provided with a main control board and various devices, such as a micro control unit (Microcontroller Unit, MCU), a battery management system (Battery Management System, BMS), a sensor and the like; the development boards are arranged in the equipment and are used for installing and operating program files of the equipment; the main controller CAN transmit files to the development boards through transmission media, and the transmission media between the main controller and the development boards of each device CAN be the same or different, for example, CAN bus, network port, serial port and other media.
OTA upgrades refer to replacing an old version of a program file within a device with a new version of the program file, which may include both a download and an upgrade stage. In the downloading stage, the robot can download an upgrade package from the server to the local main board, wherein the upgrade package can comprise a program file (hereinafter referred to as a file to be upgraded) of a new version of each device type of the robot; in the upgrade stage, the control board can sequentially transmit the files to be upgraded of each equipment type in the upgrade package to the development board of the corresponding equipment to be upgraded, and upgrade of the files to be upgraded is completed on the development board, namely, the files to be upgraded are used for replacing the program files of the old version.
It will be appreciated that the method is primarily used to predict upgrade progress during the upgrade phase.
In step S101, a probe file is updated on a device to be updated, and after the update is completed, the actual update rate of the probe file is determined as an analog update rate of the device to be updated, where the probe file and a program file on the device to be updated are independent from each other.
In the upgrading stage, each device of the robot can be added to a queue to be upgraded, and then each device in the queue to be upgraded is upgraded in turn. The first device in the queue to be upgraded can be used as the device to be upgraded before the step, and the device to be upgraded is deleted in the queue to be upgraded. It can be appreciated that the success of the OTA upgrade can also be determined in response to the queue to be upgraded being empty; this is because the waiting for upgrade queue is empty indicating that each device has completed the upgrade. After determining that the upgrade was successful, a prompt message may be generated to prompt the user that the upgrade was successful.
The probe file does not generate actual functions on the equipment to be upgraded, does not influence the performance of the equipment to be upgraded, and does not influence the running of the program files on the equipment to be upgraded. In other words, the probe file functions to simulate the upgrade process to obtain a simulated upgrade rate without having other substantial impact on the device to be upgraded. The probe file can be set to a smaller memory, thereby improving the determination efficiency of the analog upgrade rate.
For example, the actual upgrade rate of the probe file may be determined according to the memory size (known) of the probe file and the upgrade time of the probe file (which may be obtained by timing during the upgrade process), i.e., the ratio of the memory to the upgrade time is determined as the actual upgrade rate.
Because the memory of the probe file is smaller, the probe file is easy to happen accidentally when being upgraded, and the actual upgrading rate is inaccurate. The preset rate range can be configured according to the experience of file upgrades and the simulated upgrade rate of the device to be upgraded can be determined as follows:
firstly, upgrading a probe file at least once on equipment to be upgraded, and determining the actual upgrading rate of the probe file after each upgrading is completed; the actual upgrade rate of the probe file is determined, for example, according to the memory size (known) of the probe file and the upgrade time of the probe file (which may be obtained by timing during the upgrade process), i.e., the ratio of the memory to the upgrade time is determined as the actual upgrade rate.
And then, in response to the average upgrading rate of the probe file in the at least one upgrade being within a preset rate range, determining the average upgrading rate as the analog upgrading rate of the equipment to be upgraded.
For example, if the actual upgrade efficiency obtained after the probe file is upgraded for the first time on the device to be upgraded is not within the preset rate range, continuing to upgrade the probe file for the second time on the device to be upgraded; if the average upgrading efficiency of the first two times obtained after the probe file is upgraded for the second time on the equipment to be upgraded is not in the preset speed range, continuing to upgrade the probe file for the third time on the equipment to be upgraded; if the average upgrading efficiency of the first three times obtained after the probe file is upgraded for the third time on the equipment to be upgraded is within the preset rate range, determining the average upgrading efficiency of the first three times as the simulation upgrading efficiency of the equipment to be upgraded.
It will be appreciated that in response to the probe file upgrade failure, an OTA upgrade failure may also be determined. After determining that the upgrade failed, a prompt message may be generated to prompt the user that the upgrade failed.
In step S102, a file to be upgraded is upgraded on the device to be upgraded, and an upgrade progress is determined according to a simulated upgrade rate of the device to be upgraded in an upgrade process, where the file to be upgraded is used to replace a program file on the device to be upgraded.
The method includes the steps that the simulation upgrading time of a file to be upgraded is determined according to the memory size of the file to be upgraded and the simulation upgrading rate of the file to be upgraded, for example, the product of the memory and the upgrading rate is determined to be the simulation upgrading time; and then timing after the upgrading process is started, and determining the proportion of the timing result to the simulated upgrading time as upgrading progress, wherein the simulated upgrading time is 10s, the current timing result is 5s, and the upgrading progress is 50%.
In addition, after the file to be upgraded is upgraded, the analog upgrading rate of the equipment to be upgraded can be updated according to the actual upgrading rate of the equipment to be upgraded; for example, the actual upgrade rate of the device to be upgraded is determined as its analog upgrade rate.
It can be appreciated that, in response to the upgrade failure of the file to be upgraded, the OTA upgrade failure may also be determined. After determining that the upgrade failed, a prompt message may be generated to prompt the user that the upgrade failed.
According to the OTA upgrading method provided by the embodiment of the disclosure, before the to-be-upgraded file is upgraded on the to-be-upgraded device, the probe file is upgraded on the to-be-upgraded device in advance to determine the analog upgrading rate of the to-be-upgraded device, namely, the probe file is used for simulating the upgrading process, and the actual upgrading rate of the probe file is used as the analog upgrading rate of the to-be-upgraded device, so that the upgrading progress can be predicted by utilizing the analog upgrading rate when the to-be-upgraded file is upgraded. Because the probe file and the file to be upgraded are both upgraded on the equipment to be upgraded, the speed difference is smaller, so that the upgrading progress predicted by using the simulated upgrading speed is more accurate, and the method can improve the upgrading progress prediction precision in the upgrading process; and the probe file and the program file on the equipment to be upgraded are mutually independent, so that the normal operation of the equipment to be upgraded is not affected when the probe file is upgraded.
The embodiment predicts the simulated upgrading rate of the file to be upgraded by the simulated upgrading of the probe file, which can accurately obtain the simulated upgrading rate of each device before upgrading, thereby accurately predicting the upgrading progress in the upgrading process. However, upgrading the probe file before upgrading each device still reduces the upgrade efficiency to a certain extent, and in order to further improve the upgrade efficiency, in some embodiments of the present disclosure, whether to determine the analog upgrade rate by upgrading the probe file may be selected in any of three ways, which are described in detail below.
In the first manner, the method may further obtain a media type corresponding to the device to be upgraded, where the media type is a type of a transmission medium that transmits a file to be upgraded to the device to be upgraded. That is, before upgrading each device in the sequence to be upgraded, the medium type corresponding to the device may be acquired, and the medium type may be a CAN bus, a network port, a serial port, and the like.
Based on this, the probe file may be updated on the device to be updated in response to the medium type corresponding to the device to be updated being different from the medium type corresponding to the latest updated device, and the actual update rate of the probe file is determined as the analog update rate of the device to be updated after the update is completed (i.e., the analog update rate of the device to be updated is determined in the manner of step S101).
Based on this, the analog upgrade rate of the latest upgraded device may be determined as the analog upgrade rate of the device to be upgraded in response to the type of media corresponding to the device to be upgraded being the same as the type of media corresponding to the latest upgraded device. That is, if the media types corresponding to the device to be upgraded and the device to be upgraded are the same, the error between the analog upgrade rate of the device to be upgraded and the analog upgrade rate of the device to be upgraded is smaller, so that the analog upgrade rate of the device to be upgraded is directly used as the analog upgrade rate of the device to be upgraded, thereby improving the determination efficiency of the analog upgrade rate and the upgrade efficiency.
In a second manner, the method may further obtain a device type of the device to be upgraded. That is, the device type of each device in the sequence to be upgraded may be acquired before the device is upgraded, and the device type may be a sensor type, an MCU type, a BMS type, or the like.
Based on this, the actual upgrade rate of the probe file may be determined as the analog upgrade rate of the device to be upgraded after the upgrade is completed in response to the device type of the device to be upgraded being different from the device type of the latest upgraded device (i.e., the analog upgrade rate of the device to be upgraded is determined in the manner of step S101).
Based on this, the analog upgrade rate of the latest upgraded device may be determined as the analog upgrade rate of the device to be upgraded in response to the device type of the device to be upgraded being the same as the device type of the latest upgraded device. That is, if the device to be upgraded is the same as the device type of the device to be upgraded, the error between the analog upgrade rate of the device to be upgraded and the analog upgrade rate of the device to be upgraded is smaller, so that the analog upgrade rate of the device to be upgraded is directly used as the analog upgrade rate of the device to be upgraded, thereby improving the determination efficiency of the analog upgrade rate and the upgrade efficiency.
In a third manner, the method may further obtain a device type of the device to be upgraded and a corresponding medium type, where the medium type is a type of a transmission medium that transmits a file to be upgraded to the device to be upgraded. That is, before each device in the sequence to be upgraded is upgraded, the device type of the device and the corresponding medium type thereof CAN be acquired, the device type CAN be a sensor, an MCU, a BMS and the like, and the medium type CAN be a CAN bus, a network port, a serial port and the like.
Based on this, the actual upgrade rate of the probe file may be determined as the analog upgrade rate of the device to be upgraded after the upgrade is completed (i.e., the analog upgrade rate of the device to be upgraded is determined in the manner of step S101) in response to the device type of the device to be upgraded being different from the device type of the latest upgraded device and/or the medium type corresponding to the device to be upgraded being different from the medium type corresponding to the latest upgraded device. That is, if the device to be upgraded is different from the device to be upgraded in at least one dimension of the device type and the corresponding media type, the analog upgrade rate of the device to be upgraded is determined in the manner of step S101.
Based on this, the analog upgrade rate of the latest upgraded device may be determined as the analog upgrade rate of the to-be-upgraded device in response to the device type of the to-be-upgraded device being different from the device type of the latest upgraded device and the medium type corresponding to the to-be-upgraded device being different from the medium type corresponding to the latest upgraded device. That is, if the device to be upgraded and the device to be upgraded are both in the device type and the corresponding medium type in two dimensions, the analog upgrade rate of the device to be upgraded and the analog upgrade rate of the device to be upgraded have smaller errors, so that the analog upgrade rate of the device to be upgraded is directly used as the analog upgrade rate of the device to be upgraded, thereby improving the determination efficiency of the analog upgrade rate and the upgrade efficiency.
The three modes can selectively adopt the probe file to simulate the upgrade and determine the simulated upgrade rate of the file to be upgraded, so that the determination efficiency of the simulated upgrade rate and the OTA upgrade efficiency can be improved.
Referring to fig. 2, a flowchart of an OTA upgrading method obtained in combination with the above embodiments is shown, which includes the following steps:
step S201: it is determined whether the queue to be upgraded is empty.
Step S202: the device to be upgraded (i.e., the first device) is obtained from the queue to be upgraded.
Step S203: and deleting the equipment to be upgraded from the queue to be upgraded.
Step S204: and acquiring the equipment type and the corresponding medium type of the equipment to be upgraded.
Step S205: it is determined whether the device type and the media type (with respect to the device of the previous upgrade) have changed.
Step S206: the probe file is upgraded N times. Wherein N is more than or equal to 1.
Step S207: an average upgrade rate (of N upgrades of the probe file) is determined.
Step S208: it is determined whether the average upgrade rate (i.e., the analog upgrade rate of the device to be upgraded) is within a preset rate range.
Step S209: the latest simulated upgrade rate of the upgraded device (the simulated upgrade rate for the device to be upgraded) is determined.
Step S210: and upgrading the file to be upgraded and determining the upgrading progress (according to the simulated upgrading rate of the equipment to be upgraded).
Step S211: the analog upgrade rate (of the device to be upgraded) is updated (with the actual upgrade rate of the device to be upgraded).
According to a second aspect of the embodiments of the present disclosure, an OTA upgrading device is provided, referring to fig. 3, the device includes:
the detection module 301 is configured to upgrade a probe file on a device to be upgraded, and determine an actual upgrade rate of the probe file as an analog upgrade rate of the device to be upgraded after the upgrade is completed, where the probe file and a program file on the device to be upgraded are independent;
the upgrade module 302 is configured to upgrade a file to be upgraded on the device to be upgraded, and determine an upgrade progress according to an analog upgrade rate of the device to be upgraded in an upgrade process, where the file to be upgraded is used to replace a program file on the device to be upgraded.
In one embodiment of the present disclosure, the detection module is configured to:
upgrading the probe file at least once on the equipment to be upgraded, and determining the actual upgrading rate of the probe file after each upgrading is completed;
and determining the average upgrading rate of the probe file in the at least one upgrading process as the analog upgrading rate of the equipment to be upgraded in response to the average upgrading rate of the probe file in a preset rate range.
In one embodiment of the disclosure, the apparatus further includes a first acquisition module configured to:
acquiring a medium type corresponding to the equipment to be upgraded, wherein the medium type is a type of a transmission medium for transmitting a file to be upgraded to the equipment to be upgraded;
the detection module is used for:
and in response to the fact that the medium type corresponding to the equipment to be upgraded is different from the medium type corresponding to the latest upgraded equipment, upgrading the probe file on the equipment to be upgraded, and determining the actual upgrading rate of the probe file as the analog upgrading rate of the equipment to be upgraded after the upgrading is completed.
In one embodiment of the disclosure, the apparatus further comprises a first simulation module for:
and determining the simulation upgrading rate of the latest upgraded equipment as the simulation upgrading rate of the equipment to be upgraded in response to the fact that the medium type corresponding to the equipment to be upgraded is the same as the medium type corresponding to the latest upgraded equipment.
In one embodiment of the disclosure, the apparatus further includes a second acquisition module configured to:
acquiring the equipment type of the equipment to be upgraded;
the detection module is used for:
and determining the actual upgrading rate of the probe file as the simulated upgrading rate of the equipment to be upgraded after the upgrading is finished in response to the equipment type of the equipment to be upgraded being different from the equipment type of the latest upgraded equipment.
In one embodiment of the disclosure, the apparatus further comprises a second simulation module for:
and determining the simulation upgrading rate of the latest upgraded equipment as the simulation upgrading rate of the equipment to be upgraded in response to the equipment type of the equipment to be upgraded being the same as the equipment type of the latest upgraded equipment.
In one embodiment of the disclosure, the apparatus further includes an update module configured to:
and after the file to be upgraded is upgraded, updating the analog upgrading rate of the equipment to be upgraded according to the actual upgrading rate of the equipment to be upgraded.
In one embodiment of the disclosure, the apparatus further includes a deletion module configured to:
and taking the first device in the queue to be upgraded as the device to be upgraded, and deleting the device to be upgraded in the queue to be upgraded.
In one embodiment of the disclosure, the apparatus further comprises a success module for:
and determining that the OTA upgrade is successful in response to the queue to be upgraded being empty.
In one embodiment of the disclosure, the apparatus further includes a failure module to:
determining that OTA upgrade fails in response to the probe file upgrade failure; and/or the number of the groups of groups,
and responding to the upgrade failure of the file to be upgraded, and determining that the OTA upgrade fails.
In a third aspect, at least one embodiment of the present disclosure provides a robot, please refer to fig. 4, which illustrates a structure of the robot, the robot including a memory, a processor, the memory storing computer instructions executable on the processor, the processor being configured to perform OTA upgrades based on the method of any one of the first aspects when executing the computer instructions.
In a fourth aspect, at least one embodiment of the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the OTA upgrade method of any one of the first aspects.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (22)

1. An OTA upgrade method, the method comprising:
upgrading a probe file on equipment to be upgraded, and determining the actual upgrading rate of the probe file as the simulated upgrading rate of the equipment to be upgraded after the upgrading is finished, wherein the probe file and a program file on the equipment to be upgraded are mutually independent;
and upgrading the file to be upgraded on the equipment to be upgraded, and determining the upgrading progress according to the simulated upgrading rate of the equipment to be upgraded in the upgrading process, wherein the file to be upgraded is used for replacing the program file on the equipment to be upgraded.
2. The OTA upgrade method of claim 1 wherein the upgrading the probe file on the device to be upgraded and determining an actual upgrade rate of the probe file as an analog upgrade rate of the device to be upgraded after the probe file is upgraded comprises:
upgrading the probe file at least once on the equipment to be upgraded, and determining the actual upgrading rate of the probe file after each upgrading is completed;
and determining the average upgrading rate of the probe file in the at least one upgrading process as the analog upgrading rate of the equipment to be upgraded in response to the average upgrading rate of the probe file in a preset rate range.
3. The OTA upgrade method of claim 1, wherein the method further comprises:
acquiring a medium type corresponding to the equipment to be upgraded, wherein the medium type is a type of a transmission medium for transmitting a file to be upgraded to the equipment to be upgraded;
the method for upgrading the probe file on the equipment to be upgraded and determining the simulated upgrading rate after the probe file is upgraded comprises the following steps:
and in response to the fact that the medium type corresponding to the equipment to be upgraded is different from the medium type corresponding to the latest upgraded equipment, upgrading the probe file on the equipment to be upgraded, and determining the actual upgrading rate of the probe file as the analog upgrading rate of the equipment to be upgraded after the upgrading is completed.
4. The OTA upgrade method of claim 3 wherein the method further comprises:
and determining the simulation upgrading rate of the latest upgraded equipment as the simulation upgrading rate of the equipment to be upgraded in response to the fact that the medium type corresponding to the equipment to be upgraded is the same as the medium type corresponding to the latest upgraded equipment.
5. The OTA upgrade method of claim 1, wherein the method further comprises:
acquiring the equipment type of the equipment to be upgraded;
the method for upgrading the probe file on the equipment to be upgraded and determining the current upgrading rate after the probe file is upgraded comprises the following steps:
and determining the actual upgrading rate of the probe file as the simulated upgrading rate of the equipment to be upgraded after the upgrading is finished in response to the equipment type of the equipment to be upgraded being different from the equipment type of the latest upgraded equipment.
6. The OTA upgrade method of claim 5, further comprising:
and determining the simulation upgrading rate of the latest upgraded equipment as the simulation upgrading rate of the equipment to be upgraded in response to the equipment type of the equipment to be upgraded being the same as the equipment type of the latest upgraded equipment.
7. The OTA upgrade method of claim 1, wherein the method further comprises:
and after the file to be upgraded is upgraded, updating the analog upgrading rate of the equipment to be upgraded according to the actual upgrading rate of the equipment to be upgraded.
8. The OTA upgrade method of claim 1, wherein the method further comprises:
and taking the first device in the queue to be upgraded as the device to be upgraded, and deleting the device to be upgraded in the queue to be upgraded.
9. The OTA upgrade method of claim 8, wherein the method further comprises:
and determining that the OTA upgrade is successful in response to the queue to be upgraded being empty.
10. The OTA upgrade method of claim 1, wherein the method further comprises:
determining that OTA upgrade fails in response to the probe file upgrade failure; and/or the number of the groups of groups,
and responding to the upgrade failure of the file to be upgraded, and determining that the OTA upgrade fails.
11. An OTA upgrading device, said device comprising:
the detection module is used for upgrading the probe file on the equipment to be upgraded, and determining the actual upgrading rate of the probe file as the simulated upgrading rate of the equipment to be upgraded after the upgrading is finished, wherein the probe file and the program file on the equipment to be upgraded are mutually independent;
the upgrading module is used for upgrading the file to be upgraded on the equipment to be upgraded, and determining the upgrading progress according to the simulated upgrading rate of the equipment to be upgraded in the upgrading process, wherein the file to be upgraded is used for replacing the program file on the equipment to be upgraded.
12. The OTA upgrading device of claim 11, wherein the detection module is configured to:
upgrading the probe file at least once on the equipment to be upgraded, and determining the actual upgrading rate of the probe file after each upgrading is completed;
and determining the average upgrading rate of the probe file in the at least one upgrading process as the analog upgrading rate of the equipment to be upgraded in response to the average upgrading rate of the probe file in a preset rate range.
13. The OTA upgrading device of claim 11, wherein the device further comprises a first acquisition module configured to:
acquiring a medium type corresponding to the equipment to be upgraded, wherein the medium type is a type of a transmission medium for transmitting a file to be upgraded to the equipment to be upgraded;
the detection module is used for:
and in response to the fact that the medium type corresponding to the equipment to be upgraded is different from the medium type corresponding to the latest upgraded equipment, upgrading the probe file on the equipment to be upgraded, and determining the actual upgrading rate of the probe file as the analog upgrading rate of the equipment to be upgraded after the upgrading is completed.
14. The OTA upgrading device of claim 13, wherein the device further comprises a first analog module configured to:
and determining the simulation upgrading rate of the latest upgraded equipment as the simulation upgrading rate of the equipment to be upgraded in response to the fact that the medium type corresponding to the equipment to be upgraded is the same as the medium type corresponding to the latest upgraded equipment.
15. The OTA upgrading device of claim 11, wherein the device further comprises a second acquisition module configured to:
acquiring the equipment type of the equipment to be upgraded;
the detection module is used for:
and determining the actual upgrading rate of the probe file as the simulated upgrading rate of the equipment to be upgraded after the upgrading is finished in response to the equipment type of the equipment to be upgraded being different from the equipment type of the latest upgraded equipment.
16. The OTA upgrading device of claim 15, wherein the device further comprises a second analog module for:
and determining the simulation upgrading rate of the latest upgraded equipment as the simulation upgrading rate of the equipment to be upgraded in response to the equipment type of the equipment to be upgraded being the same as the equipment type of the latest upgraded equipment.
17. The OTA upgrading device of claim 11, wherein the device further comprises an updating module configured to:
and after the file to be upgraded is upgraded, updating the analog upgrading rate of the equipment to be upgraded according to the actual upgrading rate of the equipment to be upgraded.
18. The OTA upgrading device of claim 11, wherein the device further comprises a deletion module configured to:
and taking the first device in the queue to be upgraded as the device to be upgraded, and deleting the device to be upgraded in the queue to be upgraded.
19. The OTA upgrading device of claim 18, wherein the device further comprises a success module for:
and determining that the OTA upgrade is successful in response to the queue to be upgraded being empty.
20. The OTA upgrading device of claim 11, wherein the device further comprises a failure module configured to:
determining that OTA upgrade fails in response to the probe file upgrade failure; and/or the number of the groups of groups,
and responding to the upgrade failure of the file to be upgraded, and determining that the OTA upgrade fails.
21. A robot comprising a memory, a processor for storing computer instructions executable on the processor for implementing the OTA upgrade method of any one of claims 1 to 10 when the computer instructions are executed.
22. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method of any one of claims 1 to 10.
CN202311021957.XA 2023-08-14 2023-08-14 OTA upgrading method, OTA upgrading device, robot and storage medium Pending CN117055922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311021957.XA CN117055922A (en) 2023-08-14 2023-08-14 OTA upgrading method, OTA upgrading device, robot and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311021957.XA CN117055922A (en) 2023-08-14 2023-08-14 OTA upgrading method, OTA upgrading device, robot and storage medium

Publications (1)

Publication Number Publication Date
CN117055922A true CN117055922A (en) 2023-11-14

Family

ID=88658416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311021957.XA Pending CN117055922A (en) 2023-08-14 2023-08-14 OTA upgrading method, OTA upgrading device, robot and storage medium

Country Status (1)

Country Link
CN (1) CN117055922A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861735A (en) * 2017-10-26 2018-03-30 上海联影医疗科技有限公司 A kind of firmware installation progress monitoring method and computer-readable recording medium
WO2021031889A1 (en) * 2019-08-16 2021-02-25 中兴通讯股份有限公司 Upgrade method, communication device and computer-readable storage medium
CN114327557A (en) * 2021-12-30 2022-04-12 北京经纬恒润科技股份有限公司 Vehicle OTA (over the air) upgrade time evaluation method and device
EP4071603A1 (en) * 2021-04-07 2022-10-12 Yazaki Corporation In-vehicle software updating method and in-vehicle system
WO2023116150A1 (en) * 2021-12-22 2023-06-29 深圳市兆珑科技有限公司 Software updating methods and apparatus, and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861735A (en) * 2017-10-26 2018-03-30 上海联影医疗科技有限公司 A kind of firmware installation progress monitoring method and computer-readable recording medium
WO2021031889A1 (en) * 2019-08-16 2021-02-25 中兴通讯股份有限公司 Upgrade method, communication device and computer-readable storage medium
EP4071603A1 (en) * 2021-04-07 2022-10-12 Yazaki Corporation In-vehicle software updating method and in-vehicle system
WO2023116150A1 (en) * 2021-12-22 2023-06-29 深圳市兆珑科技有限公司 Software updating methods and apparatus, and electronic device
CN114327557A (en) * 2021-12-30 2022-04-12 北京经纬恒润科技股份有限公司 Vehicle OTA (over the air) upgrade time evaluation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王勇;李逸;王丽丽;朱晓燕;: "基于类推和灰色模型的软件阶段成本预测", 计算机科学, no. 2 *

Similar Documents

Publication Publication Date Title
CN109933348B (en) Method and device for updating Bootloader in electronic control unit
JP6930949B2 (en) Software distribution system, software distribution server, and software distribution method
US11429370B2 (en) Software updating apparatus, vehicle, and software updating method
CN107193607B (en) Method and apparatus for updating code file, storage medium, processor, and terminal
JP5500999B2 (en) Information processing apparatus, control method thereof, and program
CN110633091A (en) Electronic module and software wireless upgrading method thereof
US7681183B2 (en) Method, system, and program product for checking control model and/or control program
CN112134961A (en) Client use control method, client and computer storage medium
CN113704110A (en) Automatic testing method and device for user interface
CN109408083A (en) Application software update method, device, computer equipment and storage medium
CN110841280A (en) Method for online dynamic loading and checking of resources of micro-terminal
CN117055922A (en) OTA upgrading method, OTA upgrading device, robot and storage medium
CN110609967A (en) List generation method and device and storage medium
CN110689137B (en) Parameter determination method, system, medium, and electronic device
CN115934130A (en) ECU (electronic control Unit) upgrading method, device, equipment and medium
CN109032641A (en) Application version update method and device
CN114610516A (en) Application program repairing method and device, computer equipment and storage medium
CN111414194B (en) Interface information generation method, system, electronic equipment and storage medium
CN112346994A (en) Test information correlation method and device, computer equipment and storage medium
KR101123685B1 (en) System and method for upgrading program in terminal with dynamic software upgrade technology
CN112035374A (en) Regression testing method and system and electronic equipment
CN117389818B (en) Verification method and device applied to UVM verification platform
CN113268266B (en) Multi-version coexistence management method, system and medium for applet rendering framework
CN113890825B (en) Interactive upgrade test method and device of equipment, storage medium and electronic equipment
CN106528183B (en) Method and device for creating control and computer program

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