CN111367545A - Terminal upgrading method and device, server, terminal equipment and readable storage medium - Google Patents

Terminal upgrading method and device, server, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN111367545A
CN111367545A CN202010091540.0A CN202010091540A CN111367545A CN 111367545 A CN111367545 A CN 111367545A CN 202010091540 A CN202010091540 A CN 202010091540A CN 111367545 A CN111367545 A CN 111367545A
Authority
CN
China
Prior art keywords
terminal
version number
upgrading
upgrade
upgraded
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.)
Withdrawn
Application number
CN202010091540.0A
Other languages
Chinese (zh)
Inventor
汪旭
刘驹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010091540.0A priority Critical patent/CN111367545A/en
Publication of CN111367545A publication Critical patent/CN111367545A/en
Withdrawn 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

Abstract

The embodiment of the application provides a terminal upgrading method, a terminal upgrading device, a server, terminal equipment and a readable storage medium, and aims to solve the problem of difficulty in management and maintenance in the terminal upgrading process. The terminal upgrading method is applied to a server, and comprises the following steps: the method comprises the steps of receiving an upgrading request sent by a terminal, wherein the upgrading request at least carries an equipment identifier and a current version number group of the terminal, the current version number group comprises at least one version number, determining an internal version number of the terminal according to the equipment identifier and the current version number group carried by the upgrading request, judging whether the terminal belongs to a terminal to be upgraded according to the internal version number and a preset upgrading rule, and sending information of an upgrading file to the terminal to be upgraded under the condition that the terminal belongs to the terminal to be upgraded so that the terminal to be upgraded can upgrade the terminal according to the information of the upgrading file.

Description

