WO2017076109A1 - 一种软件升级方法及装置 - Google Patents

一种软件升级方法及装置 Download PDF

Info

Publication number
WO2017076109A1
WO2017076109A1 PCT/CN2016/096560 CN2016096560W WO2017076109A1 WO 2017076109 A1 WO2017076109 A1 WO 2017076109A1 CN 2016096560 W CN2016096560 W CN 2016096560W WO 2017076109 A1 WO2017076109 A1 WO 2017076109A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
software upgrade
upgrade package
latest
software
Prior art date
Application number
PCT/CN2016/096560
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 WO2017076109A1 publication Critical patent/WO2017076109A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a software upgrade method and apparatus.
  • the smart home system usually includes at least one gateway terminal and a plurality of control terminals for controlling the home devices, and the terminals are pre-installed with the corresponding versions of software at the factory.
  • the existing version of the software may have design flaws, or in order to extend the functionality of the existing version of the software, the existing version of the software is usually modified, thereby Generate a software upgrade package for the software. Therefore, in order to improve the function of the gateway terminal or the control terminal, it is usually necessary to perform software upgrade on the gateway terminal or the control terminal according to the software upgrade package, that is, the software upgrade package is installed to the gateway terminal or the control terminal.
  • the software upgrade mode of the existing gateway terminal or the control terminal usually includes: mode 1.
  • the user brings the gateway terminal or the control terminal to the after-sales service place, and the service personnel at the after-sales service place connects the user's gateway terminal or control terminal through the data connection line with The computer connection of the after-sales service place, the service personnel manually clicks to select the software upgrade package that has been stored in the computer, and the software upgrade package is burned to the user's gateway terminal or control terminal, and the burned-out is removed with the gateway terminal or control.
  • the data line connected to the terminal repeatedly performs the above operations to perform software upgrade on another gateway terminal or control terminal.
  • Method 2 After-sales service personnel arrive at the user's location, the after-sales service personnel manually insert the hard disk storing the software upgrade package into the user's gateway or control terminal, and the gateway terminal or control terminal reads the software upgrade package in the hard disk, and reads the completed service. The person pulls the hard disk from the gateway terminal or the control terminal, and repeats the above operation to perform software upgrade on another gateway terminal or the control terminal.
  • the existing software upgrade method has the following problems: the software upgrade process requires a lot of manual operations, and one connection operation can only perform software upgrade on one gateway terminal or control terminal, thereby making the software upgrade process very time consuming, laborious, and high software upgrade cost. Reduce user experience.
  • the embodiment of the present invention is to provide a software upgrade method and device, which are convenient and quick to perform software upgrade on the terminal.
  • the embodiment of the invention discloses a software upgrade method, and the method includes:
  • the method for obtaining the identifier information of the first terminal and the current software version information includes:
  • the embodiment of the invention further discloses a software upgrading device, the device comprising:
  • a downloading module configured to download the latest software upgrade package from the server end when confirming that the latest software upgrade package of the first terminal exists on the server end;
  • a sending module configured to send the latest software upgrade package to the first terminal by using a wireless short-range communication connection established with the first terminal.
  • the downloading module is further configured to confirm, according to the identifier information of the first terminal and the current software version information, whether the latest software upgrade package of the first terminal exists on the server end.
  • the downloading module is further configured to acquire the identification information of the first terminal and the current software version information by using a wireless short-range communication connection established with the first terminal according to an instruction input by the user; or automatically pass the first terminal Establishing a wireless short-range communication connection, acquiring identification information of the first terminal and current software version information.
  • the downloading module is further configured to confirm whether the latest software differential upgrade package of the first terminal exists on the server end.
  • the sending module is specifically configured to send the latest software upgrade package to the first terminal by using a wireless short-range communication connection directly established with the first terminal; or by using a wireless close-range established with the second terminal a communication connection, and a wireless short-range communication connection established by the second terminal with the first terminal, and sending the latest software upgrade package to the first terminal.
  • the software upgrade method and device when confirming that the latest software upgrade package of the first terminal exists on the server end, downloading the latest software upgrade package from the server end; and establishing a wireless close distance with the first terminal
  • the communication connection sends the latest software upgrade package to the first terminal. So no manual operation or only people The worker performs a small number of operations, and can upgrade the software of one or more terminals through the wireless mode, so that the software can be upgraded conveniently and quickly, the software upgrade cost is reduced, and the user experience is improved.
  • FIG. 1 is a schematic flowchart of a software upgrade method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a software upgrade apparatus according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of a first embodiment of a software upgrade method according to the present invention.
  • FIG. 4 is a schematic flowchart of a second embodiment of a software upgrade method according to a second embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an interface of a smart home system APP according to an embodiment of the present invention.
  • the mobile terminal when the mobile terminal confirms that the latest software upgrade package of the first terminal exists on the server end, the mobile terminal downloads the latest software upgrade package from the server end; the mobile terminal communicates with the first terminal through wireless proximity communication. Connect to send the latest software upgrade package to the first terminal.
  • FIG. 1 is a schematic flowchart of a software upgrade method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:
  • Step 101 When confirming that the latest software upgrade package of the first terminal exists on the server end, download the latest software upgrade package from the server end.
  • the mobile terminal downloads the latest software upgrade package from the server end.
  • the mobile terminal may be a mobile phone or may be a mobile terminal such as a tablet computer.
  • the first terminal may be a gateway terminal in a smart home system, or may also be a control terminal in a smart home system.
  • the step may include: the mobile terminal confirms whether the server has the latest software upgrade package of the first terminal; when the latest software upgrade package of the first terminal exists, the mobile terminal downloads the latest software upgrade package from the server.
  • the latest software upgrade package of the first terminal exists on the server end, specifically, according to the identifier information of the first terminal and the current software version information, it is confirmed whether the server has the latest software upgrade of the first terminal. package.
  • the model information of the first terminal and the current software version information it is confirmed whether the latest software upgrade package of the first terminal exists on the server end. If the software installed on the terminal of the same model is the same, this step can also confirm whether the latest software upgrade package of the first terminal exists on the server according to the model information of the first terminal and the current software version information.
  • the determining, according to the identifier information of the first terminal and the current software version information, whether the server has the latest software upgrade package of the first terminal may include the identifier information of the first terminal and the current software that the mobile terminal obtains.
  • the version information is sent to the server; the server parses the current software version of the first terminal.
  • the server reads the latest version number of the software upgrade package of the first terminal locally according to the identification information of the first terminal; the server determines the latest version of the first terminal Whether the version number is greater than its current version number; when the latest version number of the first terminal is greater than its current version number, the server side confirms that the latest software upgrade package of the first terminal exists locally; and the server side feeds back the latest software upgrade package to the mobile terminal.
  • Information the mobile terminal receives the latest software upgrade package information, and confirms that the server has the latest software upgrade package of the first terminal; when the latest version number of the first terminal is not greater than its current version number, the server confirms that the local does not exist.
  • the latest software upgrade package of the terminal; the server end feeds back to the mobile terminal the latest software upgrade package information of the first terminal; the mobile terminal receives the information, and confirms that the latest software upgrade package of the first terminal does not exist on the server end.
  • the mobile terminal may be a mobile terminal based on the OMA DM (Open Mobile Alliance Device Management) protocol, and the mobile terminal may interact with the server through the DM session to complete the confirmation process.
  • OMA DM Open Mobile Alliance Device Management
  • the method for obtaining the identifier information of the first terminal and the current software version information may include the first mode and the second mode.
  • the mobile terminal acquires the identification information of the first terminal and the current software version information through a wireless short-range communication connection established with the first terminal according to an instruction input by the user.
  • the mobile terminal receives an instruction input by the user, and generates an acquisition request according to the instruction;
  • the mobile terminal sends an acquisition request to the first terminal by using a wireless short-range communication connection established with the first terminal;
  • the first terminal receives the acquisition request, and
  • the mobile terminal transmits its own identification information and current software version information through a wireless short-range communication connection established with the mobile terminal.
  • the gateway terminal and the control terminal are taken as an example to describe the foregoing acquisition process, for example, the mobile terminal receives a software upgrade instruction input by the user; the mobile terminal generates an acquisition request according to the software upgrade instruction, where the acquisition request carries the gateway terminal or the terminal of the corresponding control terminal.
  • the mobile terminal sends an acquisition request to the gateway terminal through a wireless short-range communication connection established with the gateway terminal; the gateway terminal receives and parses the acquisition request to obtain the terminal address; the gateway terminal determines whether the terminal address is its own address; When the address is its own address, the gateway terminal sends its own identification information and current software version information to the mobile terminal through a wireless short-range communication connection established with the mobile terminal; the mobile terminal receives the identification information sent by the gateway terminal and the current software version information. .
  • the gateway terminal When confirming that the terminal address is not its own address, the gateway terminal transmits the acquisition request to the corresponding control terminal through a wireless short-range communication connection established with the corresponding control terminal according to the terminal address; the control terminal receives and parses the acquisition request. Obtaining a terminal address; the control terminal determines whether the terminal address is its own address; and when confirming that the terminal address is its own address, the control terminal transmits its own identification information and current software version information through wireless proximity communication established with the gateway terminal.
  • the connection is sent to the gateway terminal; the gateway terminal receives the identification information and the current software version information; the gateway terminal sends the identification information and the current software version information to the mobile terminal through a wireless short-range communication connection established with the mobile terminal; the mobile terminal receives the gateway The identification information sent by the terminal and the current software version information; when it is confirmed that the terminal address is not its own address, the control terminal does not process the acquisition request.
  • the identification information of the first terminal and the current software version information are automatically obtained through a wireless short-range communication connection established with the first terminal.
  • the mobile terminal periodically generates an acquisition request; the mobile terminal sends an acquisition request to the first terminal through a wireless short-range communication connection established with the first terminal; the first terminal receives the acquisition request, and the wireless established by the mobile terminal
  • the short-range communication connection transmits its own identification information and current software version information to the mobile terminal.
  • the obtaining process may include: the mobile terminal generates an acquisition request of the gateway terminal, and obtains the gateway terminal identification information and the current software version information according to the obtaining request; The mobile terminal generates an acquisition request of the first control terminal, and obtains the first control terminal identification information and the current software version information according to the acquisition request; the mobile terminal generates a second control terminal acquisition request, and acquires the second according to the acquisition request.
  • the terminal identification information and the current software version information are controlled; when the preset period arrives, the mobile terminal repeatedly performs the above steps.
  • the preset period can be set according to the needs of the user.
  • the user expects to confirm whether the server has the latest software upgrade package of the first terminal every month, and the preset period can be set to one month, and the user expects Every half month, it is confirmed whether there is the latest software upgrade package of the first terminal on the server side, and the preset period can be set to half a month.
  • the acquiring information of the first terminal and the current software version information may be obtained by the mobile terminal acquiring the first terminal by using a wireless short-range communication connection established with each first terminal according to an instruction input by the user. Identification information and current software version information. That is, the mobile terminal acquires the identification information of the plurality of first terminals and the current software version information at one time according to the instruction input by the user.
  • the latest software differential upgrade package refers to a data packet of a difference between the latest version software and the previous version software.
  • it is determined whether the latest software upgrade package of the first terminal exists on the server end and specifically, it is determined whether the server has the latest software complete package of the first terminal.
  • downloading the latest software upgrade package from the server end may include: the mobile terminal receiving information about the latest software upgrade package of the first terminal fed back by the server end; The mobile terminal downloads the latest software upgrade package from the server according to the latest software upgrade package.
  • the related information of the latest software upgrade package may include information such as a data volume size and a download address of the latest software upgrade package.
  • Step 102 Send the latest software upgrade package to the first terminal by using a wireless short-range communication connection established with the first terminal.
  • the mobile terminal sends the latest software upgrade package to the first terminal by using a wireless short-range communication connection established with the first terminal.
  • a wireless short-range communication connection established with the first terminal.
  • this step may include: the mobile terminal communicates wirelessly through the short distance directly established with the first terminal. Connecting, sending the latest software upgrade package to the first terminal; or, the mobile terminal sends the wireless proximity communication connection established with the second terminal, and the wireless short-range communication connection established by the second terminal with the first terminal, to the first terminal
  • the latest software upgrade package For example, the mobile terminal sends the latest software upgrade package to the gateway terminal through a wireless short-range communication connection established directly with the gateway terminal; or the mobile terminal establishes a wireless short-range communication connection with the gateway terminal, and the gateway terminal establishes with the corresponding control terminal
  • the wireless short-range communication connection sends the latest software upgrade package to the corresponding control terminal.
  • the software upgrade method provided by the embodiment of the present invention may further include: receiving, by the first terminal, a latest software upgrade package sent by the mobile terminal by using a wireless short-range communication connection established with the mobile terminal; The latest software upgrade package for software upgrades. Thereby, the first terminal can obtain its own latest software upgrade package from the mobile terminal by wireless.
  • the steps included in the step 102 and the foregoing embodiment of the present invention are further illustrated.
  • the mobile terminal when the latest software upgrade package of the gateway terminal or the corresponding control terminal is downloaded, the mobile terminal establishes a wireless short-range communication connection directly with the gateway terminal.
  • the gateway terminal receives the latest software upgrade package and terminal address information of the gateway terminal or the corresponding control terminal;
  • the gateway terminal parses the terminal address information to obtain the terminal Address;
  • the gateway terminal determines whether the terminal address is its own address; when it is confirmed that it is its own address, the gateway terminal performs software upgrade according to the latest software upgrade package received.
  • the gateway terminal sends the received latest software upgrade package and terminal address information to the corresponding control terminal according to the terminal address through the wireless short-range communication connection established directly with the corresponding control terminal; the control terminal receives The latest software upgrade package and terminal address information; the control terminal parses the terminal address information to obtain a terminal address; the control terminal determines whether the terminal address is its own address; and when the confirmation is its own address, the control terminal is based on the latest received Software upgrade package for software upgrade; otherwise, no software upgrade.
  • the first terminal performs software upgrade according to the latest software upgrade package received, and may include: the first terminal checks the integrity of the latest software upgrade package received; and the first terminal verifies the latest software upgrade received. Whether the package is its own software upgrade package; when the verification passes, the first terminal restarts itself and enters the recovery mode to install the latest software upgrade package.
  • the first terminal may use the Message Digest Algorithm (MD5) algorithm to verify the integrity of the latest software upgrade package and whether it is a software upgrade package.
  • MD5 Message Digest Algorithm
  • the software upgrade method provided by the embodiment of the present invention may further include: after completing the software upgrade, the first terminal restarts itself and sends registration information.
  • the wireless local area network can be re-established.
  • the gateway terminal or the control terminal restarts itself, and each control terminal sends its own address information to the gateway terminal.
  • the gateway terminal sends its own address information to the mobile terminal.
  • the software upgrade provided by the embodiment of the present invention is required.
  • the method may further include: the mobile terminal feeding back the received upgrade result information of the first terminal to the server end.
  • the gateway terminal or the control terminal sends the upgrade result information to the mobile terminal; the mobile terminal receives the upgrade result information, and sends the upgrade result information to the server.
  • the wireless short-range communication connection may be based on a wireless short-range communication technology such as a Z-wave technology, a Zigbee technology, or a WiFi (Wireless Fidelity) technology.
  • a wireless short-range communication technology such as a Z-wave technology, a Zigbee technology, or a WiFi (Wireless Fidelity) technology.
  • the present invention discloses a software upgrading apparatus.
  • the software upgrading apparatus includes:
  • the downloading module 201 is configured to download the latest software upgrade package from the server end when it is confirmed that the latest software upgrade package of the first terminal exists on the server end;
  • the sending module 202 is configured to send the latest software upgrade package to the first terminal by using a wireless short-range communication connection established with the first terminal.
  • the downloading module 201 is further configured to confirm, according to the identifier information of the first terminal and the current software version information, whether the latest software upgrade package of the first terminal exists on the server end.
  • the downloading module 201 is further configured to acquire the identification information of the first terminal and the current software version information by using a wireless short-range communication connection established with the first terminal according to an instruction input by the user; or The wireless short-range communication connection established by the first terminal acquires the identification information of the first terminal and the current software version information.
  • the downloading module 201 is further configured to confirm whether the latest software differential upgrade package of the first terminal exists on the server end.
  • the sending module 202 is specifically configured to send the latest software upgrade package to the first terminal by using a wireless short-range communication connection established directly with the first terminal; or, by establishing with the second terminal a wireless short-range communication connection, and a wireless short-range communication connection established by the second terminal with the first terminal, to send the latest software upgrade package to the first terminal.
  • the download module 201 and the sending module 202 may each be a central processing unit (CPU), a microprocessor (Micro Processor Unit, MPU), and a digital signal processor (Digital Signal Processor) located in the terminal. , DSP), or Field Programmable Gate Array (FPGA) implementation.
  • CPU central processing unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • FIG. 3 is a schematic flowchart of a first embodiment of a software upgrade method according to the present invention. As shown in FIG. 3, specific steps include:
  • Step 301 The mobile terminal acquires the identification information of the first terminal and the current software version information by using a wireless short-range communication connection established with the first terminal.
  • the mobile terminal obtains the identification information of the first terminal and the current software version information by using a wireless short-range communication connection established with the first terminal according to an instruction input by the user. Or the mobile terminal can automatically obtain the identification information of the first terminal by using a wireless short-range communication connection established with the first terminal. And current software version information.
  • Step 302 The mobile terminal confirms whether the latest software upgrade package of the first terminal exists on the server end according to the identification information of the first terminal and the current software version information.
  • the step may include: the mobile terminal sends the acquired identifier information of the first terminal and the current software version information to the server; the server parses the current software version information of the first terminal, and obtains the software installed by the first terminal.
  • the current version number the server side reads the latest version number of the software upgrade package of the first terminal locally according to the identification information of the first terminal; the server determines whether the latest version number of the first terminal is greater than its current version number; When the latest version number of the first terminal is greater than its current version number, the server confirms that the latest software upgrade package of the first terminal exists locally; the server end feeds back information about the latest software upgrade package to the mobile terminal; and the mobile terminal receives the latest software upgrade package.
  • the server confirms that the latest software upgrade package of the first terminal does not exist locally; Feeding the mobile terminal with the latest software upgrade package that does not exist for the first terminal Information; mobile terminal receives the information, and the latest software to check the server does not exist a first terminal upgrade package.
  • Step 303 When the latest software upgrade package of the first terminal exists, the mobile terminal downloads the latest software upgrade package from the server end.
  • the step may include: the mobile terminal receives information about the latest software upgrade package of the first terminal that is fed back by the server; and the mobile terminal downloads the latest software upgrade package from the server according to the latest software upgrade package.
  • the related information of the latest software upgrade package may include information such as a data volume size and a download address of the latest software upgrade package.
  • Step 304 The mobile terminal sends the latest software upgrade package to the first terminal by using a wireless short-range communication connection established with the first terminal.
  • the mobile terminal sends the latest software upgrade package to the first terminal by using a wireless short-range communication connection established directly with the first terminal.
  • the mobile terminal may send the latest software upgrade package to the first terminal by using a wireless short-range communication connection established with the second terminal and a wireless short-range communication connection established by the second terminal with the first terminal.
  • Step 305 The first terminal receives the latest software upgrade package, and performs software upgrade according to the latest software upgrade package.
  • the step may include: the first terminal receives the latest software upgrade package; the first terminal checks the integrity of the latest software upgrade package received; and the first terminal checks whether the latest software upgrade package received is its own software. Upgrade package; when the verification passes, the first terminal restarts itself and enters the Recovery mode to install the latest software upgrade package.
  • Step 306 The first terminal restarts itself and sends registration information.
  • the wireless local area network may be re-established.
  • the gateway terminal or the control terminal restarts itself, and each control terminal sends itself to the gateway terminal.
  • the address information the gateway terminal sends its own address information to the mobile terminal.
  • Step 307 The first terminal sends the upgrade result information to the mobile terminal.
  • Step 308 The mobile terminal feeds back the received upgrade result information of the first terminal to the server.
  • FIG. 4 is a schematic flowchart of a second embodiment of a software upgrade method according to the present invention. As shown in FIG. 4, a software upgrade is performed on a television control terminal of a smart home system, and specific steps include:
  • Step 401 The mobile phone receives a software upgrade command of the television control terminal input by the user.
  • the smart home system further includes a terminal such as a gateway terminal, an air conditioning control terminal, and a refrigerator control terminal, and the gateway terminal builds a wireless local area network based on the Z-wave technology and each control terminal group, and the gateway terminal is further based on the Z-wave technology and the mobile phone.
  • a smart home system APP Application
  • the Z-wave technology is an emerging radio frequency-based, low-cost, low-power, high-reliability, network-suitable short-range wireless communication technology.
  • FIG. 5 is an interface diagram of the smart home system APP, and the user can input control TV, air conditioner or mobile phone by clicking the TV control terminal button 501, the air conditioning control terminal button 502 or the refrigerator control terminal button 503.
  • the control command of the refrigerator, the smart home system APP sends a control command input by the user to the gateway terminal, and the gateway terminal is responsible for forwarding the control command to each control terminal.
  • the interface of the smart home system APP may further include: a detection software upgrade button 504 of each terminal of the smart home system, and the step may specifically be: the user upgrades the button by clicking the detection software of the television control terminal. Enter the software upgrade command of the TV control terminal to the mobile phone; the mobile phone receives the command.
  • Step 402 The mobile phone sends an acquisition command to the television control terminal through the gateway terminal according to the software upgrade command of the television control terminal.
  • the first software upgrade client is also installed on the mobile phone.
  • the first software upgrade client generates the identifier information and the current software version information for acquiring the television control terminal according to the software upgrade command of the television control terminal.
  • the obtaining command; the first software upgrade client sends the obtaining command to the television control terminal through the gateway terminal.
  • Step 403 The TV control terminal receives the acquisition command, and sends its own identification information and current software version information to the mobile phone through the gateway terminal.
  • the second control software client is installed in the television control terminal, and the second software upgrade client of the television control terminal receives the acquisition command; the second software upgrade client reads the identification information of the television control terminal and The current software version information; the second software upgrade client sends the read identification information and the current software version information to the mobile phone through the gateway terminal.
  • Step 404 The mobile phone initiates a DM session, and according to the received identification information of the TV control terminal and the current software version information, whether the server has the latest software differential upgrade package of the TV control terminal.
  • the step may include: the first software upgrade client of the mobile phone receives the identification information of the television control terminal and the current software version information; the first software upgrade client initiates the DM session to interact with the server, and sends the television control terminal to the server.
  • the first software upgrade customer The initiation of the DM session and the server-side interaction means that the first software upgrade client communicates with the server based on the OMA DM protocol.
  • Step 405 The mobile phone receives the download description information sent by the server, confirms that the server has the latest software differential upgrade package of the TV control terminal, and downloads the latest software differential upgrade package of the TV control terminal from the server according to the information.
  • the step may include: the first software upgrade client of the mobile phone receives the download description information sent by the server, and confirms that the server has the latest software differential upgrade package of the TV control terminal; the first software upgrade client receives the information from the server according to the information. Download the latest software differential upgrade package for the TV control terminal.
  • the download description information may include information such as a data size and a download address of the latest software differential upgrade package of the television control terminal.
  • Step 406 The mobile phone sends the latest software differential upgrade package of the TV control terminal to the TV control terminal through the gateway terminal.
  • the first software upgrade client of the mobile phone sends the latest software differential upgrade package of the TV control terminal to the television control terminal through the gateway terminal.
  • Step 407 The TV control terminal checks the received latest software differential upgrade package.
  • the step may include: the second software upgrade client of the television control terminal receives the latest software differential upgrade package; and the second software upgrade client checks the latest software differential upgrade package.
  • Step 408 After the verification is passed, the TV control terminal restarts itself, and enters the Recovery mode to perform software upgrade according to the latest software differential upgrade package.
  • the step may include: after the verification is passed, the second software upgrade client of the TV control terminal restarts the TV control terminal, enters the Recovery mode of the TV control terminal, and performs software upgrade according to the latest software differential upgrade package.
  • Step 409 After the upgrade is completed, the TV control terminal restarts itself, and sends registration information to the gateway terminal, and sends the upgrade result information to the mobile phone through the gateway terminal.
  • the step may include: after the upgrade is completed, the second software upgrade client of the TV control terminal restarts the TV control terminal, and sends registration information to the gateway terminal, and sends the upgrade result information to the mobile phone through the gateway terminal.
  • Step 410 The mobile phone feeds back the received upgrade result information to the server.
  • the step may include: the first software upgrade client of the mobile phone feeds back the upgrade result information received by the mobile terminal to the server.
  • the first software upgrade client can also feed back the received upgrade result information to the smart home system APP.
  • the software upgrade of the terminal of the smart home system is implemented through the air interface upgrade mode, thereby making the software upgrade process more convenient and faster, reducing the software upgrade cost, and improving the user experience.
  • the interface of the smart home system APP can also be set, and the one-click detection upgrade button 505, when the user clicks the one-button detection upgrade button, the first software upgrade client of the mobile phone will Software upgrade for all terminals in the smart home system, each terminal software upgrade process can be combined with the above The software upgrade process of the control terminal is the same.
  • the one-click detection upgrade process may include: the mobile phone receives a one-click detection upgrade command input by the user; the first software upgrade client of the mobile phone sends the gateway terminal and the acquisition command of each control terminal to the gateway terminal; and the gateway terminal Forwarding the acquisition command of each control terminal to each control terminal; the gateway terminal and the second software upgrade client of each control terminal send their own identification information and current software version information to the mobile phone; the first software upgrade client of the mobile phone initiates a DM session According to the received identification information and the current software version information, query whether the server terminal has the latest software differential upgrade package of the gateway terminal and each control terminal; the first software upgrade client of the mobile phone receives the download description information sent by the server, and confirms the server.
  • the latest software differential upgrade package exists, and the latest software differential upgrade package of the gateway terminal and/or the corresponding control terminal is downloaded from the server according to the information; the first software upgrade client of the mobile phone sends the gateway terminal to the gateway terminal, and/or correspondingly Control terminal's latest soft a differential upgrade package; the gateway terminal forwards the latest software differential upgrade package of each control terminal to the corresponding control terminal; the gateway terminal and the second software upgrade client of each control terminal perform software upgrade according to the latest software differential upgrade package received by itself .
  • the interface of the smart home system APP can also be set, and the periodic automatic polling detection upgrade button 506 is set.
  • the first software upgrade client of the mobile phone is based on the user.
  • the instruction setting detects the upgrade period, and periodically upgrades each terminal in the smart home system according to the cycle, and the process of upgrading each terminal software may be the same as the software upgrade process of the above TV control terminal.
  • the software upgrade of each terminal in the smart home system periodically according to the set period may include: the mobile phone receives a setting period automatic polling detection upgrade command input by the user; and the first software upgrade client of the mobile phone sends the gateway terminal to the gateway terminal. Sending, the gateway terminal and the obtaining command of each control terminal; the gateway terminal forwards the obtaining command of each control terminal to each control terminal; the gateway terminal and the second software upgrading client of each control terminal send their own identification information and current software to the mobile phone Version information; the first software upgrade client of the mobile phone initiates a DM session, and according to the received identification information and current software version information, queries whether the server terminal has the latest software differential upgrade package of the gateway terminal and each control terminal; the first software of the mobile phone The upgrade client receives the download description information sent by the server, confirms that the latest software differential upgrade package exists on the server side, and downloads the latest software differential upgrade package of the gateway terminal and/or the corresponding control terminal from the server according to the information; the first software of the mobile phone Upgrade guest Sending the latest software
  • the invention is applicable to the field of communication technology, and is used for realizing convenient and fast software upgrade to the terminal and reducing software. Upgrade costs and improve user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种软件升级方法,该方法包括:在确认服务器端存在第一终端的最新软件升级包时,从服务器端下载最新软件升级包(101);通过与第一终端建立的无线近距离通信连接,向第一终端发送最新软件升级包(102)。还同时公开了一种软件升级装置。

