CN113791806B - Remote upgrading method, system and medium for terminal - Google Patents

Remote upgrading method, system and medium for terminal Download PDF

Info

Publication number
CN113791806B
CN113791806B CN202111119948.5A CN202111119948A CN113791806B CN 113791806 B CN113791806 B CN 113791806B CN 202111119948 A CN202111119948 A CN 202111119948A CN 113791806 B CN113791806 B CN 113791806B
Authority
CN
China
Prior art keywords
upgrade
information
version
main control
tool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111119948.5A
Other languages
Chinese (zh)
Other versions
CN113791806A (en
Inventor
王瑜
曹兴会
孙浩亮
生伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial Information 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 Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN202111119948.5A priority Critical patent/CN113791806B/en
Publication of CN113791806A publication Critical patent/CN113791806A/en
Application granted granted Critical
Publication of CN113791806B publication Critical patent/CN113791806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a remote upgrading method, a remote upgrading system and a remote upgrading medium for a terminal, wherein the method comprises the following steps: configuring a master control end and configuring a controlled end on terminal equipment; acquiring first network connection information of a main control terminal; the method comprises the steps of connecting a master control end with a controlled end in a communication mode based on first network connection information; acquiring a product information set; configuring a data storage space at a main control end; setting a time interval, a reference frequency and a frequency interval; constructing an upgrade version library based on the product information set, the data storage space, the time interval, the reference frequency and the frequency interval; acquiring use information of terminal equipment; setting an upgrade mode of the terminal device based on the usage information; executing remote upgrading operation based on the main control end, the controlled end, the upgrading version library and the upgrading mode; the invention can upgrade and maintain the terminal equipment remotely, efficiently, automatically and intelligently, does not need engineers to go to the site of the terminal equipment, has low application cost and high upgrade efficiency, and makes up the defects of the prior art.

Description

Remote upgrading method, system and medium for terminal
Technical Field
The present invention relates to the field of terminal equipment upgrading technologies, and in particular, to a method, a system, and a medium for remote upgrading for a terminal.
Background
In the prior art, the terminal is updated in a field debugging manner by engineers, if the terminal is faced with a large number of terminal projects, a large amount of time resources and manpower resources are required to be spent, the terminal upgrading efficiency is low, and some terminals cannot be efficiently and rapidly updated and maintained in a manual manner due to the fact that the built geographic position is remote.
Disclosure of Invention
The invention mainly solves the problems that the upgrading efficiency of the terminal upgrading mode adopted in the prior art is low, and the terminal equipment cannot be efficiently and rapidly upgraded and maintained.
In order to solve the technical problems, the invention adopts a technical scheme that: the remote upgrading method for the terminal comprises the following steps:
a connection establishment step:
configuring a master control end and configuring a controlled end on terminal equipment;
acquiring first network connection information of the master control end;
the main control end and the controlled end are in communication connection based on the first network connection information;
version library configuration:
acquiring a product information set;
configuring a data storage space at the main control end;
setting a time interval, a reference frequency and a frequency interval;
Constructing an upgrade version library based on the product information set, the data storage space, the time interval, the reference frequency and the frequency interval;
upgrading and maintaining:
acquiring the use information of the terminal equipment;
setting an upgrade mode of the terminal equipment based on the use information;
and executing remote upgrading operation based on the main control end, the controlled end, the upgrading version library and the upgrading mode.
As an improvement, the step of communicatively connecting the master end and the slave end based on the first network connection information further includes:
extracting first address information, first port information and first connection key information in the first network connection information; creating a first tool at the main control end, and configuring the first tool based on the first address information, the first port information and the first connection key information to obtain a data sending tool;
setting second network connection information of the controlled terminal based on the first address information, the first port information and the first connection key information; creating a second tool on the controlled end, and configuring the second tool based on the second network connection information to obtain a data receiving tool;
Acquiring a packet receiving address of the data receiving tool; and adding the packet receiving address to a data transmission address of the data transmission tool.
As an improved solution, the step of building an upgrade version library based on the product information set, the data storage space, the time interval, the reference frequency, and the frequency interval further includes:
identifying a number of product versions in the product information set; dividing a plurality of cache areas respectively corresponding to a plurality of product versions in the data storage space;
setting an updating time period, and acquiring a plurality of upgrading packages which are respectively matched with a plurality of product versions every other updating time period; and respectively placing the plurality of upgrade packages into the plurality of cache areas according to the product version to obtain the upgrade version library.
As an improvement, the step of setting the upgrade mode of the terminal device based on the usage information further includes:
extracting a use log in the use information;
extracting a plurality of use times of the terminal equipment in the use log; calculating the average time of a plurality of using times; comparing whether the average time is within the time interval;
If yes, setting the upgrading mode as a timing upgrading mode;
if not, counting the number of times of use of the terminal equipment based on the use log; calculating the sum of a plurality of using times to obtain the using time; calculating the quotient of the using times and the using time to obtain the using frequency; calculating an absolute value of a difference between the usage frequency and the frequency reference; comparing whether the absolute value is in the frequency interval, if so, setting the upgrading mode as a controlled upgrading mode, and if not, setting the upgrading mode as a main control upgrading mode.
As an improved solution, the step of performing a remote upgrade operation based on the master control end, the slave control end, the upgrade version library, and the upgrade mode further includes:
when the upgrade mode is the timing upgrade mode, setting an upgrade time period, and executing timing upgrade operation based on the main control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the upgrade time period;
when the upgrade mode is the main control upgrade mode, setting a starting process break point, and executing main control upgrade operation based on the main control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the starting process break point;
When the upgrade mode is the controlled upgrade mode, setting a reference in-place value, and executing controlled upgrade operation based on the main control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the reference in-place value;
the timing upgrade operation, the master upgrade operation and the controlled upgrade operation are all remote upgrade operations.
As an improvement, the timing upgrade operation includes:
identifying second port information in the second network connection information;
and executing an upgrading step based on the second port information, the main control end, the controlled end, the data sending tool and the data receiving tool every the upgrading time period:
the main control terminal calls the data sending tool to acquire first version information of the terminal equipment according to the second port information and by adopting a socket protocol; the master control end identifies a first product version of the first version information; the main control end searches a first cache area matched with the first product version in the upgrade version library, and acquires a plurality of pieces of second version information of a plurality of upgrade packages in the first cache area;
Identifying a first version number in the first version information and a plurality of second version numbers of a plurality of second version information; screening whether second version numbers higher than the first version number exist in the second version numbers or not; if yes, setting the second version number higher than the first version number as a first version number to be upgraded; the main control end defines the upgrade package corresponding to the first version number to be upgraded with the largest version number as a first upgrade package; the main control terminal calls a compression algorithm to compress the first upgrade package into an upgrade compression package, and the main control terminal calls the data sending tool to send the upgrade compression package to the data receiving tool.
As an improved solution, the step of upgrading further includes:
setting a storage threshold; when the data receiving tool receives the upgrade compression package, the controlled terminal calls the data receiving tool to divide a cache space matched with the storage threshold value in the virtual memory of the terminal equipment;
the controlled terminal calls the data receiving tool to acquire a storage path of a first data packet matched with the first version information in the terminal equipment, and calls the data receiving tool to move the first data packet into the cache space;
The controlled terminal calls the data receiving tool to decompress the upgrade compressed packet into the storage path by adopting a decompression algorithm matched with the compression algorithm to obtain an upgrade program; and the controlled end operates the upgrading program.
As an improved solution, the main control upgrade operation includes: setting a first detection time period, and detecting whether a starting process of the main control terminal reaches a break point of the starting process or not every the first detection time period; if yes, executing the upgrading step;
the controlled upgrade operation includes: setting a second detection time period, detecting a second port in-place value corresponding to the second port information every second detection time period, comparing whether the second port in-place value is matched with the reference in-place value, and if so, executing the upgrading step.
The invention also provides a remote upgrading system for the terminal, which comprises the following steps:
the system comprises a connection establishment module, a version library configuration module and an upgrade maintenance module;
the connection establishment module is used for configuring a main control terminal; the connection establishment module is further used for acquiring first network connection information of the master control end; the connection establishment module is used for connecting the main control end with terminal equipment in a communication mode based on the first network connection information;
The version library configuration module is used for acquiring a product information set; the version library configuration module is also used for configuring a data storage space at the main control end; the version library configuration module is also used for setting a time interval, a reference frequency and a frequency interval; the version library configuration module builds an upgrade version library based on the product information set, the data storage space, the time interval, the reference frequency and the frequency interval;
the upgrade maintenance module is used for acquiring the use information of the terminal equipment, and is also used for setting an upgrade mode of the terminal equipment according to the use information; and the upgrade maintenance module executes remote upgrade operation based on the main control end, the upgrade version library and the upgrade mode.
The present invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the remote upgrade method for a terminal.
The beneficial effects of the invention are as follows:
1. the remote upgrading method for the terminal can realize remote, efficient, automatic and intelligent upgrading maintenance of the terminal equipment, does not need an engineer to go to the site of the terminal equipment, realizes the whole process through software logic, has low application cost and high upgrading efficiency, and overcomes the defects of the prior art.
2. The remote upgrading system for the terminal can realize remote, efficient, automatic and intelligent upgrading and maintenance of the terminal equipment by the mutual coordination of the connection establishment module, the version library configuration module and the upgrading and maintenance module, does not need an engineer to go to the site of the terminal equipment, realizes the whole process through software logic, has low application cost and high upgrading efficiency, and overcomes the defects of the prior art.
3. The computer readable storage medium can realize the coordination of the guide connection establishment module, the version library configuration module and the upgrade maintenance module, further realize the remote, efficient, automatic and intelligent upgrade maintenance of the terminal equipment, does not need an engineer to go to the site of the terminal equipment, realizes the whole process through software logic, has low application cost and high upgrade efficiency, overcomes the defects of the prior art, and effectively improves the operability of the remote upgrade method for the terminal.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a remote upgrade method for a terminal according to embodiment 1 of the present invention;
fig. 2 is a schematic flow chart of a remote upgrade method for a terminal according to embodiment 1 of the present invention;
fig. 3 is a diagram of a remote upgrade system for a terminal according to embodiment 2 of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making clear and defining the scope of the present invention.
In the description of the present invention, it should be noted that the described embodiments of the present invention are some, but not all embodiments of the present invention; all other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the terms "first," "second," and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In describing the present invention, it should be noted that: NET Framework is the new managed code programming model; winForm is a window application; socket is a communication protocol.
Example 1
The embodiment provides a remote upgrade method for a terminal, as shown in fig. 1 and fig. 2, including the following steps:
s100, connection establishment:
the step S100 specifically includes:
s110, configuring a master control end and configuring a controlled end on terminal equipment; acquiring first network connection information of the master control end; the main control end and the controlled end are in communication connection based on the first network connection information;
specifically, first address information, first port information and first connection key information in the first network connection information are extracted; creating a first tool at the main control end, and configuring the first tool based on the first address information, the first port information and the first connection key information to obtain a data sending tool; in the embodiment, the controlled terminal is developed and constructed based on a NET Framework platform; the main control end is constructed by adopting a WinForm mode; setting second network connection information of the controlled terminal based on the first address information, the first port information and the first connection key information; creating a second tool on the controlled end, and configuring the second tool based on the second network connection information to obtain a data receiving tool; in this embodiment, the data transmitting tool and the data receiving tool are implemented by a remote operation tool; in this embodiment, the first address information, the first port information, and the first connection key information are an IP address, a port number, and a connection key, respectively; correspondingly, the IP address, the port number and the connection key between the controlled end and the main control end are mutually matched; acquiring a packet receiving address of the data receiving tool; adding the packet receiving address to a data transmission address of the data transmission tool; the packet receiving address is the receiving address of the data; correspondingly, in this embodiment, after the configuration of the network connection information and the data transceiver is completed, the controlled end and the master control end need to be restarted; correspondingly, the main control end can be arranged in a server or a computer or a cloud platform; in this embodiment, by designing the master control end and the slave end, the field operation flow of the engineer can be omitted, and the upgrade and maintenance of the terminal device can be realized only by remote logic operation.
S200, a version library configuration step:
the step S200 specifically includes:
s210, acquiring a product information set; configuring a data storage space at the main control end; setting a time interval, a reference frequency and a frequency interval; constructing an upgrade version library based on the product information set, the data storage space, the time interval, the reference frequency and the frequency interval; in this embodiment, the product information set is a product information set including a plurality of types of terminal devices, and the product information includes: terminal product version, product installation catalog, product attribute information, product upgrading time length and the like; specifically, identifying a plurality of product versions in the product information set; dividing a plurality of cache areas respectively corresponding to a plurality of product versions in the data storage space; setting an updating time period, and acquiring a plurality of upgrading packages which are respectively matched with a plurality of product versions every other updating time period; respectively placing a plurality of upgrade packages into a plurality of cache areas according to the product version to obtain the upgrade version library; in this embodiment, the update time period is set to 1s, thereby realizing real-time update; correspondingly, the arrangement of the cache area enables the product version upgrade packages of all the categories to be placed in a distinguishing mode, and the ordered placement can improve the efficiency of later screening and comparison of the upgrade packages, so that the upgrade efficiency of the terminal equipment is further improved.
S300, upgrading and maintaining:
the step S300 specifically includes:
s310, acquiring the use information of the terminal equipment; setting an upgrade mode of the terminal equipment based on the use information; executing remote upgrading operation based on the main control end, the controlled end, the upgrading version library and the upgrading mode;
specifically, extracting a use log in the use information; the use log is a data document containing the use time, the use date and the like of the terminal equipment; extracting a plurality of use times of the terminal equipment in the use log; calculating the average time of a plurality of using times; comparing whether the average time is within the time interval; in this embodiment, the time interval is specifically set according to the usage scenario of the terminal device, for example, the opening time of the terminal device of a certain financial institution is 8:00-12:00; if the average time is within the time, the terminal of the type is a high-frequency high-demand terminal device, so that the device needs to be updated in an idle time period, and if the average time is within the time, the upgrading mode is set as a timing upgrading mode; if not, counting the number of times of use of the terminal equipment based on the use log; calculating the sum of a plurality of using times to obtain the using time; calculating the quotient of the using times and the using time to obtain the using frequency; calculating an absolute value of a difference between the usage frequency and the frequency reference; comparing whether the absolute value is in the frequency interval, if so, setting the upgrading mode as a controlled upgrading mode, and if not, setting the upgrading mode as a main control upgrading mode; correspondingly, in the embodiment, the frequency interval and the frequency reference are set in specific conditions; when the using frequency is in the frequency interval, the terminal is a terminal used at high frequency, but is not in the open time, so the terminal needs to update the version before each use so as to achieve the highest experience of the user, and needs to be set into a controlled upgrading mode; in contrast, the terminal does not need high-frequency upgrade, so the terminal is set to be in a main control upgrade mode for control upgrade of operators; when the upgrade mode is the timing upgrade mode, setting an upgrade time period, and executing timing upgrade operation based on the main control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the upgrade time period; when the upgrade mode is the main control upgrade mode, setting a start process break point because upgrade is required according to whether the main control terminal is started or not, and executing main control upgrade operation based on the main control terminal, the controlled terminal, the data transmitting tool, the data receiving tool, the upgrade version library and the start process break point; when the upgrade mode is the controlled upgrade mode, setting a reference in-place value because upgrade is required according to whether a controlled terminal is on line or not, and executing controlled upgrade operation based on the main control terminal, the controlled terminal, the data transmitting tool, the data receiving tool, the upgrade version library and the reference in-place value; in this embodiment, the timing upgrade operation, the master upgrade operation, and the controlled upgrade operation are all the remote upgrade operations.
Specifically, the timing upgrade operation includes: identifying second port information in the second network connection information; an upgrading step is executed based on the second port information, the main control end, the controlled end, the data sending tool and the data receiving tool every other upgrading time period;
the upgrading step specifically comprises the following steps: the main control terminal calls the data sending tool to acquire first version information of the terminal equipment according to the second port information and by adopting a socket protocol; the master control end identifies a first product version of the first version information; the main control end searches a first cache area matched with the first product version in the upgrade version library, and acquires a plurality of pieces of second version information of a plurality of upgrade packages in the first cache area; correspondingly, in the embodiment, the version information is a version info. Xml file, and all version info. Xml files in the upgrade version library are managed by adopting an xml file mode; identifying a first version number in the first version information and a plurality of second version numbers of a plurality of second version information; screening whether second version numbers higher than the first version number exist in the second version numbers or not; if yes, setting the second version number higher than the first version number as a first version number to be upgraded; the main control end defines the upgrade package corresponding to the first version number to be upgraded with the largest version number as a first upgrade package; the main control terminal calls a compression algorithm to compress the first upgrade package into an upgrade compression package, and the main control terminal calls the data sending tool to send the upgrade compression package to the data receiving tool; in the present embodiment, the data compression algorithm includes, but is not limited to, huffman algorithm and LZW algorithm; setting a storage threshold; the storage threshold is matched with the size of the data packet corresponding to the first version information; when the data receiving tool receives the upgrade compression package, the controlled terminal calls the data receiving tool to divide a cache space matched with the storage threshold value in the virtual memory of the terminal equipment; the virtual memory is divided, so that the occupation of the running memory of the terminal equipment is reduced, and the upgrading efficiency is further improved; the controlled terminal calls the data receiving tool to acquire a storage path of a first data packet matched with the first version information in the terminal equipment, and calls the data receiving tool to move the first data packet into the cache space; in this embodiment, the storage path includes, but is not limited to, being located in a system storage area of the terminal device, so as to improve compatibility and applicability of the data packet, and facilitate calling of the data packet in the system storage area; the controlled terminal calls the data receiving tool to decompress the upgrade compressed packet into the storage path by adopting a decompression algorithm matched with the compression algorithm to obtain an upgrade program; and the controlled end runs the upgrading program to finish the upgrading step.
The main control upgrading operation comprises the following steps: setting a first detection time period, and detecting whether a starting process of the main control terminal reaches a break point of the starting process or not every the first detection time period; in this embodiment, the first detection period is set in a specific case; the start-up procedure is a system base start-up item of the master, for example: an operating system starting process and a network card protocol starting process; if yes, the main control terminal is started and used for upgrading the terminal equipment of the controlled terminal, so that the upgrading step is executed; specifically, the partial implementation code of the main control upgrade operation is as follows:
< ProductVersion ProductName = "remote operation tool V1.0" production version= "1.0.0.0" setuppath= "D: \remotemonitor os" production description= "implement basic function" upscalescheme= "master start up" upscaletime= ">"
<files>
<param FileName="1.txt"FilePath="d:\Version1\1.txt"></param>
<param FileName="2.dll"FilePath="d:\Version1\2.dll"></param>
<param FileName="VersionInfo.xml"FilePath="d:\Version1\VersionInfo.xml"></param>
</files>
</ProductVersion>
The controlled upgrade operation includes: setting a second detection time period, detecting a second port in-place value corresponding to the second port information every second detection time period, comparing whether the second port in-place value is matched with the reference in-place value, and if so, executing the upgrading step; correspondingly, the reference bit value is a judging reference for judging whether the second port is opened or not, specifically, the setting is performed according to the last character of the port address when the port is opened, for example, the port address when the second port is opened is 192.192.193.211.25; the port address when the second port is closed is 192.192.193.211.22; "22" and "25" are in-place values in this embodiment, so judging the in-place values can know whether the port is opened or not; because the configuration of the port is necessarily in the starting item of the terminal equipment of the controlled terminal, whether the controlled terminal is on line or connected can be further judged.
The remote upgrading method for the terminal can remotely control the upgrading of the terminal equipment, does not need the field maintenance equipment of an engineer to upgrade, saves extremely large manpower resources and time resources and upgrading cost, has extremely high convenience and intelligence, is ingenious in whole operation flow and easy to compile, and overcomes the defects of the prior art.
Example 2
The present embodiment provides a remote upgrade system for a terminal, as shown in fig. 3, including: the system comprises a connection establishment module, a version library configuration module and an upgrade maintenance module;
in the remote upgrading system for the terminal, a connection establishment module is used for configuring a main control end and configuring a controlled end on terminal equipment; the method comprises the steps of carrying out a first treatment on the surface of the The connection establishment module is further used for acquiring first network connection information of the master control end; the connection establishment module is used for connecting the main control end with terminal equipment in a communication mode based on the first network connection information;
specifically, the connection establishment module extracts first address information, first port information and first connection key information in the first network connection information; the connection establishment module establishes a first tool at the main control end, and configures the first tool based on the first address information, the first port information and the first connection key information to obtain a data sending tool; the connection establishment module sets second network connection information of the controlled terminal based on the first address information, the first port information and the first connection key information; the connection establishment module establishes a second tool on the controlled end, and configures the second tool based on the second network connection information to obtain a data receiving tool; the connection establishment module acquires a packet receiving address of the data receiving tool; the connection establishment module adds the packet receiving address to the data transmission address of the data transmission tool.
In the remote upgrading system for the terminal, a version library configuration module is used for acquiring a product information set; the version library configuration module is also used for configuring a data storage space at the main control end; the version library configuration module is also used for setting a time interval, a reference frequency and a frequency interval; the version library configuration module builds an upgrade version library based on the product information set, the data storage space, the time interval, the reference frequency and the frequency interval;
specifically, the version library configuration module identifies a plurality of product versions in the product information set; the version library configuration module divides a plurality of cache areas corresponding to a plurality of product versions in the data storage space; the version library configuration module sets an updating time period, and the version library configuration module acquires a plurality of upgrading packages which are respectively matched with a plurality of product versions at intervals of the updating time period; and the version library configuration module respectively places the upgrading packages into the cache areas according to the product versions to obtain the upgrading version library.
In the remote upgrading system for the terminal, an upgrading maintenance module is used for acquiring the use information of the terminal equipment, and the upgrading maintenance module is also used for setting an upgrading mode of the terminal equipment according to the use information; the upgrade maintenance module executes remote upgrade operation based on the main control end, the upgrade version library and the upgrade mode;
Specifically, the upgrade maintenance module extracts a use log in the use information;
the upgrade maintenance module extracts a plurality of using times of the terminal equipment in the using log; the upgrade maintenance module calculates the average time of a plurality of the using times; the upgrade maintenance module compares whether the average time is within the time interval; if yes, the upgrade maintenance module sets the upgrade mode as a timing upgrade mode; if not, the upgrade maintenance module counts the use times of the terminal equipment based on the use log; the upgrade maintenance module calculates the sum of a plurality of using times to obtain the using time; the upgrade maintenance module calculates the quotient of the using times and the using time to obtain the using frequency; the upgrade maintenance module calculates the absolute value of the difference value between the use frequency and the frequency reference; the upgrade maintenance module compares whether the absolute value is in the frequency interval, if yes, the upgrade maintenance module sets the upgrade mode as a controlled upgrade mode, and if not, the upgrade maintenance module sets the upgrade mode as a main control upgrade mode;
specifically, when the upgrade mode is the timing upgrade mode, the upgrade maintenance module sets an upgrade time period, and the upgrade maintenance module executes a timing upgrade operation based on the master control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the upgrade time period; when the upgrade mode is the main control upgrade mode, an upgrade maintenance module sets a start process break point, and the upgrade maintenance module executes main control upgrade operation based on the main control end, the controlled end, the data sending tool, the data receiving tool, the upgrade version library and the start process break point; when the upgrade mode is the controlled upgrade mode, an upgrade maintenance module sets a reference in-place value, and the upgrade maintenance module executes controlled upgrade operation based on the main control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the reference in-place value; correspondingly, in this embodiment, the timing upgrade operation, the master upgrade operation, and the controlled upgrade operation are all the remote upgrade operations;
Specifically, the timing upgrade operation includes: the upgrade maintenance module identifies second port information in the second network connection information; the upgrade maintenance module executes an upgrade step based on the second port information, the master control end, the controlled end, the data transmitting tool and the data receiving tool every the upgrade time period:
the upgrading step comprises the following steps: the upgrade maintenance module calls the main control terminal to acquire first version information of the terminal equipment through the data transmission tool according to the second port information and by adopting a socket protocol; the upgrade maintenance module calls the main control terminal to identify a first product version of the first version information; the upgrade maintenance module calls the main control end to search a first cache area matched with the first product version in the upgrade version library, and obtains a plurality of pieces of second version information of a plurality of upgrade packages in the first cache area;
the upgrade maintenance module identifies a first version number in the first version information and a plurality of second version numbers of a plurality of second version information; the upgrade maintenance module screens whether second version numbers higher than the first version number exist in the plurality of second version numbers; if yes, the upgrade maintenance module sets the second version number higher than the first version number as a first version number to be upgraded; the upgrade maintenance module calls the main control terminal to define the upgrade package corresponding to the first version number to be upgraded with the largest version number as a first upgrade package; the upgrade maintenance module calls the main control end to compress the first upgrade package into an upgrade compression package through a compression algorithm, and the upgrade maintenance module calls the main control end to send the upgrade compression package to the data receiving tool through the data sending tool;
The upgrade maintenance module sets a storage threshold; when the data receiving tool receives the upgrade compression package, the upgrade maintenance module calls the data receiving tool through a controlled terminal to divide a cache space matched with the storage threshold value in a virtual memory of the terminal equipment; the upgrade maintenance module calls the data receiving tool through the controlled end to acquire a storage path of a first data packet matched with the first version information in the terminal equipment, and the upgrade maintenance module calls the data receiving tool through the controlled end to move the first data packet into the cache space; the upgrade maintenance module invokes the data receiving tool through the controlled end to decompress the upgrade compressed packet into the storage path by adopting a decompression algorithm matched with the compression algorithm to obtain an upgrade program; the upgrade maintenance module operates the upgrade program through the controlled terminal;
specifically, the main control upgrading operation includes: the upgrade maintenance module sets a first detection time period, and detects whether the starting process of the main control end reaches the starting process break point or not every the first detection time period; if yes, the upgrade maintenance module executes the upgrade step; the controlled upgrade operation includes: the upgrade maintenance module sets a second detection time period, detects a second port in-place value corresponding to the second port information every second detection time period, compares whether the second port in-place value is matched with the reference in-place value, and if so, the upgrade maintenance module executes the upgrade step.
Through the remote upgrading system for the terminal, which is described by the embodiment, the connection establishment module, the version library configuration module and the upgrading maintenance module are mutually matched, so that the upgrading of the terminal equipment is controlled remotely, the on-site maintenance equipment of an engineer is not required to upgrade, the great manpower resource and time resource and the upgrading cost are saved, the convenience and the intelligence are extremely high, the whole operation flow is ingenious and easy to compile, and the defects of the prior art are overcome.
Example 3
The present embodiment provides a computer-readable storage medium including:
the storage medium is used for storing computer software instructions for implementing the remote upgrade method for a terminal described in the above embodiment 1, and includes a program for executing the above program set for the remote upgrade method for a terminal; specifically, the executable program may be built in the remote upgrade system for a terminal described in embodiment 2, so that the remote upgrade system for a terminal may implement the remote upgrade method for a terminal described in embodiment 1 by executing the built-in executable program.
Further, the computer readable storage medium provided in the present embodiment may be any combination of one or more readable storage media, where the readable storage media includes an electric, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.
Compared with the prior art, the remote upgrading method, the remote upgrading system and the medium for the terminal can realize remote, efficient, automatic and intelligent upgrading and maintenance of the terminal equipment through the method, an engineer is not required to go to the site of the terminal equipment, the whole process is realized through software logic, effective technical support is provided for the method through the system, the final application cost is low, the upgrading efficiency is high, the defects of the prior art are overcome, and the method has extremely high market value.
The foregoing embodiment of the present application has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or a program implemented by a program to instruct related hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description is only illustrative of the present application and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes or direct or indirect application in other related technical fields are included in the scope of the present application.

Claims (6)

1. The remote upgrading method for the terminal is characterized by comprising the following steps of:
a connection establishment step:
configuring a master control end and configuring a controlled end on terminal equipment;
acquiring first network connection information of the master control end;
the main control end and the controlled end are in communication connection based on the first network connection information;
version library configuration:
acquiring a product information set;
configuring a data storage space at the main control end;
setting a time interval, a reference frequency and a frequency interval;
constructing an upgrade version library based on the product information set, the data storage space, the time interval, the reference frequency and the frequency interval;
upgrading and maintaining:
acquiring the use information of the terminal equipment;
setting an upgrade mode of the terminal equipment based on the use information;
executing remote upgrading operation based on the main control end, the controlled end, the upgrading version library and the upgrading mode;
the step of communicatively connecting the master control end and the slave control end based on the first network connection information further includes: extracting first address information, first port information and first connection key information in the first network connection information; creating a first tool at the main control end, and configuring the first tool based on the first address information, the first port information and the first connection key information to obtain a data sending tool; setting second network connection information of the controlled terminal based on the first address information, the first port information and the first connection key information; creating a second tool on the controlled end, and configuring the second tool based on the second network connection information to obtain a data receiving tool; acquiring a packet receiving address of the data receiving tool; adding the packet receiving address to a data transmission address of the data transmission tool;
The step of building an upgrade version library based on the product information set, the data storage space, the time interval, the reference frequency and the frequency interval further comprises: identifying a number of product versions in the product information set; dividing a plurality of cache areas respectively corresponding to a plurality of product versions in the data storage space; setting an updating time period, and acquiring a plurality of upgrading packages which are respectively matched with a plurality of product versions every other updating time period; respectively placing a plurality of upgrade packages into a plurality of cache areas according to the product version to obtain the upgrade version library;
the step of setting the upgrade mode of the terminal device based on the usage information further includes: extracting a use log in the use information; extracting a plurality of use times of the terminal equipment in the use log; calculating the average time of a plurality of using times; comparing whether the average time is within the time interval; if yes, setting the upgrading mode as a timing upgrading mode; if not, counting the number of times of use of the terminal equipment based on the use log; calculating the sum of a plurality of using times to obtain the using time; calculating the quotient of the using times and the using time to obtain the using frequency; calculating an absolute value of a difference between the usage frequency and the frequency reference; comparing whether the absolute value is in the frequency interval, if so, setting the upgrading mode as a controlled upgrading mode, and if not, setting the upgrading mode as a main control upgrading mode;
The step of executing remote upgrade operations based on the master control end, the slave end, the upgrade version library, and the upgrade mode further includes: when the upgrade mode is the timing upgrade mode, setting an upgrade time period, and executing timing upgrade operation based on the main control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the upgrade time period; when the upgrade mode is the main control upgrade mode, setting a starting process break point, and executing main control upgrade operation based on the main control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the starting process break point; when the upgrade mode is the controlled upgrade mode, setting a reference in-place value, and executing controlled upgrade operation based on the main control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the reference in-place value; the timing upgrade operation, the master upgrade operation and the controlled upgrade operation are all remote upgrade operations.
2. The remote upgrade method for terminals according to claim 1, wherein the timing upgrade operation comprises:
Identifying second port information in the second network connection information;
and executing an upgrading step based on the second port information, the main control end, the controlled end, the data sending tool and the data receiving tool every the upgrading time period:
the main control terminal calls the data sending tool to acquire first version information of the terminal equipment according to the second port information and by adopting a socket protocol; the master control end identifies a first product version of the first version information; the main control end searches a first cache area matched with the first product version in the upgrade version library, and acquires a plurality of pieces of second version information of a plurality of upgrade packages in the first cache area;
identifying a first version number in the first version information and a plurality of second version numbers of a plurality of second version information; screening whether second version numbers higher than the first version number exist in the second version numbers or not; if yes, setting the second version number higher than the first version number as a first version number to be upgraded; the main control end defines the upgrade package corresponding to the first version number to be upgraded with the largest version number as a first upgrade package; the main control terminal calls a compression algorithm to compress the first upgrade package into an upgrade compression package, and the main control terminal calls the data sending tool to send the upgrade compression package to the data receiving tool.
3. The method for remote upgrade of a terminal according to claim 2, wherein the upgrade step further comprises:
setting a storage threshold; when the data receiving tool receives the upgrade compression package, the controlled terminal calls the data receiving tool to divide a cache space matched with the storage threshold value in the virtual memory of the terminal equipment;
the controlled terminal calls the data receiving tool to acquire a storage path of a first data packet matched with the first version information in the terminal equipment, and calls the data receiving tool to move the first data packet into the cache space;
the controlled terminal calls the data receiving tool to decompress the upgrade compressed packet into the storage path by adopting a decompression algorithm matched with the compression algorithm to obtain an upgrade program; and the controlled end operates the upgrading program.
4. A method for remote upgrade of a terminal according to claim 3, wherein the main control upgrade operation comprises: setting a first detection time period, and detecting whether a starting process of the main control terminal reaches a break point of the starting process or not every the first detection time period; if yes, executing the upgrading step;
The controlled upgrade operation includes: setting a second detection time period, detecting a second port in-place value corresponding to the second port information every second detection time period, comparing whether the second port in-place value is matched with the reference in-place value, and if so, executing the upgrading step.
5. A remote upgrade system for a terminal, comprising: the system comprises a connection establishment module, a version library configuration module and an upgrade maintenance module;
the connection establishment module is used for configuring a main control end and configuring a controlled end on terminal equipment; the connection establishment module is further used for acquiring first network connection information of the master control end; the connection establishment module is used for connecting the main control end with the controlled end in a communication mode based on the first network connection information;
the version library configuration module is used for acquiring a product information set; the version library configuration module is also used for configuring a data storage space at the main control end; the version library configuration module is also used for setting a time interval, a reference frequency and a frequency interval; the version library configuration module builds an upgrade version library based on the product information set, the data storage space, the time interval, the reference frequency and the frequency interval;
The upgrade maintenance module is used for acquiring the use information of the terminal equipment, and is also used for setting an upgrade mode of the terminal equipment according to the use information; the upgrade maintenance module executes remote upgrade operation based on the main control end, the controlled end, the upgrade version library and the upgrade mode;
the connection establishment module communicatively connects the master control end and the controlled end based on the first network connection information further includes: the connection establishment module extracts first address information, first port information and first connection key information in the first network connection information; the connection establishment module establishes a first tool at the main control end, and configures the first tool based on the first address information, the first port information and the first connection key information to obtain a data sending tool; the connection establishment module sets second network connection information of the controlled terminal based on the first address information, the first port information and the first connection key information; the connection establishment module establishes a second tool on the controlled end, and configures the second tool based on the second network connection information to obtain a data receiving tool; the connection establishment module acquires a packet receiving address of the data receiving tool; the connection establishment module adds the packet receiving address to a data transmission address of the data transmission tool;
The version library configuration module builds an upgrade version library based on the product information set, the data storage space, the time interval, the reference frequency and the frequency interval, and further comprises: the version library configuration module identifies a plurality of product versions in the product information set; the version library configuration module divides a plurality of cache areas corresponding to a plurality of product versions in the data storage space; the version library configuration module sets an updating time period, and the version library configuration module acquires a plurality of upgrading packages which are respectively matched with a plurality of product versions at intervals of the updating time period; the version library configuration module respectively places a plurality of upgrading packages into a plurality of cache areas according to the product version to obtain the upgrading version library;
the setting the upgrade mode of the terminal device according to the usage information further includes: the upgrade maintenance module extracts a use log in the use information; the upgrade maintenance module extracts a plurality of use times of the terminal equipment in the use log; the upgrade maintenance module calculates the average time of a plurality of the using times; the upgrade maintenance module compares whether the average time is within the time interval; if yes, the upgrade maintenance module sets the upgrade mode as a timing upgrade mode; if not, the upgrade maintenance module counts the use times of the terminal equipment based on the use log; the upgrade maintenance module calculates the sum of a plurality of using times to obtain the using time; the upgrade maintenance module calculates the quotient of the using times and the using time to obtain the using frequency; the upgrade maintenance module calculates an absolute value of a difference value between the use frequency and the frequency reference; the upgrade maintenance module compares whether the absolute value is in the frequency interval, if yes, the upgrade maintenance module sets the upgrade mode as a controlled upgrade mode, and if not, the upgrade maintenance module sets the upgrade mode as a main control upgrade mode;
The upgrade maintenance module performing a remote upgrade operation based on the master control end, the slave end, the upgrade version library, and the upgrade mode further includes: when the upgrade mode is the timing upgrade mode, the upgrade maintenance module sets an upgrade time period, and the upgrade maintenance module executes timing upgrade operation based on the master control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the upgrade time period; when the upgrade mode is the main control upgrade mode, the upgrade maintenance module sets a start process break point, and the upgrade maintenance module executes main control upgrade operation based on the main control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the start process break point; when the upgrade mode is the controlled upgrade mode, the upgrade maintenance module sets a reference on-site value, and the upgrade maintenance module executes controlled upgrade operation based on the main control end, the controlled end, the data transmitting tool, the data receiving tool, the upgrade version library and the reference on-site value; the timing upgrade operation, the master upgrade operation and the controlled upgrade operation are all remote upgrade operations.
6. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program when executed by a processor implements the steps of the remote upgrade method for a terminal according to any one of claims 1 to 4.
CN202111119948.5A 2021-09-24 2021-09-24 Remote upgrading method, system and medium for terminal Active CN113791806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111119948.5A CN113791806B (en) 2021-09-24 2021-09-24 Remote upgrading method, system and medium for terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111119948.5A CN113791806B (en) 2021-09-24 2021-09-24 Remote upgrading method, system and medium for terminal

Publications (2)

Publication Number Publication Date
CN113791806A CN113791806A (en) 2021-12-14
CN113791806B true CN113791806B (en) 2023-08-22

Family

ID=78879181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111119948.5A Active CN113791806B (en) 2021-09-24 2021-09-24 Remote upgrading method, system and medium for terminal

Country Status (1)

Country Link
CN (1) CN113791806B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114326679B (en) * 2021-12-30 2023-07-18 深蓝汽车科技有限公司 Method and system for refreshing controller based on one-edition integrated software

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032640A (en) * 2018-07-20 2018-12-18 中国邮政储蓄银行股份有限公司 Terminal more new system, method and apparatus
CN109271184A (en) * 2018-08-28 2019-01-25 苏州浪潮智能软件有限公司 A method of based on remote upgrade version security protection
CN109753297A (en) * 2018-12-28 2019-05-14 深圳创维-Rgb电子有限公司 Method for upgrading software, device and readable storage medium storing program for executing when terminal standby
CN111562935A (en) * 2020-07-14 2020-08-21 江苏海平面数据科技有限公司 OTA security upgrading system and upgrading method thereof
CN111683114A (en) * 2020-04-21 2020-09-18 视联动力信息技术股份有限公司 Method and device for upgrading equipment program, terminal equipment and storage medium
CN112118313A (en) * 2020-09-17 2020-12-22 紫光展锐(重庆)科技有限公司 Method and related device for remotely upgrading terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032640A (en) * 2018-07-20 2018-12-18 中国邮政储蓄银行股份有限公司 Terminal more new system, method and apparatus
CN109271184A (en) * 2018-08-28 2019-01-25 苏州浪潮智能软件有限公司 A method of based on remote upgrade version security protection
CN109753297A (en) * 2018-12-28 2019-05-14 深圳创维-Rgb电子有限公司 Method for upgrading software, device and readable storage medium storing program for executing when terminal standby
CN111683114A (en) * 2020-04-21 2020-09-18 视联动力信息技术股份有限公司 Method and device for upgrading equipment program, terminal equipment and storage medium
CN111562935A (en) * 2020-07-14 2020-08-21 江苏海平面数据科技有限公司 OTA security upgrading system and upgrading method thereof
CN112118313A (en) * 2020-09-17 2020-12-22 紫光展锐(重庆)科技有限公司 Method and related device for remotely upgrading terminal equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐洋 ; 郑继敏 ; .面向电动车车载监控终端的嵌入式软件远程升级系统研究与设计.汽车零部件.2018,(第02期),全文. *

Also Published As

Publication number Publication date
CN113791806A (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN113791806B (en) Remote upgrading method, system and medium for terminal
CN102223380B (en) Client terminal automatic updating frame based on Webservice and application thereof
CN113498594B (en) Control method and device of smart home system, electronic equipment and storage medium
CN104038819A (en) Software upgrading system and method of digital set-top box
CN109298868A (en) Intelligent dynamic deployment and unloading method for mapping image data processing software
CN112822199B (en) OTA (over the air) upgrading method and system based on protocol conversion
CN104079970A (en) System and method of data interaction and control of mobile equipment and WIFI (Wireless Fidelity) smart television
CN104954482A (en) Configuration management system and method
CN113535214A (en) Algorithm file upgrading method and device, electronic device and storage medium
CN115129574A (en) Code testing method and device
CN115080076B (en) Cloud mobile phone software management method
KR100652115B1 (en) Mobile communication device for remote control by pc and remote control method using the same
CN102946564A (en) Video service system automatic update method
CN110362331A (en) Smart machine carries out the method for automatically updating firmware under factory mode
CN106933643A (en) A kind of code compiling method, equipment and system
CN115729590A (en) Service deployment method, device, equipment and computer readable storage medium
CN115756448A (en) Method, device, equipment and medium for acquiring vehicle cloud data acquisition system architecture
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN113347609B (en) Wireless intelligent control platform
CN108989428A (en) Bluetooth terminal upgrade method, server, computer readable storage medium and system
CN104378403A (en) Terminal and updating method thereof
CN114418458A (en) Process parameter adjusting method based on digital twin DaaS platform
CN111786837A (en) System and method for wirelessly modifying configuration parameters of KNX (Konnex) equipment
CN105188154A (en) Method, device and system for operating intelligent equipment automatically
CN105740040A (en) Virtual machine data loading method and system

Legal Events

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