WO2019029253A1 - 一种基于fota的远程升级控制方法及系统 - Google Patents

一种基于fota的远程升级控制方法及系统 Download PDF

Info

Publication number
WO2019029253A1
WO2019029253A1 PCT/CN2018/090523 CN2018090523W WO2019029253A1 WO 2019029253 A1 WO2019029253 A1 WO 2019029253A1 CN 2018090523 W CN2018090523 W CN 2018090523W WO 2019029253 A1 WO2019029253 A1 WO 2019029253A1
Authority
WO
WIPO (PCT)
Prior art keywords
fota
firmware
download
party terminal
information
Prior art date
Application number
PCT/CN2018/090523
Other languages
English (en)
French (fr)
Inventor
张磊
Original Assignee
南京阿凡达机器人科技有限公司
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 南京阿凡达机器人科技有限公司 filed Critical 南京阿凡达机器人科技有限公司
Publication of WO2019029253A1 publication Critical patent/WO2019029253A1/zh

Links

Images

Classifications

    • 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/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Definitions

  • the present disclosure relates to the field of robot technology, and in particular to a FOTA-based remote upgrade control method and system.
  • the air download software upgrade of the robot end device refers to providing a firmware upgrade service for the robot device with network connection function through the cloud upgrade technology, and the user uses the network to acquire the intelligent terminal system upgrade package in an on-demand and easy-to-expand manner, and adopts FOTA ( Firmware Over-The-Air mobile terminal's over-the-air software upgrade) performs cloud upgrades to complete system repair and optimization.
  • FOTA Firmware Over-The-Air mobile terminal's over-the-air software upgrade
  • the robot-side equipment is effectively and reliably upgraded by means of over-the-air downloading. In this way, vendors can more quickly introduce new systems to the market and increase user satisfaction with their robotic devices.
  • the resulting software update package does not interfere with the original image file, making the update process simple and fast.
  • FOTA firmware upgrades
  • Applicable terminals have a wide range of services, which can basically provide upgrade services for all terminals in the market. Whether for telecom operators or terminal equipment manufacturers, cluster applications, grid technologies and distributed servers can handle large quantities at the same time. User's terminal upgrade requirements.
  • FOTA and OS Operating System, operating system
  • Different OS versions need to develop different FOTA adaptation versions.
  • the system upgrade package downloaded through the FOTA module must be closely matched with the OS, not only Hardware-driven debugging, but also version compatibility testing, but such upgrade package is generally provided by the terminal manufacturer, FOTA is more to ensure that the upgrade package is downloaded, and installed to the terminal, in the intelligent era, FOTA cloud upgrade will become Standard configuration of intelligent terminals.
  • the working environment and interactive performance of the robot make the convenience of upgrading the robot system different from that of the general mobile terminal. It is inconvenient to directly operate the robot system for upgrading.
  • the problem to be solved by the present disclosure is to provide a FOTA-based remote upgrade control method and system, which can remotely control upgrade of an upgrade terminal (eg, a robot, a mobile phone) through a third-party terminal.
  • an upgrade terminal eg, a robot, a mobile phone
  • the present disclosure provides a FOTA-based remote upgrade control method, including: when receiving an inspection update instruction sent by a third-party terminal, sending a check update request to the FOTA server; and receiving the FOTA server to return according to the check update request
  • the firmware information is returned to the third party terminal; when receiving the download instruction sent by the third party terminal according to the firmware information, downloading the firmware installation package from the FOTA server; After downloading the firmware installation package, receiving an installation instruction sent by the third-party terminal, and performing an upgrade according to the firmware installation package.
  • the upgrade of the upgrade end can be controlled remotely and in stages, and the user can decide the operation of the upgrade end according to the actual situation and his own needs.
  • the method further includes: if it is in the time policy control mode and reaches the preset check interval time, sending a check update request to the FOTA server.
  • the check update request may be sent to the FOTA server by itself, or may be controlled by the third party terminal, and the control manner is various.
  • the method further includes: when receiving the change information included in the firmware information returned by the FOTA server according to the check update request, changing the preset check interval time according to the change information.
  • the FOTA server can control the change of the preset check interval on the upgrade end, and reduce the resource occupation of the FOTA server by the upgrade end.
  • the firmware information includes: a download address; when receiving the download instruction sent by the third-party terminal according to the firmware information, downloading the firmware installation package from the FOTA server is specifically: when the third-party terminal is received When the download instruction is sent according to the firmware information, a link is established with the download address to download the firmware installation package.
  • the download when the download instruction is received, the download can be directly performed through the download address, which is simple, convenient and fast.
  • downloading the firmware installation package from the FOTA server is specifically: when receiving the third-party terminal, sending according to the firmware information When downloading the instruction, sending a firmware download request carrying the current version information to the FOTA server; when receiving the download address sent by the FOTA server according to the firmware download request, establishing a link with the download address, downloading the firmware installation package.
  • the upgrade terminal when receiving the download instruction, may request the FOTA server to download the firmware installation package.
  • the method further includes: feeding back the download information to the third party terminal in the process of downloading the firmware installation package from the FOTA server.
  • the user who conveniently uses the third-party terminal can understand the download situation in real time and improve the user experience.
  • sending the check update request to the FOTA server is specifically: when receiving the check update command sent by the third-party terminal, sending the current version information to the FOTA server Checking the update request; when receiving the firmware information returned by the FOTA server according to the check update request, returning the firmware information to the third-party terminal is specifically: when receiving the FOTA server according to the When the firmware information returned by the current version information in the update request is checked, the firmware information is returned to the third party terminal.
  • the current version information enables the FOTA server to feed back accurate firmware information.
  • the present disclosure also provides a FOTA-based remote upgrade control system, including: a third-party terminal, an upgrade terminal, and a FOTA server, the third-party terminal and the upgrade terminal are communicatively connected, and the upgrade terminal and the FOTA server are communicatively connected.
  • the upgrade end includes: a terminal interaction unit, configured to receive an inspection update instruction sent by the third-party terminal; and an FOTA service unit, configured to send a check update to the FOTA server when receiving the check update instruction sent by the third-party terminal Requesting; and receiving firmware information returned by the FOTA server according to the check update request; the terminal interaction unit further configured to return the firmware information to the third party terminal; and receiving the third party a download instruction sent by the terminal according to the firmware information; the FOTA service unit is further configured to download a firmware installation package from the FOTA server when receiving a download instruction sent by the third party terminal according to the firmware information; The terminal interaction unit is further configured to receive an installation instruction sent by the third-party terminal; The OTA service unit is further configured to: when the firmware installation package is successfully downloaded, receive an installation instruction sent by the third-party terminal, and perform an upgrade according to the firmware installation package.
  • the upgrade of the upgrade end can be controlled remotely and in stages, and the user can decide the operation of the upgrade end according to the actual situation and his own needs.
  • the FOTA service unit is further configured to send a check update request to the FOTA server if the time policy control mode is reached and the preset check interval time is reached.
  • the FOTA service unit is further configured to: when receiving the change information included in the firmware information returned by the FOTA server according to the check update request, change the preset check interval time according to the change information.
  • the firmware information includes: a download address; the FOTA service unit is further configured to: when receiving the download instruction sent by the third-party terminal according to the firmware information, download the firmware installation package from the FOTA server, specifically: The FOTA service unit is configured to: when receiving the download instruction sent by the third-party terminal according to the firmware information, establish a link with the download address to download the firmware installation package.
  • the FOTA service unit is further configured to: when receiving the download instruction sent by the third-party terminal according to the firmware information, downloading the firmware installation package from the FOTA server, specifically: the FOTA service unit, when receiving Sending, to the FOTA server, a firmware download request carrying current version information when the third party terminal sends a download instruction according to the firmware information; and receiving a download address sent by the FOTA server according to the firmware download request And establishing a link with the download address to download the firmware installation package.
  • the terminal interaction unit is further configured to feed back the download information to the third party terminal during the process of downloading the firmware installation package from the FOTA server.
  • the FOTA service unit is configured to: when receiving the check update instruction sent by the third party terminal, send a check update request to the FOTA server, and receive the firmware information returned by the FOTA server according to the check update request, specifically: The FOTA service unit is configured to: when receiving the check update instruction sent by the third party terminal, send a check update request request carrying the current version information to the FOTA server; and receive the FOTA server according to the check update request Firmware information returned by the current version information.
  • the FOTA-based remote upgrade control method and system of the present invention controls the system upgrade of the upgrade terminal through the remote control of the third-party terminal, and continuously optimizes and repairs the problems and vulnerabilities of the upgrade terminal.
  • the method of the present disclosure is applicable to system upgrade using a third-party terminal to control the robot end, and is also applicable to a system upgrade in which a third-party terminal controls other types of terminals.
  • a third-party terminal can control system upgrades of several upgraded terminals to achieve integrated management.
  • FIG. 1 is a structural diagram of a control system of a remote upgrade robot based on FOTA of the present disclosure
  • FIG. 2 is a flow chart of one embodiment of a FOTA-based remote upgrade control method of the present disclosure
  • FIG. 3 is a flow chart of another embodiment of the FOTA-based remote upgrade control method of the present disclosure.
  • FIG. 4 is a schematic structural diagram of an embodiment of a FOTA-based remote upgrade control system of the present disclosure.
  • the FOTA-based remote upgrade control method of the present disclosure can implement a third-party terminal to remotely control an upgraded end upgrade, and can also implement a third-party terminal to remotely control upgrade of multiple upgraded ends, and the implementation process of each upgraded end and a third-party terminal.
  • the same is true, as long as the third-party terminal can distinguish the control command from being sent to the correct upgrade terminal (for example, when the upgrade terminal sends information to the third-party terminal, it carries its own IP address or MAC address for identification).
  • the following is mainly explained by an example of a third-party terminal and an upgrade terminal.
  • a FOTA-based remote upgrade control method includes the following steps:
  • S101 sends a check update request to the FOTA server when receiving the check update instruction sent by the third party terminal.
  • communication can be performed between the third-party terminal and the upgrade terminal.
  • the system service used for communication with the upgrade terminal in the third-party terminal is always running in the background, and the system service used by the upgrade terminal to communicate with the third-party terminal is always in the background, and the system service at both ends is used.
  • the user sends a check update command to the upgrade terminal through the third-party terminal, and after receiving the upgrade, the user sends a check update request to the FOTA server.
  • the communication protocol between the third-party terminal and the upgrade terminal adopts the WebSocket protocol, and the HTTP protocol is adopted between the upgrade terminal and the FOTA server.
  • system service that the upgrade terminal communicates with the third-party terminal and the system service that the upgrade terminal communicates with the FOTA server are two different services.
  • Third-party terminals include: electronic devices such as mobile phones, tablets, and computers.
  • the upgraded console can be a mobile phone, a tablet, a computer, and the like. For example, use a mobile phone to control other mobile phones to upgrade.
  • a specific application example of the FOTA-based remote upgrade method of the robot system is further explained based on FIG. 1, and the user (for example, the guardian) implements the upgrade of the robot end system through the third-party terminal.
  • the robot is used as the upgrade terminal, and the system is Android system.
  • the first FOTA Agent of the system service on the third-party terminal keeps running in the background
  • the second FOTA Agent of the robot end keeps running in the background.
  • the FOTA service unit communicates with the FOTA server.
  • the guardian issues an inspection update instruction through the third-party terminal, and the first FOTA Agent of the third-party terminal encapsulates the inspection update instruction according to the WebSocket protocol requirement, and then transmits the second FOTA Agent to the robot side through the Websocket protocol, and the second FOTA Agent of the robot terminal.
  • the first FOTA Agent of the third-party terminal encapsulates the inspection update instruction according to the WebSocket protocol requirement, and then transmits the second FOTA Agent to the robot side through the Websocket protocol, and the second FOTA Agent of the robot terminal.
  • After receiving the information encapsulated according to the Websocket protocol it parses it, extracts the check update instruction, and then calls the AIDL (Android Interface Definition Language) cross-process access technology, and the second FOTA Agent of the robot side and the FOTA service unit of the robot side.
  • AIDL Android Interface Definition Language
  • the FOTA service unit of the robot system is called, and the FOTA service unit encapsulates the check update instruction into an HTTP protocol, and sends a check update request to the server to check whether there is a new firmware installation package on the server side.
  • the FOTA server when receiving the check update request, sends the checked result (ie, firmware information) to the upgrade terminal, and the upgrade terminal also sends the firmware information to the third-party terminal, so that the user holding the third-party terminal Decide whether you need to perform downloads, upgrades, and so on.
  • the firmware information includes: firmware version information.
  • an example of the transmission process of the firmware information between the FOTA server and the robot terminal, and the transmission process of the firmware information by the robot terminal and the third party terminal are as follows:
  • the server side When the FOTA server checks for the existence of the new firmware installation package, the server side encapsulates the checked result (ie firmware information) into a JSON protocol and sends it to the FOTA service unit of the robot side.
  • the FOTA service unit extracts the JSON protocol sent by the FOTA server and extracts it.
  • the second FOTA Agent of the robot side encapsulates the firmware information into the first FOTA Agent that the WebSocket protocol returns to the third-party terminal. After the first FOTA Agent of the third-party terminal receives and parses, the content of the firmware information is displayed on the interface, for example. : The latest version information.
  • S103 downloads the firmware installation package from the FOTA server when receiving the download instruction sent by the third party terminal according to the firmware information.
  • the implementation process of the third party terminal sending the download instruction according to the firmware information may be: when the third party terminal displays the firmware information, it may ask whether the download is needed. For example, if you need to download the option, the user can click to confirm whether to send the download instruction.
  • the third-party terminal considers that the download command is received, so the download command is sent to the upgrade terminal; if the button representing the download is not clicked, it is considered that the download command is not received, and no update command is sent to the upgrade terminal.
  • the upgrade side does not receive any instructions, no action is taken.
  • the user can decide whether to choose to send a download command according to his or her own needs (want to upgrade) or the actual situation (for example, the power of the robot is insufficient, the signal is not good, etc.).
  • the upgrade terminal When the upgrade terminal receives the download command, the upgrade terminal will download the firmware installation package from the FOTA server, and will also store the downloaded firmware installation package locally. When the firmware installation package is successfully downloaded, the third-party terminal is notified to let the user holding the third-party terminal decide whether it needs to be installed.
  • the download information is fed back to the third party terminal during the process of downloading the firmware installation package from the FOTA server.
  • the progress of the upgrade download is backed up to the third-party terminal through the FOTA Agent encapsulated into a Websocket message, and the third-party terminal can view the download progress in real time.
  • the second FOTA Agent of the robot side downloads the download progress, the size of the installation package, and the countdown time of the successful download in real time according to the WebSocket protocol to the third party terminal.
  • the first FOTA Agent the user can display the current download progress and completion time through the first FOTA Agent display of the third party terminal.
  • the S104 After successfully downloading the firmware installation package, the S104 upgrades according to the firmware installation package when receiving the installation instruction sent by the third-party terminal.
  • the user can decide whether to install now according to the actual situation, and can immediately send the installation instruction, or wait for a period of time before sending the installation instruction. For example, if the power of the upgrade terminal is found to be low, the installation command may not be sent immediately. After the upgrade terminal is fully charged, the installation command is sent.
  • the AIDL cross-process access technology is invoked, and the second FOTA Agent of the robot side issues an instruction to wait for installation, and the second FOTA Agent of the robot side firstly connects to the third party terminal through the WebSocket protocol.
  • the FOTA Agent issues an installation request. If the third-party terminal chooses to install, the first FOTA Agent of the third-party terminal encapsulates the installation instruction into a second FOTA Agent that is transmitted to the robot side by the WebSocket protocol, and the second FOTA Agent of the robot side invokes the AIDL cross-process access technology.
  • the installation instruction is sent to the FOTA service unit of the robot side. After the FOTA service unit obtains the installation instruction, the Android installation interface is called, and the robot side automatically installs the firmware installation package. Otherwise, the robot terminal will not perform any operation.
  • This embodiment is based on the improvement of FOTA, so that the upgrade of the upgrade end can be controlled remotely and periodically.
  • the user can decide the operation of the upgrade end according to the actual situation and his own needs; and the phase control can upgrade the different work environments and interaction performance.
  • the upgrade of the terminal is more convenient (for example, it is not upgraded when it is not convenient to upgrade, preventing frequent upgrade failures), and the application is more extensive.
  • a FOTA-based remote upgrade control method includes the following steps:
  • the S201 If the S201 is in the time policy control mode and reaches the preset check interval, the S201 sends an check update request to the FOTA server.
  • the triggering condition for the upgrade terminal to send the check update request to the FOTA server is two types: one is to receive the check update command sent by the third party terminal; the other is to automatically send the FOTA server to the FOTA server when the upgrade end is in the time policy control mode. Send a check for an update request.
  • the time policy control mode can be set to be on or off.
  • the third party terminal can also intervene to send control commands, such as checking update instructions.
  • the time policy control mode automatically sends a check update request to the FOTA server based on the preset check interval time. For example, the check update request is sent to the FOTA server every hour, and the preset check interval is set to one hour.
  • the upgrade terminal When the upgrade terminal sends a check update request to the FOTA server, it will carry the current version information of the firmware that is currently installed, so that the FOTA server can find the latest firmware version.
  • the firmware information includes: firmware version information, which is viewed by a user holding a third-party terminal.
  • downloading the firmware installation package from the FOTA server is specifically as follows:
  • the S205 When receiving the download address sent by the FOTA server according to the firmware download request, the S205 establishes a link with the download address to download the firmware installation package.
  • the upgrade terminal sends a firmware download request carrying the current version information of the firmware to the FOTA server
  • the FOTA server sends a download address corresponding to the latest firmware version information according to the current version information
  • the upgrade end establishes an HTTP link with the download address. Download the firmware installation package.
  • the firmware information further includes: a download address.
  • downloading the firmware installation package from the FOTA server is specifically: when receiving the download instruction sent by the third-party terminal according to the firmware information, establishing a link with the download address, and downloading the firmware installation package .
  • the FOTA feeds back the corresponding latest firmware version information and the corresponding download address as the check result (ie, firmware information) to the upgrade end according to the current version information sent by the upgrade terminal.
  • the upgrade terminal receives the download command, it is not necessary to send the download request to the FOTA server. You can directly download the firmware installation package directly from the download address to save time.
  • the download information is fed back to the third party terminal during the process of downloading the firmware installation package from the FOTA server.
  • the second FOTA Agent of the robot side downloads the download progress, the size of the installation package, and the countdown time of the successful download in real time according to the WebSocket protocol to the third party terminal.
  • the first FOTA Agent the user can display the current download progress and completion time through the first FOTA Agent display of the third party terminal.
  • the upgrade operation is not performed.
  • the FOTA-based remote upgrade control method further includes the following steps: S207: When receiving the change information included in the firmware information returned by the FOTA server according to the check update request, changing the preset check interval time or the shutdown time policy control mode according to the change information.
  • the firmware information may further include: changing information.
  • changing information When the current version information of the upgrade terminal is the latest on the FOTA server, the upgrade terminal does not need to automatically send the check update request frequently. Therefore, the FOTA server can change the information to let the upgrade terminal change its preset check interval. .
  • Step S207 can be performed at any time after step 201 or step S202 according to the change information contained in the firmware information returned by the server.
  • the original check interval on the upgrade side is 3 hours. Now that FOTA finds that its firmware is the latest version, it will send the change information that the preset check interval becomes 10 hours, so that the upgrade terminal can change it automatically and extend its automatic. Sends the time to check for update instructions, reducing their use of FOTA server resources.
  • the FOTA server can also send the change information of the shutdown time policy control mode, so that the upgrade terminal can close the time policy control mode by itself. If the user feels it is necessary to enable it, it can control the upgrade side to open the time policy control mode through the third party terminal.
  • the change operation for example, changing the preset check interval or the close time policy control mode
  • feeding back the firmware information to the third terminal are performed by two processes, and there is no restriction between the two.
  • the upgrade terminal fails to check the update request during the process of sending the check update request to the FOTA, if the check update request is based on the check update command sent by the third-party terminal, If it is sent, it needs to feedback to the third-party terminal to check the update failure information; if the upgrade terminal is automatically sent in the time policy control mode, it can wait until the next scheduled check interval to send the check update request.
  • the check update command sent by the third party terminal is received within the preset check interval, the upgrade terminal also sends a check update request to the FOTA server.
  • the firmware installation package In the process of downloading the firmware installation package, if the download fails, the firmware installation package that failed to download is deleted. Optionally, the feedback information of the download failure is fed back to the third party terminal.
  • the upgrade end of the embodiment may send a check update request to the FOTA server by itself, or may be controlled by a third party terminal, and the control manner is various.
  • the download and installation are determined by the user who holds the third-party terminal.
  • the staged control mode enables the upgrade of the upgraded end to be applied to different scenarios, which is more flexible and reliable.
  • a FOTA-based remote upgrade control system includes: a third-party terminal 10, and at least one upgrade terminal 20 (only one is schematically drawn in the figure) And the FOTA server 30, the third party terminal 10 and each upgrade terminal 20 are in communication connection, and each upgrade terminal 20 and the FOTA server 30 are in communication connection.
  • the system service used for communication with the upgrade terminal in the third-party terminal is always running in the background, and the upgrade service is used for system communication with the third-party terminal (such as the terminal interaction unit mentioned below, also shown in FIG. 1).
  • the second FOTA Agent in the middle is always running in the background, and the system services at both ends are used to exchange, deliver messages and instructions.
  • the system service that the upgrade side communicates with the third-party terminal, and the system service that the upgrade side communicates with the FOTA server are two different services.
  • the system service that the upgrade side communicates with the FOTA server is the FOTA service unit described below.
  • Third-party terminals include: electronic devices such as mobile phones, tablets, and computers.
  • the upgraded console can be a mobile phone, a tablet, a computer, and the like. For example, use a mobile phone to control other mobile phones to upgrade.
  • a user implements an upgrade of the robot end system through a third-party terminal.
  • the robot is used as the upgrade terminal, and the system is Android system.
  • the first FOTA Agent of the system service on the third-party terminal keeps running in the background
  • the second FOTA Agent of the robot side keeps running in the background, the first FOTA Agent and the second FOTA.
  • the FOTA service unit communicates with the FOTA server.
  • the upgrade side 20 includes:
  • the terminal interaction unit 21 is configured to receive an inspection update instruction sent by the third-party terminal.
  • the FOTA service unit 22 is configured to: when receiving the check update instruction sent by the third party terminal, send the check update request to the FOTA server; and receive the firmware information returned by the FOTA server according to the check update request.
  • the guardian issues an inspection update instruction through the third-party terminal, and the first FOTA Agent of the third-party terminal encapsulates the inspection update instruction according to the requirements of the WebSocket protocol, and then transmits the second FOTA Agent to the second terminal of the robot through the Websocket protocol.
  • the second FOTA Agent of the robot side parses it, extracts the check update instruction, and then calls the AIDL cross-process access technology to connect the second FOTA Agent of the robot side and the FOTA service unit of the robot side.
  • the FOTA service unit of the robot system is called, and the FOTA service unit encapsulates the check update instruction into an HTTP protocol, and sends a check update request to the server to check whether there is a new firmware installation package on the server side.
  • the terminal interaction unit 21 is further configured to: return the firmware information to the third-party terminal; and receive the download instruction sent by the third-party terminal according to the firmware information.
  • the FOTA server When receiving the check update request, the FOTA server sends the checked result (ie, the firmware information) to the upgrade terminal, and the upgrade terminal also sends the firmware information to the third-party terminal, so that the user holding the third-party terminal determines whether it is needed. Perform downloads, upgrades, and more.
  • the firmware information includes: firmware version information.
  • an example of the transmission process of the firmware information between the FOTA server and the robot terminal, and the transmission process of the firmware information by the robot terminal and the third party terminal are as follows:
  • the server side When the FOTA server checks for the existence of the new firmware installation package, the server side encapsulates the checked result (ie firmware information) into a JSON protocol and sends it to the FOTA service unit of the robot side.
  • the FOTA service unit extracts the JSON protocol sent by the FOTA server and extracts it.
  • the second FOTA Agent of the robot side encapsulates the firmware information into the first FOTA Agent that the WebSocket protocol returns to the third-party terminal. After the first FOTA Agent of the third-party terminal receives and parses, the content of the firmware information is displayed on the interface, for example. : The latest version information.
  • the FOTA service unit 22 is further configured to download the firmware installation package from the FOTA server when receiving the download instruction sent by the third party terminal according to the firmware information.
  • the implementation process of the third party terminal sending the download instruction according to the firmware information may be: when the third party terminal displays the firmware information, it may ask whether it needs to be downloaded. For example, if you need to download the option, the user can click to confirm whether to send the download instruction.
  • the third-party terminal considers that the download command is received, so the download command is sent to the upgrade terminal; if the button representing the download is not clicked, it is considered that the download command is not received, and no update command is sent to the upgrade terminal.
  • the upgrade side does not receive any instructions, no action is taken.
  • the user can decide whether to choose to send a download command according to his or her own needs (want to upgrade) or the actual situation (for example, the power of the robot is insufficient, the signal is not good, etc.).
  • the upgrade terminal When the upgrade terminal receives the download command, the upgrade terminal will download the firmware installation package from the FOTA server, and will also store the downloaded firmware installation package locally. When the firmware installation package is successfully downloaded, the third-party terminal is notified to let the user holding the third-party terminal decide whether it needs to be installed.
  • the terminal interaction unit 21 is configured to feed back the download information to the third party terminal during the process of downloading the firmware installation package from the FOTA server.
  • the second FOTA Agent of the robot side downloads the download progress, the size of the installation package, and the countdown time of the successful download in real time according to the WebSocket protocol to the third party terminal.
  • the first FOTA Agent the user can display the current download progress and completion time through the first FOTA Agent display of the third party terminal.
  • the terminal interaction unit 21 is further configured to receive an installation instruction sent by the third-party terminal.
  • the FOTA service unit 22 is further configured to perform an upgrade according to the firmware installation package when receiving the installation instruction sent by the third-party terminal after successfully downloading the firmware installation package.
  • the user can decide whether to install now according to the actual situation, and can immediately send the installation instruction, or wait for a period of time before sending the installation instruction. For example, if the power of the upgrade terminal is found to be low, the installation command may not be sent immediately. After the upgrade terminal is fully charged, the installation command is sent.
  • the AIDL cross-process access technology is invoked, and the second FOTA Agent of the robot side issues an instruction to wait for installation, and the second FOTA Agent of the robot side firstly connects to the third party terminal through the WebSocket protocol.
  • the FOTA Agent issues an installation request. If the third-party terminal chooses to install, the first FOTA Agent of the third-party terminal encapsulates the installation instruction into a second FOTA Agent that is transmitted to the robot side by the WebSocket protocol, and the second FOTA Agent of the robot side invokes the AIDL cross-process access technology.
  • the installation instruction is sent to the FOTA service unit of the robot side. After the FOTA service unit obtains the installation instruction, the Android installation interface is called, and the robot side automatically installs the firmware installation package. Otherwise, the robot terminal will not perform any operation.
  • This embodiment is based on the improvement of FOTA, so that the upgrade of the upgrade end can be controlled remotely and periodically.
  • the user can decide the operation of the upgrade end according to the actual situation and his own needs; and the phase control can upgrade the different work environments and interaction performance.
  • the upgrade of the terminal is more convenient (for example, it is not upgraded when it is not convenient to upgrade, preventing frequent upgrade failures), and the application is more extensive.
  • a FOTA-based remote upgrade control system includes: a third-party terminal 10, at least one upgrade terminal 20, and a FOTA server 30, and a third-party terminal 10 and each upgrade terminal 20 communicate with each other.
  • Each upgrade terminal 20 is in communication with the FOTA server 30.
  • the upgrade side 20 includes:
  • the FOTA service unit 22 is configured to send a check update request to the FOTA server if it is in the time policy control mode and reaches the preset check interval.
  • the terminal interaction unit 21 is configured to receive an inspection update instruction sent by the third-party terminal.
  • the FOTA service unit 22 is configured to: when receiving the check update instruction sent by the third party terminal, send the check update request to the FOTA server; and receive the firmware information returned by the FOTA server according to the check update request.
  • the check update request carries the current version information.
  • the time policy control mode can be set to be on or off.
  • the third party terminal can also intervene to send control commands, such as checking update instructions.
  • the time policy control mode automatically sends a check update request to the FOTA server based on the preset check interval time. For example, the check update request is sent to the FOTA server every two hours, and the preset check interval is set to one hour.
  • the FOTA service unit is configured to send a check update request to the FOTA server when receiving the check update instruction sent by the third party terminal, and the firmware information returned by the receiving FOTA server according to the check update request is specifically:
  • a FOTA service unit configured to: when receiving the check update instruction sent by the third party terminal, send a check update request carrying the current version information to the FOTA server; and receive the current version in the FOTA server according to the check update request Firmware information returned by the message.
  • the upgrade terminal sends a check update request to the FOTA server, it carries the current version information of the firmware that is currently installed, so that the FOTA server can find the latest firmware version.
  • the terminal interaction unit 21 is further configured to: return the firmware information to the third-party terminal; and receive the download instruction sent by the third-party terminal according to the firmware information.
  • the firmware information includes: firmware version information for viewing by users holding third party terminals.
  • the FOTA service unit 22 is further configured to: when receiving the change information included in the firmware information returned by the FOTA server according to the check update request, change the preset check interval time or the close time policy control mode according to the change information.
  • the firmware information may further include: changing information.
  • changing information When the current version information of the upgrade terminal is the latest on the FOTA server, the upgrade terminal does not need to automatically send the check update request frequently. Therefore, the FOTA server can change the information to let the upgrade terminal change its preset check interval. .
  • the original check interval on the upgrade side is 2 hours. Now that FOTA finds that its firmware is the latest version, it will send the change information that the preset check interval becomes 8 hours, so that the upgrade terminal can change it automatically and extend its automatic. Sends the time to check for update instructions, reducing their use of FOTA server resources.
  • the FOTA server can also send the change information of the shutdown time policy control mode, so that the upgrade terminal can close the time policy control mode by itself. If the user feels it is necessary to enable it, it can control the upgrade side to open the time policy control mode through the third party terminal.
  • the FOTA service unit 22 is further configured to: when receiving the download instruction sent by the third-party terminal according to the firmware information, downloading the firmware installation package from the FOTA server is specifically:
  • the FOTA service unit 22 is configured to: when receiving the download instruction sent by the third-party terminal according to the firmware information, send a firmware download request carrying the current version information to the FOTA server;
  • the upgrade terminal sends a firmware download request carrying the current version information of the firmware to the FOTA server
  • the FOTA server sends a download address corresponding to the latest firmware version information according to the current version information
  • the upgrade end establishes an HTTP link with the download address. Download the firmware installation package.
  • the firmware information further includes: a download address.
  • the FOTA service unit is further configured to: when receiving the download instruction sent by the third party terminal according to the firmware information, downloading the firmware installation package from the FOTA server is specifically:
  • the FOTA service unit 22 is configured to, when receiving a download instruction sent by the third-party terminal according to the firmware information, establish a link with the download address to download the firmware installation package.
  • the FOTA feeds back the corresponding latest firmware version information and the corresponding download address as the check result (ie, firmware information) to the upgrade end according to the current version information sent by the upgrade terminal.
  • the upgrade terminal receives the download command, it is not necessary to send the download request to the FOTA server. You can directly download the firmware installation package directly from the download address to save time.
  • the terminal interaction unit 21 is further configured to feed back the download information to the third party terminal during the process of downloading the firmware installation package from the FOTA server.
  • the second FOTA Agent of the robot side downloads the download progress, the size of the installation package, and the countdown time of the successful download in real time according to the WebSocket protocol to the third party terminal.
  • the first FOTA Agent the user can display the current download progress and completion time through the first FOTA Agent display of the third party terminal.
  • the terminal interaction unit 21 is further configured to receive an installation instruction sent by the third-party terminal.
  • the FOTA service unit 22 is further configured to perform an upgrade according to the firmware installation package when receiving the installation instruction sent by the third-party terminal after successfully downloading the firmware installation package.
  • the upgrade operation is not performed.
  • the upgrade terminal of this embodiment may send a check update request to the FOTA server by itself, or may be controlled by a third-party terminal, and the control manner is various.
  • the download and installation are determined by the user who holds the third-party terminal.
  • the staged control mode enables the upgrade of the upgraded end to be applied to different scenarios, which is more flexible and reliable.
  • the upgrade terminal fails to check the update request during the process of sending the check update request to the FOTA, if the check update request is based on the check update command sent by the third-party terminal, If it is sent, it needs to feedback to the third-party terminal to check the update failure information; if the upgrade terminal is automatically sent in the time policy control mode, it can wait until the next scheduled check interval to send the check update request.
  • the check update command sent by the third party terminal is received within the preset check interval, the upgrade terminal also sends a check update request to the FOTA server.
  • the firmware installation package In the process of downloading the firmware installation package, if the download fails, the firmware installation package that failed to download is deleted. Optionally, the feedback information of the download failure is fed back to the third party terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (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

本公开的一种基于FOTA的远程升级控制方法及系统,该方法包括:当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求;当接收到所述FOTA服务器根据所述检查更新请求返回的固件信息时,将所述固件信息回传给所述第三方终端;当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包;当成功下载所述固件安装包、且接收到所述第三方终端发送的安装指令时,根据所述固件安装包进行升级。本公开适用于使用第三方终端控制升级端的系统升级。

Description

一种基于FOTA的远程升级控制方法及系统
本申请要求2017年08月09日提交的申请号为:201710677230.5、发明名称为“一种基于FOTA的机器人系统远程升级方法”的中国专利申请的优先权,其全部内容合并在此。
技术领域
本公开涉及机器人技术领域,具体是一种基于FOTA的远程升级控制方法及系统。
背景技术
机器人端设备的空中下载软件升级,指通过云端升级技术,为具有连网功能的机器人设备提供固件升级服务,用户使用网络以按需、易扩展的方式获取智能终端系统升级包,并通过FOTA(Firmware Over-The-Air移动终端的空中下载软件升级)进行云端升级,完成系统修复和优化。
通过空中下载的方式有效而可靠的对机器人端的设备进行升级。用这种方式,厂商能够更加快速地向市场推出具有新功能的系统并以此提高用户对其机器人端设备的满意度。生成的软件更新包不会妨碍原有的映像文件,从而使得更新过程简单而迅速。
FOTA的本质是固件升级,包括驱动、系统、功能、应用等的升级,和硬件没有直接关系。适用的终端范围很广,基本可以为市场上所有的终端提供升级服务,无论对于电信运营商还是终端设备制造商,通过集群应用、网格技术和分布式服务端,能够在同一时间内处理大量用户的终端升级需求。FOTA和OS(Operating System,操作系统)的关系较密切,不同的OS版本,需要开发不同的FOTA适配版本,同时通过FOTA模块下载的系统升级包,也要和OS进行密切的匹配,不但要进行硬件驱动的调试,还要进行版本的兼容测试,但这样的升级包一般由终端厂商提供,FOTA更多的是保证将升级包下载,并且安装至终端,在智能时代,FOTA云升级将成为智能终端的标准配置。
机器人的工作环境及交互性能,使得机器人系统升级的方便程度与一般的移动终端升级有所不同,直接操作机器人系统进行升级,会有诸多不便。
发明内容
本公开要解决的问题是提供一种基于FOTA的远程升级控制方法及系统,该方法能够通过第三方终端远程控制升级端(例如:机器人、手机)的升级。
本公开提供一种基于FOTA的远程升级控制方法,包括:当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求;当接收到所述FOTA服务器根据所述检查更新请求返回的固件信息时,将所述固件信息回传给所述第三方终端;当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包;当成功下载所述固件安装包后,接收到所述第三方终端发送的安装指令,根据所述固件安装包进行升级。
在上述技术方案中,基于FOTA的改进,使升级端的升级可以被远程、阶段性地控制,用户可根据实际情况和自己的需求自行决定升级端的操作。
进一步,该方法还包括:若处于时间策略控制模式、且达到预设检查间隔时间,则向FOTA服务器发送检查更新请求。
在上述技术方案中,可以自行向FOTA服务器发送检查更新请求,也可以受第三方终端的控制,控制方式多样。
进一步,该方法还包括:当接收到所述FOTA服务器根据所述检查更新请求返回的固件信息中包括更改信息时,根据所述更改信息,更改所述预设检查间隔时间。
在上述技术方案中,可以由FOTA服务器控制升级端上预设检查间隔时间的更改,降低升级端占用FOTA服务器的资源占用。
进一步,固件信息包括:下载地址;所述当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包具 体为:当接收到所述第三方终端根据所述固件信息发送的下载指令时,与所述下载地址建立链接,下载所述固件安装包。
在上述技术方案中,当接收到下载指令时,可以直接通过下载地址进行下载,简单、方便、快捷。
进一步,所述当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包具体为:当接收到所述第三方终端根据所述固件信息发送的下载指令时,向FOTA服务器发送携带有当前版本信息的固件下载请求;当接收到所述FOTA服务器根据所述固件下载请求发送的下载地址时,与所述下载地址建立链接,下载所述固件安装包。
在上述技术方案中,当接收到下载指令时,升级端可以向FOTA服务器请求,以下载固件安装包。
进一步,该方法还包括:在从所述FOTA服务器下载固件安装包的过程中,将下载信息反馈给所述第三方终端。
在上述技术方案中,方便使用第三方终端的用户实时了解下载情况,提高用户体验。
进一步,所述当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求具体为:当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送携带有当前版本信息的检查更新请求;所述当接收到所述FOTA服务器根据所述检查更新请求返回的固件信息时,将所述固件信息回传给所述第三方终端具体为:当接收到所述FOTA服务器根据所述检查更新请求中的当前版本信息返回的固件信息时,将所述固件信息回传给所述第三方终端。
在上述技术方案中,当前版本信息能够让FOTA服务器反馈回准确的固件信息。
本公开还提供一种基于FOTA的远程升级控制系统,包括:第三方终端、升级端和FOTA服务器,所述第三方终端和所述升级端通信连接,所述升级端和所述FOTA服务器通信连接;所述升级端包括:终端交互单元,用于接收所述第三方终端发送的检查更新指令;FOTA服务单元,用于当接收到第 三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求;以及,接收所述FOTA服务器根据所述检查更新请求返回的固件信息;所述终端交互单元,进一步用于将所述固件信息回传给所述第三方终端;以及,接收所述第三方终端根据所述固件信息发送的下载指令;所述FOTA服务单元,进一步用于当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包;所述终端交互单元,进一步用于接收所述第三方终端发送的安装指令;所述FOTA服务单元,进一步用于当成功下载所述固件安装包后,接收到所述第三方终端发送的安装指令时,根据所述固件安装包进行升级。
在上述技术方案中,基于FOTA的改进,使升级端的升级可以被远程、阶段性地控制,用户可根据实际情况和自己的需求自行决定升级端的操作。
进一步,FOTA服务单元,进一步用于若处于时间策略控制模式、且达到预设检查间隔时间,则向FOTA服务器发送检查更新请求。
进一步,FOTA服务单元,进一步用于当接收到所述FOTA服务器根据所述检查更新请求返回的固件信息中包括更改信息时,根据所述更改信息,更改所述预设检查间隔时间。
进一步,固件信息包括:下载地址;所述FOTA服务单元,进一步用于当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包具体为:所述FOTA服务单元,用于当接收到所述第三方终端根据所述固件信息发送的下载指令时,与所述下载地址建立链接,下载所述固件安装包。
进一步,FOTA服务单元,进一步用于当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包具体为:所述FOTA服务单元,用于当接收到所述第三方终端根据所述固件信息发送的下载指令时,向FOTA服务器发送携带有当前版本信息的固件下载请求;以及,当接收到所述FOTA服务器根据所述固件下载请求发送的下载地址时,与所述下载地址建立链接,下载所述固件安装包。
进一步,终端交互单元,进一步用于在从所述FOTA服务器下载固件安 装包的过程中,将下载信息反馈给所述第三方终端。
进一步,FOTA服务单元,用于当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求,以及,接收所述FOTA服务器根据所述检查更新请求返回的固件信息具体为:所述FOTA服务单元,用于当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送携带有当前版本信息的检查更新请求请求;以及,接收所述FOTA服务器根据所述检查更新请求中的当前版本信息返回的固件信息。
本发明的一种基于FOTA的远程升级控制方法及系统,通过第三方终端的远程控制,控制升级端的系统升级,不断优化和修复升级端的问题和漏洞。本公开的方法适用于使用第三方终端控制机器人端的系统升级,也适用于第三方终端控制其他类型的终端的系统升级。并且,一台第三方终端可以控制数台升级端的系统升级,实现集成化管理。
附图说明
图1是本公开基于FOTA的远程升级机器人的控制系统架构图;
图2是本公开基于FOTA的远程升级控制方法一个实施例的流程图;
图3是本公开基于FOTA的远程升级控制方法另一个实施例的流程图;
图4是本公开基于FOTA的远程升级控制系统一个实施例的结构示意图。
具体实施方式
下面结合附图,对本发明提出的一种基于FOTA的远程升级控制方法及系统进行详细说明。
本公开的基于FOTA的远程升级控制方法,可以实现一个第三方终端远程控制一个升级端升级,也可以实现一个第三方终端远程控制多个升级端的升级,每个升级端和第三方终端的实施过程相同,只要第三方终端可以区分将控制指令发送给正确的升级端即可(例如:升级端向第三方终端发送信息时,携带上自己的IP地址或MAC地址来进行标识)。下面主要以一个第三方终端和一个升级端的例子进行阐述。
在本公开的一个实施例中,如图2所示,一种基于FOTA的远程升级控制方法,包括以下步骤:
S101当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求。
具体的,第三方终端和升级端之间可以进行通信。例如:第三方终端中用于和升级端进行通信的系统服务在后台始终保持运行状态,升级端用于和第三方终端进行通信的系统服务也在后台始终保持运行状态,两端的这个系统服务用于交换、传递消息和指令。
用户通过第三方终端向升级端发送检查更新指令,升级端收到后,就会向FOTA服务器发送检查更新请求。第三方终端和升级端之间的通信协议采用WebSocket协议,升级端和FOTA服务器之间采用HTTP协议。
需要注意的是,本实施例中升级端和第三方终端进行通信的系统服务、升级端和FOTA服务器进行通信的系统服务是两个不同的服务。
第三方终端包括:手机、平板电脑、计算机等电子设备。被控制的升级端除了机器人,也可以是手机、平板电脑、计算机等等。比如,采用手机控制其他手机做升级。
基于图1进一步解释基于FOTA的机器人系统远程升级方法的具体应用例子,用户(例如:监护人)通过第三方终端,实现对机器人端系统的升级。
如图1所示,机器人作为升级端,其系统为Android系统,第三方终端上的系统服务第一FOTA Agent在后台始终保持运行状态,机器人端的第二FOTA Agent在后台始终保持运行状态,第一FOTA Agent和第二FOTA Agent之间进行消息、控制指令的交换和传递。而FOTA服务单元则实现与FOTA服务器的通信。
监护人通过第三方终端发出检查更新指令,通过第三方终端的第一FOTA Agent把检查更新指令按照WebSocket协议要求进行封装,再通过Websocket协议远程传输到机器人端的第二FOTA Agent,机器人端的第二FOTA Agent接收到根据Websocket协议封装后的信息以后,将其解析,提 取出检查更新指令,再调用AIDL(Android Interface Definition Language)跨进程访问技术,将机器人端的第二FOTA Agent和机器人端的FOTA服务单元两个不同的进程联系起来,最终调用机器人端系统的FOTA服务单元,让FOTA服务单元把检查更新指令封装成HTTP协议,向服务器发送检查更新请求,来检查服务器端是否有新的固件安装包。
S102当接收到FOTA服务器根据检查更新请求返回的固件信息时,将固件信息回传给第三方终端。
具体的,FOTA服务器在接收检查更新请求时,会将检查后的结果(即固件信息)发送给升级端,而升级端也会将固件信息发送给第三方终端,让持有第三方终端的用户决定是否需要执行下载、升级等操作。固件信息包括:固件版本信息。
如图1所示,FOTA服务器和机器人端之间的关于固件信息的传输过程、机器人端和第三方终端关于固件信息的传输过程例子如下:
当FOTA服务器检查到新固件安装包的存在,服务器端把检查后的结果(即固件信息)封装成JSON协议,发送到机器人端的FOTA服务单元,FOTA服务单元通过解析FOTA服务器发送的JSON协议,提取出固件信息。机器人端的第二FOTA Agent把固件信息封装成WebSocket协议回传给第三方终端的第一FOTA Agent,第三方终端的第一FOTA Agent收到、解析后,在界面上显示固件信息中的内容,比如:最新的版本信息。
S103当接收到第三方终端根据固件信息发送的下载指令时,从FOTA服务器下载固件安装包。
具体的,第三方终端根据固件信息发送下载指令的实现过程可以为:第三方终端在显示固件信息的同时,会询问是否需要下载。比如:提供是否需要下载的选项,用户可以点击来确认是否发送下载指令。
例如:用户点击了代表下载的按钮,第三方终端就认为接收到了下载指令,因此向升级端发送下载指令;若点击代表不下载的按钮,则认为接收到了不下载指令,不向升级端发送任何指令,升级端未接收到任何指令,则不进行任何操作。用户可以根据自己的需求(想不想升级)、实际情况 (例如:机器人端的电量不足、信号不好等情况)来决定是否选择发送下载指令。
当升级端接收到了下载指令,那升级端就会从FOTA服务器下载固件安装包,也会将下载的固件安装包存储在本地。当成功下载好固件安装包后,会告知第三方终端,让持有第三方终端的用户决定是否需要安装。
优选地,在从FOTA服务器下载固件安装包的过程中,将下载信息反馈给第三方终端。
升级端下载的进度,通过FOTA Agent封装成Websocket消息回传给第三方终端,第三方终端可以实时查看下载进度。
具体的实际应用例子如下:
当机器人端从FOTA服务器下载固件安装包时,下载过程中机器人端的第二FOTA Agent把下载的进度、安装包的大小变化、下载成功的倒计时时间实时地按照WebSocket协议进行封装传递给第三方终端的第一FOTA Agent,用户可以通过第三方终端的第一FOTA Agent显示了解当前的下载进度和完成时间。
S104当成功下载固件安装包后,接收到第三方终端发送的安装指令时,根据固件安装包进行升级。
具体的,第三方终端在得到固件安装包下载成功的提示信息后,用户可以根据实际情况决定是否现在需要安装,可以立即发送安装指令,也可以等待一段时间之后再发送安装指令。例如:若发现升级端的电量较低,可以不立刻发送安装指令,待升级端充电充满后,再发送安装指令。
例如:机器人端的FOTA服务单元成功下载固件安装包后,调用AIDL跨进程访问技术,向机器人端的第二FOTA Agent发出等待安装的指令,机器人端的第二FOTA Agent通过WebSocket协议向第三方终端的第一FOTA Agent发出是否安装请求,第三方终端如果选择安装,第三方终端的第一FOTA Agent把安装指令封装成WebSocket协议传递到机器人端的第二FOTA Agent,机器人端的第二FOTA Agent调用AIDL跨进程访问技术将安装指令发送给机器人端的FOTA服务单元,FOTA服务单元获取安装指令 解析后,调用Android的安装接口,机器人端会自动地安装固件安装包,反之,机器人端将不执行任何操作。
本实施例基于FOTA的改进,使升级端的升级可以被远程、阶段性地控制,用户可根据实际情况和自己的需求自行决定升级端的操作;且阶段性地控制使不同工作环境和交互性能的升级端的升级更方便(例如:在不方便升级的时候就不进行升级,防止频繁升级失败)、应用更广泛。
在本公开的另一个实施例中,如图3所示,一种基于FOTA的远程升级控制方法,包括以下步骤:
S201若处于时间策略控制模式、且达到预设检查间隔时间,则向FOTA服务器发送检查更新请求;
S202当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求;
检查更新请求中携带有当前版本信息。
具体的,升级端向FOTA服务器发送检查更新请求的触发条件有2种:一种是接收到第三方终端发送的检查更新指令;另一种是升级端处于时间策略控制模式时,自动向FOTA服务器发送检查更新请求。
时间策略控制模式可以被设置为开启或关闭,在时间策略控制模式开始时,第三方终端也可以介入发送控制指令,例如:检查更新指令等。
时间策略控制模式是基于预设检查间隔时间来自动向FOTA服务器发送检查更新请求,例如:每一个小时就向FOTA服务器发送检查更新请求,预设检查间隔时间设为一小时。
升级端向FOTA服务器发送检查更新请求时,会携带自己现在安装的固件的当前版本信息,便于让FOTA服务器查找相应的最新的固件版本。
S203当接收到FOTA服务器根据检查更新请求返回的固件信息时,将固件信息回传给第三方终端。
具体的,固件信息包括:固件版本信息,供持有第三方终端的用户查看。
当接收到第三方终端根据固件信息发送的下载指令时,从FOTA服务器 下载固件安装包具体为:
S204当接收到第三方终端根据固件信息发送的下载指令时,向FOTA服务器发送携带有当前版本信息的固件下载请求;
S205当接收到FOTA服务器根据固件下载请求发送的下载地址时,与下载地址建立链接,下载固件安装包。
具体的,在升级端向FOTA服务器发送携带有固件的当前版本信息的固件下载请求时,FOTA服务器会根据当前版本信息发送对应最新的固件版本信息的下载地址,升级端与下载地址建立HTTP链接,下载固件安装包。
另外,在其它实施例中,固件信息还包括:下载地址。当接收到第三方终端根据固件信息发送的下载指令时,从FOTA服务器下载固件安装包具体为:当接收到第三方终端根据固件信息发送的下载指令时,与下载地址建立链接,下载固件安装包。
具体的,FOTA在接收到检查更新指令时,会根据升级端发送的当前版本信息将对应的最新的固件版本信息和对应的下载地址一起作为检查结果(即固件信息)反馈给升级端。
若升级端接收到下载指令,没有必要再发送下载请求至FOTA服务器,可以直接通过下载地址直接下载固件安装包,节省时间。
优选地,在从FOTA服务器下载固件安装包的过程中,将下载信息反馈给第三方终端。
具体的实际应用例子如下:
当机器人端从FOTA服务器下载固件安装包时,下载过程中机器人端的第二FOTA Agent把下载的进度、安装包的大小变化、下载成功的倒计时时间实时地按照WebSocket协议进行封装传递给第三方终端的第一FOTA Agent,用户可以通过第三方终端的第一FOTA Agent显示了解当前的下载进度和完成时间。
S206当成功下载固件安装包、且接收到第三方终端发送的安装指令时,根据固件安装包进行升级。
具体的,若下载完成了固件安装包,但没有收到安装指令,则不执行 升级操作。
基于FOTA的远程升级控制方法,还包括以下步骤:S207当接收到FOTA服务器根据检查更新请求返回的固件信息中包括更改信息时,根据更改信息,更改预设检查间隔时间或关闭时间策略控制模式。
具体的,固件信息还可包括:更改信息。当升级端自己的当前版本信息就是FOTA服务器上最新的,那升级端也就没有必要频繁地自动发送检查更新请求,因此,FOTA服务器可以通过更改信息来让升级端更改自己的预设检查间隔时间。步骤S207可以在步骤201或步骤S202后的任意时刻根据服务器返回的固件信息中包含的更改信息来执行。
例如:原本升级端上预设检查间隔时间为3小时,现在FOTA发现其固件是最新的版本,那就发送预设检查间隔时间变为10小时的更改信息,让升级端自行更改,延长其自动发送检查更新指令的时间,降低其占用FOTA服务器资源。
当然,FOTA服务器也可以发送关闭时间策略控制模式的更改信息,让升级端自行关闭时间策略控制模式。若用户觉得有必要开启它,其可以通过第三方终端控制升级端开启时间策略控制模式。
更改操作(例如:更改预设检查间隔时间或关闭时间策略控制模式)和向第三终端反馈固件信息由两个进程执行,两者之间不存在先后限制。
需要注意的是,在上述任意一个方法实施例中,若升级端在向FOTA发送检查更新请求过程中,发现检查更新请求失败的情况,如果这个检查更新请求是根据第三方终端发送的检查更新指令发送的,需要向第三方终端反馈检查更新失败的信息;若是升级终端处于时间策略控制模式自动发送的,那其可以等到下一次到达预设检查间隔时间再发送检查更新请求。当然,若在未到达预设检查间隔时间内接收到第三方终端发送的检查更新指令,那升级端也会向FOTA服务器发送检查更新请求。
在下载固件安装包的过程中,若下载失败,则删除下载失败的固件安装包。可选地,向第三方终端反馈下载失败的反馈信息。
本实施例的升级端可以自行向FOTA服务器发送检查更新请求,也可以 受第三方终端的控制,控制方式多样。且下载和安装由持有第三方终端的用户决定,阶段式控制的方式使升级端的升级可以应用于不同场景,更灵活、可靠。
在本公开的另一个实施例中,如图4所示,一种基于FOTA的远程升级控制系统,包括:第三方终端10、至少一台升级端20(图中仅示意性地画了一台)和FOTA服务器30,第三方终端10和每台升级端20通信连接,每台升级端20和FOTA服务器30通信连接。
例如:第三方终端中用于和升级端进行通信的系统服务在后台始终保持运行状态,升级端用于和第三方终端进行通信的系统服务(如下面所说的终端交互单元,也如图1中的第二FOTA Agent)也在后台始终保持运行状态,两端的这个系统服务用于交换、传递消息和指令。
升级端和第三方终端进行通信的系统服务、升级端和FOTA服务器进行通信的系统服务是两个不同的服务。例如:升级端与FOTA服务器进行通信的系统服务为下述的FOTA服务单元。
第三方终端包括:手机、平板电脑、计算机等电子设备。被控制的升级端除了机器人,也可以是手机、平板电脑、计算机等等。比如,采用手机控制其他手机做升级。
以图1为例,用户(例如:监护人)通过第三方终端,实现对机器人端系统的升级。机器人作为升级端,其系统为Android系统,第三方终端上的系统服务第一FOTA Agent在后台始终保持运行状态,机器人端的第二FOTA Agent在后台始终保持运行状态,第一FOTA Agent和第二FOTA Agent之间进行消息、控制指令的交换和传递。而FOTA服务单元则实现与FOTA服务器的通信。
升级端20包括:
终端交互单元21,用于接收第三方终端发送的检查更新指令;
FOTA服务单元22,用于当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求;以及,接收FOTA服务器根据检查更新请求返回的固件信息。
以图1进行解释,监护人通过第三方终端发出检查更新指令,通过第三方终端的第一FOTA Agent把检查更新指令按照WebSocket协议要求进行封装,再通过Websocket协议远程传输到机器人端的第二FOTA Agent,机器人端的第二FOTA Agent接收到根据Websocket协议封装后的信息以后,将其解析,提取出检查更新指令,再调用AIDL跨进程访问技术,将机器人端的第二FOTA Agent和机器人端的FOTA服务单元两个不同的进程联系起来,最终调用机器人端系统的FOTA服务单元,让FOTA服务单元把检查更新指令封装成HTTP协议,向服务器发送检查更新请求,来检查服务器端是否有新的固件安装包。
终端交互单元21,进一步用于将固件信息回传给第三方终端;以及,接收第三方终端根据固件信息发送的下载指令。
FOTA服务器在接收检查更新请求时,会将检查后的结果(即固件信息)发送给升级端,而升级端也会将固件信息发送给第三方终端,让持有第三方终端的用户决定是否需要执行下载、升级等操作。固件信息包括:固件版本信息。
如图1所示,FOTA服务器和机器人端之间的关于固件信息的传输过程、机器人端和第三方终端关于固件信息的传输过程例子如下:
当FOTA服务器检查到新固件安装包的存在,服务器端把检查后的结果(即固件信息)封装成JSON协议,发送到机器人端的FOTA服务单元,FOTA服务单元通过解析FOTA服务器发送的JSON协议,提取出固件信息。机器人端的第二FOTA Agent把固件信息封装成WebSocket协议回传给第三方终端的第一FOTA Agent,第三方终端的第一FOTA Agent收到、解析后,在界面上显示固件信息中的内容,比如:最新的版本信息。
FOTA服务单元22,进一步用于当接收到第三方终端根据固件信息发送的下载指令时,从FOTA服务器下载固件安装包。
第三方终端根据固件信息发送下载指令的实现过程可以为:第三方终端在显示固件信息的同时,会询问是否需要下载。比如:提供是否需要下载的选项,用户可以点击来确认是否发送下载指令。
例如:用户点击了代表下载的按钮,第三方终端就认为接收到了下载指令,因此向升级端发送下载指令;若点击代表不下载的按钮,则认为接收到了不下载指令,不向升级端发送任何指令,升级端未接收到任何指令,则不进行任何操作。用户可以根据自己的需求(想不想升级)、实际情况(例如:机器人端的电量不足、信号不好等情况)来决定是否选择发送下载指令。
当升级端接收到了下载指令,那升级端就会从FOTA服务器下载固件安装包,也会将下载的固件安装包存储在本地。当成功下载好固件安装包后,会告知第三方终端,让持有第三方终端的用户决定是否需要安装。
优选地,终端交互单元21,用于在从FOTA服务器下载固件安装包的过程中,将下载信息反馈给第三方终端。
具体的实际应用例子如下:
当机器人端从FOTA服务器下载固件安装包时,下载过程中机器人端的第二FOTA Agent把下载的进度、安装包的大小变化、下载成功的倒计时时间实时地按照WebSocket协议进行封装传递给第三方终端的第一FOTA Agent,用户可以通过第三方终端的第一FOTA Agent显示了解当前的下载进度和完成时间。
终端交互单元21,进一步用于接收第三方终端发送的安装指令;
FOTA服务单元22,进一步用于当成功下载固件安装包后,接收到第三方终端发送的安装指令时,根据固件安装包进行升级。
具体的,第三方终端在得到固件安装包下载成功的提示信息后,用户可以根据实际情况决定是否现在需要安装,可以立即发送安装指令,也可以等待一段时间之后再发送安装指令。例如:若发现升级端的电量较低,可以不立刻发送安装指令,待升级端充电充满后,再发送安装指令。
例如:机器人端的FOTA服务单元成功下载固件安装包后,调用AIDL跨进程访问技术,向机器人端的第二FOTA Agent发出等待安装的指令,机器人端的第二FOTA Agent通过WebSocket协议向第三方终端的第一FOTA Agent发出是否安装请求,第三方终端如果选择安装,第三方终端的 第一FOTA Agent把安装指令封装成WebSocket协议传递到机器人端的第二FOTA Agent,机器人端的第二FOTA Agent调用AIDL跨进程访问技术将安装指令发送给机器人端的FOTA服务单元,FOTA服务单元获取安装指令解析后,调用Android的安装接口,机器人端会自动地安装固件安装包,反之,机器人端将不执行任何操作。
本实施例基于FOTA的改进,使升级端的升级可以被远程、阶段性地控制,用户可根据实际情况和自己的需求自行决定升级端的操作;且阶段性地控制使不同工作环境和交互性能的升级端的升级更方便(例如:在不方便升级的时候就不进行升级,防止频繁升级失败)、应用更广泛。
在本公开的另一个实施例中,一种基于FOTA的远程升级控制系统,包括:第三方终端10、至少一台升级端20和FOTA服务器30,第三方终端10和每台升级端20通信连接,每台升级端20和FOTA服务器30通信连接。
升级端20包括:
FOTA服务单元22,用于若处于时间策略控制模式、且达到预设检查间隔时间,则向FOTA服务器发送检查更新请求。
终端交互单元21,用于接收第三方终端发送的检查更新指令;
FOTA服务单元22,用于当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求;以及,接收FOTA服务器根据检查更新请求返回的固件信息。
具体的,检查更新请求中携带有当前版本信息。升级端向FOTA服务器发送检查更新请求的触发条件有2种:一种是接收到第三方终端发送的检查更新指令;另一种是升级端处于时间策略控制模式时,自动向FOTA服务器发送检查更新请求。
时间策略控制模式可以被设置为开启或关闭,在时间策略控制模式开始时,第三方终端也可以介入发送控制指令,例如:检查更新指令等。
时间策略控制模式是基于预设检查间隔时间来自动向FOTA服务器发送检查更新请求,例如:每两个小时就向FOTA服务器发送检查更新请求,预设检查间隔时间设为一小时。
FOTA服务单元,用于当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求,以及,接收FOTA服务器根据所述检查更新请求返回的固件信息具体为:
FOTA服务单元,用于当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送携带有当前版本信息的检查更新请求;以及,接收所述FOTA服务器根据所述检查更新请求中的当前版本信息返回的固件信息。
具体的,升级端向FOTA服务器发送检查更新请求时,会携带自己现在安装的固件的当前版本信息,便于让FOTA服务器查找相应的最新的固件版本。
终端交互单元21,进一步用于将固件信息回传给第三方终端;以及,接收第三方终端根据固件信息发送的下载指令。
固件信息包括:固件版本信息,供持有第三方终端的用户查看。
FOTA服务单元22,进一步用于当接收到FOTA服务器根据检查更新请求返回的固件信息中包括更改信息时,根据更改信息,更改预设检查间隔时间或关闭时间策略控制模式。
具体的,固件信息还可包括:更改信息。当升级端自己的当前版本信息就是FOTA服务器上最新的,那升级端也就没有必要频繁地自动发送检查更新请求,因此,FOTA服务器可以通过更改信息来让升级端更改自己的预设检查间隔时间。
例如:原本升级端上预设检查间隔时间为2小时,现在FOTA发现其固件是最新的版本,那就发送预设检查间隔时间变为8小时的更改信息,让升级端自行更改,延长其自动发送检查更新指令的时间,降低其占用FOTA服务器资源。
当然,FOTA服务器也可以发送关闭时间策略控制模式的更改信息,让升级端自行关闭时间策略控制模式。若用户觉得有必要开启它,其可以通过第三方终端控制升级端开启时间策略控制模式。
FOTA服务单元22,进一步用于当接收到第三方终端根据固件信息发送的下载指令时,从FOTA服务器下载固件安装包具体为:
FOTA服务单元22,用于当接收到第三方终端根据固件信息发送的下载指令时,向FOTA服务器发送携带有当前版本信息的固件下载请求;
以及,当接收到FOTA服务器根据固件下载请求发送的下载地址时,与下载地址建立链接,下载固件安装包。
具体的,在升级端向FOTA服务器发送携带有固件的当前版本信息的固件下载请求时,FOTA服务器会根据当前版本信息发送对应最新的固件版本信息的下载地址,升级端与下载地址建立HTTP链接,下载固件安装包。
另外,在其它实施例中,固件信息还包括:下载地址。FOTA服务单元,进一步用于当接收到第三方终端根据固件信息发送的下载指令时,从FOTA服务器下载固件安装包具体为:
FOTA服务单元22,用于当接收到第三方终端根据固件信息发送的下载指令时,与下载地址建立链接,下载固件安装包。
具体的,FOTA在接收到检查更新指令时,会根据升级端发送的当前版本信息将对应的最新的固件版本信息和对应的下载地址一起作为检查结果(即固件信息)反馈给升级端。
若升级端接收到下载指令,没有必要再发送下载请求至FOTA服务器,可以直接通过下载地址直接下载固件安装包,节省时间。
优选地,终端交互单元21,进一步用于在从FOTA服务器下载固件安装包的过程中,将下载信息反馈给第三方终端。
具体的实际应用例子如下:
当机器人端从FOTA服务器下载固件安装包时,下载过程中机器人端的第二FOTA Agent把下载的进度、安装包的大小变化、下载成功的倒计时时间实时地按照WebSocket协议进行封装传递给第三方终端的第一FOTA Agent,用户可以通过第三方终端的第一FOTA Agent显示了解当前的下载进度和完成时间。
终端交互单元21,进一步用于接收第三方终端发送的安装指令;
FOTA服务单元22,进一步用于当成功下载固件安装包后,接收到第三方终端发送的安装指令时,根据固件安装包进行升级。
具体的,若下载完成了固件安装包,但没有收到安装指令,则不执行升级操作。
本实施例的升级端可以自行向FOTA服务器发送检查更新请求,也可以受第三方终端的控制,控制方式多样。且下载和安装由持有第三方终端的用户决定,阶段式控制的方式使升级端的升级可以应用于不同场景,更灵活、可靠。
需要注意的是,在上述任意一个系统实施例中,若升级端在向FOTA发送检查更新请求过程中,发现检查更新请求失败的情况,如果这个检查更新请求是根据第三方终端发送的检查更新指令发送的,需要向第三方终端反馈检查更新失败的信息;若是升级终端处于时间策略控制模式自动发送的,那其可以等到下一次到达预设检查间隔时间再发送检查更新请求。当然,若在未到达预设检查间隔时间内接收到第三方终端发送的检查更新指令,那升级端也会向FOTA服务器发送检查更新请求。
在下载固件安装包的过程中,若下载失败,则删除下载失败的固件安装包。可选地,向第三方终端反馈下载失败的反馈信息。
以上实施例仅用以说明本公开的技术方案,并非用于限定本公开的保护范围。凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,其均应涵盖在本公开的权利要求范围当中。

Claims (14)

  1. 一种基于FOTA的远程升级控制方法,其特征在于,包括:
    当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求;
    当接收到所述FOTA服务器根据所述检查更新请求返回的固件信息时,将所述固件信息回传给所述第三方终端;
    当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包;
    当成功下载所述固件安装包后,接收到所述第三方终端发送的安装指令,根据所述固件安装包进行升级。
  2. 如权利要求1所述的基于FOTA的远程升级控制方法,其特征在于,还包括:
    若处于时间策略控制模式、且达到预设检查间隔时间,则向FOTA服务器发送检查更新请求。
  3. 如权利要求2所述的基于FOTA的远程升级控制方法,其特征在于,还包括:
    当接收到所述FOTA服务器根据所述检查更新请求返回的固件信息中包括更改信息时,根据所述更改信息,更改所述预设检查间隔时间。
  4. 如权利要求1所述的基于FOTA的远程升级控制方法,其特征在于:
    所述固件信息包括:下载地址;
    所述当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包具体为:
    当接收到所述第三方终端根据所述固件信息发送的下载指令时,与所述下载地址建立链接,下载所述固件安装包。
  5. 如权利要求1所述的基于FOTA的远程升级控制方法,其特征在于,所述当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包具体为:
    当接收到所述第三方终端根据所述固件信息发送的下载指令时,向FOTA服务器发送携带有当前版本信息的固件下载请求;
    当接收到所述FOTA服务器根据所述固件下载请求发送的下载地址时,与所述下载地址建立链接,下载所述固件安装包。
  6. 如权利要求1所述的基于FOTA的远程升级控制方法,其特征在于,还包括:
    在从所述FOTA服务器下载固件安装包的过程中,将下载信息反馈给所述第三方终端。
  7. 如权利要求1所述的基于FOTA的远程升级控制方法,其特征在于:
    所述当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求具体为:
    当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送携带有当前版本信息的检查更新请求;
    所述当接收到所述FOTA服务器根据所述检查更新请求返回的固件信息时,将所述固件信息回传给所述第三方终端具体为:
    当接收到所述FOTA服务器根据所述检查更新请求中的当前版本信息返回的固件信息时,将所述固件信息回传给所述第三方终端。
  8. 一种基于FOTA的远程升级控制系统,其特征在于,包括:第三方终端、升级端和FOTA服务器,所述第三方终端和所述升级端通信连接,所述升级端和所述FOTA服务器通信连接;
    所述升级端包括:
    终端交互单元,用于接收所述第三方终端发送的检查更新指令;
    FOTA服务单元,用于当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求;以及,接收所述FOTA服务器根据所述检查更新请求返回的固件信息;
    所述终端交互单元,进一步用于将所述固件信息回传给所述第三方终端;以及,接收所述第三方终端根据所述固件信息发送的下载指令;
    所述FOTA服务单元,进一步用于当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包;
    所述终端交互单元,进一步用于接收所述第三方终端发送的安装指令;
    所述FOTA服务单元,进一步用于当成功下载所述固件安装包后,接收到所述第三方终端发送的安装指令,根据所述固件安装包进行升级。
  9. 如权利要求8所述的基于FOTA的远程升级控制系统,其特征在于:
    所述FOTA服务单元,进一步用于若处于时间策略控制模式、且达到预设检查间隔时间,则向FOTA服务器发送检查更新请求。
  10. 如权利要求9所述的基于FOTA的远程升级控制系统,其特征在于:
    所述FOTA服务单元,进一步用于当接收到所述FOTA服务器根据所述检查更新请求返回的固件信息中包括更改信息时,根据所述更改信息,更改所述预设检查间隔时间。
  11. 如权利要求8所述的基于FOTA的远程升级控制系统,其特征在于:
    所述固件信息包括:下载地址;
    所述FOTA服务单元,进一步用于当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包具体为:
    所述FOTA服务单元,用于当接收到所述第三方终端根据所述固件信息发送的下载指令时,与所述下载地址建立链接,下载所述固件安装包。
  12. 如权利要求8所述的基于FOTA的远程升级控制系统,其特征在于, 所述FOTA服务单元,进一步用于当接收到所述第三方终端根据所述固件信息发送的下载指令时,从所述FOTA服务器下载固件安装包具体为:
    所述FOTA服务单元,用于当接收到所述第三方终端根据所述固件信息发送的下载指令时,向FOTA服务器发送携带有当前版本信息的固件下载请求;
    以及,当接收到所述FOTA服务器根据所述固件下载请求发送的下载地址时,与所述下载地址建立链接,下载所述固件安装包。
  13. 如权利要求8所述的基于FOTA的远程升级控制系统,其特征在于:
    所述终端交互单元,进一步用于在从所述FOTA服务器下载固件安装包的过程中,将下载信息反馈给所述第三方终端。
  14. 如权利要求8所述的基于FOTA的远程升级控制系统,其特征在于:
    所述FOTA服务单元,用于当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送检查更新请求,以及,接收所述FOTA服务器根据所述检查更新请求返回的固件信息具体为:
    所述FOTA服务单元,用于当接收到第三方终端发送的检查更新指令时,向FOTA服务器发送携带有当前版本信息的检查更新请求;以及,接收所述FOTA服务器根据所述检查更新请求中的当前版本信息返回的固件信息。
PCT/CN2018/090523 2017-08-09 2018-06-08 一种基于fota的远程升级控制方法及系统 WO2019029253A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710677230.5 2017-08-09
CN201710677230.5A CN107332932B (zh) 2017-08-09 2017-08-09 一种基于fota的机器人系统远程升级方法

Publications (1)

Publication Number Publication Date
WO2019029253A1 true WO2019029253A1 (zh) 2019-02-14

Family

ID=60199212

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090523 WO2019029253A1 (zh) 2017-08-09 2018-06-08 一种基于fota的远程升级控制方法及系统

Country Status (2)

Country Link
CN (1) CN107332932B (zh)
WO (1) WO2019029253A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960521A (zh) * 2019-03-20 2019-07-02 北京顺丰同城科技有限公司 应用程序升级方法、装置、电子设备及存储介质
CN113076117A (zh) * 2020-01-03 2021-07-06 北京猎户星空科技有限公司 一种ota升级方法、装置、电子设备及存储介质
CN113326053A (zh) * 2021-06-18 2021-08-31 上海钛米机器人股份有限公司 一种机器人管理系统和方法

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332932B (zh) * 2017-08-09 2020-04-17 南京阿凡达机器人科技有限公司 一种基于fota的机器人系统远程升级方法
CN109814900B (zh) * 2018-12-29 2023-05-30 深圳市越疆科技股份有限公司 一种固件更新方法、装置及机器人关节的控制器
CN110096047B (zh) * 2019-04-04 2022-02-15 深圳无境智能机器人有限公司 一种机器人运动控制系统的升级方法及系统
CN110602209A (zh) * 2019-09-09 2019-12-20 合肥移瑞通信技术有限公司 一种基于dmp的固件空中升级方法及系统
CN110764803B (zh) * 2019-10-21 2023-03-31 北京云迹科技股份有限公司 一种软件的升级方法及装置
CN112468502B (zh) * 2020-11-27 2022-07-01 杭州梦视网络科技有限公司 一种基于Websocket协议的嵌入式设备远程实验方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068587A1 (en) * 2012-08-30 2014-03-06 Nishant Krishna System and method for efficient software replication
CN106250192A (zh) * 2016-08-04 2016-12-21 芯讯通无线科技(上海)有限公司 上位机的软件升级方法及系统
CN106897086A (zh) * 2017-01-13 2017-06-27 北京光年无限科技有限公司 用于升级机器人操作系统的方法、装置及系统
CN107332932A (zh) * 2017-08-09 2017-11-07 南京阿凡达机器人科技有限公司 一种基于fota的机器人系统远程升级方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068587A1 (en) * 2012-08-30 2014-03-06 Nishant Krishna System and method for efficient software replication
CN106250192A (zh) * 2016-08-04 2016-12-21 芯讯通无线科技(上海)有限公司 上位机的软件升级方法及系统
CN106897086A (zh) * 2017-01-13 2017-06-27 北京光年无限科技有限公司 用于升级机器人操作系统的方法、装置及系统
CN107332932A (zh) * 2017-08-09 2017-11-07 南京阿凡达机器人科技有限公司 一种基于fota的机器人系统远程升级方法

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960521A (zh) * 2019-03-20 2019-07-02 北京顺丰同城科技有限公司 应用程序升级方法、装置、电子设备及存储介质
CN109960521B (zh) * 2019-03-20 2022-08-02 北京顺丰同城科技有限公司 应用程序升级方法、装置、电子设备及存储介质
CN113076117A (zh) * 2020-01-03 2021-07-06 北京猎户星空科技有限公司 一种ota升级方法、装置、电子设备及存储介质
CN113076117B (zh) * 2020-01-03 2024-05-07 北京猎户星空科技有限公司 一种ota升级方法、装置、电子设备及存储介质
CN113326053A (zh) * 2021-06-18 2021-08-31 上海钛米机器人股份有限公司 一种机器人管理系统和方法

Also Published As

Publication number Publication date
CN107332932A (zh) 2017-11-07
CN107332932B (zh) 2020-04-17

Similar Documents

Publication Publication Date Title
WO2019029253A1 (zh) 一种基于fota的远程升级控制方法及系统
CN106897086B (zh) 用于升级机器人操作系统的方法、装置及系统
WO2016149908A1 (zh) 一种终端系统的升级方法、终端及系统
JP5307276B2 (ja) Usb装置の遠隔制御方法及びこれを実行するシステム
WO2008014647A1 (fr) Procédé d'entretien pour l'objet de gestion de capacité, procédé de gestion de capacité, système et terminal correspondants
CN102567061B (zh) 电视机与遥控器双向升级的方法和系统
EP3197094B1 (en) Software upgrading method and device
CN107517269B (zh) 基于vr设备的远程同步推送文件的缓存方法及系统
CN105517015A (zh) 一种wifi产品空中下载OTA升级方法、装置及终端
CN108804313B (zh) 一种远程调试程序的方法、装置和服务器
US11159372B2 (en) Method and apparatus for restoring network device to factory defaults, and network device
US9462535B2 (en) Method, apparatus and system for obtaining error code information
KR20050080504A (ko) 인터넷 영상 전화 단말기의 펌웨어 자동 업그레이드시스템 및 이의 운용방법
CN113934442A (zh) 一种软件升级方法及装置
EP3255541A1 (en) A method and system for installing software
CN102053844A (zh) 软件升级方法和采用该方法的软件升级系统
KR20180050001A (ko) 사물인터넷 기기의 펌웨어 업그레이드 시스템 및 방법
JP5610654B2 (ja) 端末管理パッケージを提供する装置及び前記端末管理パッケージを受信する方法
CN104506604A (zh) 一种车载终端自动远程升级的方法
WO2020098457A1 (zh) 窄带设备升级方法、移动终端及可读存储介质
CN107277107B (zh) 应用调试方法、装置及系统
WO2019033724A1 (zh) 一种基于浏览器的嵌入式操作方法、电视机及存储装置
KR20150075617A (ko) 푸시 메시지를 이용한 소프트웨어 업그레이드 방법 및 장치
CN108063980A (zh) 一种tv应用软件管理方法、系统及装置
CN114679439A (zh) 一种用于物联网基于蓝牙ble的辅助下载升级包方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18844452

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18844452

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 18844452

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09.12.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18844452

Country of ref document: EP

Kind code of ref document: A1