Description

一种软件升级方法及装置 技术领域
本发明涉及通信技术领域,尤其涉及一种软件升级方法及装置。
背景技术
智能家居系统通常至少包括一个网关终端,及多个用于控制家居设备的控制终端,且这些终端在出厂时已预先安装相应版本的软件。但由于网关终端或控制终端已安装的软件可能存在设计缺陷,即已有版本的软件可能存在设计缺陷,或为了扩展已有版本的软件的功能,通常会对已有版本的软件进行修改,从而生成该软件的软件升级包。因此,为了完善网关终端或控制终端的功能,通常需根据软件升级包对网关终端或控制终端进行软件升级,即将软件升级包安装至网关终端或控制终端。
且现有网关终端或控制终端的软件升级方式通常包括,方式一、用户将网关终端或控制终端带到售后服务地,售后服务地的服务人员通过数据连接线将用户的网关终端或控制终端与售后服务地的计算机连接,服务人员手动点击选择已存储在计算机中的软件升级包,将该软件升级包烧录至用户的网关终端或控制终端中,烧录完毕移除与该网关终端或控制终端连接的数据线,重复执行上述操作对另一个网关终端或控制终端进行软件升级。方式二、售后服务人员到用户所在地,售后服务人员手动将存储有软件升级包的硬盘插入至用户的网关或控制终端上,网关终端或控制终端读取硬盘中的软件升级包,读取完毕服务人员将硬盘从该网关终端或控制终端拔出,重复执行上述操作对另一个网关终端或控制终端进行软件升级。但现有软件升级方式存在如下问题:软件升级过程需人工执行很多操作,一次连接操作只能对一个网关终端或控制终端进行软件升级,从而使得软件升级过程非常费时、费力,软件升级成本高,降低用户体验度。
发明内容
有鉴于此,本发明实施例期望提供一种软件升级方法及装置,以方便、快捷地对终端进行软件升级。
为达到上述目的,本发明的技术方案是这样实现的:
本发明实施例公开了一种软件升级方法,所述方法包括:
在确认服务器端存在第一终端的最新软件升级包时,从所述服务器端下载所述最新软件升级包;
通过与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包。
确认所述服务器端是否存在第一终端的最新软件升级包,具体为:
根据第一终端的标识信息和当前软件版本信息,确认服务器端是否存在所述第一终端的最新软件升级包。
所述第一终端的标识信息和当前软件版本信息的获取方式,包括:
根据用户输入的指令,通过与第一终端建立的无线近距离通信连接,获取所述第一终端的标识信息和当前软件版本信息;或者,
自动通过与第一终端建立的无线近距离通信连接,获取所述第一终端的标识信息和当前软件版本信息。
确认所述服务器端是否存在第一终端的最新软件升级包,具体为:
确认所述服务器端是否存在第一终端的最新软件差分升级包。
所述通过与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包,包括:
通过与所述第一终端直接建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包;或者,
通过与第二终端建立的无线近距离通信连接,及所述第二终端与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包。
本发明实施例还公开了一种软件升级装置,所述装置包括:
下载模块,用于在确认服务器端存在第一终端的最新软件升级包时,从所述服务器端下载所述最新软件升级包;
发送模块,用于通过与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包。
所述下载模块,还用于根据第一终端的标识信息和当前软件版本信息,确认服务器端是否存在所述第一终端的最新软件升级包。
所述下载模块,还用于根据用户输入的指令,通过与第一终端建立的无线近距离通信连接,获取所述第一终端的标识信息和当前软件版本信息;或者,自动通过与第一终端建立的无线近距离通信连接,获取所述第一终端的标识信息和当前软件版本信息。
所述下载模块,还用于确认所述服务器端是否存在第一终端的最新软件差分升级包。
所述发送模块,具体用于通过与所述第一终端直接建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包;或者,通过与第二终端建立的无线近距离通信连接,及所述第二终端与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包。
本发明实施例提供的一种软件升级方法及装置,在确认服务器端存在第一终端的最新软件升级包时,从服务器端下载所述最新软件升级包;通过与第一终端建立的无线近距离通信连接,向第一终端发送最新软件升级包。如此,无需人工操作或仅需人 工执行少量操作,通过无线方式即能对一个或多个终端进行软件升级,实现能方便、快捷地对终端进行软件升级,降低软件升级成本,提高用户的体验度。
附图说明
图1为本发明实施例提供的一种软件升级方法的流程示意图;
图2为本发明实施例提供的一种软件升级装置的结构示意图;
图3为本发明提供的一种软件升级方法具体实施例一的流程示意图;
图4为本发明提供的一种软件升级方法具体实施例二的流程示意图;
图5为本发明实施例提供的智能家居系统APP的界面示意图。
具体实施方式
在本发明实施例中,在移动终端确认服务器端存在第一终端的最新软件升级包时,移动终端从服务器端下载所述最新软件升级包;移动终端通过与第一终端建立的无线近距离通信连接,向第一终端发送最新软件升级包。
下面结合附图和具体实施例,对本发明进一步详细说明。
图1为本发明实施例提供的一种软件升级方法的流程示意图,如图1所示,该方法包括:
步骤101:在确认服务器端存在第一终端的最新软件升级包时,从服务器端下载最新软件升级包。
具体地,本步骤可以为,在移动终端确认服务器端存在第一终端的最新软件升级包时,移动终端从服务器端下载最新软件升级包。
其中,所述移动终端可以为手机,或者可以为平板电脑等移动终端。所述第一终端可以为智能家居系统中的网关终端,或者还可以为智能家居系统中的控制终端。
具体地,本步骤可以包括,移动终端确认服务器端是否存在第一终端的最新软件升级包;在存在第一终端的最新软件升级包时,移动终端从服务器端下载最新软件升级包。
需说明的是,所述确认服务器端是否存在第一终端的最新软件升级包,具体可以为,根据第一终端的标识信息和当前软件版本信息,确认服务器端是否存在第一终端的最新软件升级包。当然还可以为,根据第一终端的型号信息和当前软件版本信息,确认服务器端是否存在第一终端的最新软件升级包。如在同样型号的终端所安装的软件一样时,该步骤还可以根据第一终端的型号信息和当前软件版本信息,确认服务器端是否存在第一终端的最新软件升级包。
具体地,所述根据第一终端的标识信息和当前软件版本信息,确认服务器端是否存在第一终端的最新软件升级包,可以包括,移动终端将获取到的第一终端的标识信息和当前软件版本信息发送给服务器端;服务器端解析第一终端的当前软件版本信 息,获得第一终端已安装软件的当前版本号;服务器端根据该第一终端的标识信息,从本地读取出第一终端的软件升级包的最新版本号;服务器端判断第一终端的最新版本号是否大于其当前版本号;在第一终端的最新版本号大于其当前版本号时,服务器端确认本地存在第一终端的最新软件升级包;服务器端向移动终端反馈最新软件升级包的相关信息;移动终端接收最新软件升级包的相关信息,并确认服务器端存在第一终端的最新软件升级包;在第一终端的最新版本号不大于其当前版本号时,服务器端确认本地不存在第一终端的最新软件升级包;服务器端向移动终端反馈不存在第一终端的最新软件升级包信息;移动终端接收该信息,并确认服务器端不存在第一终端的最新软件升级包。
在实际应用中,移动终端可以为基于OMA DM(Open Mobile Alliance Device Management)协议的移动终端,该移动终端可以通过DM会话与服务器端进行交互,完成上述确认过程。
其中,所述第一终端的标识信息和当前软件版本信息的获取方式,可以包括方式一、方式二。方式一,移动终端根据用户输入的指令,通过与第一终端建立的无线近距离通信连接,获取第一终端的标识信息和当前软件版本信息。具体地,移动终端接收用户输入的指令,并根据该指令生成获取请求;移动终端通过与第一终端建立的无线近距离通信连接,向第一终端发送获取请求;第一终端接收获取请求,并通过与移动终端建立的无线近距离通信连接,向移动终端发送自身的标识信息和当前软件版本信息。
这里以网关终端及控制终端为例说明上述获取过程,如移动终端接收用户输入的软件升级指令;移动终端根据该软件升级指令生成获取请求,该获取请求中携带有网关终端或相应控制终端的终端地址;移动终端通过与网关终端建立的无线近距离通信连接,向网关终端发送获取请求;网关终端接收并解析该获取请求,获得终端地址;网关终端判断终端地址是否为自身的地址;在确认终端地址是自身的地址时,网关终端将自身的标识信息和当前软件版本信息,通过与移动终端建立的无线近距离通信连接发送给移动终端;移动终端接收网关终端发送的标识信息和当前软件版本信息。
在确认终端地址不是自身的地址时,网关终端根据终端地址,通过与相应的控制终端建立的无线近距离通信连接,将该获取请求发送给相应的控制终端;该控制终端接收并解析该获取请求,获得终端地址;该控制终端判断终端地址是否为自身的地址;在确认终端地址是自身的地址时,控制终端将自身的标识信息和当前软件版本信息,通过与网关终端建立的无线近距离通信连接发送给网关终端;网关终端接收该标识信息和当前软件版本信息;网关终端通过与移动终端建立的无线近距离通信连接,将该标识信息和当前软件版本信息发送给移动终端;移动终端接收网关终端发送的标识信息和当前软件版本信息;在确认终端地址不是自身的地址时,控制终端不对该获取请求做处理。
方式二,自动通过与第一终端建立的无线近距离通信连接,获取第一终端的标识信息和当前软件版本信息。具体地,移动终端周期性地生成获取请求;移动终端通过与第一终端建立的无线近距离通信连接,向第一终端发送获取请求;第一终端接收获取请求,并通过与移动终端建立的无线近距离通信连接,向移动终端发送自身的标识信息和当前软件版本信息。
如,在智能家居系统中包括一个网关终端和两个控制终端的情况下,上述获取过程可以包括,移动终端生成网关终端的获取请求,根据该获取请求获取网关终端标识信息和当前软件版本信息;移动终端生成第一个控制终端的获取请求,根据该获取请求获取第一个控制终端标识信息和当前软件版本信息;移动终端生成第二个控制终端的获取请求,根据该获取请求获取第二个控制终端标识信息和当前软件版本信息;在预设周期到达时,移动终端重复执行上述步骤。其中,所述预设周期可以根据用户的需求进行设定,如用户期望每个月确认一次服务器端是否存在第一终端的最新软件升级包,该预设周期即可设置为一个月,用户期望每半个月确认一次服务器端是否存在第一终端的最新软件升级包,该预设周期即可设置为半个月。
当然,第一终端的标识信息和当前软件版本信息的获取方式还可以为,移动终端根据用户输入的指令,通过分别与各个第一终端建立的无线近距离通信连接,分别获取各个第一终端的标识信息和当前软件版本信息。即移动终端根据用户输入的指令,一次性获取多个第一终端的标识信息和当前软件版本信息。
需说明的是,所述确认服务器端是否存在第一终端的最新软件升级包,具体还可以为,确认服务器端是否存在第一终端的最新软件差分升级包。所述最新软件差分升级包是指,最新版本软件与上一版本软件之间差异部分的数据包。当然,所述确认服务器端是否存在第一终端的最新软件升级包,具体还可以为,确认服务器端是否存在第一终端的最新软件完整包。
需说明的是,所述在存在第一终端的最新软件升级包时,从服务器端下载最新软件升级包,可以包括,移动终端接收服务器端反馈的第一终端的最新软件升级包的相关信息;移动终端根据该最新软件升级包的相关信息,从服务器端下载该最新软件升级包。其中,所述最新软件升级包的相关信息可以包括,最新软件升级包的数据量大小、下载地址等信息。
步骤102:通过与第一终端建立的无线近距离通信连接,向第一终端发送最新软件升级包。
具体地,本步骤可以为,移动终端通过与第一终端建立的无线近距离通信连接,向第一终端发送最新软件升级包。如此,无需人工操作或仅需人工执行少量操作,通过无线方式即能对一个或多个终端进行软件升级,实现能有方便、快捷地对终端进行软件升级,降低软件升级成本,提高用户的体验度。
具体地,本步骤可以包括,移动终端通过与第一终端直接建立的无线近距离通信 连接,向第一终端发送最新软件升级包;或者,移动终端通过与第二终端建立的无线近距离通信连接,及第二终端与第一终端建立的无线近距离通信连接,向第一终端发送最新软件升级包。如,移动终端通过与网关终端直接建立的无线近距离通信连接,向网关终端发送最新软件升级包;或者,移动终端通过与网关终端建立的无线近距离通信连接,及网关终端与相应控制终端建立的无线近距离通信连接,向相应控制终端发送最新软件升级包。
需说明的是,本发明实施例提供的软件升级方法还可以包括,第一终端通过与移动终端建立的无线近距离通信连接,接收移动终端发送的最新软件升级包;第一终端根据接收到的最新软件升级包进行软件升级。从而使得第一终端可以通过无线方式,从移动终端获得自身的最新软件升级包。
这里举例说明步骤102及上述所述的本发明实施例还包括的步骤,如在下载完网关终端或相应控制终端的最新软件升级包时,移动终端通过与网关终端直接建立的无线近距离通信连接,向网关终端发送网关终端或相应控制终端的最新软件升级包及终端地址信息;网关终端接收网关终端或相应控制终端的最新软件升级包及终端地址信息;网关终端解析该终端地址信息,获得终端地址;网关终端判断该终端地址是否为自身的地址;在确认是自身地址时,网关终端根据接收到的最新软件升级包进行软件升级。
在确认不是自身地址时,网关终端根据终端地址,通过与相应的控制终端直接建立的无线近距离通信连接,向相应的控制终端发送接收到的最新软件升级包及终端地址信息;该控制终端接收该最新软件升级包及终端地址信息;该控制终端解析该终端地址信息,获得终端地址;该控制终端判断该终端地址是否为自身的地址;在确认是自身地址时,控制终端根据接收到的最新软件升级包进行软件升级;否则,不进行软件升级。
具体地,所述第一终端根据接收到的最新软件升级包进行软件升级,可以包括,第一终端校验接收到的最新软件升级包的完整性;第一终端校验接收到的最新软件升级包是否为自己的软件升级包;在校验均通过时,第一终端重启自身,并进入恢复(Recovery)模式安装最新软件升级包。其中,第一终端可以采用消息摘要算法第五版(Message Digest Algorithm,MD5)算法校验最新软件升级包的完整性,及是否为自己的软件升级包。
需说明的是,本发明实施例提供的软件升级方法还可以包括,在完成软件升级后,第一终端重启自身并发送注册信息。如为了在软件升级后,使得智能家居系统的网关终端或控制终端,可以重新组建成无线局域网,在完成软件升级后,网关终端或控制终端重启自身,各个控制终端向网关终端发送自身的地址信息,网关终端向移动终端发送自身的地址信息。
需说明的是,为了向服务器端反馈软件升级结果,本发明实施例提供的软件升级 方法,还可以包括,移动终端向服务器端反馈接收到的第一终端的升级结果信息。如在完成软件升级后,网关终端或控制终端向移动终端发送升级结果信息;移动终端接收该升级结果信息,并向服务器端发送该升级结果信息。
需说明的是,本发明实施例所述的无线近距离通信连接,可以基于Z-wave技术、Zigbee技术、WiFi(Wireless Fidelity,无线保真)技术等无线近距离通信技术。
为了实现上述方法,本发明公开了一种软件升级装置。
图2为本发明实施例提供的一种软件升级装置的结构示意图,如图2所示,所述软件升级装置包括:
下载模块201,用于在确认服务器端存在第一终端的最新软件升级包时,从所述服务器端下载所述最新软件升级包;
发送模块202,用于通过与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包。
进一步,所述下载模块201,还用于根据第一终端的标识信息和当前软件版本信息,确认服务器端是否存在所述第一终端的最新软件升级包。
进一步,所述下载模块201,还用于根据用户输入的指令,通过与第一终端建立的无线近距离通信连接,获取所述第一终端的标识信息和当前软件版本信息;或者,自动通过与第一终端建立的无线近距离通信连接,获取所述第一终端的标识信息和当前软件版本信息。
进一步,所述下载模块201,还用于确认所述服务器端是否存在第一终端的最新软件差分升级包。
进一步,所述发送模块202,具体用于通过与所述第一终端直接建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包;或者,通过与第二终端建立的无线近距离通信连接,及所述第二终端与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包。
在实际应用中,所述下载模块201、发送模块202均可由位于终端中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。
图3为本发明提供的一种软件升级方法具体实施例一的流程示意图,如图3所示,具体步骤包括:
步骤301:移动终端通过与第一终端建立的无线近距离通信连接,获取第一终端的标识信息和当前软件版本信息。
具体地,本步骤可以为,移动终端根据用户输入的指令,通过与第一终端建立的无线近距离通信连接,获取第一终端的标识信息和当前软件版本信息。或者可以为,移动终端自动通过与第一终端建立的无线近距离通信连接,获取第一终端的标识信息 和当前软件版本信息。
步骤302:移动终端根据第一终端的标识信息和当前软件版本信息,确认服务器端是否存在第一终端的最新软件升级包。
具体地,本步骤可以包括,移动终端将获取到的第一终端的标识信息和当前软件版本信息发送给服务器端;服务器端解析第一终端的当前软件版本信息,获得第一终端已安装软件的当前版本号;服务器端根据该第一终端的标识信息,从本地读取出第一终端的软件升级包的最新版本号;服务器端判断第一终端的最新版本号是否大于其当前版本号;在第一终端的最新版本号大于其当前版本号时,服务器端确认本地存在第一终端的最新软件升级包;服务器端向移动终端反馈最新软件升级包的相关信息;移动终端接收最新软件升级包的相关信息,并确认服务器端存在第一终端的最新软件升级包;在第一终端的最新版本号不大于其当前版本号时,服务器端确认本地不存在第一终端的最新软件升级包;服务器端向移动终端反馈不存在第一终端的最新软件升级包信息;移动终端接收该信息,并确认服务器端不存在第一终端的最新软件升级包。
步骤303:在存在第一终端的最新软件升级包时,移动终端从服务器端下载最新软件升级包。
具体地,本步骤可以包括,移动终端接收服务器端反馈的第一终端的最新软件升级包的相关信息;移动终端根据该最新软件升级包的相关信息,从服务器端下载该最新软件升级包。其中,所述最新软件升级包的相关信息可以包括,最新软件升级包的数据量大小、下载地址等信息。
步骤304:移动终端通过与第一终端建立的无线近距离通信连接,向第一终端发送最新软件升级包。
具体地,本步骤可以为,移动终端通过与第一终端直接建立的无线近距离通信连接,向第一终端发送所述最新软件升级包。或者可以为,移动终端通过与第二终端建立的无线近距离通信连接,及第二终端与第一终端建立的无线近距离通信连接,向第一终端发送最新软件升级包。
步骤305:第一终端接收最新软件升级包,并根据该最新软件升级包进行软件升级。
具体地,本步骤可以包括,第一终端接收最新软件升级包;第一终端校验接收到的最新软件升级包的完整性;第一终端校验接收到的最新软件升级包是否为自己的软件升级包;在校验均通过时,第一终端重启自身,并进入Recovery模式安装最新软件升级包。
步骤306:第一终端重启自身并发送注册信息。
具体地,如为了在软件升级后,使得智能家居系统的网关终端或控制终端,可以重新组建成无线局域网,在完成软件升级后,网关终端或控制终端重启自身,各个控制终端向网关终端发送自身的地址信息,网关终端向移动终端发送自身的地址信息。
步骤307:第一终端向移动终端发送升级结果信息。
步骤308:移动终端向服务器端反馈接收到的第一终端的升级结果信息。
图4为本发明提供的一种软件升级方法具体实施例二的流程示意图,如图4所示,对智能家居系统的电视控制终端进行软件升级,具体步骤包括:
步骤401:手机接收用户输入的电视控制终端的软件升级命令。
具体地,所述智能家居系统还包括网关终端、空调控制终端及冰箱控制终端等终端,网关终端基于Z-wave技术与各个控制终端组建成无线局域网络,网关终端还基于Z-wave技术与手机进行通信,手机上安装有智能家居系统APP(Application,应用程序)。其中,所述Z-wave技术是一种新兴的基于射频的、低成本、低功耗、高可靠、适于网络的短距离无线通信技术。
具体地,如图5所示,图5为智能家居系统APP的界面图,用户可以通过点击电视控制终端按钮501、空调控制终端按钮502或冰箱控制终端按钮503,向手机输入控制电视、空调或冰箱的控制命令,智能家居系统APP向网关终端发送用户输入的控制命令,网关终端负责向各个控制终端转发该控制命令。
具体地,如图5所示,智能家居系统APP的界面上还可以包括,智能家居系统各个终端的检测软件升级按钮504,本步骤具体可以为,用户通过点击电视控制终端的检测软件升级按钮,向手机输入电视控制终端的软件升级命令;手机接收该命令。
步骤402:手机根据电视控制终端的软件升级命令,通过网关终端向电视控制终端发送获取命令。
具体地,手机上还安装有第一软件升级客户端,本步骤可以为,第一软件升级客户端根据电视控制终端的软件升级命令,生成用于获取电视控制终端的标识信息和当前软件版本信息的获取命令;第一软件升级客户端通过网关终端向电视控制终端发送该获取命令。
步骤403:电视控制终端接收获取命令,并通过网关终端向手机发送自身的标识信息和当前软件版本信息。
具体地,电视控制终端安装有第二软件升级客户端,本步骤可以为,电视控制终端的第二软件升级客户端接收获取命令;该第二软件升级客户端读取电视控制终端的标识信息和当前软件版本信息;该第二软件升级客户端通过网关终端向手机发送读取到的标识信息和当前软件版本信息。
步骤404:手机发起DM会话,根据接收到的电视控制终端的标识信息和当前软件版本信息,查询服务器端是否存在电视控制终端的最新软件差分升级包。
具体地,本步骤可以包括,手机的第一软件升级客户端接收电视控制终端的标识信息和当前软件版本信息;第一软件升级客户端发起DM会话与服务器端交互,向服务器端发送电视控制终端的标识信息和当前软件版本信息;服务器端根据该信息查询自身是否存在电视控制终端的最新软件差分升级包。其中,所述第一软件升级客户 端发起DM会话与服务器端交互是指,第一软件升级客户端基于OMA DM协议与服务器端进行通信。
步骤405:手机接收服务器端发送的下载描述信息,确认服务器端存在电视控制终端的最新软件差分升级包,并根据该信息从服务器端下载电视控制终端的最新软件差分升级包。
具体地,本步骤可以包括,手机的第一软件升级客户端接收服务器端发送的下载描述信息,确认服务器端存在电视控制终端的最新软件差分升级包;第一软件升级客户端根据该信息从服务器端下载电视控制终端的最新软件差分升级包。其中,所述下载描述信息可以包括,电视控制终端的最新软件差分升级包的数据量大小、下载地址等信息,
步骤406:手机将电视控制终端的最新软件差分升级包,通过网关终端发送给电视控制终端。
具体地,本步骤可以为,手机的第一软件升级客户端将电视控制终端的最新软件差分升级包,通过网关终端发送给电视控制终端。
步骤407:电视控制终端对接收到的最新软件差分升级包进行校验。
具体地,本步骤可以包括,电视控制终端的第二软件升级客户端接收最新软件差分升级包;该第二软件升级客户端对最新软件差分升级包进行校验。
步骤408:校验通过后电视控制终端重新启动自身,并进入Recovery模式根据最新软件差分升级包进行软件升级。
具体地,本步骤可以包括,校验通过后,电视控制终端的第二软件升级客户端重新启动电视控制终端,并进入电视控制终端的Recovery模式,根据最新软件差分升级包进行软件升级。
步骤409:升级完成后电视控制终端重新启动自身,并向网关终端发送注册信息,通过网关终端向手机发送升级结果信息。
具体地,本步骤可以包括,升级完成后,电视控制终端的第二软件升级客户端重新启动电视控制终端,并向网关终端发送注册信息,通过网关终端向手机发送升级结果信息。
步骤410:手机将接收到的升级结果信息反馈给服务器端。
具体地,本步骤可以包括,手机的第一软件升级客户端将接收到的升级结果信息反馈给服务器端。第一软件升级客户端还可以将接收到的升级结果信息,反馈给智能家居系统APP。如此,实现通过空口升级方式对智能家居系统的终端进行软件升级,从而使得软件升级过程更加方便、快捷,降低软件升级成本,提高用户的体验度。
需说明的是,如图5所示,智能家居系统APP的界面上还可以设置,一键式检测升级按钮505,在用户点击一键式检测升级按钮时,手机的第一软件升级客户端会对智能家居系统中的所有终端进行软件升级,每个终端软件升级的过程可以与上述电 视控制终端的软件升级过程相同。
具体地,上述一键式检测升级过程可以包括,手机接收用户输入的一键式检测升级命令;手机的第一软件升级客户端向网关终端发送,网关终端及各个控制终端的获取命令;网关终端向各个控制终端转发各个控制终端的获取命令;网关终端及各个控制终端的第二软件升级客户端,向手机发送自身的标识信息和当前软件版本信息;手机的第一软件升级客户端发起DM会话,根据接收到的标识信息和当前软件版本信息,查询服务器端是否存在网关终端及各个控制终端的最新软件差分升级包;手机的第一软件升级客户端接收服务器端发送的下载描述信息,确认服务器端存在最新软件差分升级包,并根据该信息从服务器端下载网关终端和/或相应控制终端的最新软件差分升级包;手机的第一软件升级客户端向网关终端发送,网关终端和/或相应控制终端的最新软件差分升级包;网关终端向相应控制终端转发各个控制终端的最新软件差分升级包;网关终端及各个控制终端的第二软件升级客户端,根据接收到的自身的最新软件差分升级包进行软件升级。
需说明的是,如图5所示,智能家居系统APP的界面上还可以设置,设置周期自动轮询检测升级按钮506,在用户点击该按钮时,手机的第一软件升级客户端会根据用户的指令设置检测升级周期,按照该周期周期性地对智能家居系统中的各个终端进行软件升级,每个终端软件升级的过程可以与上述电视控制终端的软件升级过程相同。
具体地,上述按照设置的周期周期性地对智能家居系统中的各个终端进行软件升级可以包括,手机接收用户输入的设置周期自动轮询检测升级命令;手机的第一软件升级客户端向网关终端发送,网关终端及各个控制终端的获取命令;网关终端向各个控制终端转发各个控制终端的获取命令;网关终端及各个控制终端的第二软件升级客户端,向手机发送自身的标识信息和当前软件版本信息;手机的第一软件升级客户端发起DM会话,根据接收到的标识信息和当前软件版本信息,查询服务器端是否存在网关终端及各个控制终端的最新软件差分升级包;手机的第一软件升级客户端接收服务器端发送的下载描述信息,确认服务器端存在最新软件差分升级包,并根据该信息从服务器端下载网关终端和/或相应控制终端的最新软件差分升级包;手机的第一软件升级客户端向网关终端发送,网关终端和/或相应控制终端的最新软件差分升级包;网关终端向相应控制终端转发各个控制终端的最新软件差分升级包;网关终端及各个控制终端的第二软件升级客户端,根据接收到的自身的最新软件差分升级包进行软件升级。在设置的检测升级周期到达时,重新执行上述过程。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化,本发明的保护范围以权利要求为准。
工业实用性
本发明适用于通信技术领域,用以实现对终端方便、快捷的软件升级,降低软件 升级成本,提高用户的体验度。

