CN112148320A - Application program upgrading method, device, equipment and storage medium - Google Patents

Application program upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN112148320A
CN112148320A CN201910560422.7A CN201910560422A CN112148320A CN 112148320 A CN112148320 A CN 112148320A CN 201910560422 A CN201910560422 A CN 201910560422A CN 112148320 A CN112148320 A CN 112148320A
Authority
CN
China
Prior art keywords
terminal
application program
upgrading
local server
network type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910560422.7A
Other languages
Chinese (zh)
Inventor
何琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SF Technology Co Ltd
Original Assignee
SF Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN201910560422.7A priority Critical patent/CN112148320A/en
Publication of CN112148320A publication Critical patent/CN112148320A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an application program upgrading method, device, equipment and storage medium. The method comprises the following steps: sending an application program upgrading request to a remote server, wherein the upgrading request carries an area identifier, so that the remote server returns a network type for upgrading and a terminal identifier serving as a local server according to the area identifier; and receiving the network type and the terminal identification sent by the remote server, connecting the local server indicated by the terminal identification by using a network connection mode corresponding to the network type, and upgrading the application program through the local server. According to the technical scheme provided by the embodiment of the application, the method improves the success rate of upgrading the application program.

Description

Application program upgrading method, device, equipment and storage medium
Technical Field
The present application relates generally to the field of data processing, and in particular, to a method, an apparatus, a device, and a storage medium for upgrading an application.
Background
Currently, local upgrading of applications is generally achieved by: the terminal to be upgraded sends an upgrade request to the remote server; the remote server determines the load quantity of the remote server after receiving the upgrading request, and informs the terminal to be upgraded of using a local upgrading method when the load quantity of the remote server exceeds a preset quantity; furthermore, the terminal to be upgraded sends out an upgrade request broadcast locally through the routing equipment; after receiving the broadcast, the other local terminals determine whether to serve as a local server to upgrade the terminal to be upgraded according to the self condition; when the terminal is determined to be the local server, sending a response message to the terminal to be upgraded so as to inform that the terminal to be upgraded can be the local server; and when the terminal to be upgraded receives the response message, upgrading the application program to be upgraded through the terminal sending the response message.
However, when the network of the terminal serving as the local server is a wireless network, for example, a mobile data network, the local upgrade cannot be implemented for the application program to be upgraded, which results in a failure of the upgrade.
Disclosure of Invention
In view of the problem of failed upgrade in the prior art, the present application provides a method, an apparatus, a device and a storage medium for upgrading an application program, which can improve the upgrade success rate.
In a first aspect, an embodiment of the present application provides an application program upgrading method, where the method includes:
sending an application program upgrading request to a remote server, wherein the upgrading request carries an area identifier, so that the remote server returns a network type for upgrading and a terminal identifier serving as a local server according to the area identifier;
and receiving the network type and the terminal identification sent by the remote server, connecting the local server indicated by the terminal identification by using a network connection mode corresponding to the network type, and upgrading the application program through the local server.
Optionally, the network types include wired broadband and wireless broadband.
Optionally, the connecting the local server indicated by the terminal identifier using a network connection mode corresponding to the network type includes:
when the network type is a wireless broadband, a wifi hotspot mode is adopted to communicate with a terminal serving as a local server;
or,
and when the network type is a wired broadband, the network type is communicated with a terminal serving as a local server in a wifi router mode.
Optionally, after the application program is upgraded, the method further includes:
and sending the terminal identification, the version information, the network type and the area identification of the remote server to the remote server.
In a second aspect, an embodiment of the present application provides an application program upgrading method, where the method includes:
receiving an application program upgrading request sent by a terminal, wherein the upgrading request carries an area identifier of the terminal;
determining a terminal which can be used as a local server in an area corresponding to the area identifier;
and sending the network type and the terminal identification of the terminal serving as the local server to the terminal, so that the terminal can upgrade the application program according to the network type and the terminal identification.
Optionally, determining a terminal that can serve as a local server in an area corresponding to the area identifier includes:
the terminal with the highest version of the application program in the area is determined as the local server, or,
and when the load quantity of the terminal with the highest version of the application program exceeds a set value, selecting the terminal with the highest version from the rest terminals as a local server. . . . . .
In a third aspect, an embodiment of the present application provides an application program upgrading apparatus, where the apparatus includes:
the first sending module is used for sending an application program upgrading request to the remote server, wherein the upgrading request carries an area identifier, so that the remote server returns a network type for upgrading and a terminal identifier serving as a local server according to the area identifier;
and the upgrading module is used for receiving the network type and the terminal identification sent by the remote server, connecting the local server indicated by the terminal identification by using a network connection mode corresponding to the network type, and upgrading the application program through the local server.
In a fourth aspect, an embodiment of the present application provides an application program upgrading apparatus, where the apparatus includes:
the receiving module is used for receiving an application program upgrading request sent by the terminal, and the upgrading request carries an area identifier where the terminal is located;
the determining module is used for determining a terminal which can be used as a local server in the area corresponding to the area identifier;
and the second sending module is used for sending the network type and the terminal identification of the terminal serving as the local server to the terminal so that the terminal can upgrade the application program according to the network type and the terminal identification.
In a fifth aspect, an embodiment of the present application provides a computer device, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform a method that implements the first aspect described above.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, the computer program being configured to implement the method of the first aspect.
To sum up, according to the application program upgrading method provided by the embodiment of the present application, the terminal to be upgraded is connected to the local server by using the corresponding connection method according to the received network type serving as the local server, so that the problem that the terminal to be upgraded cannot be connected to the local server when the network type of the local server is the wireless broadband in the prior art is solved, and the terminal to be upgraded can be connected to the local server to complete application program upgrading, thereby improving the success rate of application program upgrading.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments or the prior art are briefly introduced below, and it is apparent that the drawings are only for the purpose of illustrating a preferred implementation method and are not to be considered as limiting the present invention. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present invention are shown in the drawings.
FIG. 1 is a diagram illustrating an application upgrade method implementation environment architecture according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method for upgrading an application according to an embodiment of the application;
FIG. 3 is a flow chart illustrating yet another method for upgrading an application according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a method for upgrading an application according to an embodiment of the application;
FIG. 5 is a block diagram illustrating an apparatus for upgrading an application according to an embodiment of the present application;
FIG. 6 is a block diagram illustrating another apparatus for upgrading an application according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer system according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is an implementation environment architecture diagram illustrating an application program upgrading method according to an embodiment of the present application. As shown in fig. 1, the implementation environment architecture includes: an upgraded terminal 110, a terminal to be upgraded 120 and a remote server 130.
The upgraded terminal 110 is an application installed in the terminal, and the terminal is upgraded to the highest version. In addition, the upgraded terminal 110 may communicate with the remote server 130, for example, when the upgraded terminal 110 modifies its network type, the upgraded terminal 110 needs to inform the remote server 130 that the network type has been modified by itself, and the modified network type.
In addition, the upgraded terminal 110 may include 1 or more, and of course, if there is no terminal whose upgrade is successful locally, there is no upgraded terminal 110.
The terminal 120 to be upgraded is an application installed in the terminal, and the terminal does not upgrade the application temporarily. In addition, the terminal 120 to be upgraded may communicate with the remote server 130, for example, the terminal 120 to be upgraded needs to send an upgrade request to the remote server 130 and receive related information for upgrading the application program returned by the remote server 130.
The remote server 130 may be a device having an information processing function, or may be a device cluster. And can communicate with the upgraded terminal 110 and the terminal to be upgraded 120.
Fig. 2 is a flowchart illustrating an application program upgrading method according to an embodiment of the present application. The method shown in fig. 2 may be executed by the terminal 120 to be upgraded shown in fig. 1, and the method includes:
step 201, sending an application program upgrading request to a remote server, where the upgrading request carries an area identifier, so that the remote server returns a network type for upgrading and a terminal identifier as a local server according to the area identifier.
The area identifier is used for uniquely identifying an area, and the area is a spatial position where at least one terminal is located. The spatial location may include one or more network types. The network types include wired broadband and wireless broadband, among others.
The terminal identification is used for uniquely identifying one terminal.
Step 202, receiving the network type and the terminal identifier sent by the remote server, connecting the local server indicated by the terminal identifier by using a network connection mode corresponding to the network type, and upgrading the application program through the local server.
Optionally, after the terminal to be upgraded is connected to the terminal that can be used as the local server, the application program upgrade package is downloaded from the local server, and the application program to be upgraded is upgraded by using the upgrade package.
To sum up, the application program upgrading method provided in the embodiment of the present application uses a corresponding connection method to connect to the local server according to the received network type serving as the local server, so as to solve the problem that the terminal to be upgraded cannot be connected to the local server when the network type of the local server is the wireless broadband in the prior art, and further ensure that the terminal to be upgraded can be connected to the local server to complete application program upgrading, thereby improving the success rate of application program upgrading.
Fig. 3 is a flowchart illustrating another application program upgrading method according to an embodiment of the application. The method shown in fig. 3 may be performed by the remote server 130 shown in fig. 1, the method including:
step 301, receiving an application program upgrading request sent by a terminal, wherein the upgrading request carries an area identifier where the terminal is located.
Step 302, determining a terminal that can be used as a local server in an area corresponding to an area identifier, where the area identifier is configured according to a preset area division rule.
Optionally, the remote server determines a first database corresponding to the area identifier through the area identifier, searches for a terminal that can serve as a local server from the database, and obtains a network type and a terminal identifier of the terminal that can serve as the local server.
Step 303, sending the terminal identifier and the network type of the terminal as the local server to the terminal, so that the terminal upgrades the application program according to the terminal identifier and the network type.
To sum up, the application program upgrading method provided in the embodiment of the present application uses a corresponding connection method to connect to the local server according to the received network type serving as the local server, so as to solve the problem that the terminal to be upgraded cannot be connected to the local server when the network type of the local server is the wireless broadband in the prior art, and further ensure that the terminal to be upgraded can be connected to the local server to complete application program upgrading, thereby improving the success rate of application program upgrading.
Fig. 4 is a schematic diagram illustrating another application program upgrading method according to an embodiment of the present application. As shown in fig. 4, the method includes:
step 401, the terminal to be upgraded sends an application program upgrade request to the remote server, and the upgrade request carries an area identifier.
The area identification is the area identification of the area where the terminal to be upgraded is located.
Further, the region may be obtained by dividing according to a preset region division rule. Optionally, the preset area division rule may be to divide the range covered by one local area network into one area, for example, divide the range covered by one wifi router into one area, divide the range covered by one wifi hotspot into one area, and the like.
Further, the region identifier may be configured according to a preset region division rule. Further, the zone identity may be configured based on a certain device ID within the zone. For example, the area identifier of the area covered by the wifi router may be formed by combining the device ID of the router with a number, and the area identifier of the area covered by the wifi hotspot may be formed by combining the ID of the device sharing the hotspot with a number. Of course, the area identifier may be formed by combining numbers, letters, or numbers and letters according to the sequence of the formation of the areas, may also be a randomly determined combination of numbers, letters, or numbers and letters, and may also be other rules, which is not limited to this, as long as one area identifier can uniquely identify one area.
Optionally, the upgrade request may further carry a terminal identifier of the terminal to be upgraded, an application identifier of the application program to be upgraded, version information of the application program to be upgraded, and a forced upgrade flag.
The terminal identification is used for uniquely identifying one terminal, the application program identification is used for uniquely identifying one application program, the version information comprises the current version number of the application program, and the forced upgrading mark is used for indicating that the remote server is used for upgrading, namely the local server is refused to be used for upgrading.
Step 402, the remote server receives an application program upgrading request sent by a terminal to be upgraded, and acquires an area identifier from the upgrading request.
Optionally, when the upgrade request in step 401 carries version information, the remote server acquires the version information while acquiring the area identifier. At this time, the remote server can judge whether the application program to be upgraded is the highest version according to the version number in the version information, if so, the remote server refuses to upgrade the application program to be upgraded, stops executing the subsequent upgrading steps and informs the terminal to be upgraded that the application program is the highest version; if not, determining to upgrade the application program to be upgraded, and executing the subsequent upgrading step.
In addition, it should be noted that, when the upgrade request in step 401 further carries the forced upgrade flag, and the remote server acquires the area identifier from the upgrade request, and also acquires the forced upgrade flag, at this time, the remote server stops executing the subsequent upgrade step, and sends the upgrade packet to the terminal to be upgraded according to the instruction of the forced upgrade flag, so that the terminal to be upgraded uses the remote server to complete the upgrade. And if the remote server does not acquire the forced upgrading mark, continuing to execute the subsequent steps.
In step 403, the remote server determines that the area corresponding to the area identifier can be used as a terminal of the local server.
Optionally, the remote server is provided with a database, and stores, in the database, a correspondence relationship between an application identifier, the highest version information of the application, an area identifier of an area where the application is located, a terminal identifier of a terminal that can be used as the local server, current version information of the application installed in the terminal that can be used as the local server, and a network type of the terminal that can be used as the local server.
Optionally, when the server monitors that each piece of information in the database changes, each piece of information that changes is updated. Illustratively, when the network type of the terminal changes, the terminal sends the network type of the terminal and the terminal identification to the remote server, and the remote server receives the changed network type and terminal identification and updates the network type of the corresponding terminal according to the terminal identification; when the remote server receives that the application program has new highest version information, for example, a developer develops a new application program version, and updates the current highest version information to the new highest version information, further, the remote server checks the current version information of the application program stored in the database and installed as a terminal of the local server, and deletes relevant information of the corresponding terminal when the version of the application program is not the new highest version. Of course, when there is a new area identifier, a terminal identifier of a terminal that can be a local server, or other new data is generated, the remote server adds the corresponding data in the database.
Optionally, the determining, by the remote server, a terminal that can serve as a local server in the area corresponding to the area identifier may include:
firstly, the remote server determines an area identifier which is the same as the area identifier obtained from the upgrading request in a database; then, acquiring terminal identifications of terminals which can be used as local servers and correspond to the determined area identifications; further, if multiple terminal identifiers are obtained, version information corresponding to each terminal identifier is obtained, and a terminal corresponding to a terminal identifier corresponding to the highest version information is determined as a local server. Further, when there are still multiple terminal identifiers corresponding to the highest version information, one terminal identifier may be randomly determined, or a terminal corresponding to a terminal identifier with the smallest load quantity is selected from the multiple terminal identifiers as the local server.
Alternatively, when the load number of the terminal with the highest version of the application program exceeds the set value, the terminal with the highest version among the remaining terminals is selected as the local server.
In addition, it should be noted that, when the remote server does not store the terminal identifier, network type, and other information that can be used as the local server, and it is determined that there is no available local server, the data for upgrading the application program is directly sent, so that the terminal to be upgraded is upgraded through the server.
Step 404, the remote server sends the network type and the terminal identifier of the terminal as the local server to the terminal to be upgraded.
Optionally, in step 403, when determining the terminal identifier and the network type, the remote server may further obtain version information of the application program from the database, and send the version information together to the terminal to be upgraded.
Step 405, the terminal to be upgraded receives the network type and the terminal identifier sent by the remote server, connects the local server indicated by the terminal identifier by using a network connection mode corresponding to the network type, and upgrades the application program through the local server.
Optionally, in step 404, if the remote server sends version information of the application program to be upgraded to the terminal to be upgraded, the terminal to be upgraded also receives the version information, at this time, the terminal to be upgraded may determine, according to the version information, whether the current version of the application program to be upgraded is higher than the received version, and if so, refuse to upgrade the application program to be upgraded, and stop executing the subsequent steps; and if not, upgrading the application program to be upgraded.
Optionally, the connecting, by the terminal to be upgraded, the local server indicated by the terminal identifier using a network connection mode corresponding to the received network type includes:
when the network type is a wireless broadband, a wifi hotspot mode is adopted to communicate with a terminal serving as a local server;
or,
and when the network type is a wired broadband, the network type is communicated with a terminal serving as a local server in a wifi router mode.
When the network type is wireless broadband, the wifi hotspot mode is adopted to communicate with the terminal serving as the local server, and the following process can be adopted: when the received network type is a wireless broadband, for example, a mobile data network, the terminal to be upgraded is actively connected with a wifi hotspot of the terminal serving as a local server, and the wifi hotspot is used for communicating with the local server; and if the connection is not available, requesting the terminal serving as the local server to start the hotspot, connecting to the hotspot after the terminal is started, and communicating with the local server by using the wifi hotspot.
In addition, optionally, when the terminal serving as the local server modifies the network type into a wireless broadband, the wifi hotspot is turned on by default, so that the terminal to be upgraded can be successfully connected with the terminal to be upgraded in the first active connection, thereby reducing time waste caused by multiple attempts and further improving the upgrading rate of the application program.
Further, when the local server starts the wifi hotspot, the hotspot name and the corresponding password can be reset. Illustratively, the hotspot name may be a combination of an area identifier of an area where the local server is located and a device ID of the local server, a password of the area identifier, and the like.
Wherein, when the network type is wired broadband, adopt wifi router mode and as the terminal communication of local server, can include: when the received network type is a wired broadband, determining a wired broadband connected with a terminal serving as a local server and a wifi router of the wired broadband; and then connecting to the determined wifi router so that the terminal to be upgraded and the terminal serving as the local server are connected to the same wifi router.
It should be noted here that the terminal to be upgraded and the terminal serving as the local server use the broadband in the same lan, so that when the two are in communication, the broadband of the internet is not occupied, thereby saving the internet traffic.
Optionally, after the local server upgrades the application program, the terminal to be upgraded may also be used as the local server to upgrade other terminals that have not been upgraded yet. Therefore, the terminal to be upgraded sends the terminal identifier, the version information, the network type and the area identifier of the terminal to be upgraded to the remote server, and stores the terminal identifier, the version information, the network type and the area identifier in the corresponding database. Furthermore, the terminal to be upgraded can also send other related information such as the load number when the terminal is used as a local server to the server.
In addition, when the network type of the terminal that is the local server changes, the terminal that is the local server transmits the change to the remote server so that the remote server updates the related information of the terminal that is the local server.
Optionally, the local server may also determine whether to allow a new terminal to be upgraded to access according to a load condition of the local server, and when receiving is denied, notify the terminal to be upgraded which requests to receive, so that the terminal to be upgraded re-requests to access to other terminals which can serve as the local server. For example, when the number of charges exceeds a preset value, access to a new terminal to be upgraded is denied.
In addition, it should be noted that, when the application program is upgraded, the current network type of the terminal to be upgraded is modified for connecting to the local server terminal, and after the application program is upgraded successfully, the network type of the terminal to be upgraded is modified to the network type before the upgrade.
To sum up, according to the application program upgrading method provided by the embodiment of the present application, the terminal to be upgraded is connected to the local server by using the corresponding connection method according to the received network type serving as the local server, so that the problem that the terminal to be upgraded cannot be connected to the local server when the network type of the local server is the wireless broadband in the prior art is solved, and the terminal to be upgraded can be connected to the local server to complete application program upgrading, thereby improving the success rate of application program upgrading.
In addition, according to the application program upgrading method provided by the embodiment of the application program upgrading method, the remote server stores the terminal identification, the network type and other information of the terminal which can be used as the local server, so that when the remote server receives the upgrading request, the used local server can be quickly determined.
In addition, the application program upgrading method provided by the embodiment of the application preferentially uses the local upgrading method, and compared with the prior art that the local upgrading method is used when the server is overloaded, the application program upgrading method provided by the embodiment of the application not only reduces the pressure of a remote server, but also saves the internet flow.
The embodiments in this specification are described in a progressive manner, and similar parts between the various embodiments are referred to each other. The examples below each step focus on the specific method below that step. The above-described embodiments are merely illustrative, the specific examples are merely illustrative of the present invention, and those skilled in the art can make various modifications and enhancements without departing from the principles of the examples described herein, which should be construed as within the scope of the present invention.
Fig. 5 is a block diagram illustrating an application upgrading apparatus according to an embodiment of the present application. The apparatus may be installed in the terminal 120 to be upgraded shown in fig. 1, and as shown in fig. 5, the apparatus includes:
a first sending module 601, configured to send an application program upgrade request to a remote server, where the upgrade request carries an area identifier, so that the remote server returns a network type for upgrading and a terminal identifier serving as a local server according to the area identifier;
the upgrade module 602 is configured to receive the network type and the terminal identifier sent by the remote server, connect the local server indicated by the terminal identifier in a network connection manner corresponding to the network type, and upgrade the application program through the local server.
Optionally, the network types include wired broadband and wireless broadband.
Optionally, the upgrade module 601 is specifically configured to:
when the network type is a wireless broadband, a wifi hotspot mode is adopted to communicate with a terminal serving as a local server;
or,
and when the network type is a wired broadband, the network type is communicated with a terminal serving as a local server in a wifi router mode.
Optionally, the upgrade module is further configured to: and sending the terminal identification, the version information, the network type and the area identification of the remote server to the remote server.
In addition, please refer to the method embodiment for related contents in the device embodiment, which are not described herein again.
To sum up, the application program upgrading device provided in the embodiment of the present application is to be connected to the local server in a corresponding connection manner according to the received network type serving as the local server, so as to solve the problem that the local server cannot be connected to the local server when the network type of the local server is the wireless broadband in the prior art, and further ensure that the terminal to be upgraded can be connected to the local server to complete application program upgrading, thereby improving the success rate of application program upgrading.
In addition, according to the application program upgrading device provided by the embodiment of the application program upgrading method, the remote server stores the terminal identification, the network type and other information of the terminal which can be used as the local server, so that when the remote server receives an upgrading request, the used local server can be quickly determined.
In addition, the application program upgrading device provided by the embodiment of the application preferentially uses the local upgrading method, and compared with the prior art that the local upgrading method is used when the server is overloaded, the application program upgrading method provided by the embodiment of the application not only reduces the pressure of a remote server, but also saves the internet flow.
Fig. 6 is a block diagram illustrating an application upgrading apparatus according to an embodiment of the present application. The apparatus may be installed in the remote server 130 shown in fig. 1, and as shown in fig. 6, the apparatus includes:
a receiving module 701, configured to receive an application program upgrade request sent by a terminal, where the upgrade request carries an area identifier where the terminal is located;
a determining module 702, configured to determine a terminal that can serve as a local server in an area corresponding to the area identifier;
the second sending module 703 is configured to send the network type and the terminal identifier of the terminal serving as the local server to the terminal, so that the terminal upgrades the application program according to the network type and the terminal identifier.
Optionally, the determining module 702 is specifically configured to:
the terminal with the highest version of the application program in the area is determined as the local server, or,
and when the load quantity of the terminal with the highest version of the application program exceeds a set value, selecting the terminal with the highest version from the rest terminals as a local server.
In addition, please refer to the method embodiment for related contents in the device embodiment, which are not described herein again.
To sum up, the application program upgrading device provided in the embodiment of the present application is to be connected to the local server in a corresponding connection manner according to the received network type serving as the local server, so as to solve the problem that the local server cannot be connected to the local server when the network type of the local server is the wireless broadband in the prior art, and further ensure that the terminal to be upgraded can be connected to the local server to complete application program upgrading, thereby improving the success rate of application program upgrading.
In addition, according to the application program upgrading device provided by the embodiment of the application program upgrading method, the remote server stores the terminal identification, the network type and other information of the terminal which can be used as the local server, so that when the remote server receives an upgrading request, the used local server can be quickly determined.
In addition, the application program upgrading device provided by the embodiment of the application preferentially uses the local upgrading method, and compared with the prior art that the local upgrading method is used when the server is overloaded, the application program upgrading method provided by the embodiment of the application not only reduces the pressure of a remote server, but also saves the internet flow.
Fig. 7 is a schematic structural diagram of a computer system according to an embodiment of the present application, which includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for system operation are also stored. The CPU801, ROM802, and RAM803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. Drives are also connected to the I/O interface 805 as needed. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, the processes described above with reference to flowcharts 2-4 may be implemented as computer software programs, according to embodiments of the present invention. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The computer program executes the above-described functions defined in the system of the present application when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves. The described units or modules may also be provided in a processor, and may be described as: a processor comprises a first sending module 601 and an upgrade module 602. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is enabled to implement the application program upgrading method in the embodiment.
For example, the electronic device may implement the following as shown in fig. 2: step 201, sending an application program upgrading request to a remote server, where the upgrading request carries an area identifier, so that the remote server returns a network type for upgrading and a terminal identifier as a local server according to the area identifier. Step 202, receiving the network type and the terminal identifier sent by the remote server, connecting the local server indicated by the terminal identifier by using a network connection mode corresponding to the network type, and upgrading the application program through the local server. As another example, the electronic device may implement the various steps shown in fig. 3 and 4.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware.
To sum up, the computer system or the computer-readable medium provided in the embodiment of the present application is to be connected to the local server in a corresponding connection manner according to the received network type serving as the local server, so that a problem that the terminal to be upgraded cannot be connected to the local server when the network type of the local server is the wireless broadband in the prior art is solved, and it is further ensured that the terminal to be upgraded can be connected to the local server to complete application upgrade, thereby improving the success rate of application upgrade.
In addition, in the computer system or the computer readable medium provided in the embodiment of the present application, the remote server stores information such as a terminal identifier and a network type of a terminal that can be used as a local server, so that when the remote server receives an upgrade request, the local server that is used can be determined quickly.
In addition, the computer system or the computer readable medium provided by the embodiment of the application preferentially uses the local upgrading method, and compared with the prior art that the local upgrading method is used only when the server is overloaded, the application upgrading method provided by the embodiment of the application not only reduces the pressure of the remote server, but also saves the internet flow.
The foregoing is considered as illustrative only of the preferred embodiments of the invention and illustrative only of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. An application program upgrade method, the method comprising:
sending an application program upgrading request to a remote server, wherein the upgrading request carries an area identifier, so that the remote server returns a network type for upgrading and a terminal identifier serving as a local server according to the area identifier;
and receiving the network type and the terminal identification sent by the remote server, connecting a local server indicated by the terminal identification by using a network connection mode corresponding to the network type, and upgrading an application program through the local server.
2. The application upgrade method according to claim 1, wherein the network types include wired broadband and wireless broadband.
3. The method for upgrading an application program according to claim 2, wherein the connecting the local server indicated by the terminal identifier using the network connection mode corresponding to the network type includes:
when the network type is a wireless broadband, communicating with the terminal serving as the local server in a wifi hotspot mode;
or,
and when the network type is a wired broadband, communicating with the terminal serving as the local server in a wifi router mode.
4. The method for upgrading an application program according to claim 1, further comprising, after upgrading the application program:
and sending the terminal identification, the version information, the network type and the area identification of the remote server to the remote server.
5. An application program upgrade method, the method comprising:
receiving an application program upgrading request sent by a terminal, wherein the upgrading request carries an area identifier of the terminal;
determining a terminal which can be used as a local server in an area corresponding to the area identifier;
and sending the network type and the terminal identification of the terminal serving as the local server to the terminal, so that the terminal can upgrade the application program according to the network type and the terminal identification.
6. The application program upgrading method according to claim 5, wherein the determining that the terminal that can serve as a local server in the area corresponding to the area identifier comprises:
and determining the terminal with the highest version of the application program in the area as a local server, or,
and when the load quantity of the terminal with the highest version of the application program exceeds a set value, selecting the terminal with the highest version from the rest terminals as a local server.
7. An application upgrade apparatus, comprising:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending an application program upgrading request to a remote server, and the upgrading request carries an area identifier so that the remote server returns a network type for upgrading and a terminal identifier serving as a local server according to the area identifier;
and the upgrading module is used for receiving the network type and the terminal identification sent by the remote server, connecting a local server indicated by the terminal identification by using a network connection mode corresponding to the network type, and upgrading the application program through the local server.
8. An application upgrade apparatus, comprising:
the terminal comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an application program upgrading request sent by the terminal, and the upgrading request carries an area identifier where the terminal is located;
the determining module is used for determining a terminal which can be used as a local server in the area corresponding to the area identifier;
and the second sending module is used for sending the network type and the terminal identification of the terminal serving as the local server to the terminal so that the terminal can upgrade the application program according to the network type and the terminal identification.
9. A computer apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
10. A computer-readable storage medium, having stored thereon a computer program for:
the computer program, when executed by a processor, implements the method of any one of claims 1-6.
CN201910560422.7A 2019-06-26 2019-06-26 Application program upgrading method, device, equipment and storage medium Pending CN112148320A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910560422.7A CN112148320A (en) 2019-06-26 2019-06-26 Application program upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910560422.7A CN112148320A (en) 2019-06-26 2019-06-26 Application program upgrading method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112148320A true CN112148320A (en) 2020-12-29