Terminal upgrading method and device, server, terminal equipment and readable storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a terminal upgrading method, a terminal upgrading device, a server, terminal equipment and a readable storage medium.
Background
With the development of the internet of things, intelligent terminals of the internet of things are gradually popularized, such as IPC intelligent cameras, Network Video Recorders (NVRs), passenger flow cameras, face cameras and the like. In order to solve the problem of system upgrading and optimization of the intelligent terminal, OTA upgrading needs to be carried out on the terminal equipment.
OTA upgrade mainly refers to a method for updating firmware in terminal equipment through air interface remote management. The intelligent terminal equipment can update the operating system, the system configuration and the like of the equipment through OTA upgrading. Therefore, OTA upgrading enables equipment manufacturers to send upgrading files to intelligent terminal equipment of users through a network so as to upgrade and optimize the equipment, on one hand, upgrading of the intelligent terminal can be facilitated, and on the other hand, cost of the equipment manufacturers can be saved.
However, at present, there are many manufacturers of intelligent terminals, each manufacturer has multiple device types, which results in large difference between version number rules of devices produced by each manufacturer, a uniform upgrade rule cannot be applied in the terminal upgrade process, and different upgrade rules need to be set for the version number rules of each manufacturer when the terminal is upgraded, so that the terminal upgrade process is difficult to manage and maintain.
Disclosure of Invention
The embodiment of the application provides a terminal upgrading method, a terminal upgrading device, a server, terminal equipment and a readable storage medium, and aims to solve the problem of difficulty in management and maintenance in the terminal upgrading process.
A first aspect of an embodiment of the present application provides a terminal upgrading method, which is applied to a server, and the method includes:
receiving an upgrade request sent by a terminal, wherein the upgrade request at least carries an equipment identifier and a current version number group of the terminal, and the current version number group comprises at least one version number;
determining the internal version number of the terminal according to the equipment identifier and the current version number group carried by the upgrading request;
judging whether the terminal belongs to a terminal to be upgraded or not according to the internal version number and a preset upgrading rule;
and under the condition that the terminal belongs to a terminal to be upgraded, sending information of an upgrading file to the terminal to be upgraded so that the terminal to be upgraded upgrades the terminal per se according to the information of the upgrading file.
Optionally, determining the internal version number of the terminal according to the device identifier and the current version number group carried by the upgrade request includes:
inquiring a preset corresponding relation between the equipment identifier and the equipment type identifier according to the equipment identifier carried by the upgrading request, and determining the inquired equipment type identifier as the equipment type identifier of the terminal;
and inquiring a preset corresponding relation among the equipment type identifier, the version number group and the internal version number according to the current version number group carried by the upgrading request and the equipment type identifier of the terminal, and determining the inquired internal version number as the internal version number of the terminal.
Optionally, after querying a preset correspondence between the device type identifier, the version number group, and the internal version number, the method further includes:
under the condition that the internal version number is not inquired, outputting a configuration prompt to prompt a user to configure a new internal version number for the terminal;
and establishing a corresponding relation among the new internal version number, the current version number group carried by the upgrading request and the equipment type identifier of the terminal.
Optionally, when the terminal belongs to a terminal to be upgraded, in addition to sending information of an upgrade file to the terminal to be upgraded, the method further includes:
adding an upgrade record corresponding to the upgrade request in an upgrade log of the terminal to be upgraded, wherein the upgrade record at least comprises an equipment identifier of the terminal to be upgraded, a version number of the upgrade file sent to the terminal to be upgraded and an upgrade state of the equipment to be upgraded;
receiving an equipment identifier and a current version number group sent by the terminal to be upgraded in an initialization process;
and under the condition that the version number in the current version number group sent by the terminal to be upgraded in the initialization process is matched with the version number of the upgrade file sent to the terminal, determining that the terminal to be upgraded is upgraded successfully, and updating the upgrade state in the upgrade record corresponding to the upgrade request in the upgrade log.
Optionally, according to the internal version number and a preset upgrade rule, determining whether the terminal belongs to a terminal to be upgraded, including at least one of:
judging whether the internal version number of the terminal is within a preset version number range or not;
judging whether the time for receiving the upgrading request is within a preset time period or not;
judging whether the equipment identifier of the terminal is in a preset equipment identifier list or not;
and judging whether the equipment type identifier of the terminal is in a preset equipment type identifier list.
Optionally, before receiving the upgrade request sent by the terminal, the method further includes:
configuring a polling time interval in an initialization interface prepared for calling by the terminal, or sending the polling time interval to the terminal through a network;
receiving an upgrade request sent by a terminal, wherein the upgrade request comprises:
and receiving an upgrading request periodically sent by the terminal according to the polling time interval.
A second aspect of the present application provides a terminal upgrading method, which is applied to a terminal, and the method includes:
sending an upgrade request to a server, wherein the upgrade request carries the equipment identifier of the terminal and a current version number group, and the current version number group comprises at least one version number;
receiving the information of the upgrade file sent by the server;
and upgrading the self according to the information of the upgrading file.
Optionally, the method further comprises:
calling an initialization interface to acquire a polling time interval, or receiving the polling time interval sent by the server through a network;
sending an upgrade request to a server, comprising:
periodically sending an upgrade request to the server according to the polling time interval.
Optionally, the information of the upgrade file includes a download address and verification information of the upgrade file, and the upgrading of the upgrade file according to the information of the upgrade file includes:
downloading the upgrade file according to the download address of the upgrade file;
according to the inspection information, verifying the integrity of the upgrade file;
and under the condition that the upgrading file is a complete upgrading file, upgrading the upgrading file based on the upgrading file.
Optionally, after upgrading itself, the method further includes:
automatically restarting and initializing;
sending the equipment identifier and the current version number group to the server in an initialization process so that the server determines whether the terminal is upgraded successfully according to whether the version number in the current version number group is matched with the version number of the upgrade file sent to the terminal corresponding to the equipment identifier;
receiving a re-upgrading instruction sent by the server, wherein the re-upgrading instruction is sent by the server when the terminal is determined to be failed to be upgraded;
and re-sending the upgrading request to the server.
A third aspect of the embodiments of the present application provides a terminal upgrading apparatus, which is applied to a server, and the apparatus includes:
the first receiving module is used for receiving an upgrade request sent by a terminal, wherein the upgrade request at least carries an equipment identifier and a current version number group of the terminal, and the current version number group comprises at least one version number;
the determining module is used for determining the internal version number of the terminal according to the equipment identifier and the current version number group carried by the upgrading request;
the judging module is used for judging whether the terminal belongs to a terminal to be upgraded or not according to the internal version number and a preset upgrading rule;
the first sending module is used for sending the information of the upgrade file to the terminal to be upgraded under the condition that the terminal belongs to the terminal to be upgraded, so that the terminal to be upgraded can upgrade the terminal according to the information of the upgrade file.
Optionally, the determining module includes:
the first determining submodule is used for inquiring a preset corresponding relation between the equipment identifier and the equipment type identifier according to the equipment identifier carried by the upgrading request and determining the inquired equipment type identifier as the equipment type identifier of the terminal;
and the second determining submodule is used for inquiring the preset corresponding relation among the equipment type identifier, the version number group and the internal version number according to the current version number group carried by the upgrading request and the equipment type identifier of the terminal, and determining the inquired internal version number as the internal version number of the terminal.
Optionally, the apparatus further comprises:
the output module is used for outputting a configuration prompt to prompt a user to configure a new internal version number for the terminal under the condition that the internal version number is not inquired;
and the establishing module is used for establishing the corresponding relation among the new internal version number, the current version number group carried by the upgrading request and the equipment type identifier of the terminal.
Optionally, the apparatus further comprises:
the adding module is used for adding an upgrading record corresponding to the upgrading request in an upgrading log of the terminal to be upgraded, wherein the upgrading record at least comprises an equipment identifier of the terminal to be upgraded, a version number of the upgrading file sent to the terminal to be upgraded and an upgrading state of the equipment to be upgraded;
the second receiving module is used for receiving the equipment identifier and the current version number group sent by the terminal to be upgraded in the initialization process;
and the updating module is used for determining that the terminal to be upgraded is successfully upgraded and updating the upgrading state in the upgrading log corresponding to the upgrading request under the condition that the version number in the current version number group sent by the terminal to be upgraded in the initialization process is matched with the version number of the upgrading file sent to the terminal.
Optionally, the determining module includes:
the first judgment submodule is used for judging whether the internal version number of the terminal is within a preset version number range or not;
the second judgment submodule is used for judging whether the time for receiving the upgrading request is within a preset time period;
a third judging submodule, configured to judge whether the device identifier of the terminal is in a preset device identifier list;
and the fourth judging submodule is used for judging whether the equipment type identifier of the terminal is in a preset equipment type identifier list or not.
Optionally, the apparatus further comprises:
a configuration module, configured to configure a polling time interval in an initialization interface of the terminal ready for call, or,
a second sending module, configured to send a polling time interval to the terminal through a network;
the first receiving module comprises:
and the receiving submodule is used for receiving the upgrading request periodically sent by the terminal according to the polling time interval.
A fourth aspect of the present embodiment provides a terminal upgrading apparatus, which is applied to a terminal, and includes:
a third sending module, configured to send an upgrade request to a server, where the upgrade request carries an equipment identifier of the terminal and a current version number group, and the current version number group includes at least one version number;
the third receiving module is used for receiving the information of the upgrade file sent by the server;
and the upgrading module is used for upgrading the upgrading module according to the information of the upgrading file.
Optionally, the upgrade module includes:
the download submodule is used for downloading the upgrade file according to the download address of the upgrade file;
the verification submodule is used for verifying the integrity of the upgrade file according to the verification information;
and the upgrading submodule is used for upgrading the upgrading file based on the upgrading file under the condition that the upgrading file is a complete upgrading file.
Optionally, the apparatus further comprises:
the restarting module is used for automatically restarting and initializing;
a fourth sending module, configured to send the device identifier and the current version number group to the server in an initialization process, so that the server determines whether the terminal is upgraded successfully according to whether a version number in the current version number group matches a version number of the upgrade file sent to the terminal corresponding to the device identifier;
a fifth receiving module, configured to receive a re-upgrade instruction sent by the server, where the re-upgrade instruction is sent by the server when it is determined that the terminal fails to be upgraded;
and the fifth sending module is used for resending the upgrading request to the server.
A fifth aspect of the embodiments of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where when the processor executes the computer program, the server implements the steps of the method according to the first aspect of the present application.
A sixth aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where when the processor executes the computer program, the steps of the method according to the second aspect of the present application are implemented.
A seventh aspect of embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the method according to the first or second aspect of the present application.
By adopting the terminal upgrading method provided by the embodiment of the application, the internal version number of the terminal equipment is searched according to the equipment identification of each equipment type of each manufacturer and the current version number group by establishing the mapping relation of the version number, and then the terminal equipment is upgraded according to the internal version number and the preset upgrading rule, so that the difference of the version numbers of each type of equipment of each manufacturer is shielded, the unified upgrading rule can be effectively applied, each equipment type of each manufacturer is uniformly managed, and the problem of difficult management and maintenance in the terminal upgrading process is effectively solved.
In addition, the terminal sends the equipment identifier and the current version number group to the server in the initialization process, so that the server can sense the upgrading state of the terminal equipment, and maintenance and management personnel can perform timely operation according to the upgrading state.
Moreover, the terminal of the embodiment of the application periodically sends the upgrade request, so that the influence of the weak network environment or the network fluctuation environment on the terminal upgrade can be effectively relieved, and the upgrade success rate of the terminal equipment is improved.
It is to be understood that not necessarily all such advantages described above may be achieved in the practice of any one method or product of the embodiments herein.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a terminal upgrading method according to an embodiment of the present application;
fig. 2 is a flowchart of a terminal upgrade method according to another embodiment of the present application;
fig. 3 is a flowchart of a terminal upgrade method according to another embodiment of the present application;
fig. 4 is a schematic diagram of a terminal upgrade system according to an embodiment of the present application;
fig. 5 is a schematic diagram of a terminal upgrading apparatus provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a terminal upgrading device according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the problem of difficulty in management and maintenance in the terminal upgrading process, referring to fig. 1, fig. 1 is a flowchart of a terminal upgrading method according to an embodiment of the present application. The method is implemented based on an interaction between the server and the terminal.
The method shown in fig. 1 is mainly applied to the server side, and as shown in fig. 1, the method includes the following steps:
step S11, receiving an upgrade request sent by a terminal, where the upgrade request at least carries a device identifier of the terminal and a current version number group, and the current version number group includes at least one version number.
In this embodiment, the device identifier is a global unique identifier of one device, and is used to uniquely refer to one terminal device. In some embodiments, the device identification may be the device ID of the terminal, e.g., d 1110100001.
The current version number group refers to a composition of version information currently operated by a terminal, and is usually set by a device manufacturer according to a device state of the device manufacturer, and the terminal is manufactured, so that the version number groups of the device manufacturers are different from each other. For example, assume that the vendor sets only one kernel version number, or that the vendor sets one kernel version number and an SDK version number.
And step S12, determining the internal version number of the terminal according to the equipment identifier and the current version number group carried by the upgrade request.
In this embodiment, although the version number group carries various version numbers, the version number in the version number group of each device manufacturer has no rule, and cannot be used to distinguish whether the terminal device needs to be upgraded. As shown in table 1, the hardware version number 102f, the kernel version number NVSS _ V1.2, the algorithm version number 1.0.0, and the SDK version number v1.2.2_ test are all set by the manufacturer, have no uniform rule, and cannot be used to distinguish whether the terminal device needs to be upgraded, so it is necessary to determine whether the terminal needs to be upgraded according to the internal version number.
Table 1 version number group table
Hardware version number Kernel version number Algorithm version number SDK version number Extended version number
102f NVSS_V1.2 1.0.0 v1.2.2_test Is free of
The server may be connected to the device management database, or the device management database may be deployed inside the server. After receiving the device identifier and the current version number group sent by the terminal, the server may query an internal version number from the device management database according to the device identifier and the current version number group.
In one embodiment, a preset correspondence between the device identifier and the device type identifier, and a preset correspondence between the device type identifier, the version number group, and the internal version number are stored in the device management database in advance. The step S12 may specifically include the following steps:
step S121, querying a preset correspondence between the device identifier and the device type identifier according to the device identifier carried in the upgrade request, and determining the queried device type identifier as the device type identifier of the terminal.
Step S122, according to the current version number group carried by the upgrade request and the device type identifier of the terminal, inquiring a preset corresponding relation among the device type identifier, the version number group and the internal version number, and determining the inquired internal version number as the internal version number of the terminal.
In this embodiment, each terminal device that needs to be upgraded needs to put terminal device information in storage, that is, information of the terminal device is input into the device management database, and when the terminal device is input into the device management database, a device manufacturer provides a device version number group and a device delivery number, so the device management database can allocate a terminal identifier for each terminal device and send the terminal identifier to each terminal device, and in addition, each terminal device that is put in storage can be labeled with a device type identifier, so that a preset corresponding relationship between the device identifier and the device type identifier can be stored in the device management database, that is, a device type identifier information table, and in addition, the device type identifier dictionary table can further include the device delivery number and device details, as shown in table 2.
TABLE 2 device type identifier dictionary Table
Device identification Device type identification Factory equipment serial number Details of the device
d111010xxxxxx 1 479214BXXXX XXX
d112010xxxxxx 1 349221BXXXX xxx
The device type identifier is used for uniquely identifying the type of one terminal device, is different from the device type, the device type refers to the type difference between a passenger flow camera and a face camera, and the device type is used for distinguishing the upgrade file used by the terminal device. That is, it is possible to know which upgrade file the terminal device needs to use according to the device type. One device belongs to only one device type, and one device type can comprise a plurality of devices. As shown in table 3, the device dictionary table is stored in the device management database, and the device types of the terminal devices of different device manufacturers are different, and the same terminal device of the same device manufacturer may also have different device types, for example, the passenger flow camera of the a manufacturer may have two device types 1 and 2, and the upgrade files used by the two passenger flow cameras 1 and 2 are different.
TABLE 3 device dictionary Table
Device type identification Device type name Supplier identification Type details
1 Human face camera Manufacturer A Details of XXX
2 Passenger flow camera XX manufacturer XXX
3 Human face camera Manufacturer B xxxx
In addition, when the information of the terminal device is entered into the device management database, an internal version number can be set for each terminal device according to the version number group and the device type identifier of each terminal device provided by the device manufacturer, so that the preset corresponding relationship among the device type identifier, the version number group, and the internal version number can be stored in the device management database, as shown in table 4. That is, one device type and one version number group correspond to one internal version number, thereby completing the conversion from the version number group to the internal version number. The internal version number is used for comparing with the version number of the upgrade file so as to determine whether updating is needed, and the internal version number can be a decimal three-section version number.
Therefore, when receiving an upgrade request sent by a terminal device, a server can firstly find the device type identifier corresponding to the terminal according to the device identifier carried by the upgrade request, and then find the internal version number of the terminal according to the device type identifier and the current version number group.
Table 4 correspondence table between device type identifier, version number group, and internal version number
Figure BDA0002383902570000111
In an embodiment, the device management database may not set an internal version number for a certain terminal device in advance, so that the server cannot find the internal version number of the terminal device in the device management database, and at this time, the terminal upgrade method according to this embodiment may further include the following steps:
and step S123, outputting a configuration prompt to prompt a user to configure a new internal version number for the terminal under the condition that the internal version number is not inquired.
Step S124, establishing a corresponding relationship between the new internal version number, the current version number group carried by the upgrade request, and the device type identifier of the terminal.
In this embodiment, if the terminal device does not have a corresponding internal version number, as shown in table 5, the server does not determine whether the terminal device is upgraded, and further does not issue the information of the upgrade file to the terminal device. Therefore, in order to enable the terminal device to be upgraded normally, if the internal version number corresponding to the terminal device is not queried, the server may output a configuration prompt to prompt a management maintenance worker to configure a new internal version number for the terminal device. After the management maintenance personnel configure a new internal version number for the terminal equipment, the server can establish a corresponding relationship among the new internal version number of the terminal equipment, the current version number group carried by the upgrading request and the equipment type identifier of the terminal, so that when the server receives the upgrading request of the terminal equipment again, the server can search the internal version number according to the equipment identifier carried by the upgrading request and the current version number group.
Table 5 correspondence table between device type identifier, version number group, and internal version number
Figure BDA0002383902570000112
And step S13, judging whether the terminal belongs to the terminal to be upgraded or not according to the internal version number and a preset upgrading rule.
In this embodiment, the server does not send the information of the upgrade file to the terminal device after receiving the upgrade request sent by the terminal device, and also needs to determine whether the terminal device needs to be upgraded according to the internal version number and the preset upgrade rule, that is, whether the terminal device belongs to the terminal to be upgraded.
In an embodiment, the step S13 may specifically include at least one of the following steps:
step S131, judging whether the internal version number of the terminal is within a preset version number range.
In this embodiment, the internal version number of the terminal device may include each version, and considering that some version numbers are too low, upgrading may not be successful or not be supported, so it is necessary to determine whether the internal version number of the terminal is within a preset version number range, and only the terminal device within the preset range supports upgrading. Illustratively, there are five terminal devices, the internal version numbers of which are 1.0.1, 1.0.2, 1.0.5, 1.0.7 and 1.0.9, respectively, and the version number of the upgrade file of this time is 1.1.0, wherein the internal version number 1.0.1 does not support the upgrade to 1.1.0, so that the preset version number range can be set to be greater than 1.0.1, i.e. only the terminal devices with the internal version number greater than 1.0.1 support the upgrade to 1.1.0. And judging whether the internal version number is in the range of the preset version number or not, wherein the judgment is carried out necessarily for upgrading the terminal.
Step S132, determining whether the time for receiving the upgrade request is within a preset time period.
In some embodiments, further considering that the terminal device has a working time period and a non-working time period, the working time period executes a normal task, the available memory is small, and the normal task needs to occupy a main network resource in the working time period, therefore, in order to ensure upgrade success rate, the server may set a preset time period, and the server may determine whether the time when the upgrade request is received is within the preset time period, and only if the upgrade request is received within the preset time period, the server may perform upgrade.
Step S133, determining whether the device identifier of the terminal is in a preset device identifier list.
In some embodiments, it is considered that the management and maintenance staff may need to control whether the terminal device is upgraded, that is, under a certain condition, it is not desirable that all the terminal devices are upgraded to the version corresponding to the current upgrade file, therefore, the management and maintenance staff may set an device identifier list in advance in the server, and the server may determine whether the device identifier of the terminal is in the preset device identifier list, and only the terminal device in the device identifier list may be upgraded.
Step S134, determining whether the device type identifier of the terminal is in a preset device type identifier list.
In some embodiments, similarly, in consideration that the management maintenance staff may need to control whether the terminal device is upgraded, that is, in a certain situation, it is not desirable that all the terminal devices are upgraded to the version corresponding to the current upgrade file, therefore, the management maintenance staff may also set a device type identifier list in advance in the server, and the server may determine whether the device type identifier of the terminal is in the preset device type identifier list, and only the terminal device in the device type identifier list may be upgraded.
And step S14, sending the information of the upgrade file to the terminal to be upgraded under the condition that the terminal belongs to the terminal to be upgraded, so that the terminal to be upgraded upgrades itself according to the information of the upgrade file.
In this embodiment, the terminal device may perform upgrading according to the information of the upgrade file. Specifically, the information of the upgrade file may include a download address of the upgrade file and verification information of the upgrade file.
The terminal equipment can download the upgrade file from the download address of the upgrade file after acquiring the information of the upgrade file sent by the server, check the integrity of the downloaded upgrade file by using the check information of the upgrade file, and if the upgrade file is checked to be the complete upgrade file, the terminal can upgrade itself based on the upgrade file.
Illustratively, if the firmware of the terminal is upgraded, the upgrade file may be a firmware upgrade package.
In one embodiment, the verification information of the upgrade file may be an MD5 verification code, and the MD5 verification code is used for verifying the integrity of the upgrade file after the terminal device downloads the upgrade file.
In the embodiment, by establishing the version number mapping relationship, the internal version number of the terminal device is searched according to the device identifier of each device type of each manufacturer and the current version number group, and then the terminal device is upgraded according to the internal version number and the preset upgrade rule, so that the difference of the version numbers of each device type of each manufacturer is shielded, a unified upgrade rule can be effectively applied, each device type of each manufacturer is uniformly managed, and the problem of difficulty in management and maintenance in the terminal upgrade process is effectively solved.
In one embodiment, it is considered that the management and maintenance personnel may need to know the upgrading condition of the terminal device, so as to perform corresponding measures according to the upgrading condition of the terminal device, for example, if the terminal device is upgraded successfully, the terminal device is assigned with a work task.
To this end, referring to fig. 2, fig. 2 is a flowchart of a terminal upgrade method according to another embodiment of the present application. As shown in fig. 2, the method may further include the steps of:
step S15, adding an upgrade record corresponding to the upgrade request in the upgrade log of the terminal to be upgraded, wherein the upgrade record at least comprises the equipment identification of the terminal to be upgraded, the version number of the upgrade file sent to the terminal to be upgraded and the upgrade state of the equipment to be upgraded.
Step S16, receiving the device identifier and the current version number group sent by the terminal to be upgraded in the initialization process.
Step S17, when the version number in the current version number group sent by the terminal to be upgraded in the initialization process matches the version number of the upgrade file sent to the terminal, determining that the terminal to be upgraded is upgraded successfully, and updating the upgrade state in the upgrade record corresponding to the upgrade request in the upgrade log.
In this embodiment, the server may store an upgrade log of each terminal device that needs to be upgraded. Each terminal device corresponds to an upgrade log, the upgrade log of the terminal device can be established when the terminal device inputs the information of the terminal device into the server, or can be established when the server sends the information of the upgrade file to the terminal device for the first time, and the upgrade log can be stored in the server for a long time. In this way, when the server determines that the terminal belongs to the terminal to be upgraded, in addition to sending the information of the upgrade file to the terminal to be upgraded, an upgrade record corresponding to the upgrade request may be added to the upgrade log.
After the upgrade record is added, the server waits for the terminal equipment to be upgraded, the terminal equipment is automatically restarted after the upgrade is successful, and then the server initialization interface is called to report the equipment identification and the current version number group to the server.
Therefore, the server can receive and judge whether the version number in the current version number group sent by the terminal equipment is matched with the version number of the upgrade file sent to the terminal. If the version number in the current version number group sent by the terminal equipment is matched with the version number of the upgrade file sent to the terminal, the terminal to be upgraded can be determined to be upgraded successfully, so that the upgrade state in the upgrade record corresponding to the upgrade request in the upgrade log can be updated, for example, the previous upgrade state is failed, and at this time, the 'failure' can be updated to be 'successful'; if the version number in the current version number group sent by the terminal equipment is not matched with the version number of the upgrade file sent to the terminal, it can be determined that the terminal to be upgraded fails to be upgraded, and after determining that the terminal to be upgraded fails to be upgraded, the server updates the upgrade state in the upgrade record corresponding to the upgrade request in the upgrade log to be failed.
In an embodiment, after determining that the terminal to be upgraded fails to be upgraded, the server also sends a re-upgrade instruction to the terminal, and after receiving the re-upgrade instruction sent by the server, the terminal device sends an upgrade request to the server again to perform re-upgrade.
Considering that the terminal device may have problems and result in a failure of upgrading all the time, in order to avoid that the terminal device continuously sends an upgrade request to the server in a short time, the server also records the number of times that the server continuously sends the upgrade request when sending the upgrade request to the terminal, and when the recorded number of times of the upgrade request reaches a preset number of times, the terminal device is considered to be incapable of being upgraded, and a repair prompt is output for prompting a management maintenance worker to modify the terminal device. Wherein, the continuous sending of the upgrade orders means that the time interval between two upgrade orders does not exceed the preset time interval.
Therefore, the server can sense the upgrading state of the terminal equipment, so that maintenance and management personnel can perform timely operation according to the upgrading state.
In addition, in the conventional terminal upgrading method, in consideration of the upgrading success rate, the terminal device needs to communicate with the server and download files for many times in a single upgrading process, and in consideration of the fact that the network connection between the terminal device and the server may fluctuate or be in a weak network environment, if the terminal device communicates with the server for many times and downloads files, the situation of communication failure is easy to occur, so that upgrading failure is caused. Therefore, in some embodiments, before executing the step S11, the following steps may be specifically executed:
step S101, configuring a polling time interval in an initialization interface prepared for calling by the terminal, or sending the polling time interval to the terminal through a network.
Accordingly, the step S11 may specifically include:
and step S102, receiving an upgrading request periodically sent by the terminal according to the polling time interval.
In this embodiment, the polling time interval may be configured in two ways, one is that, in a case that the terminal device may be frequently restarted, the server may configure the start parameter in the initialization interface that the terminal device is prepared to call, where the start parameter includes the polling time interval, so that the terminal device may obtain the polling time interval by calling the initialization interface after being restarted; the other is for the terminal equipment which needs to work for a long time and has less restarting times, at the moment, the terminal equipment can establish long connection with a signaling network of the server, and the server can issue the polling interval time parameter through a signaling channel.
The polling time interval may be regarded as a time period for the terminal device to send the upgrade request to the server, and may be, for example, one hour, one day, one week, or the like, which is not specifically limited herein. However, it should be understood that the polling time interval may be adjusted according to the server pressure, and in general, the polling time interval is too small, and a large number of terminal devices frequently send upgrade requests to the server, which may cause the server pressure to be too large, and at this time, the polling time interval needs to be increased appropriately to relieve the server pressure.
Therefore, the terminal equipment does not need to communicate with the server and download files for multiple times in the single upgrading process to ensure that the terminal is upgraded successfully, and instead, the terminal equipment does not need to pay attention to whether the upgrading is successful or not in a multiple polling mode, and because the upgrading request is sent next time, the communication interaction between the terminal and the server can be reduced, and the success rate of the single upgrading process is ensured. Therefore, the method of the embodiment can effectively relieve the influence of the weak network environment or the network fluctuation environment on the terminal upgrading, and improve the success rate of the terminal equipment upgrading.
Based on the same inventive concept, referring to fig. 3, fig. 3 is a flowchart of a terminal upgrading method according to another embodiment of the present application. The method is implemented based on an interaction between the server and the terminal.
The method shown in fig. 3 is mainly applied to the terminal side, and as shown in fig. 3, the method includes the following steps:
step S31: and sending an upgrade request to a server, wherein the upgrade request carries the equipment identifier of the terminal and the current version number group, and the current version number group comprises at least one version number.
Step S32: and receiving the information of the upgrade file sent by the server.
For the processing procedure of the server, see above, which is not described herein again.
Step S33: and upgrading the self according to the information of the upgrading file.
For the details of this embodiment, reference may be made to the contents of the above steps S11-S14, which are not described herein again.
In this application, in some embodiments, the information of the upgrade file includes a download address and verification information of the upgrade file, and the step S33 may specifically include the following steps:
step S331, downloading the upgrade file according to the download address of the upgrade file;
step S332, verifying the integrity of the upgrade file according to the verification information;
and S333, upgrading the self-upgrading file based on the upgrading file under the condition that the upgrading file is a complete upgrading file.
For the details of this embodiment, reference may be made to the content of step S14, which is not described herein again.
In addition, considering that the network connection between the terminal device and the server may fluctuate, in order to improve the probability of successful upgrade of the terminal device, the number of interactions between the terminal device and the server during one upgrade request can be reduced as much as possible. Therefore, in some embodiments, the terminal upgrading method of this embodiment may further specifically perform the following steps:
step S301, an initialization interface is called to obtain a polling time interval, or the polling time interval sent by the server through the network is received.
Accordingly, the step S31 may specifically include:
step S302, periodically sending an upgrade request to the server according to the polling time interval.
For specific contents of this embodiment, reference may be made to the contents of steps S101 to S102, which are not described herein again.
In one embodiment, it is considered that the management and maintenance personnel may need to know the upgrading condition of the terminal device, so as to perform corresponding measures according to the upgrading condition of the terminal device, for example, if the terminal device is upgraded successfully, the terminal device is assigned with a work task.
For this reason, the terminal upgrading method of this embodiment may further include the following steps:
step S34, automatic restart and initialization.
Step S35, sending the device identifier and the current version number group to the server in the initialization process, so that the server determines whether the terminal is upgraded successfully according to whether the version number in the current version number group matches the version number of the upgrade file sent to the terminal corresponding to the device identifier.
Step S36, receiving a re-upgrade instruction sent by the server, where the re-upgrade instruction is sent by the server when it is determined that the terminal upgrade fails.
Step S37, resending the upgrade request to the server.
For the details of this embodiment, reference may be made to the contents of the above steps S15-S17, which are not described herein again.
In the embodiment, by establishing a version number mapping relationship, the internal version number of the terminal device is searched according to the device identifier and the current version number group of each device type of each manufacturer, and then the terminal device is upgraded according to the internal version number and the preset upgrade rule, so that the difference of the version numbers of the devices of each type of each manufacturer is shielded, the unified upgrade rule can be effectively applied, the device types of each manufacturer are uniformly managed, the problem of difficulty in management and maintenance in the terminal upgrade process is effectively solved, in addition, the terminal sends the device identifier and the current version number group to the server in the initialization process, so that the server can sense the upgrade state of the terminal device, so that a maintenance manager can timely operate according to the upgrade state, in addition, the terminal of the embodiment of the application periodically sends upgrade requests, and the influence of a weak network environment or a network fluctuation environment on the terminal upgrade can be effectively relieved, and improving the upgrade success rate of the terminal equipment.
Referring to fig. 4, fig. 4 is a schematic diagram of a terminal upgrade system according to an embodiment of the present application. As shown in fig. 4, the terminal upgrade system is mainly used for interaction between a terminal and a server. When the system is used, the interaction process is as follows:
(1) the terminal device periodically sends an upgrade request to the server, where the upgrade request at least carries a device identifier of the terminal and a current version number group, and the current version number group includes at least one version number (corresponding to the above step S302 and step S102);
(2) the server determines the internal version number of the terminal according to the equipment identifier and the current version number group carried by the upgrade request (corresponding to the step S12);
(3) the server judges whether the terminal belongs to a terminal to be upgraded or not according to the internal version number and a preset upgrade rule (corresponding to the step S13);
(4) under the condition that the server determines that the terminal belongs to the terminal to be upgraded, sending information of an upgrade file to the terminal to be upgraded, wherein the information of the upgrade file comprises a download address and verification information of the upgrade file (corresponding to the step S14 and the step S32);
(5) the terminal downloads the upgrade file according to the download address of the upgrade file (corresponding to the step S331);
(6) the terminal checks the integrity of the downloaded upgrade file according to the check information (corresponding to the step S332);
(7) under the condition that the terminal verifies that the upgrade file is a complete upgrade file, upgrading the terminal based on the upgrade file (corresponding to the step S333);
(8) the terminal automatically restarts and initializes, and sends the device identifier and the current version number group to the server in the initialization process (corresponding to the steps S34, S35 and S16);
(9) the server determines that the terminal to be upgraded is successfully upgraded under the condition that the version number in the current version number group is matched with the version number of the upgrade file sent to the terminal, and updates the upgrade state in the upgrade record corresponding to the upgrade request in the upgrade log (corresponding to the step S17);
based on the same inventive concept, an embodiment of the present application provides a terminal upgrading apparatus, which is applied to a server. Referring to fig. 5, fig. 5 is a schematic diagram of a terminal upgrading device 50 according to an embodiment of the present application. As shown in fig. 5, the apparatus includes:
a first receiving module 51, configured to receive an upgrade request sent by a terminal, where the upgrade request at least carries an equipment identifier of the terminal and a current version number group, and the current version number group includes at least one version number;
a determining module 52, configured to determine an internal version number of the terminal according to the device identifier and the current version number group carried in the upgrade request;
the judging module 53 is configured to judge whether the terminal belongs to a terminal to be upgraded according to the internal version number and a preset upgrade rule;
the first sending module 54 is configured to send information of an upgrade file to the terminal to be upgraded, so that the terminal to be upgraded upgrades itself according to the information of the upgrade file, when the terminal belongs to the terminal to be upgraded.
Optionally, the determining module includes:
the first determining submodule is used for inquiring a preset corresponding relation between the equipment identifier and the equipment type identifier according to the equipment identifier carried by the upgrading request and determining the inquired equipment type identifier as the equipment type identifier of the terminal;
and the second determining submodule is used for inquiring the preset corresponding relation among the equipment type identifier, the version number group and the internal version number according to the current version number group carried by the upgrading request and the equipment type identifier of the terminal, and determining the inquired internal version number as the internal version number of the terminal.
Optionally, the apparatus further comprises:
the output module is used for outputting a configuration prompt to prompt a user to configure a new internal version number for the terminal under the condition that the internal version number is not inquired;
and the establishing module is used for establishing the corresponding relation among the new internal version number, the current version number group carried by the upgrading request and the equipment type identifier of the terminal.
Optionally, the apparatus further comprises:
the adding module is used for adding an upgrading record corresponding to the upgrading request in an upgrading log of the terminal to be upgraded, wherein the upgrading record at least comprises an equipment identifier of the terminal to be upgraded, a version number of the upgrading file sent to the terminal to be upgraded and an upgrading state of the equipment to be upgraded;
the second receiving module is used for receiving the equipment identifier and the current version number group sent by the terminal to be upgraded in the initialization process;
and the updating module is used for determining that the terminal to be upgraded is successfully upgraded and updating the upgrading state in the upgrading log corresponding to the upgrading request under the condition that the version number in the current version number group sent by the terminal to be upgraded in the initialization process is matched with the version number of the upgrading file sent to the terminal.
Optionally, the determining module includes:
the first judgment submodule is used for judging whether the internal version number of the terminal is within a preset version number range or not;
the second judgment submodule is used for judging whether the time for receiving the upgrading request is within a preset time period;
a third judging submodule, configured to judge whether the device identifier of the terminal is in a preset device identifier list;
and the fourth judging submodule is used for judging whether the equipment type identifier of the terminal is in a preset equipment type identifier list or not.
Optionally, the apparatus further comprises:
a configuration module, configured to configure a polling time interval in an initialization interface of the terminal ready for call, or,
a second sending module, configured to send a polling time interval to the terminal through a network;
the first receiving module comprises:
and the receiving submodule is used for receiving the upgrading request periodically sent by the terminal according to the polling time interval.
Based on the same inventive concept, an embodiment of the present application provides another terminal upgrading apparatus, which is applied to a terminal. Referring to fig. 6, fig. 6 is a schematic diagram of a terminal upgrading device 60 according to another embodiment of the present application. As shown in fig. 6, the apparatus includes:
a third sending module 61, configured to send an upgrade request to a server, where the upgrade request carries an equipment identifier of the terminal and a current version number group, and the current version number group includes at least one version number;
a third receiving module 62, configured to receive information of the upgrade file sent by the server;
and the upgrading module 63 is used for upgrading the upgrading file according to the information of the upgrading file.
Optionally, the apparatus further comprises:
a calling module for calling the initialization interface, obtaining a polling time interval, or,
a fourth receiving module, configured to receive the polling time interval sent by the server through a network;
the third sending module includes:
and the sending submodule is used for periodically sending an upgrading request to the server according to the polling time interval.
Optionally, the upgrade module includes:
the download submodule is used for downloading the upgrade file according to the download address of the upgrade file;
the verification submodule is used for verifying the integrity of the upgrade file according to the verification information;
and the upgrading submodule is used for upgrading the upgrading file based on the upgrading file under the condition that the upgrading file is a complete upgrading file.
Optionally, the apparatus further comprises:
the restarting module is used for automatically restarting and initializing;
a fourth sending module, configured to send the device identifier and the current version number group to the server in an initialization process, so that the server determines whether the terminal is upgraded successfully according to whether a version number in the current version number group matches a version number of the upgrade file sent to the terminal corresponding to the device identifier;
a fifth receiving module, configured to receive a re-upgrade instruction sent by the server, where the re-upgrade instruction is sent by the server when it is determined that the terminal fails to be upgraded;
and the fifth sending module is used for resending the upgrading request to the server.
Based on the same inventive concept, another embodiment of the present application provides a server, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the server implements the steps of the method according to any of the above embodiments applied to the server.
Based on the same inventive concept, another embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method of any of the above embodiments applied to the terminal is implemented.
Based on the same inventive concept, another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps in the method according to any of the above-mentioned embodiments of the present application.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method, the device, the server, the terminal device and the readable storage medium for upgrading the terminal provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (15)