Claims (10)

  1. 一种软件升级方法,其中,所述方法包括:
    在确认服务器端存在第一终端的最新软件升级包时,从所述服务器端下载所述最新软件升级包;
    通过与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包。
  2. 根据权利要求1所述的方法,其中,确认所述服务器端是否存在第一终端的最新软件升级包包括:
    根据第一终端的标识信息和当前软件版本信息,确认服务器端是否存在所述第一终端的最新软件升级包。
  3. 根据权利要求2所述的方法,其中,所述第一终端的标识信息和当前软件版本信息的获取方式,包括:
    根据用户输入的指令,通过与第一终端建立的无线近距离通信连接,获取所述第一终端的标识信息和当前软件版本信息;或者,
    自动通过与第一终端建立的无线近距离通信连接,获取所述第一终端的标识信息和当前软件版本信息。
  4. 根据权利要求1所述的方法,其中,确认所述服务器端是否存在第一终端的最新软件升级包包括:
    确认所述服务器端是否存在第一终端的最新软件差分升级包。
  5. 根据权利要求1所述的方法,其中,所述通过与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包,包括:
    通过与所述第一终端直接建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包;或者,
    通过与第二终端建立的无线近距离通信连接,及所述第二终端与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包。
  6. 一种软件升级装置,其中,所述装置包括:
    下载模块,设置为在确认服务器端存在第一终端的最新软件升级包时,从所述服务器端下载所述最新软件升级包;
    发送模块,设置为通过与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包。
  7. 根据权利要求6所述的装置,其中,所述下载模块,还设置为根据第一终端的标识信息和当前软件版本信息,确认服务器端是否存在所述第一终端的最新软件升级包。
  8. 根据权利要求7所述的装置,其中,所述下载模块,还设置为根据用户输入的指令,通过与第一终端建立的无线近距离通信连接,获取所述第一终端的标识信 息和当前软件版本信息;或者,自动通过与第一终端建立的无线近距离通信连接,获取所述第一终端的标识信息和当前软件版本信息。
  9. 根据权利要求6所述的装置,其中,所述下载模块,还设置为确认所述服务器端是否存在第一终端的最新软件差分升级包。
  10. 根据权利要求6所述的装置,其中,所述发送模块设置为通过与所述第一终端直接建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包;或者,通过与第二终端建立的无线近距离通信连接,及所述第二终端与所述第一终端建立的无线近距离通信连接,向所述第一终端发送所述最新软件升级包。