Family

ID=73869710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910560422.7A Pending CN112148320A (en) 2019-06-26 2019-06-26 Application program upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112148320A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732305A (en) * 2021-04-02 2021-04-30 北京新唐思创教育科技有限公司 Intelligent device upgrading method and device, mobile terminal, intelligent device and medium
CN113204368A (en) * 2021-04-20 2021-08-03 北京达佳互联信息技术有限公司 Application processing method, server and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546765A (en) * 2011-12-20 2012-07-04 福建新大陆电脑股份有限公司 Method, device and system for upgrading electronic scale
CN103685554A (en) * 2013-12-25 2014-03-26 浙江云巢科技有限公司 Upgrading method, device and system
CN105843643A (en) * 2016-03-22 2016-08-10 维沃移动通信有限公司 Mobile terminal software version upgrading method and mobile terminal
US20170034309A1 (en) * 2014-04-16 2017-02-02 Huawei Technologies Co., Ltd. Software upgrade method and terminal
US20170249137A1 (en) * 2015-03-24 2017-08-31 Huawei Technologies Co., Ltd. Method for Upgrading Terminal System, Terminal, and System
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
CN107329741A (en) * 2017-06-12 2017-11-07 北京北信源软件股份有限公司 A kind of software distribution upgrade method and device based on fingerprint recognition
CN107682440A (en) * 2017-10-17 2018-02-09 美的集团股份有限公司 The method for upgrading software of smart machine, device and system
CN109189445A (en) * 2018-10-12 2019-01-11 武汉微智创大科技有限公司 A kind of method of internet of things equipment program upgrading

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546765A (en) * 2011-12-20 2012-07-04 福建新大陆电脑股份有限公司 Method, device and system for upgrading electronic scale
CN103685554A (en) * 2013-12-25 2014-03-26 浙江云巢科技有限公司 Upgrading method, device and system
US20170034309A1 (en) * 2014-04-16 2017-02-02 Huawei Technologies Co., Ltd. Software upgrade method and terminal
US20170249137A1 (en) * 2015-03-24 2017-08-31 Huawei Technologies Co., Ltd. Method for Upgrading Terminal System, Terminal, and System
CN105843643A (en) * 2016-03-22 2016-08-10 维沃移动通信有限公司 Mobile terminal software version upgrading method and mobile terminal
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
CN107329741A (en) * 2017-06-12 2017-11-07 北京北信源软件股份有限公司 A kind of software distribution upgrade method and device based on fingerprint recognition
CN107682440A (en) * 2017-10-17 2018-02-09 美的集团股份有限公司 The method for upgrading software of smart machine, device and system
CN109189445A (en) * 2018-10-12 2019-01-11 武汉微智创大科技有限公司 A kind of method of internet of things equipment program upgrading

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732305A (en) * 2021-04-02 2021-04-30 北京新唐思创教育科技有限公司 Intelligent device upgrading method and device, mobile terminal, intelligent device and medium
CN113204368A (en) * 2021-04-20 2021-08-03 北京达佳互联信息技术有限公司 Application processing method, server and storage medium

