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

Remote upgrading method, system and medium for terminal Download PDF

Info

Publication number
CN113791806A
CN113791806A CN202111119948.5A CN202111119948A CN113791806A CN 113791806 A CN113791806 A CN 113791806A CN 202111119948 A CN202111119948 A CN 202111119948A CN 113791806 A CN113791806 A CN 113791806A
Authority
CN
China
Prior art keywords
upgrading
terminal
information
version
upgrade
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.)
Granted
Application number
CN202111119948.5A
Other languages
Chinese (zh)
Other versions
CN113791806B (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

Images

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

Landscapes

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

Abstract

The invention discloses a remote upgrading method, a system and a 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 end; the master control end is in communication connection with the controlled end based on the 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; establishing an upgrade version library based on a product information set, a data storage space, a time interval, a reference frequency and a frequency interval; acquiring use information of the terminal equipment; setting an upgrade mode of the terminal device based on the usage information; executing remote upgrading operation based on the master control end, the controlled end, the upgrading version library and the upgrading mode; the invention can remotely, efficiently, automatically and intelligently upgrade and maintain the terminal equipment without an engineer going to the site of the terminal equipment, has low application cost and high upgrading efficiency and makes up the defects of the prior art.

Description

Remote upgrading method, system and medium for terminal
Technical Field
The invention relates to the technical field of terminal equipment upgrading, in particular to a remote upgrading method, system and medium for a terminal.
Background
Among the prior art, the upgrading mode to the terminal is through engineer's field debugging upgrading to terminal equipment, and if this kind of mode is faced large batch terminal project, will need to spend a large amount of time resources and manpower resources, and can lead to the upgrading efficiency at terminal lower, and some terminals are because of the geographical position of buildding is comparatively remote, then the manual mode will not carry out high-efficient and quick upgrading maintenance.
Disclosure of Invention
The invention mainly solves the problems that the upgrading efficiency of a terminal upgrading mode adopted by the prior art is low, and the terminal equipment cannot be upgraded and maintained efficiently and quickly.
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 terminal;
the master control end is in communication connection with the controlled end based on the first network connection information;
configuring a version library:
acquiring a product information set;
configuring a data storage space at the master control end;
setting a time interval, a reference frequency and a frequency interval;
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;
upgrading and maintaining:
acquiring the use information of the terminal equipment;
setting an upgrading mode of the terminal equipment based on the use information;
and executing remote upgrading operation based on the main control terminal, the controlled terminal, the upgrading version library and the upgrading mode.
As an improved solution, the step of communicatively connecting the master terminal and the controlled terminal 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 master 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 terminal, 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 sending address of the data sending 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 corresponding to the product versions in the data storage space;
setting an updating time period, and acquiring a plurality of upgrading packages respectively matched with a plurality of product versions every other updating time period; and respectively placing the upgrading packages into the cache regions according to the product versions to obtain the upgrading 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 usage log in the usage information;
extracting a plurality of use times of the terminal equipment in the use log; calculating an average time of a number of said usage times; comparing whether the average time is within the time interval;
if so, setting the upgrading mode as a timing upgrading mode;
if not, counting the use times of the terminal equipment based on the use log; calculating the sum of a plurality of service times to obtain service duration; calculating a quotient value of the using times and the using duration to obtain using frequency; calculating an absolute value of a difference between the usage frequency and the frequency reference; and 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 master control upgrading mode.
As an improved solution, the step of performing a remote upgrade operation based on the master control end, the controlled end, the upgrade version library and the upgrade mode further includes:
when the upgrading mode is the timing upgrading mode, setting an upgrading time period, and executing timing upgrading operation based on the main control terminal, the controlled terminal, the data sending tool, the data receiving tool, the upgrading version library and the upgrading time period;
when the upgrading mode is the master control upgrading mode, setting a starting process interruption point, and executing master control upgrading operation based on the master control terminal, the controlled terminal, the data sending tool, the data receiving tool, the upgrading version library and the starting process interruption point;
when the upgrading mode is the controlled upgrading mode, setting a reference on-bit value, and executing controlled upgrading operation based on the main control terminal, the controlled terminal, the data sending tool, the data receiving tool, the upgrading version library and the reference on-bit value;
the timing upgrading operation, the master control upgrading operation and the controlled upgrading operation are all the remote upgrading operations.
As an improved solution, the timing upgrade operation includes:
identifying second port information in the second network connection information;
and performing an upgrading step based on the second port information, the master control terminal, the controlled terminal, the data sending tool and the data receiving tool every other upgrading time period:
the main control end calls the data sending tool to obtain first version information of the terminal equipment according to the second port information and by adopting a socket protocol; the master control terminal identifies a first product version of the first version information; the master control end searches a first cache region matched with the first product version in the upgrading version library and acquires a plurality of second version information of a plurality of upgrading packages in the first cache region;
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 a second version number higher than the first version number exists in a plurality of second version numbers; if the first version number exists, 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 upgrading packet corresponding to the first version number to be upgraded with the maximum version number as a first upgrading packet; and the main control end calls a compression algorithm to compress the first upgrading packet into an upgrading compression packet, and calls the data sending tool to send the upgrading compression packet to the data receiving tool.
As an improved solution, the upgrading step further includes:
setting a storage threshold; when the data receiving tool receives the upgrading compression package, the controlled terminal calls the data receiving tool to divide a cache space matched with the storage threshold value in a virtual memory of the terminal equipment;
the controlled terminal calls the data receiving tool to obtain a storage path of a first data packet matched with the first version information in the terminal equipment, and the controlled terminal calls the data receiving tool to move the first data packet to the cache space;
the controlled end calls the data receiving tool to decompress the upgrade compression packet to the storage path by adopting a decompression algorithm matched with the compression algorithm to obtain an upgrade program; and the controlled terminal runs the upgrading program.
As an improved solution, the master upgrade operation includes: setting a first detection time period, and detecting whether the starting process of the main control end reaches the starting process interruption point every other 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 on-position value corresponding to the second port information every other second detection time period, comparing whether the second port on-position value is matched with the reference on-position value, and if so, executing the upgrading step.
The invention also provides a remote upgrading system for the terminal, which comprises:
the system comprises a connection establishing module, a version library configuration module and an upgrading maintenance module;
the connection establishing module is used for configuring a main control end; the connection establishing module is further used for acquiring first network connection information of the main control terminal; the connection establishing module is used for connecting the main control end and the 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 base 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 setting an upgrade mode of the terminal equipment according to the use information; the upgrading maintenance module executes remote upgrading operation based on the main control terminal, the upgrading version library and the upgrading 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 the terminal.
The invention has the beneficial effects that:
1. the remote upgrading method for the terminal can realize remote, efficient, automatic and intelligent upgrading and maintenance of the terminal equipment, an engineer does not need to go to the site of the terminal equipment, the whole process is realized through software logic, the application cost is low, the upgrading efficiency is high, and the defects of the prior art are overcome.
2. The remote upgrading system for the terminal can realize remote, efficient, automatic and intelligent upgrading and maintenance of the terminal equipment through the mutual matching of the connection establishing module, the version library configuration module and the upgrading and maintenance module, an engineer does not need to go to the site of the terminal equipment, the whole process is realized through software logic, the application cost is low, the upgrading efficiency is high, and the defects of the prior art are overcome.
3. The computer-readable storage medium can realize the cooperation of the guide connection establishing module, the version library configuration module and the upgrading maintenance module, further realize the remote, efficient, automatic and intelligent upgrading maintenance of the terminal equipment without an engineer going to the site of the terminal equipment, realize the whole process through software logic, have low application cost and high upgrading efficiency, make up the defects of the prior art, and effectively improve the operability of the remote upgrading 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 used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a remote upgrade method for a terminal according to embodiment 1 of the present invention;
fig. 2 is a schematic flowchart of a remote upgrade method for a terminal according to embodiment 1 of the present invention;
fig. 3 is an architecture diagram of a remote upgrade system for a terminal according to embodiment 2 of the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
In the description of the present invention, it should be noted that the described embodiments of the present invention are a part of the embodiments of the present invention, and not all embodiments; 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 invention.
In the description of the present invention, it should be noted that the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it is to be noted that: NET Framework is a 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 2, including the following steps:
s100, connection establishment:
step S100 specifically includes:
s110, configuring a main control end, and configuring a controlled end on the terminal equipment; acquiring first network connection information of the master control terminal; the master control end is in communication connection with the controlled end 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 master 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 terminal, and configuring the second tool based on the second network connection information to obtain a data receiving tool; in this embodiment, the data sending tool and the data receiving tool are implemented by using a remote operation and maintenance 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 terminal and the master control terminal are matched with each other; acquiring a packet receiving address of the data receiving tool; adding the packet receiving address to a data sending address of the data sending tool; the packet receiving address is a data receiving address; correspondingly, in this embodiment, after the network connection information and the data transceiver are configured, the controlled terminal and the master control terminal 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, through the design of the master control end and the controlled end, the field operation process of an engineer can be omitted, and the terminal device can be upgraded and maintained only by remote logic operation.
S200, configuring a version library:
step S200 specifically includes:
s210, acquiring a product information set; configuring a data storage space at the master control end; setting a time interval, a reference frequency and a frequency interval; 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; in this embodiment, the product information set is a product information set including a plurality of categories of terminal devices, and the product information includes: version of terminal product, product installation catalog, product attribute information, product upgrading duration and the like; specifically, a plurality of product versions in the product information set are identified; dividing a plurality of cache areas corresponding to the product versions in the data storage space; setting an updating time period, and acquiring a plurality of upgrading packages respectively matched with a plurality of product versions every other updating time period; respectively placing the upgrading packages into the cache regions according to the product versions to obtain an upgrading version library; in the embodiment, the updating time period is set to 1s, so that real-time updating is realized; correspondingly, the setting of the cache area enables the upgrade packages of the product versions of all categories to be distinguished and placed, and the orderly placement can improve the efficiency of later screening comparison of the upgrade packages, so that the upgrade efficiency of the terminal equipment is further improved.
S300, upgrading and maintaining:
step S300 specifically includes:
s310, obtaining the use information of the terminal equipment; setting an upgrading mode of the terminal equipment based on the use information; executing remote upgrading operation based on the main control terminal, the controlled terminal, the upgrading version library and the upgrading mode;
specifically, a usage log in the usage information is extracted; 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 an average time of a number of said usage times; comparing whether the average time is within the time interval; in this embodiment, the time interval is specifically set according to a use scene of the terminal device, for example, the open time of the terminal device of a certain financial institution is 8:00 to 12: 00; if the average time is in the time, the terminal of the type is high-frequency high-demand terminal equipment, so that the equipment needs to be updated in an idle time period, and if the average time is in the time, the upgrading mode is set to be a timing upgrading mode; if not, counting the use times of the terminal equipment based on the use log; calculating the sum of a plurality of service times to obtain service duration; calculating a quotient value of the using times and the using duration to obtain 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 master control upgrading mode; correspondingly, in the present embodiment, both the frequency interval and the frequency reference are specifically set; when the use frequency is in the frequency interval, the terminal is a terminal used at a high frequency, but is not in the open time, so that the terminal needs to be updated before use every time, so that the highest experience of a user is achieved, and a controlled upgrading mode needs to be set; on the contrary, the terminal does not need high-frequency upgrading, so the terminal is set to be in a master control upgrading mode to carry out control upgrading of operators; when the upgrading mode is the timing upgrading mode, setting upgrading time periods, and executing timing upgrading operation based on the main control end, the controlled end, the data sending tool, the data receiving tool, the upgrading version library and the upgrading time periods; when the upgrading mode is the master control upgrading mode, a starting process interruption point is set as upgrading is needed according to whether a master control end is started or not, and master control upgrading operation is executed based on the master control end, the controlled end, the data sending tool, the data receiving tool, the upgrading version library and the starting process interruption point; when the upgrading mode is the controlled upgrading mode, the reference on-line value is set as the upgrading is required according to the online or offline state of the controlled terminal, and the controlled upgrading operation is executed based on the main control terminal, the controlled terminal, the data sending tool, the data receiving tool, the upgrading version library and the reference on-line value; in this embodiment, the timing upgrade operation, the master upgrade operation, and the controlled upgrade operation are the remote upgrade operations.
Specifically, the timing upgrade operation includes: identifying second port information in the second network connection information; performing an upgrading step based on the second port information, the master control terminal, the controlled terminal, the data sending tool and the data receiving tool every other upgrading time period;
the upgrading step specifically comprises: the main control end calls the data sending tool to obtain first version information of the terminal equipment according to the second port information and by adopting a socket protocol; the master control terminal identifies a first product version of the first version information; the master control end searches a first cache region matched with the first product version in the upgrading version library and acquires a plurality of second version information of a plurality of upgrading packages in the first cache region; correspondingly, in the embodiment, the version information is a versioninfo.xml file, and all versioninfo.xml files in the upgrade version library are managed in 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 a second version number higher than the first version number exists in a plurality of second version numbers; if the first version number exists, 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 upgrading packet corresponding to the first version number to be upgraded with the maximum version number as a first upgrading packet; the main control end calls a compression algorithm to compress the first upgrading packet into an upgrading compression packet, and calls the data sending tool to send the upgrading compression packet to the data receiving tool; in the present embodiment, the data compression algorithm includes, but is not limited to, the Huffman algorithm and the LZW algorithm; setting a storage threshold; the storage threshold value is matched with the size of the data packet corresponding to the first version information; therefore, 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 obtain a storage path of a first data packet matched with the first version information in the terminal equipment, and the controlled terminal calls the data receiving tool to move the first data packet to 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 call of the data packet in the system storage area; the controlled end calls the data receiving tool to decompress the upgrade compression packet to the storage path by adopting a decompression algorithm matched with the compression algorithm to obtain an upgrade program; and the controlled terminal runs the upgrading program to further complete the upgrading step.
The master upgrade operation includes: setting a first detection time period, and detecting whether the starting process of the main control end reaches the starting process interruption point every other first detection time period; in the embodiment, a first detection time period is set specifically; the starting process is a system basic starting item of the master control end, for example: an operating system starting process and a network card protocol starting process; if yes, the master control end is started and is used for upgrading the terminal equipment of the controlled end, and therefore the upgrading step is executed; specifically, the partial implementation code of the master control upgrade operation is as follows:
the remote operation and maintenance tool V1.0, the remote operation and maintenance tool 1.0, the SetupPath, the remote operation and maintenance tool D, the remote monitoring unit os, the master control end start-up upgrade, the remote operation and maintenance tool D, the remote operation and maintenance tool c, the remote operation and maintenance tool r
<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 on-position value corresponding to the second port information every other second detection time period, comparing whether the second port on-position value is matched with the reference on-position value or not, and if so, executing the upgrading step; correspondingly, the reference on-bit value is a judgment reference for judging whether the second port is opened, and is specifically set 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 the in-place values in this embodiment, so the judgment of the in-place value can tell whether the port is open or not; the configuration of the port is inevitably in the starting item of the controlled terminal equipment, so that whether the controlled terminal is on-line or connected can be further judged.
According to the remote upgrading method for the terminal, the terminal equipment can be remotely controlled to be upgraded, an engineer does not need to maintain the equipment for upgrading on site, great manpower resources, time resources and upgrading cost are saved, convenience and intelligence are high, the whole operation process is ingenious and easy to compile, and the defects of the prior art are overcome.
Example 2
The present embodiment provides a remote upgrade system for a terminal, as shown in fig. 3, including: the system comprises a connection establishing module, a version library configuration module and an upgrading maintenance module;
in the remote upgrading system for the terminal, a connection establishing module is used for configuring a main control end and configuring a controlled end on terminal equipment; (ii) a The connection establishing module is further used for acquiring first network connection information of the main control terminal; the connection establishing module is used for connecting the main control end and the terminal equipment in a communication mode based on the first network connection information;
specifically, the connection establishing module extracts first address information, first port information and first connection key information in the first network connection information; the connection establishing module establishes a first tool at the master 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 establishing 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 establishing module establishes a second tool on the controlled terminal, and configures the second tool based on the second network connection information to obtain a data receiving tool; the connection establishing module acquires a packet receiving address of the data receiving tool; and the connection establishing module adds the packet receiving address to a data sending address of the data sending 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 base 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, a 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 the product versions in the data storage space; the version library configuration module sets an updating time period, and acquires a plurality of upgrading packets respectively matched with a plurality of product versions every other updating time period; and the version library configuration module is used for respectively placing 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 the upgrading mode of the terminal equipment according to the use information; the upgrading maintenance module executes remote upgrading operation based on the main control terminal, the upgrading version library and the upgrading mode;
specifically, the upgrade maintenance module extracts a use log in the use information;
the upgrading maintenance module extracts a plurality of using times of the terminal equipment in the using log; the upgrading maintenance module calculates the average time of a plurality of service times; the upgrading maintenance module compares whether the average time is within the time interval; if the upgrade mode is in the timing upgrade mode, the upgrade maintenance module sets the upgrade mode to be the timing upgrade mode; if not, the upgrading maintenance module counts the use times of the terminal equipment based on the use log; the upgrading maintenance module calculates the sum of a plurality of service times to obtain service duration; the upgrading maintenance module calculates the quotient of the use times and the use duration to obtain the use frequency; the upgrading maintenance module calculates the absolute value of the difference value of the using frequency and the frequency reference; the upgrading maintenance module compares whether the absolute value is in the frequency interval, if so, the upgrading maintenance module sets the upgrading mode to be a controlled upgrading mode, and if not, the upgrading maintenance module sets the upgrading mode to be a master control upgrading mode;
specifically, when the upgrade mode is the timed upgrade mode, the upgrade maintenance module sets an upgrade time period, and executes a timed upgrade operation based on the master control terminal, the controlled terminal, the data transmission tool, the data reception tool, the upgrade version library and the upgrade time period; when the upgrading mode is the master control upgrading mode, an upgrading maintenance module sets a starting process interruption point, and executes master control upgrading operation based on the master control terminal, the controlled terminal, the data sending tool, the data receiving tool, the upgrading version library and the starting process interruption point; when the upgrading mode is the controlled upgrading mode, the upgrading maintenance module sets a reference on-bit value, and executes controlled upgrading operation based on the main control terminal, the controlled terminal, the data sending tool, the data receiving tool, the upgrading version library and the reference on-bit value; correspondingly, in this embodiment, the timing upgrade operation, the master upgrade operation, and the controlled upgrade operation are the remote upgrade operations;
specifically, the timing upgrade operation includes: the upgrading 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 sending tool and the data receiving tool every other upgrade time period:
the upgrading step comprises the following steps: the upgrading maintenance module calls the main control end to acquire first version information of the terminal equipment through the data sending tool according to the second port information and by adopting a socket protocol; the upgrading maintenance module calls the main control terminal to identify the first product version of the first version information; the upgrading maintenance module calls the main control end to search a first cache area matched with the first product version in the upgrading version library and obtains a plurality of second version information of a plurality of upgrading packages in the first cache area;
the upgrading 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 upgrading maintenance module screens whether a second version number higher than the first version number exists in the second version numbers; if the version number exists, the upgrading maintenance module sets the second version number higher than the first version number as a first version number to be upgraded; the upgrading maintenance module calls the main control end to define the upgrading packet corresponding to the first version number to be upgraded with the maximum version number as a first upgrading packet; the upgrading maintenance module calls the main control end to compress the first upgrading packet into an upgrading compressed packet through a compression algorithm, and calls the main control end to send the upgrading compressed packet to the data receiving tool through the data sending tool;
the upgrading maintenance module sets a storage threshold value; when the data receiving tool receives the upgrading compression package, the upgrading maintenance module calls the data receiving tool through the controlled end to divide a cache space matched with the storage threshold value in the virtual memory of the terminal equipment; the upgrading maintenance module calls the data receiving tool through the controlled terminal to acquire a storage path of a first data packet matched with the first version information in the terminal equipment, and the upgrading maintenance module calls the data receiving tool through the controlled terminal to move the first data packet to the cache space; the upgrade maintenance module calls the data receiving tool through the controlled end to decompress the upgrade compression packet into the storage path by adopting a decompression algorithm matched with the compression algorithm to obtain an upgrade program; the upgrading maintenance module runs the upgrading program through the controlled end;
specifically, the master control upgrading operation includes: the upgrading maintenance module sets a first detection time period, and detects whether the starting process of the main control terminal reaches the starting process interruption point every other first detection time period; if yes, the upgrading maintenance module executes the upgrading step; the controlled upgrade operation includes: the upgrading maintenance module sets a second detection time period, the upgrading maintenance module detects a second port on-position value corresponding to the second port information every other second detection time period, the upgrading maintenance module compares whether the second port on-position value is matched with the reference on-position value, and if the second port on-position value is matched with the reference on-position value, the upgrading maintenance module executes the upgrading step.
Through the remote upgrading system for the terminal described in the embodiment, the mutual cooperation of the connection establishment module, the version library configuration module and the upgrading maintenance module can be realized, then the upgrading of the remote control terminal equipment is realized, the upgrading of engineer field maintenance equipment is not needed, the great manpower resource, time resource and upgrading cost are saved, the convenience and the intelligence are extremely high, the whole operation flow is ingenious and is easy to compile, and the defects of the prior art are overcome.
Example 3
The present embodiments provide a computer-readable storage medium comprising:
the storage medium is used for storing computer software instructions for implementing the remote upgrading method for the terminal in the embodiment 1, and the computer software instructions comprise a program for executing the remote upgrading method for the terminal; specifically, the executable program may be embedded 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 embedded executable program.
Furthermore, the computer-readable storage medium of the present embodiments may take any combination of one or more readable storage media, where a readable storage medium includes an electronic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.
Different from the prior art, the remote upgrading method, the 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 does not need 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 high market value.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A remote upgrading method for a terminal is characterized by comprising 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 terminal;
the master control end is in communication connection with the controlled end based on the first network connection information;
configuring a version library:
acquiring a product information set;
configuring a data storage space at the master control end;
setting a time interval, a reference frequency and a frequency interval;
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;
upgrading and maintaining:
acquiring the use information of the terminal equipment;
setting an upgrading mode of the terminal equipment based on the use information;
and executing remote upgrading operation based on the main control terminal, the controlled terminal, the upgrading version library and the upgrading mode.
2. The remote upgrade method for a terminal according to claim 1, wherein the step of communicatively connecting the master terminal and the controlled terminal based on the first network connection information further comprises:
extracting first address information, first port information and first connection key information in the first network connection information; creating a first tool at the master 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 terminal, 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 sending address of the data sending tool.
3. The remote upgrading method for the terminal according to claim 2, wherein 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 corresponding to the product versions in the data storage space;
setting an updating time period, and acquiring a plurality of upgrading packages respectively matched with a plurality of product versions every other updating time period; and respectively placing the upgrading packages into the cache regions according to the product versions to obtain the upgrading version library.
4. The method according to claim 3, wherein the step of setting the upgrade mode of the terminal device based on the usage information further comprises:
extracting a usage log in the usage information;
extracting a plurality of use times of the terminal equipment in the use log; calculating an average time of a number of said usage times; comparing whether the average time is within the time interval;
if so, setting the upgrading mode as a timing upgrading mode;
if not, counting the use times of the terminal equipment based on the use log; calculating the sum of a plurality of service times to obtain service duration; calculating a quotient value of the using times and the using duration to obtain using frequency; calculating an absolute value of a difference between the usage frequency and the frequency reference; and 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 master control upgrading mode.
5. The remote upgrade method for a terminal according to claim 4, wherein the step of performing a remote upgrade operation based on the master control end, the controlled end, the upgrade version library and the upgrade mode further comprises:
when the upgrading mode is the timing upgrading mode, setting an upgrading time period, and executing timing upgrading operation based on the main control terminal, the controlled terminal, the data sending tool, the data receiving tool, the upgrading version library and the upgrading time period;
when the upgrading mode is the master control upgrading mode, setting a starting process interruption point, and executing master control upgrading operation based on the master control terminal, the controlled terminal, the data sending tool, the data receiving tool, the upgrading version library and the starting process interruption point;
when the upgrading mode is the controlled upgrading mode, setting a reference on-bit value, and executing controlled upgrading operation based on the main control terminal, the controlled terminal, the data sending tool, the data receiving tool, the upgrading version library and the reference on-bit value;
the timing upgrading operation, the master control upgrading operation and the controlled upgrading operation are all the remote upgrading operations.
6. The remote upgrade method for the terminal according to claim 5, wherein the timed upgrade operation includes:
identifying second port information in the second network connection information;
and performing an upgrading step based on the second port information, the master control terminal, the controlled terminal, the data sending tool and the data receiving tool every other upgrading time period:
the main control end calls the data sending tool to obtain first version information of the terminal equipment according to the second port information and by adopting a socket protocol; the master control terminal identifies a first product version of the first version information; the master control end searches a first cache region matched with the first product version in the upgrading version library and acquires a plurality of second version information of a plurality of upgrading packages in the first cache region;
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 a second version number higher than the first version number exists in a plurality of second version numbers; if the first version number exists, 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 upgrading packet corresponding to the first version number to be upgraded with the maximum version number as a first upgrading packet; and the main control end calls a compression algorithm to compress the first upgrading packet into an upgrading compression packet, and calls the data sending tool to send the upgrading compression packet to the data receiving tool.
7. The remote upgrade method for a terminal according to claim 6, wherein the upgrade step further comprises:
setting a storage threshold; when the data receiving tool receives the upgrading compression package, the controlled terminal calls the data receiving tool to divide a cache space matched with the storage threshold value in a virtual memory of the terminal equipment;
the controlled terminal calls the data receiving tool to obtain a storage path of a first data packet matched with the first version information in the terminal equipment, and the controlled terminal calls the data receiving tool to move the first data packet to the cache space;
the controlled end calls the data receiving tool to decompress the upgrade compression packet to the storage path by adopting a decompression algorithm matched with the compression algorithm to obtain an upgrade program; and the controlled terminal runs the upgrading program.
8. The remote upgrade method for the terminal according to claim 7, wherein the master upgrade operation includes: setting a first detection time period, and detecting whether the starting process of the main control end reaches the starting process interruption point every other 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 on-position value corresponding to the second port information every other second detection time period, comparing whether the second port on-position value is matched with the reference on-position value, and if so, executing the upgrading step.
9. A remote upgrade system for a terminal, comprising: the system comprises a connection establishing module, a version library configuration module and an upgrading maintenance module;
the connection establishing module is used for configuring a main control end; the connection establishing module is further used for acquiring first network connection information of the main control terminal; the connection establishing module is used for connecting the main control end and the 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 base 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 setting an upgrade mode of the terminal equipment according to the use information; the upgrading maintenance module executes remote upgrading operation based on the main control terminal, the upgrading version library and the upgrading mode.
10. A computer-readable storage medium, having a computer program stored thereon, which, when being executed by a processor, performs the steps of the method for remote upgrade for a terminal according to any one of claims 1 to 8.
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 true CN113791806A (en) 2021-12-14
CN113791806B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114326679A (en) * 2021-12-30 2022-04-12 重庆长安新能源汽车科技有限公司 Method and system based on one-version integrated software flash controller

Family Cites Families (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
CN109271184B (en) * 2018-08-28 2022-05-17 浪潮金融信息技术有限公司 Remote upgrade version based security protection method
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
CN111562935B (en) * 2020-07-14 2020-10-27 江苏海平面数据科技有限公司 OTA security upgrading system and upgrading method thereof
CN112118313B (en) * 2020-09-17 2023-04-18 紫光展锐(重庆)科技有限公司 Method and related device for remotely upgrading terminal equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114326679A (en) * 2021-12-30 2022-04-12 重庆长安新能源汽车科技有限公司 Method and system based on one-version integrated software flash controller
CN114326679B (en) * 2021-12-30 2023-07-18 深蓝汽车科技有限公司 Method and system for refreshing controller based on one-edition integrated software

Also Published As

Publication number Publication date
CN113791806B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
KR20080037450A (en) System and method for processing update software run on mobile terminal platform
CN113498594B (en) Control method and device of smart home system, electronic equipment and storage medium
CN102223380B (en) Client terminal automatic updating frame based on Webservice and application thereof
WO2019051948A1 (en) Method, apparatus, server, and storage medium for processing monitoring data
CN104038819A (en) Software upgrading system and method of digital set-top box
CN109246163A (en) End message recognition methods and device
CN105812426A (en) Upgrade system and upgrade method for multi-business access platform
CN102541595A (en) Method and device for upgrading intelligent device and intelligent device
CN105530130A (en) Method and device for upgrading Over-The-Air downloading technology
CN113791806B (en) Remote upgrading method, system and medium for terminal
CN109614131A (en) A kind of broadcasting equipment upgrading control system
CN104965747A (en) Method and device for upgrading software
CN106371856B (en) Menu counting method, user terminal and application background terminal
CN115242894A (en) Data processing method, data processing device, storage medium and computer equipment
CN109918108A (en) A kind of embedded equipment plug-in upgrade method and device
CN113535214A (en) Algorithm file upgrading method and device, electronic device and storage medium
CN111752577A (en) System version upgrading method and device
CN110244968B (en) Charging station management system and method
CN115129574A (en) Code testing method and device
CN108989428B (en) Bluetooth terminal upgrading method, server, computer readable storage medium and system
CN115080076B (en) Cloud mobile phone software management method
CN111324364A (en) Method, device, equipment and storage medium for equipment management
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN116243949A (en) Software upgrading method and device, embedded equipment and storage medium
CN115729590A (en) Service deployment method, device, equipment 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
GR01 Patent grant
GR01 Patent grant