PCT/CN2016/096560 2015-11-04 2016-08-24 一种软件升级方法及装置 WO2017076109A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510740401.5A CN106648721A (zh) 2015-11-04 2015-11-04 一种软件升级方法及装置
CN201510740401.5 2015-11-04

Publications (1)

Publication Number Publication Date
WO2017076109A1 true WO2017076109A1 (zh) 2017-05-11

Family

ID=58661682

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096560 WO2017076109A1 (zh) 2015-11-04 2016-08-24 一种软件升级方法及装置

Country Status (2)

Country Link
CN (1) CN106648721A (zh)
WO (1) WO2017076109A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286918A (zh) * 2019-05-31 2019-09-27 Oppo(重庆)智能科技有限公司 一种电路板的软件下载方法、软件下载装置、存储介质
CN111158720A (zh) * 2019-12-26 2020-05-15 联陆智能交通科技(上海)有限公司 路测单元rsu的升级方法、系统、介质及设备
CN113760331A (zh) * 2021-08-24 2021-12-07 联想(北京)有限公司 一种信息处理方法、电子设备、服务器和存储介质
CN116991450A (zh) * 2023-09-28 2023-11-03 北京紫光青藤微系统有限公司 用于升级设备的方法及系统、电子设备、存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688427A (zh) * 2018-12-14 2019-04-26 广州市科虎电子有限公司 一种智能电视及其系统修复方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383847A (zh) * 2008-08-25 2009-03-11 中兴通讯股份有限公司 一种无线数据终端的固件升级方法及装置
CN101577901A (zh) * 2009-06-19 2009-11-11 中兴通讯股份有限公司 一种无线接入平台及其设备升级管理系统与方法
CN102006181A (zh) * 2010-02-26 2011-04-06 中山大学 一种智能家电在线升级的方法
CN103686685A (zh) * 2012-09-20 2014-03-26 芯讯通无线科技(上海)有限公司 无线通讯模块的空中升级方法
CN104915237A (zh) * 2015-06-24 2015-09-16 深圳市兰丁科技有限公司 蓝牙设备固件程序的升级、升级控制方法及设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387165B (zh) * 2010-08-27 2014-11-05 腾讯科技(深圳)有限公司 软件升级系统及方法
CN105094909B (zh) * 2012-02-29 2019-02-26 青岛海信移动通信技术股份有限公司 移动终端软件升级方法、升级装置及移动终端
CN103699408A (zh) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 一种软件升级的方法和设备
CN104850429A (zh) * 2015-04-22 2015-08-19 北京五悦信息科技有限公司 一种面向智能设备的软件升级方法及系统
CN104820611A (zh) * 2015-05-22 2015-08-05 中国科学院上海高等研究院 一种基于蓝牙的设备软件升级方法及升级装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383847A (zh) * 2008-08-25 2009-03-11 中兴通讯股份有限公司 一种无线数据终端的固件升级方法及装置
CN101577901A (zh) * 2009-06-19 2009-11-11 中兴通讯股份有限公司 一种无线接入平台及其设备升级管理系统与方法
CN102006181A (zh) * 2010-02-26 2011-04-06 中山大学 一种智能家电在线升级的方法
CN103686685A (zh) * 2012-09-20 2014-03-26 芯讯通无线科技(上海)有限公司 无线通讯模块的空中升级方法
CN104915237A (zh) * 2015-06-24 2015-09-16 深圳市兰丁科技有限公司 蓝牙设备固件程序的升级、升级控制方法及设备

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286918A (zh) * 2019-05-31 2019-09-27 Oppo(重庆)智能科技有限公司 一种电路板的软件下载方法、软件下载装置、存储介质
CN110286918B (zh) * 2019-05-31 2023-04-14 Oppo(重庆)智能科技有限公司 一种电路板的软件下载方法、软件下载装置、存储介质
CN111158720A (zh) * 2019-12-26 2020-05-15 联陆智能交通科技(上海)有限公司 路测单元rsu的升级方法、系统、介质及设备
CN113760331A (zh) * 2021-08-24 2021-12-07 联想(北京)有限公司 一种信息处理方法、电子设备、服务器和存储介质
CN116991450A (zh) * 2023-09-28 2023-11-03 北京紫光青藤微系统有限公司 用于升级设备的方法及系统、电子设备、存储介质