1. A terminal upgrading method is applied to a server, and the method comprises the following steps:
receiving an upgrade request sent by a terminal, wherein the upgrade request at least carries an equipment identifier and a current version number group of the terminal, and the current version number group comprises at least one version number;
determining the internal version number of the terminal according to the equipment identifier and the current version number group carried by the upgrading request;
judging whether the terminal belongs to a terminal to be upgraded or not according to the internal version number and a preset upgrading rule;
and under the condition that the terminal belongs to a terminal to be upgraded, sending information of an upgrading file to the terminal to be upgraded so that the terminal to be upgraded upgrades the terminal per se according to the information of the upgrading file.
2. The method of claim 1, wherein determining the internal version number of the terminal according to the device identifier and the current version number group carried in the upgrade request comprises:
inquiring a preset corresponding relation between the equipment identifier and the equipment type identifier according to the equipment identifier carried by the upgrading request, and determining the inquired equipment type identifier as the equipment type identifier of the terminal;
and inquiring a preset corresponding relation among the equipment type identifier, the version number group and the internal version number according to the current version number group carried by the upgrading request and the equipment type identifier of the terminal, and determining the inquired internal version number as the internal version number of the terminal.
3. The method of claim 2, wherein after querying the preset correspondence between the device type identifier, the version number group, and the internal version number, the method further comprises:
under the condition that the internal version number is not inquired, outputting a configuration prompt to prompt a user to configure a new internal version number for the terminal;
and establishing a corresponding relation among the new internal version number, the current version number group carried by the upgrading request and the equipment type identifier of the terminal.
4. The method according to claim 1, wherein in case that the terminal belongs to a terminal to be upgraded, in addition to sending information of an upgrade file to the terminal to be upgraded, the method further comprises:
adding an upgrade record corresponding to the upgrade request in an upgrade log of the terminal to be upgraded, wherein the upgrade record at least comprises an equipment identifier of the terminal to be upgraded, a version number of the upgrade file sent to the terminal to be upgraded and an upgrade state of the equipment to be upgraded;
receiving an equipment identifier and a current version number group sent by the terminal to be upgraded in an initialization process;
and under the condition that the version number in the current version number group sent by the terminal to be upgraded in the initialization process is matched with the version number of the upgrade file sent to the terminal, determining that the terminal to be upgraded is upgraded successfully, and updating the upgrade state in the upgrade record corresponding to the upgrade request in the upgrade log.
5. The method according to claim 1, wherein determining whether the terminal belongs to a terminal to be upgraded according to the internal version number and a preset upgrade rule comprises at least one of:
judging whether the internal version number of the terminal is within a preset version number range or not;
judging whether the time for receiving the upgrading request is within a preset time period or not;
judging whether the equipment identifier of the terminal is in a preset equipment identifier list or not;
and judging whether the equipment type identifier of the terminal is in a preset equipment type identifier list.
6. The method according to any of claims 1-5, wherein before receiving the upgrade request sent by the terminal, the method further comprises:
configuring a polling time interval in an initialization interface prepared for calling by the terminal, or sending the polling time interval to the terminal through a network;
receiving an upgrade request sent by a terminal, wherein the upgrade request comprises:
and receiving an upgrading request periodically sent by the terminal according to the polling time interval.
7. A terminal upgrading method is applied to a terminal, and the method comprises the following steps:
sending an upgrade request to a server, wherein the upgrade request carries the equipment identifier of the terminal and a current version number group, and the current version number group comprises at least one version number;
receiving the information of the upgrade file sent by the server;
and upgrading the self according to the information of the upgrading file.
8. The method of claim 7, further comprising:
calling an initialization interface to acquire a polling time interval, or receiving the polling time interval sent by the server through a network;
sending an upgrade request to a server, comprising:
periodically sending an upgrade request to the server according to the polling time interval.
9. The method of claim 7, wherein the information of the upgrade file includes a download address and verification information of the upgrade file, and upgrading itself according to the information of the upgrade file includes:
downloading the upgrade file according to the download address of the upgrade file;
according to the inspection information, verifying the integrity of the upgrade file;
and under the condition that the upgrading file is a complete upgrading file, upgrading the upgrading file based on the upgrading file.
10. The method according to any of claims 7-9, wherein after upgrading itself, the method further comprises:
automatically restarting and initializing;
sending the equipment identifier and the current version number group to the server in an initialization process so that the server determines whether the terminal is upgraded successfully according to whether the version number in the current version number group is matched with the version number of the upgrade file sent to the terminal corresponding to the equipment identifier;
receiving a re-upgrading instruction sent by the server, wherein the re-upgrading instruction is sent by the server when the terminal is determined to be failed to be upgraded;
and re-sending the upgrading request to the server.
11. A terminal upgrading device is applied to a server, and the device comprises:
the first receiving module is used for receiving an upgrade request sent by a terminal, wherein the upgrade request at least carries an equipment identifier and a current version number group of the terminal, and the current version number group comprises at least one version number;
the determining module is used for determining the internal version number of the terminal according to the equipment identifier and the current version number group carried by the upgrading request;
the judging module is used for judging whether the terminal belongs to a terminal to be upgraded or not according to the internal version number and a preset upgrading rule;
the first sending module is used for sending the information of the upgrade file to the terminal to be upgraded under the condition that the terminal belongs to the terminal to be upgraded, so that the terminal to be upgraded can upgrade the terminal according to the information of the upgrade file.
12. A terminal upgrading device is applied to a terminal, and the device comprises:
a third sending module, configured to send an upgrade request to a server, where the upgrade request carries an equipment identifier of the terminal and a current version number group, and the current version number group includes at least one version number;
the third receiving module is used for receiving the information of the upgrade file sent by the server;
and the upgrading module is used for upgrading the upgrading module according to the information of the upgrading file.
Optionally, the apparatus further comprises:
a calling module for calling the initialization interface, obtaining a polling time interval, or,
a fourth receiving module, configured to receive the polling time interval sent by the server through a network;
the third sending module includes:
and the sending submodule is used for periodically sending an upgrading request to the server according to the polling time interval.
13. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing performs the steps of the method of any one of claims 1 to 6.
14. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing performs the steps of the method according to any of claims 7 to 10.
15. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6 or 7 to 10.
CN202010091540.0A 2020-02-13 2020-02-13 Terminal upgrading method and device, server, terminal equipment and readable storage medium Withdrawn CN111367545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010091540.0A CN111367545A (en) 2020-02-13 2020-02-13 Terminal upgrading method and device, server, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010091540.0A CN111367545A (en) 2020-02-13 2020-02-13 Terminal upgrading method and device, server, terminal equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111367545A true CN111367545A (en) 2020-07-03