Similar Documents

Publication Publication Date Title
CN111278031B (en) PDU type setting method, UE strategy setting method, entity and storage medium
CN104219127B (en) A kind of creation method and equipment of virtual network example
KR102513998B1 (en) Communication methods and devices, entities and computer readable storage media
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
CN108681777B (en) Method and device for running machine learning program based on distributed system
US11432137B2 (en) Service notification method for mobile edge host and apparatus
CN111475180A (en) Method and system for updating client cache
CN112565334B (en) Access method and device of Internet of things equipment and MQTT gateway
CN112799825A (en) Task processing method and network equipment
CN111510466B (en) Data updating method and device for client, electronic equipment and readable medium
CN109857577B (en) Access control method, device, medium, and electronic apparatus
CN113892279A (en) Resource subscription method, device, server and computer storage medium
CN112148320A (en) Application program upgrading method, device, equipment and storage medium
CN114364031A (en) Service providing method, device and storage medium
CN110417876B (en) Session method, node server in distributed system and master control equipment
CN109471713B (en) Method and device for inquiring information
CN110741617A (en) Resource updating method and device, computer equipment and storage medium
CN112055077B (en) Block link access method, device and storage medium
CN118012500A (en) Version compatible method, device, equipment and computer readable storage medium
CN113760278A (en) Page management method and device
CN110365839B (en) Shutdown method, shutdown device, shutdown medium and electronic equipment
CN107766212B (en) Method and device for determining installation state of application program
CN113746851B (en) Proxy system and method supporting real-time analysis of GRPC request
CN114417318A (en) Third-party page jumping method and device and electronic equipment
CN113535402A (en) Load balancing processing method and device based on 5G MEC and electronic equipment

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