Also Published As

Publication number Publication date
CN106648721A (zh) 2017-05-10

Similar Documents

Publication Publication Date Title
WO2017076109A1 (zh) 一种软件升级方法及装置
WO2020168569A1 (zh) 智能设备配网方法、装置、电子设备及存储介质
TWI393464B (zh) 用於開放市場無線器件之網路識別之方法及裝置
CN110636483A (zh) 一种配网方法及系统
CN105100021B (zh) 一种设备管理会话的触发方法、设备及系统
WO2011006328A1 (zh) 设备固件升级系统及方法、设备管理服务器及移动终端
CN107342933B (zh) 一种智能设备的激活与绑定方法及装置
KR102258608B1 (ko) 홈 네트워크 서비스를 제공하기 위한 장치 및 그 방법
WO2015143794A1 (zh) 制作、升级方法及服务器、终端、升级系统和存储介质
JPWO2018123241A1 (ja) Plcに対してプログラム及びパラメータを伝送する方法、装置並びにシステム
CN108632798A (zh) 一种物联家电设备快速绑定方法、系统及相关装置
CN112333807A (zh) 用于无线装置之间的配对连接方法以及智能电子设备
WO2015131682A1 (zh) 一种版本更新方法、系统、基站及计算机存储介质
CN106339236A (zh) 软件升级方法、客户端、对讲机和软件升级系统
CN112187531B (zh) 模块的升级方法及系统、存储介质、电子装置
JP2016206940A5 (zh)
WO2015000379A1 (zh) 空调器的远程控制方法和空调器的远程控制系统
CN105579969A (zh) 用于在应用程序之间进行设备特定的通信的方法和装置
CN110868707A (zh) 一种基于ble mesh的智能设备配网方法
WO2017088795A1 (zh) 一种控制智能电器的方法和装置
EP2874465B1 (en) Method and system for remote equipment data installation
WO2018133500A1 (zh) 一种基于微信公众号进行远程应用的推送系统及方法
CN105791361A (zh) 远程协助设置的方法、服务器、终端及系统
JP2015176234A (ja) センサネットワークのソフトウェア配信システム、無線端末、ソフトウェア配信方法、および、プログラム
EP3340576B1 (en) Raman spectroscopic device and communication method thereof

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: 16861378

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: 16861378

Country of ref document: EP

Kind code of ref document: A1