Family

ID=71207950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010091540.0A Withdrawn CN111367545A (en) 2020-02-13 2020-02-13 Terminal upgrading method and device, server, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111367545A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035134A (en) * 2020-07-08 2020-12-04 合肥美的智能科技有限公司 Container software upgrading method, cloud server, container and device
CN112181467A (en) * 2020-10-10 2021-01-05 北京字节跳动网络技术有限公司 Method and device for upgrading memory firmware of terminal, terminal and storage medium
CN112653720A (en) * 2020-08-10 2021-04-13 深圳信可通讯技术有限公司 FOTA upgrading method and device
CN112737855A (en) * 2020-12-30 2021-04-30 百视通网络电视技术发展有限责任公司 Multi-dimensional terminal configuration system in OTT service
CN113055653A (en) * 2021-03-22 2021-06-29 深圳市安软科技股份有限公司 Automatic updating method and device of image acquisition equipment and related equipment
CN113127029A (en) * 2021-03-05 2021-07-16 深兰科技(上海)有限公司 Firmware updating method and device, electronic equipment and storage medium
CN113342371A (en) * 2021-05-31 2021-09-03 招商蛇口数字城市科技有限公司 Internet of things equipment upgrading system
CN113407205A (en) * 2021-05-25 2021-09-17 海南视联通信技术有限公司 Equipment upgrading method, device, equipment and readable storage medium
CN114584539A (en) * 2021-12-28 2022-06-03 上海繁易信息科技股份有限公司 Cloud upgrading method and system for industrial field device
WO2022142867A1 (en) * 2020-12-30 2022-07-07 中兴通讯股份有限公司 Firmware upgrade method, and terminal, server and storage medium
CN114978902A (en) * 2022-05-18 2022-08-30 阿里云计算有限公司 Information processing method, apparatus, device, storage medium, and program product
CN115167887A (en) * 2022-05-31 2022-10-11 珠海视熙科技有限公司 Upgrading method and device, storage medium and electronic equipment
CN115934141A (en) * 2022-12-30 2023-04-07 北京泰迪熊移动科技有限公司 Software upgrading method and device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719937A (en) * 2009-11-30 2010-06-02 中兴通讯股份有限公司 Method and system for updating terminal device
CN101958799A (en) * 2009-07-14 2011-01-26 中兴通讯股份有限公司 Method, device and system for updating terminal
CN103518191A (en) * 2013-03-19 2014-01-15 华为技术有限公司 Upgrade method, intelligent terminal and upgrade system
CN103596049A (en) * 2013-11-21 2014-02-19 乐视致新电子科技(天津)有限公司 Intelligent television and upgrade method and device thereof
CN104778057A (en) * 2015-03-11 2015-07-15 小米科技有限责任公司 Terminal system upgrading method and device, and server
CN105262627A (en) * 2015-10-30 2016-01-20 Tcl集团股份有限公司 Firmware upgrade method, device and system
CN105389191A (en) * 2015-12-11 2016-03-09 北京奇虎科技有限公司 Software upgrading method, apparatus and system based on local area network
CN105468414A (en) * 2015-11-30 2016-04-06 Tcl集团股份有限公司 Intelligent terminal upgrading method and system
WO2017181850A1 (en) * 2016-04-18 2017-10-26 中兴通讯股份有限公司 Method for use in system to upgrade terminal by multicast, and network management server
CN107589952A (en) * 2016-07-06 2018-01-16 中兴通讯股份有限公司 Intelligent upgrade method, device and system
CN109375933A (en) * 2018-09-25 2019-02-22 郑州云海信息技术有限公司 A kind of method and apparatus of client upgrading
CN110708199A (en) * 2019-10-08 2020-01-17 联想(北京)有限公司 Method, device, electronic equipment and medium for upgrading terminal equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958799A (en) * 2009-07-14 2011-01-26 中兴通讯股份有限公司 Method, device and system for updating terminal
CN101719937A (en) * 2009-11-30 2010-06-02 中兴通讯股份有限公司 Method and system for updating terminal device
CN103518191A (en) * 2013-03-19 2014-01-15 华为技术有限公司 Upgrade method, intelligent terminal and upgrade system
CN103596049A (en) * 2013-11-21 2014-02-19 乐视致新电子科技(天津)有限公司 Intelligent television and upgrade method and device thereof
CN104778057A (en) * 2015-03-11 2015-07-15 小米科技有限责任公司 Terminal system upgrading method and device, and server
CN105262627A (en) * 2015-10-30 2016-01-20 Tcl集团股份有限公司 Firmware upgrade method, device and system
CN105468414A (en) * 2015-11-30 2016-04-06 Tcl集团股份有限公司 Intelligent terminal upgrading method and system
CN105389191A (en) * 2015-12-11 2016-03-09 北京奇虎科技有限公司 Software upgrading method, apparatus and system based on local area network
WO2017181850A1 (en) * 2016-04-18 2017-10-26 中兴通讯股份有限公司 Method for use in system to upgrade terminal by multicast, and network management server
CN107589952A (en) * 2016-07-06 2018-01-16 中兴通讯股份有限公司 Intelligent upgrade method, device and system
CN109375933A (en) * 2018-09-25 2019-02-22 郑州云海信息技术有限公司 A kind of method and apparatus of client upgrading
CN110708199A (en) * 2019-10-08 2020-01-17 联想(北京)有限公司 Method, device, electronic equipment and medium for upgrading terminal equipment

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035134A (en) * 2020-07-08 2020-12-04 合肥美的智能科技有限公司 Container software upgrading method, cloud server, container and device
CN112035134B (en) * 2020-07-08 2023-08-04 合肥美的智能科技有限公司 Container software upgrading method, cloud server, container and device
CN112653720A (en) * 2020-08-10 2021-04-13 深圳信可通讯技术有限公司 FOTA upgrading method and device
CN112181467A (en) * 2020-10-10 2021-01-05 北京字节跳动网络技术有限公司 Method and device for upgrading memory firmware of terminal, terminal and storage medium
CN112181467B (en) * 2020-10-10 2023-11-14 北京字节跳动网络技术有限公司 Method and device for upgrading memory firmware of terminal, terminal and storage medium
CN112737855A (en) * 2020-12-30 2021-04-30 百视通网络电视技术发展有限责任公司 Multi-dimensional terminal configuration system in OTT service
WO2022142867A1 (en) * 2020-12-30 2022-07-07 中兴通讯股份有限公司 Firmware upgrade method, and terminal, server and storage medium
CN113127029A (en) * 2021-03-05 2021-07-16 深兰科技(上海)有限公司 Firmware updating method and device, electronic equipment and storage medium
CN113055653B (en) * 2021-03-22 2023-05-30 深圳市安软科技股份有限公司 Automatic updating method and device of image acquisition equipment and related equipment
CN113055653A (en) * 2021-03-22 2021-06-29 深圳市安软科技股份有限公司 Automatic updating method and device of image acquisition equipment and related equipment
CN113407205A (en) * 2021-05-25 2021-09-17 海南视联通信技术有限公司 Equipment upgrading method, device, equipment and readable storage medium
CN113342371A (en) * 2021-05-31 2021-09-03 招商蛇口数字城市科技有限公司 Internet of things equipment upgrading system
CN114584539A (en) * 2021-12-28 2022-06-03 上海繁易信息科技股份有限公司 Cloud upgrading method and system for industrial field device
CN114584539B (en) * 2021-12-28 2023-08-18 上海繁易信息科技股份有限公司 Cloud upgrading method and system for industrial field device
CN114978902A (en) * 2022-05-18 2022-08-30 阿里云计算有限公司 Information processing method, apparatus, device, storage medium, and program product
CN115167887A (en) * 2022-05-31 2022-10-11 珠海视熙科技有限公司 Upgrading method and device, storage medium and electronic equipment
CN115167887B (en) * 2022-05-31 2023-11-24 珠海视熙科技有限公司 Upgrading method and device, storage medium and electronic equipment
CN115934141A (en) * 2022-12-30 2023-04-07 北京泰迪熊移动科技有限公司 Software upgrading method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111367545A (en) Terminal upgrading method and device, server, terminal equipment and readable storage medium
CN106681766B (en) Remote firmware upgrade control method and system
CN108491222B (en) Gateway equipment upgrading method and device, gateway equipment and storage medium
CN106897086B (en) Method, device and system for upgrading robot operating system
US20140282487A1 (en) Software update for a wireless communication device
US20120117557A1 (en) Method and system for upgrading wireless data card
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
CN113946358A (en) Automatic driving vehicle software remote upgrading method based on vehicle management system
CN109117172B (en) Method and device for identifying terminal version number of target terminal
CN111901142B (en) Firmware silence upgrading method and device for embedded device cluster
CN106775841B (en) Method, system and device for upgrading plug-in
CN105871568B (en) Software upgrading method and system
CN109002305B (en) Method and system for updating equipment program
CN112995806A (en) Method, device, system and storage medium for upgrading optical network unit
WO2023020070A1 (en) Method for determining upgrade package and server
CN111683114A (en) Method and device for upgrading equipment program, terminal equipment and storage medium
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN106708494B (en) JAR upgrading method and device
CN108874410B (en) Patch management method and device
CN111752577A (en) System version upgrading method and device
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN111984287A (en) Equipment upgrading method and system
CN112040320B (en) Television fruit application upgrading method and device
CN113050980B (en) Function configuration information acquisition method and device and computer readable storage medium

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200703