CN109831779B - Upgrade package downloading method, device, server, terminal and system - Google Patents

Upgrade package downloading method, device, server, terminal and system Download PDF

Info

Publication number
CN109831779B
CN109831779B CN201910111127.3A CN201910111127A CN109831779B CN 109831779 B CN109831779 B CN 109831779B CN 201910111127 A CN201910111127 A CN 201910111127A CN 109831779 B CN109831779 B CN 109831779B
Authority
CN
China
Prior art keywords
download
upgrade package
address
domain name
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910111127.3A
Other languages
Chinese (zh)
Other versions
CN109831779A (en
Inventor
潘蓝兰
王建
郑士岑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely Automobile Research Institute Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely Automobile Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Geely Holding Group Co Ltd, Zhejiang Geely Automobile Research Institute Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Publication of CN109831779A publication Critical patent/CN109831779A/en
Application granted granted Critical
Publication of CN109831779B publication Critical patent/CN109831779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an upgrade package downloading method, an upgrade package downloading device, a server, a terminal and a system, wherein the method comprises the following steps: the control server monitors whether the over-the-air OTA domain name resolution is abnormal or not; when the monitoring result is yes, the control server sends the download address of the upgrade package and the IP address information of the domain name in the download address to the terminal; the terminal is connected with the OTA server corresponding to the IP address information and requests to download the upgrade package from the download address; and the OTA server sends the upgrade package to the terminal. By using the technical scheme provided by the embodiment of the invention, the terminal can be ensured to acquire the correct IP address information corresponding to the OTA domain name, and then the IP address information is downloaded to the required upgrading packet.

Description

Upgrade package downloading method, device, server, terminal and system
Technical Field
The invention relates to the technical field of internet communication, in particular to an upgrade package downloading method, device, server, terminal and system.
Background
The OTA (Over-the-Air) technology is a technology for remotely managing data and applications through an Air interface of mobile communication, and is widely applied to services such as download and upgrade. For example, an automobile with an OTA function can perform online upgrade on an automobile ECU (Electronic Control Unit) through the internet, so as to realize the performance optimization upgrade of the ECU.
At present, the method for downloading the upgrade package by using the OTA technology may include: the server sends the download address of the upgrade package to the terminal; the terminal inquires IP (Internet Protocol) address information of an OTA domain name in an upgrading packet downloading address from a domain name resolution server; and after acquiring the IP address information of the OTA domain name returned by the domain name resolution server, the terminal is connected with the OTA server corresponding to the IP address information, and then acquires the upgrade package corresponding to the download address from the OTA server. In the existing upgrade package downloading process, the terminal cannot accurately acquire the IP address information of the OTA domain name from the domain name resolution server, often due to a domain name resolution server failure, domain name hijacking, and the like, and the upgrade package fails to be downloaded to a malicious upgrade package. Therefore, there is a need to provide a more reliable or efficient solution to ensure accurate downloads to secure upgrade packages.
Disclosure of Invention
The invention provides an upgrade package downloading method, device, server, terminal and system, which can ensure that the terminal acquires the correct IP address information corresponding to the OTA domain name and further downloads the needed upgrade package.
In a first aspect, the present invention provides an upgrade package downloading method, where the method includes:
the control server monitors whether the over-the-air OTA domain name resolution is abnormal or not;
when the monitoring result is yes, the control server sends the download address of the upgrade package and the IP address information of the domain name in the download address to the terminal;
the terminal is connected with the OTA server corresponding to the IP address information and requests to download the upgrade package from the download address;
and the OTA server sends the upgrade package to the terminal.
A second aspect provides an upgrade package downloading method, the method comprising:
monitoring whether the over-the-air OTA domain name resolution is abnormal or not;
and when the monitoring result is yes, sending a download address of an upgrade package and network protocol IP address information of a domain name in the download address to the terminal so that the terminal is connected with an OTA server corresponding to the IP address information and requests to download the upgrade package from the download address.
A third aspect provides an upgrade package downloading method, including:
receiving a download address of an upgrade package and network protocol IP address information of a domain name in the download address sent when a control server monitors that the domain name resolution of an over-the-air download OTA is abnormal;
connecting an OTA server corresponding to the IP address information, and requesting to download an upgrade package from the download address;
and receiving the upgrade package sent by the OTA server.
A fourth aspect provides an upgrade package download system, the system comprising: the system comprises a control server, a terminal and an over-the-air OTA server;
the control server is used for monitoring whether the over-the-air OTA domain name resolution is abnormal or not, and when the monitoring result is yes, the control server sends the download address of the upgrade package and the IP address information of the domain name in the download address to the terminal;
the terminal is used for connecting an over-the-air OTA server corresponding to the IP address information and requesting to download an upgrade package from the download address;
and the OTA server is used for sending the upgrade package to the terminal.
A fifth aspect provides an upgrade package downloading apparatus, the apparatus comprising:
the monitoring module is used for monitoring whether the over-the-air OTA domain name resolution is abnormal or not;
and the data sending module is used for sending the download address of the upgrade package and the network protocol IP address information of the domain name in the download address to the terminal when the monitoring result of the monitoring module is yes, so that the terminal is connected with the OTA server corresponding to the IP address information and requests to download the upgrade package from the download address.
A sixth aspect provides an upgrade package downloading apparatus, the apparatus comprising:
the data receiving module is used for receiving the download address of the upgrade package and the IP address information of the domain name in the download address sent when the control server monitors that the domain name resolution of the over-the-air download OTA is abnormal;
the connecting module is used for connecting the OTA server corresponding to the IP address information;
a download request module for requesting to download the upgrade package from the download address;
and the upgrade package receiving module is used for receiving the upgrade package sent by the OTA server.
A seventh aspect provides an upgrade package download server, comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the upgrade package download method according to the second aspect.
An eighth aspect provides an upgrade package download terminal comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the upgrade package download method according to the third aspect.
The upgrade package downloading method, device, server, terminal and system provided by the invention have the following technical effects:
the invention can avoid the failure of downloading the upgrade package caused by domain name resolution failure when the domain name resolution is carried out by the domain name resolution server in the prior art or download the upgrade package with malicious intent, ensure that the terminal can receive the correct IP address corresponding to the OTA domain name and acquire the upgrade package to be downloaded, and has more flexibility and safety.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions and advantages of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of an upgrade package downloading system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an upgrade package downloading method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another upgrade package downloading method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another upgrade package downloading method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an upgrade package downloading method according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating another upgrade package downloading method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an upgrade package downloading apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another upgrade package downloading apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic diagram of an upgrade package downloading system according to an embodiment of the present invention, and as shown in fig. 1, the upgrade package downloading system may include a terminal 01, a control server 02, and an OTA server 03.
Specifically, the terminal 01 may include a physical device of a type of a vehicle-mounted terminal (e.g., an ECU, an Electronic Control Unit), a smart phone, a desktop computer, a tablet computer, a laptop computer, a digital assistant, a smart wearable device, and the like, and may also include software running in the physical device, such as a virtual machine and the like.
Specifically, the control server 02 may include a server operating independently, or a distributed server, or a server cluster composed of a plurality of servers. The control server 02 may comprise a network communication unit, a processor and a memory, etc. Specifically, the control server 02 may provide a background control service, such as an upgrade control service, for the terminal 01.
Specifically, the OTA server 03 can include a server operating independently, or a distributed server, or a server cluster composed of a plurality of servers. The OTA server 03 may provide a download upgrade service for the terminal 01.
The upgrade package downloading method based on the above upgrade package downloading system of the present invention is described below, fig. 2 is a flowchart of an upgrade package downloading method provided in an embodiment of the present invention, and the present specification provides the method operation steps described in the embodiment or the flowchart, but more or less operation steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 2, the method may include:
s201: the control server monitors whether the OTA domain name resolution is abnormal or not.
In this embodiment of the present description, the occurrence of the anomaly in the OTA domain name resolution may include that the OTA domain name server is subjected to domain name hijacking, and the OTA domain name server fails to obtain accurate IP address information of the domain name from the domain name server.
In practical application, the control server may correspond to a plurality of terminals, and when the terminals are required to be upgraded according to service requirements, the control server often sends an upgrade package download control instruction to the plurality of terminals, so that the terminals download upgrade packages, and correspondingly, the control server may obtain success or failure information of the terminal upgrade package download, calculate failure rates of the plurality of terminal upgrade package downloads, and determine whether a domain name resolution fault occurs according to the failure rates, for example, when the failure rate of the upgrade package download is greater than or equal to 50%, it is determined that the terminal has the domain name resolution fault.
In addition, it should be noted that the above method for monitoring whether the over-the-air OTA domain name resolution is abnormal is only an example, and in practical application, other manners may also be adopted to monitor whether the over-the-air OTA domain name resolution is abnormal.
S203: and when the monitoring result is yes, the control server sends the download address of the upgrade package and the network protocol IP address information of the domain name in the download address to the terminal.
In this embodiment of the present description, when the control server monitors that the OTA domain name resolution is abnormal, the control server may send the download address of the upgrade package and the network protocol IP address information of the domain name in the download address to the terminal.
In addition, in practical application, in order to ensure the integrity of the download address and the IP address information sent to the terminal by the control server, the control server also carries a check value when sending the download address and the IP address information to the terminal, and specifically, the check value may include, but is not limited to, hash, digital signature, and the like.
In practical application, a domain name may correspond to a plurality of pieces of IP address information, and correspondingly, in this embodiment of the present specification, the IP address information of the domain name in the download address may be determined from the IP address information corresponding to the domain name of the download address based on the upgrade service attribute. The upgrade service attribute may include, but is not limited to, location information of the terminal, load information of the OTA server, fault information of the OTA server, and other information affecting the upgrade service processing.
In a specific embodiment, when the upgrade service attribute includes location information of the terminal, the IP address information of the server in the same location may be selected from the IP address information corresponding to the domain name of the download address according to the location information of the terminal, and used as the IP address information of the domain name in the download address.
In another specific embodiment, when the upgrade service attribute includes load information of the OTA server, the IP address information of the domain name in the download address may be selected from the IP address information corresponding to the domain name of the download address (the IP address information corresponds to the OTA server) according to the load information of the OTA server by using load balancing as a principle.
In another specific embodiment, when the upgrade service attribute includes the fault information of the OTA server, the IP address information with the minimum fault rate of the OTA server corresponding to the IP address information may be selected from the IP address information corresponding to the domain name of the download address according to the fault information of the OTA server, and the IP address information is used as the IP address information of the domain name in the download address.
The IP address information is determined based on the upgrade service attribute, so that the terminal can be ensured to quickly acquire accurate IP address information, and the flexibility of IP address configuration and attack defense is enhanced.
S205: and the terminal is connected with the OTA server corresponding to the IP address information and requests to download the upgrade package from the download address.
In this embodiment of the present description, after receiving a download address sent by a control server and IP address information of a domain name in the download address, a terminal may receive an over-the-air OTA server corresponding to the IP address information and request to download an upgrade package from the download address, and specifically, may adjust a download command to be downloaded using the IP address information of the domain name; and connecting an over-the-air OTA server corresponding to the IP address information based on the adjusted downloading command, and requesting to download an upgrading packet from the downloading address.
S207: and the OTA server sends the upgrade package to the terminal.
Additionally, in some embodiments, as shown in fig. 3, before step S201, the method may further include:
s209: and the control server sends an upgrade package downloading control instruction to the terminal.
S211: and the terminal sends the current version information to the control server.
Specifically, the current version information may include an application that needs to be upgraded in the terminal, or current version information of the terminal itself.
S213: and the control server determines the upgrading version information according to the current version information and sends the upgrading version information to the terminal.
S215: and the terminal sends a query request of the download address of the upgrade package corresponding to the upgrade version information to the control server.
According to the technical scheme provided by the embodiment of the specification, the IP address information of the domain name can be returned by the control server, the IP address information which is completely the same as that of the traditional domain name server during normal resolution can be provided, the problem that the upgrading packet downloading fails or is downloaded to a malicious upgrading packet due to domain name resolution faults during domain name resolution by the domain name resolution server in the prior art is avoided, the terminal can be ensured to acquire the IP address information corresponding to the correct OTA domain name, the upgrading packet needing to be downloaded is acquired, and the method and the device have higher flexibility and safety.
In other embodiments, as shown in fig. 4, when the result of the monitoring in step S201 is no, the method may further include:
s217: and the control server sends the download address of the upgrade package to the terminal.
In addition, in order to ensure the integrity of the download address sent by the control server to the terminal, the control server also carries a check value when sending the download address to the terminal, and specifically, the check value may include, but is not limited to, hash, digital signature, and the like.
S219: and the terminal acquires an upgrade package based on the download address.
Specifically, the terminal may obtain the IP address information of the domain name in the download address from the domain name resolution server; and then, connecting an OTA server corresponding to the IP address information, and further acquiring an upgrade package corresponding to the download address from the OTA server.
In the embodiment, the control server monitors whether the OTA domain name resolution is abnormal or not, can switch between the two functions of sending the IP address information of the domain name in the download address in time, and sends the download address of the upgrade package and the IP address information of the domain name in the download address to the terminal when monitoring that the OTA domain name resolution is abnormal, so that the upgrade package can be smoothly downloaded even if the terminal has a domain name resolution fault, the normal use of the terminal is effectively ensured, and the user experience is improved. In addition, after the OTA domain name resolution abnormity is removed, the original domain name resolution server response mode can be switched back.
The following describes the setting of the download command in the above two cases with reference to specific embodiments:
suppose that the OTA downloads the domain name as someota.com, and the download address of the upgrade package of a certain terminal is https:// someota.com/someecu _ v1.0.0.1. hex. Assuming that the IP address of the terminal that needs to download the upgrade package is xxx.xxx.xxx.xxx.xxx, the IP address of the domain name in the download address allocated to the terminal by the control server is yyy.yyy.yyyy.
When the control server sends the download address of the upgrade package to the terminal, the terminal needs to perform normal resolution through the domain name to download the upgrade package, and correspondingly, the terminal may set a download command (taking a curl download command as an example) as follows when acquiring the download address of the upgrade package sent by the control server:
curl-O https://someota.com/someecu_v1.0.0.1.hex
in addition, when the terminal has domain name resolution failure and the control server sends the download address of the upgrade package and the network protocol IP address information of the domain name in the download address to the terminal, the control server sends the download address https:// someota.com/someecu _ v1.0.0.1.hex of the upgrade package and the OTA domain name IP address YYYY Y to the terminal. Accordingly, the download command can be adjusted (taking the curl download command as an example) as follows:
curl-H“Host:someota.com”-O https://YYY.YYY.YYY.YYY/someecu_v1.0.0.1.hex
in the embodiment, the terminal directly adjusts the downloading command according to the IP address information of the domain name in the downloading address of the upgrade package returned by the control server, so that the operation is simple and convenient.
The following describes a specific embodiment of an upgrade package downloading method in the present specification with a server as an execution subject, and fig. 5 is a flowchart of an upgrade package downloading method provided in an embodiment of the present invention, where the present specification provides the method operation steps as described in the embodiment or the flowchart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 5, the method may include:
s501: and monitoring whether the OTA domain name resolution is abnormal or not.
S503: and when the monitoring result is yes, sending a download address of an upgrade package and network protocol IP address information of a domain name in the download address to the terminal so that the terminal is connected with an OTA server corresponding to the IP address information and requests to download the upgrade package from the download address.
Specifically, the IP address information of the domain name in the download address may be determined by:
and determining the IP address information of the domain name in the download address from the IP address information corresponding to the domain name of the download address based on the upgrade service attribute.
In some embodiments, before monitoring whether the OTA domain name resolution is abnormal, the method may further include:
sending an upgrade package download control instruction to the terminal;
receiving current version information sent by the terminal;
determining upgrade version information according to the current version information, and sending the upgrade version information to the terminal;
and receiving a query request of a download address of an upgrade package corresponding to the upgrade version information sent by the terminal.
In some embodiments, the method may further comprise:
s505: and when the monitoring result is negative, sending a download address of the upgrade package to the terminal so that the terminal acquires the upgrade package based on the download address.
The embodiment of the present invention further provides an upgrade package download server, where the upgrade package download server includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the upgrade package download method provided in the foregoing method embodiment.
The following describes another specific embodiment of the upgrade package downloading method in the present specification with a terminal as an execution subject, and fig. 6 is a flowchart of another upgrade package downloading method provided in the embodiment of the present invention, where the present specification provides the method operation steps as described in the embodiment or the flowchart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 6, the method may include:
s601: and when the receiving control server monitors that the OTA domain name resolution is abnormal, the receiving control server sends the download address of the upgrade package and the IP address information of the domain name in the download address.
S603: and connecting the OTA server corresponding to the IP address information, and requesting to download the upgrade package from the download address.
Specifically, the connecting the OTA server corresponding to the IP address information, and requesting to download the upgrade package from the download address may include:
adjusting the downloading command into a downloading command for downloading by using the IP address information of the domain name;
and connecting an OTA server corresponding to the IP address information based on the downloading command, and requesting to download an upgrading packet from the downloading address.
S605: and receiving the upgrade package sent by the OTA server.
In some embodiments, before the receiving control server monitors that the OTA domain name resolution is abnormal, the method may further include, before the download address of the sent upgrade package and the network protocol IP address information of the domain name in the download address:
receiving an upgrade package downloading control instruction sent by a control server;
sending current version information to a control server;
receiving upgrading version information which is sent by a control server and determined according to the current version information;
and sending a query request of the download address of the upgrade package corresponding to the upgrade version information to a control server.
The embodiment of the present invention further provides an upgrade package downloading terminal, where the upgrade package downloading terminal includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the upgrade package downloading method provided in the foregoing method embodiment.
In the embodiments of the present disclosure, the memory may be used to store software programs and modules, and the processor executes various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
An embodiment of the present invention further provides an upgrade package downloading apparatus, as shown in fig. 7, the apparatus includes:
the monitoring module 710 may be configured to monitor whether the over-the-air OTA domain name resolution is abnormal;
the data sending module 720 may be configured to send, to the terminal, the download address of the upgrade package and the network protocol IP address information of the domain name in the download address when the monitoring result of the monitoring module 710 is yes, so that the terminal is connected to the OTA server corresponding to the IP address information and requests to download the upgrade package from the download address.
In some embodiments, the apparatus may further comprise:
the download control instruction sending module is used for sending an upgrade package download control instruction to the terminal;
the current version information receiving module is used for receiving the current version information sent by the terminal;
the upgrading version information determining module is used for determining upgrading version information according to the current version information;
the upgrading version information sending module is used for sending the upgrading version information to the terminal;
and the query request receiving module is used for receiving a query request of a download address of the upgrade package corresponding to the upgrade version information sent by the terminal.
In some embodiments, the IP address information of the domain name in the download address comprises determining in the following manner:
and determining the IP address information of the domain name in the download address from the IP address information corresponding to the domain name of the download address based on the upgrade service attribute.
In some embodiments, the apparatus further comprises:
and a download address sending module, configured to send a download address of the upgrade package to the terminal when the monitoring result of the monitoring module 710 is negative, so that the terminal obtains the upgrade package based on the download address.
The device and method embodiments in the device embodiment described are based on the same inventive concept.
An embodiment of the present invention further provides an upgrade package downloading apparatus, as shown in fig. 8, the apparatus may include:
the data receiving module 810 may be configured to receive a download address of the upgrade package and network protocol IP address information of a domain name in the download address, which are sent when the control server monitors that the domain name resolution of the over-the-air download OTA is abnormal;
a connection module 820, configured to connect to an OTA server corresponding to the IP address information;
a download request module 830, configured to request to download the upgrade package from the download address;
the upgrade package receiving module 840 may be configured to receive the upgrade package sent by the OTA server.
In some embodiments, the apparatus further comprises:
the download control instruction receiving module is used for receiving an upgrade package download control instruction sent by the control server;
the current version information sending module is used for sending the current version information to the control server;
the upgrading version information receiving module is used for receiving upgrading version information which is sent by the control server and determined according to the current version information;
and the query request sending module is used for sending a query request of the download address of the upgrade package corresponding to the upgrade version information to the control server.
In some embodiments, the connection module 820 is specifically configured to:
adjusting the downloading command into a downloading command for downloading by using the IP address information of the domain name;
and connecting an over-the-air OTA server corresponding to the IP address information based on the downloading command, and requesting to download an upgrading packet from the downloading address.
The device and method embodiments in the device embodiment described are based on the same inventive concept.
The embodiment of the invention also provides an upgrade package downloading system, which can comprise: the system comprises a control server, a terminal and an over-the-air OTA server;
the control server is used for monitoring whether the over-the-air OTA domain name resolution is abnormal or not, and when the monitoring result is yes, the control server sends the download address of the upgrade package and the IP address information of the domain name in the download address to the terminal;
the terminal is used for connecting an OTA server corresponding to the IP address information and requesting to download an upgrade package from the download address;
and the OTA server is used for sending the upgrade package to the terminal.
It can be seen from the above embodiments of the method, apparatus, server, terminal or system for downloading an upgrade package provided by the present invention that the IP address information of a domain name is returned by the control server, which can provide the same IP address information as that of a conventional domain name server when performing domain name resolution, thereby avoiding that the upgrade package is downloaded unsuccessfully due to a domain name resolution failure when performing domain name resolution by means of the domain name resolution server in the prior art, or the upgrade package is downloaded maliciously, ensuring that the terminal can receive an IP address corresponding to a correct OTA domain name, and acquiring the upgrade package to be downloaded, and having better flexibility and security.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device, server, terminal and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (12)

1. An upgrade package downloading method, the method comprising:
the control server monitors whether the over-the-air OTA domain name resolution is abnormal or not;
when the monitoring result is yes, the control server sends a download address of an upgrade package and network protocol IP address information of a domain name in the download address to a terminal, wherein the IP address information is determined by the control server from the IP address information corresponding to the domain name of the download address based on the upgrade service attribute;
the terminal is connected with the OTA server corresponding to the IP address information and requests to download an upgrade package from the download address;
and the OTA server sends the upgrade package to the terminal.
2. An upgrade package downloading method, the method comprising:
monitoring whether the over-the-air OTA domain name resolution is abnormal or not;
and when the monitoring result is yes, sending a download address of an upgrade package and network protocol IP address information of a domain name in the download address to the terminal, wherein the IP address information is determined by the control server from the IP address information corresponding to the domain name of the download address based on the upgrade service attribute, so that the terminal is connected with an OTA server corresponding to the IP address information and requests to download the upgrade package from the download address.
3. The method of claim 2, wherein prior to the monitoring whether the over-the-air OTA domain name resolution is anomalous, the method further comprises:
sending an upgrade package download control instruction to the terminal;
receiving current version information sent by the terminal;
determining upgrade version information according to the current version information, and sending the upgrade version information to the terminal;
and receiving a query request of a download address of an upgrade package corresponding to the upgrade version information sent by the terminal.
4. The method of claim 2, further comprising:
and when the monitoring result is negative, sending a download address of the upgrade package to the terminal so that the terminal acquires the upgrade package based on the download address.
5. An upgrade package downloading method, the method comprising:
receiving a download address of an upgrade package and network protocol (IP) address information of a domain name in the download address sent by a control server when the control server monitors that the domain name resolution of an over-the-air download OTA is abnormal, wherein the IP address information is determined by the control server from the IP address information corresponding to the domain name of the download address based on an upgrade service attribute;
connecting an OTA server corresponding to the IP address information, and requesting to download an upgrade package from the download address;
and receiving the upgrade package sent by the OTA server.
6. The method of claim 5, wherein before the receiving control server monitors the occurrence of an anomaly in domain name resolution of the over-the-air downloading OTA, the method further comprises, before the download address of the upgrade package and the IP address information of the domain name in the download address are sent:
receiving an upgrade package downloading control instruction sent by a control server;
sending current version information to a control server;
receiving upgrading version information which is sent by a control server and determined according to the current version information;
and sending a query request of the download address of the upgrade package corresponding to the upgrade version information to a control server.
7. The method of claim 5, wherein the connecting to the OTA over the air server corresponding to the IP address information, and the requesting to download the upgrade package from the download address comprises:
adjusting the downloading command into a downloading command for downloading by using the IP address information of the domain name;
and connecting an over-the-air OTA server corresponding to the IP address information based on the downloading command, and requesting to download an upgrading packet from the downloading address.
8. An upgrade package download system, the system comprising: the system comprises a control server, a terminal and an over-the-air OTA server;
the control server is used for monitoring whether the over-the-air OTA domain name resolution is abnormal or not, and when the monitoring result is yes, sending a download address of an upgrade package and network protocol IP address information of a domain name in the download address to the terminal, wherein the IP address information is determined by the control server from the IP address information corresponding to the domain name of the download address based on the upgrade service attribute;
the terminal is used for connecting an OTA server corresponding to the IP address information and requesting to download an upgrade package from the download address;
and the OTA server is used for sending the upgrade package to the terminal.
9. An upgrade package downloading apparatus, comprising:
the monitoring module is used for monitoring whether the over-the-air OTA domain name resolution is abnormal or not;
and the data sending module is used for sending a download address of an upgrade package and network protocol IP address information of a domain name in the download address to the terminal when the monitoring result of the monitoring module is yes, wherein the IP address information is determined by the control server from the IP address information corresponding to the domain name of the download address based on the upgrade service attribute, so that the terminal is connected with an OTA server corresponding to the IP address information and requests to download the upgrade package from the download address.
10. An upgrade package downloading apparatus, comprising:
the data receiving module is used for receiving a download address of an upgrade package and network protocol IP address information of a domain name in the download address which are sent when the control server monitors that the domain name resolution of the over-the-air download OTA is abnormal, wherein the IP address information is determined by the control server from the IP address information corresponding to the domain name of the download address based on the upgrade service attribute;
the connecting module is used for connecting the over-the-air OTA server corresponding to the IP address information;
a download request module for requesting to download the upgrade package from the download address;
and the upgrade package receiving module is used for receiving the upgrade package sent by the OTA server.
11. An upgrade package download server, comprising a processor and a memory, wherein the memory has stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the upgrade package download method according to any one of claims 2 to 4.
12. An upgrade package download terminal, comprising a processor and a memory, wherein the memory has stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the upgrade package download method according to any one of claims 5 to 7.
CN201910111127.3A 2019-01-15 2019-02-12 Upgrade package downloading method, device, server, terminal and system Active CN109831779B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2019100361106 2019-01-15
CN201910036110 2019-01-15

Publications (2)

Publication Number Publication Date
CN109831779A CN109831779A (en) 2019-05-31
CN109831779B true CN109831779B (en) 2021-10-26

Family

ID=66863586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910111127.3A Active CN109831779B (en) 2019-01-15 2019-02-12 Upgrade package downloading method, device, server, terminal and system

Country Status (1)

Country Link
CN (1) CN109831779B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110378153A (en) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 A kind of upgrade package safety downloading method and system
CN113596161A (en) * 2021-07-30 2021-11-02 重庆仓舟网络科技有限公司 Block chain based distributed storage method, system and terminal
CN114124917B (en) * 2021-11-23 2024-04-09 四川易智停科技有限公司 Remote upgrading method, equipment, system and medium for ground locking piece

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167045A (en) * 2011-12-12 2013-06-19 中国电信股份有限公司 Method of choosing network layer protocol, domain name server (DNS), and domain-name management system
CN104079673A (en) * 2014-07-30 2014-10-01 北京奇虎科技有限公司 Method, device and system for preventing DNS hijack during application download
CN105933150A (en) * 2016-04-20 2016-09-07 努比亚技术有限公司 OTA upgrade method, device and system
CN106657050A (en) * 2016-12-15 2017-05-10 迈普通信技术股份有限公司 Domain name resolution anomaly detection method, detection management server and gateway equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7979734B2 (en) * 2007-07-11 2011-07-12 Samsung Electronics Co., Ltd. Method and system for preventing service disruption of internet protocol (IP) based services due to domain name resolution failures

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167045A (en) * 2011-12-12 2013-06-19 中国电信股份有限公司 Method of choosing network layer protocol, domain name server (DNS), and domain-name management system
CN104079673A (en) * 2014-07-30 2014-10-01 北京奇虎科技有限公司 Method, device and system for preventing DNS hijack during application download
CN105933150A (en) * 2016-04-20 2016-09-07 努比亚技术有限公司 OTA upgrade method, device and system
CN106657050A (en) * 2016-12-15 2017-05-10 迈普通信技术股份有限公司 Domain name resolution anomaly detection method, detection management server and gateway equipment

Also Published As

Publication number Publication date
CN109831779A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN109831779B (en) Upgrade package downloading method, device, server, terminal and system
EP2973147B1 (en) Policy-based secure web boot
RU2421785C2 (en) Automated control of device drivers
CN110825394B (en) Automatic initialization method, system and storage medium for application program of cloud mobile phone
US20150220326A1 (en) Mobile Terminal and Software Upgrade Method Thereof
CN109391673B (en) Method, system and terminal equipment for managing update file
EP3125110A1 (en) Software upgrade method and terminal
CN109862099B (en) Upgrade checking method, device, terminal and system
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
CN107844306B (en) Application program repairing method and device, storage medium and terminal
CN106027644B (en) Service verification method and system
CN110730090B (en) Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment
CN112732273A (en) Application deployment method, device and system
CN111273924B (en) Software updating method and device
WO2014008864A1 (en) Method, apparatus, and system for sharing software among terminals
EP1866758B1 (en) Method, system and apparatus for launching an interface with an electronic device
CN107071043A (en) The collocation method and device of a kind of network information
WO2018157105A1 (en) Automatic recovery in remote management services
CN110493644B (en) Television application upgrading method, television terminal and server
CN106708494A (en) JAR upgrading method and apparatus
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN111679850B (en) Application program hot update processing method, device and system
CN110493891B (en) Resource allocation method, device and system
CN107632865B (en) FPGA configuration upgrading method and device
CN107872493B (en) Information processing method, terminal and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant