CN113271282A - Program updating method, device and system - Google Patents

Program updating method, device and system Download PDF

Info

Publication number
CN113271282A
CN113271282A CN202010092120.4A CN202010092120A CN113271282A CN 113271282 A CN113271282 A CN 113271282A CN 202010092120 A CN202010092120 A CN 202010092120A CN 113271282 A CN113271282 A CN 113271282A
Authority
CN
China
Prior art keywords
terminals
network
terminal
group
network information
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
CN202010092120.4A
Other languages
Chinese (zh)
Other versions
CN113271282B (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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN202010092120.4A priority Critical patent/CN113271282B/en
Publication of CN113271282A publication Critical patent/CN113271282A/en
Application granted granted Critical
Publication of CN113271282B publication Critical patent/CN113271282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/25Flow control; Congestion control with rate being modified by the source upon detecting a change of network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention relates to a program updating method, a device and a system, wherein the program updating method comprises the following steps: sending a network information request instruction to a plurality of terminals, and respectively responding to the network information request instruction by at least part of or all the terminals in the plurality of terminals to reply first network information; judging a first network condition of the terminal according to the received first network information; when the first network condition is a first network state, periodically sending a network information request instruction to each terminal in the first group of terminals, and replying second network information by each terminal in the first group of terminals in response to the network information request instruction; judging a second network condition of the corresponding terminal according to the received second network information; when the second network condition is the second network state, the program updating data is issued to the first terminal in the first group of terminals to start program updating, and the dynamic adjustment of the program updating is carried out by acquiring and monitoring the network information of the terminals in real time, so that the purpose of real-time and high efficiency is achieved.

Description

Program updating method, device and system
Technical Field
The present invention relates to the field of program updating technologies, and in particular, to a program updating method, a program updating apparatus, and a program updating system.
Background
In the LED industry, a server is communicated with a client terminal through corresponding data connection by adopting a wired network or a wireless network, then the server pushes corresponding program data to the client terminal, then the client terminal downloads programs, and finally the programs are played after the downloading is finished; after the program is changed, the client terminal will automatically update the program.
However, if the network condition of the client terminal is not good or the network changes, the server does not dynamically adjust the downloaded program update according to the network change condition of the terminal, that is, the server needs to manually intervene in the process when the network fluctuates, so that the purpose of high efficiency and real-time performance is not achieved.
Disclosure of Invention
Therefore, to overcome the defects and shortcomings of the prior art, embodiments of the present invention provide a program updating method, a program updating apparatus, and a program updating system.
In one aspect, a method for updating a program provided in an embodiment of the present invention includes: sending a network information request instruction to a plurality of terminals, and respectively responding to the network information request instruction by part or all of the terminals to reply first network information; judging a first network condition of a corresponding terminal according to the received first network information; responding to a first network condition corresponding to each terminal of a first group of terminals in the part or all of the terminals as a first network state, periodically sending the network information request instruction to each terminal of the first group of terminals, and responding to the network information request instruction by each terminal of the first group of terminals to reply second network information; judging a second network condition of the corresponding terminal according to the received second network information; and responding to a second network condition corresponding to a first terminal in the first group of terminals as a second network state, and issuing program updating data to the first terminal in the first group of terminals to start program updating.
In the prior art, a server does not dynamically adjust program updating of a terminal according to network change conditions of the terminal, namely, a manual intervention process is required under the condition of network fluctuation, but in the invention, a network information request instruction is firstly sent to a plurality of terminals, network conditions of partial terminals are obtained from partial terminals responding to the server, when the network conditions are in a first network state, second network conditions of the partial terminals are obtained in real time, the quality of the second network conditions is judged, and when the second network conditions are in a second network state, data information of program updating is sent to partial terminals with good network conditions, and the partial terminals start program updating operation, so that the program updating is dynamically adjusted according to the change of the terminal network conditions, and the purpose of real-time and high efficiency is achieved.
In an embodiment of the present invention, after the determining, according to the received first network information, a first network condition of a corresponding terminal, the method further includes: responding to a first network condition corresponding to each terminal of a second group of terminals in the partial or all terminals as a second network state, and issuing the program updating data to each terminal of the second group of terminals to start program updating; responding to the third network state corresponding to each terminal in a third group of terminals in the partial or all terminals, selecting a specified number of terminals in the third group of terminals, and sending the program updating data to each terminal in the specified number of terminals in the third group of terminals to start program updating, wherein no intersection exists among the second group of terminals, the third group of terminals and the first group of terminals.
In an embodiment of the present invention, after the sending the network information request instruction to the plurality of terminals, the method further includes: and responding to that each terminal in a fourth group of terminals except the partial terminals in the plurality of terminals does not reply the first network information within a specified time, and displaying that each terminal in the fourth group of terminals has network abnormity.
In an embodiment of the present invention, after the determining, according to the received second network information, a second network condition of the corresponding terminal, the method further includes: and responding to the second network condition corresponding to the first terminal in the first group of terminals as the first network state and lasting for a specified time, and displaying that the first terminal in the first group of terminals has network abnormality.
In an embodiment of the present invention, the issuing, in response to that a first network condition corresponding to each terminal in a second group of terminals in the plurality of terminals is a second network state, the program update data to each terminal in the second group of terminals to start program update includes: and issuing the program updating data to each terminal in the second group of terminals and maintaining the corresponding maximum transmission rate to start the program updating.
In an embodiment of the present invention, after the issuing program update data to a first terminal in the first group of terminals to start program update, the method further includes: periodically receiving third network information reported by the first terminal in the first group of terminals; judging a third network condition of the first terminal in the first group of terminals according to the received third network information; terminating the program update for the first terminal in the first set of terminals in response to the third network condition for the first terminal in the first set of terminals being a fourth network state; suspending the program update for the first terminal in the first set of terminals in response to the third network condition for the first terminal in the first set of terminals being the first network state.
In an embodiment of the present invention, after the terminating the program update of the first terminal in the first group of terminals, the method further includes: periodically sending the network information request instruction to the first terminal in the first group of terminals; responding to fourth network information replied by the first terminal in the first group of terminals in response to the network information request instruction and received within a specified time; judging a fourth network condition of the first terminal in the first group of terminals according to the received fourth network information; restarting the program update for the first terminal in the first set of terminals in response to the fourth network condition for the first terminal in the first set of terminals being a second network state.
In an embodiment of the present invention, after the issuing the program update data to each terminal of the specified number of terminals of the third group of terminals to start program update, the method further includes: periodically receiving third network information respectively reported by a specified number of terminals in the first group of terminals, the second group of terminals and the third group of terminals; judging a third network condition of the corresponding terminal according to the received third network information; responding to the third network condition corresponding to part of terminals in the appointed number of terminals in the first group of terminals, the second group of terminals and the third group of terminals as a third network state, and reducing the number of the part of terminals in the appointed number of terminals for updating the program
In another aspect, an embodiment of the present invention provides a program updating apparatus, configured to perform a program updating method according to any one of the foregoing methods, where the method includes: a first instruction sending module, configured to send a network information request instruction to multiple terminals, so that some or all of the multiple terminals respectively respond to the network information request instruction to reply to first network information; the first condition judging module is used for judging the first network condition of the corresponding terminal according to the received first network information; a second instruction sending module, configured to periodically send the network information request instruction to each terminal in the first group of terminals in response to that a first network condition corresponding to each terminal in the first group of terminals in the part or all of the terminals is a first network state, so that each terminal in the first group of terminals responds to the network information request instruction to reply to second network information; the second condition judging module is used for judging the second network condition of the corresponding terminal according to the received second network information; and the program updating module is used for responding to a second network condition corresponding to a first terminal in the first group of terminals as a second network state, and issuing program updating data to the first terminal in the first group of terminals to start program updating.
In another aspect, a program update processing system provided in an embodiment of the present invention includes: a processor and a memory coupled to the processor; wherein the memory stores instructions for execution by the processor, and the instructions cause the processor to perform operations to perform any of the aforementioned program update methods.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium, which is a non-volatile memory and stores computer-readable instructions, and when the computer-readable instructions are executed by a computer, the computer-readable instructions implement any one of the foregoing program updating methods.
As can be seen from the above, the above technical features of the present invention may have one or more of the following advantages:
1. in the prior art, when a terminal has network fluctuation, a server does not dynamically adjust a terminal issuing instruction and also needs manual intervention, but the invention receives the network information of the terminal in real time and judges whether the network information is a first network condition or a second network condition, namely, the program updating data sent by the terminal is dynamically adjusted according to the change of the network condition of the terminal, thereby achieving the purpose of real-time high efficiency and not needing manual intervention;
2. the server can also receive the network condition change generated by the terminal in the program updating process in real time, then judge the network condition, classify the network condition according to the judged network condition, and correspondingly adjust the program updating data to ensure the updating and the distribution of the program.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a program updating method according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating the program updating method shown in fig. 1 according to the first embodiment of the present invention after step S102.
Fig. 3 is a flowchart illustrating the program updating method shown in fig. 1 according to the first embodiment of the present invention after step S104.
Fig. 4 is a flowchart of steps of the program updating method shown in fig. 1 after step S101 according to the first embodiment of the present invention.
Fig. 5 is a flowchart illustrating the program updating method shown in fig. 1 according to the first embodiment of the present invention after step S105.
Fig. 6 is a flowchart illustrating the program updating method shown in fig. 2 according to the first embodiment of the present invention after step S202.
Fig. 7A is a block diagram of a program updating apparatus according to a second embodiment of the present invention.
Fig. 7B is a block diagram of another program updating apparatus according to a second embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a program updating system according to a third embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a computer-readable storage medium according to a fourth embodiment of the present invention.
[ brief description of the drawings ]
S101-S105, S201-S202, S301, S401, S501-S504, S601-S603: program updating method steps;
700: a program updating device; 701: a first instruction sending module; 702: a first condition judgment module; 703: a second instruction sending module; 704: a second condition judgment module; 705: a program matting update module; 706: a first sending module; 707: a second issuing module; 708: a first display module; 709: a second display module; 710: a first receiving module; 711: a third condition judgment module; 712: a termination module; 713: a pause module; 714: a third instruction issuing module; 715: a second receiving module; 716: a fourth condition judgment module; 717: restarting the module; 718: a third receiving module; 719: a fifth condition judgment module; 820: reducing the modules;
800: a parameter processing system; 801: a processor; 803: a memory;
900: a computer readable storage medium.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be 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.
[ first embodiment ] A method for manufacturing a semiconductor device
As shown in fig. 1, a program updating method according to a first embodiment of the present invention includes:
s101, sending a network information request instruction to a plurality of terminals, and respectively responding to the network information request instruction by some or all of the terminals to reply first network information;
the server sends a network information request instruction to a plurality of terminals, the network request instruction also comprises a program updating instruction, the program updating instruction is sent to the plurality of terminals together, then the server receives partial or all terminals which respond to the network information request instruction in the plurality of terminals and responds to and replies to the received network information request instruction according to the received network request instruction, the information replied by the partial terminals is called network information, the network information comprises time delay, instantaneous bandwidth and network jitter, and the network jitter can be represented by average transmission rate in the embodiment of the invention.
S102, judging a first network condition of a corresponding terminal according to the received first network information;
after receiving the network information replied by the partial responded terminal in the above steps, the server judges the time delay, the instantaneous bandwidth and the average transmission rate in the network information, and correspondingly judges the network condition according to the data size of the received network information.
S103, responding to a first network condition corresponding to each terminal of a first group of terminals in the part or all of the terminals as a first network state, namely when the first network condition is the first network state, periodically sending the network information request instruction to each terminal of the first group of terminals, and replying second network information by each terminal of the first group of terminals responding to the network information request instruction;
when the network condition is judged to be a first network condition, the first network condition is a poor network condition, the represented specific network information is, for example, the time delay is within 1 second to 30 seconds, the instantaneous bandwidth is 1M-2M, and the average transmission rate is 100kb/s to 200kb/s, that is, the network condition of the first group of terminals is considered to be a first type of poor network condition, when the network condition of the part of terminals is judged to be poor, that is, the network condition of the first group of terminals is poor, then the server periodically sends a network information request instruction to each terminal in the first group to enable each terminal in the first group to receive the instruction and determine whether to have a response, the periodicity can be set manually, for example, the network information request instruction is sent every 30 seconds or every 1 minute, or may be set by analyzing data collected by the server itself to obtain a specific value, which is not limited herein.
S104, judging a second network condition of the corresponding terminal according to the received second network information;
when a terminal with a common network condition in the first group of terminals receives a network information request instruction issued by the server, the terminal replies the instruction and sends the network information of the terminal to the server again, wherein the network information is second network information, and then the server judges the second network information after receiving the second network information.
And S105, responding to the second network condition corresponding to the first terminal in the first group of terminals as the second network state, namely when the second network condition is the second network state, issuing program updating data to the first terminal in the first group of terminals to start program updating.
When the server judges that the network condition of a part of terminals in the first group is a second network condition, the second network condition is a good network condition, the expressed specific network information is that the time delay is within 100 milliseconds, the instantaneous bandwidth is 2M-10M, and the average transmission rate exceeds 1M/s, for example, the network condition can be judged to be a second good network condition, the server then sends the program updating data to the terminals with good network condition in the rented terminals, and then the part of terminals start to update the program after receiving the program updating data.
In the prior art, a server does not dynamically adjust program updating of a terminal according to network change conditions of the terminal, namely, a manual intervention process is required under the condition of network fluctuation, but in the invention, a network information request instruction is firstly sent to a plurality of terminals, network conditions of partial terminals are obtained from partial terminals responding to the server, when the network conditions are in a first network state, second network conditions of the partial terminals are obtained in real time, the quality of the second network conditions is judged, and when the second network conditions are in a second network state, data information of program updating is sent to partial terminals with good network conditions, and the partial terminals start program updating operation, so that the program updating is dynamically adjusted according to the change of the terminal network conditions, and the purpose of real-time and high efficiency is achieved.
In another specific embodiment, as shown in fig. 2, after step S102, the method further includes:
s201, responding to the situation that a first network condition corresponding to each terminal of a second group of terminals in the partial or all terminals is a second network state, namely when the first network condition is the second network state, sending program updating data to each terminal of the second group of terminals;
after receiving the first network information replied by the terminal with response in the plurality of terminals, the server determines the condition of the first network information, and when determining that the condition of the network information is the second network state, that is, the state of good network condition described in the above embodiment, the server will issue the program update data to the terminals with good network condition, that is, the second group of terminals, and then download the program update of the terminals with good network condition at the maximum rate.
S202, responding to the fact that the first network condition corresponding to each terminal in the third group of terminals in the partial or all terminals is the third network state, namely when the first network condition is the third network state, selecting a specified number of terminals in the third group of terminals, and issuing the program updating data to the specified number of terminals.
After receiving first network information replied by a terminal with response in a plurality of terminals, a server judges the condition of the first network information, when the condition of the network information is judged to be a third network state, the third network state is general, the expressed specific network information is that the time delay is within 100 milliseconds to 1000 milliseconds, the instantaneous bandwidth is 2M-10M, the average transmission rate is within 300kb/s-1M/s, namely, the network condition of the third group of terminals can be judged to be general, then the server screens the third group of terminals according to the bandwidth of the port transmission rate of the server, and then sends program updating data to the screened specified number of terminals, for example, 20 terminals, the bandwidth of the port transmission rate of the server is 20M, wherein one terminal has good network condition, then, a bandwidth of 10M needs to be occupied, then the remaining bandwidth of the 10M server is selected from the terminals with general network conditions, 5 terminals with general network conditions are selected, each bandwidth of the terminals is 2M, then the bandwidth of the server is occupied, the server issues program updating data to the 5 terminals for program updating, and the second group of terminals, the third group of terminals and the first group of terminals do not intersect with each other.
In another specific embodiment, as shown in fig. 3, after step S104, the method further includes:
s301, responding to the second network condition corresponding to the first terminal in the first group of terminals as the first network state and continuing for a specified time, namely when the second network condition is the first network state and continues for the specified time, displaying that the first terminal in the first group of terminals has network abnormality.
When the server determines that the network condition of the first group of terminals is poor, then sends a network information request instruction to the part of terminals, receives second network information replied by the terminals, determines the network information condition, and when the network information condition is poor, then within a continuous specified time, the received network conditions are all determined to be poor, the server prompts a user that the part of terminals have network abnormal conditions and needs the user to perform corresponding processing, wherein the specified time can be manually set, for example, 30 minutes and 1 hour, or can be obtained by analyzing according to collected network information or other peripheral information, and is not limited specifically here.
In another specific embodiment, as shown in fig. 4, after step S101, the method further includes:
s401, responding to the situation that each terminal in a fourth group of terminals except the partial terminals in the plurality of terminals does not reply the first network information within the appointed time, and displaying that each terminal in the fourth group of terminals has network abnormity.
After the server sends the network information request instruction, some or all of the terminals respond, but there is also a fourth group of terminals with responding terminals except for some of the terminals, and no network information is replied to the server within a set time, and then the server informs the user that a network abnormality occurs in the fourth group, which needs to be handled by the user, where the specified time may be set manually, for example, 30 minutes and 1 hour, or may be obtained by analyzing according to collected network information or other peripheral information, and is not limited herein.
In another specific embodiment, as shown in fig. 5, after step S105, the method further includes:
s501, periodically receiving third network information reported by a first terminal in a first group of terminals;
after some terminals start program updating, the terminal performing program updating operation will periodically send its own network information to the server, where the network information is the third network information, and the periodic time may be every minute, every second, or every hour, and may be adjusted according to a specific embodiment, which is not limited herein.
S502, determining a third network condition of the first terminal in the first group of terminals according to the received third network information, that is, determining the third network condition of the first terminal in the first group of terminals;
and then after receiving the third network information reported by the terminal which is updating the program, the server correspondingly judges the network condition in the network information and judges which network state the network condition belongs to.
S503, in response to that the third network condition of the first terminal in the first group of terminals is a fourth network state, that is, when the third network condition is the fourth network state, terminating the program update of the first terminal in the first group of terminals;
when the server judges that the network condition of a part of the terminals in the program updating process belongs to the fourth network state, namely to the extremely poor network condition, which is specifically represented by, for example, the time delay exceeding 30 seconds, the instantaneous bandwidth being less than 1M, and the average transmission rate not exceeding 1kb/s, the network condition of the part of the terminals can be determined to be extremely poor, and the server sends a program updating termination instruction to the terminal with the extremely poor network condition, so that the terminal terminates the program updating operation.
S504, periodically sending a network information request instruction to a first terminal in the first group of terminals;
the server always sends a network information request instruction to the terminal with the extremely bad network in the duration, so that the terminal sends the network information of the terminal to the server.
S505, responding to a fourth network message replied by the first terminal in the first group of terminals in response to the network message request instruction received within a specified time, that is, receiving a fourth network message replied by the first terminal in the first group of terminals in response to the network message request instruction within the specified time;
then, the server receives the replied fourth network information within a continuous designated time, where the designated time may be manually set, for example, 30 minutes or 1 hour, or may be obtained by analyzing the collected network information or other peripheral information, and the specific time is not limited herein and may be set according to a specific embodiment.
S506, determining a fourth network condition of the first terminal in the first group of terminals according to the received fourth network information, that is, determining the fourth network condition of the first terminal in the first group of terminals;
and then after receiving the fourth network information, the server judges the condition of the network information and judges which network state the network condition is.
S507, in response to that the fourth network condition of the first terminal in the first group of terminals is the second network state, that is, when the fourth network condition is the second network state, restarting the program update of the first terminal in the first group of terminals;
when the fourth network condition is judged to be good, the server sends a program updating command to the part of terminals, and then the part of terminals restart the program updating operation after receiving the command.
S508, in response to that the third network condition of the first terminal in the first group of terminals is the first network state, that is, when the third network condition is the first network state, suspending the program update of the first terminal in the first group of terminals.
When the third network condition of part of the terminals is judged to be a poor network condition, the server sends a pause instruction to the part of the terminals, and then the terminals pause the operation of updating the program.
In another specific embodiment, as shown in fig. 6, after step S202, the method further includes:
s601, periodically receiving third network information reported by a specified number of terminals in the first group of terminals, the second group of terminals and the third group of terminals;
the server periodically receives the network information reported by the terminal after the program is updated, where the periodicity may be manually set, for example, 30 minutes or 1 hour, or may be obtained by analyzing according to collected network information or other peripheral information, and the specific details are not limited herein, and the corresponding setting may be performed according to a specific embodiment.
S602, judging a third network condition of the corresponding terminal according to the received third network information;
and then, after receiving the third network information, judging the third network condition and judging which network state the third network condition belongs to.
S603, responding to a third network condition corresponding to part of terminals in the specified number of terminals in the first group of terminals, the second group of terminals and the third group of terminals as a third network state, and reducing the number of program updating of the part of terminals in the specified number of terminals;
when the third network condition is judged to be general, the number of the program updating in part of the terminals in the specified number is reduced, and the network congestion is prevented.
In order to more clearly understand the present embodiment, a detailed description will be given below of a specific implementation of the program updating method of the present embodiment with reference to fig. 1 and fig. 6.
After a user performs operations such as program making and updating and the like on a server, the server acquires network conditions of the plurality of terminals, the plurality of terminals perform network detection on the plurality of terminals, acquire real-time network condition indexes and send the real-time network condition indexes to the server, and then the server judges the conditions of the plurality of terminals according to data reported by the plurality of terminals to perform corresponding operations.
If the network condition of the terminal is good, namely the network condition of the terminal is in a second network state, the server sends out the declaration program updating data to enable the terminal to carry out program updating operation, and the maximum transmission rate is kept to ensure that the program is updated quickly.
If the terminal network condition is common, that is, the terminal network condition is in the third network state, the program updating operation is performed on a part of terminals selected from the terminals, the transmission rate is reduced, a plurality of terminal networks are ensured to download stably, and the terminals which are not updated with the programs are dynamically started to start the program updating after the downloading is completed.
If the terminal network condition is poor, namely the terminal network condition is the first network state, the program updating of the terminal is suspended, then the network condition is judged to belong to which network state after the network condition is changed, and then corresponding operation is carried out to respond in time.
If the terminal has a poor network condition for a long time, namely the terminal is always in the first network state within the specified time, the user is timely reminded of the occurrence of network abnormality, and the detection, processing and recovery of the corresponding terminal network are carried out.
If the server does not receive the network condition feedback of the terminal, the program updating operation is terminated, the network condition is continuously acquired from the terminal, and if the network condition exceeds the specified time, such as 30 minutes, the information cannot be acquired, the user is prompted to ask for maintenance processing when the network is abnormal.
And in the process of updating and downloading the program by the terminal, the terminal detects the network condition in real time and informs the server to perform corresponding processing in time when the network condition changes.
If the network condition becomes worse when the program is updated, the sending process is terminated, and the program updating process is carried out again after the network condition is continuously detected to be good from the worse network condition. When the network continuous poor condition exceeds the specified minutes, such as 30 minutes, notifying and prompting the user that the corresponding terminal network is abnormal, and notifying the user to carry out processing and maintenance;
if the network condition is poor, suspending the program updating operation of part of the terminals, and if the network condition is improved within the continuous time, immediately starting to continue downloading;
if the network condition is general, the number of terminal program updates is reduced, so that the terminal can update stably;
if the network condition is good, updating and downloading the program;
if the server does not receive the network condition feedback of the terminal and the terminal program updating process is abnormal, the program updating operation is terminated, the network condition is continuously acquired from the terminal, and if the information cannot be acquired after the specified time, such as 30 minutes, is exceeded, a user is prompted to request maintenance processing when the network is abnormal.
In summary, in the prior art, the server does not dynamically adjust the program update of the terminal according to the network change condition of the terminal, that is, in the case of network fluctuation, manual intervention is required, but in the present invention, by first sending a network information request command to a plurality of terminals, there will be a case where the network condition of the part of terminals is acquired in the responding part of terminals, when the network condition is the first network state, the second network conditions of the partial terminals are acquired in real time, and the second network conditions are judged to be good or bad, when the second network condition is the second network state, the data information of the program update is sent to the partial terminals with good network state, the partial terminals start the program update operation, therefore, the dynamic adjustment of program updating is carried out on the change of the terminal network condition, and the purposes of real-time and high efficiency are achieved.
[ second embodiment ]
As shown in fig. 7 to fig. 8, a program update processing apparatus 700 according to a second embodiment of the present invention includes: a first instruction sending module 701, a first condition judging module 702, a second instruction sending module 703, a second condition judging module 704 and a matting updating module 705.
A first instruction sending module 701, configured to send a network information request instruction to multiple terminals, so that some or all of the multiple terminals respectively respond to the network information request instruction to reply to first network information;
a first condition determining module 702, configured to determine a first network condition of a corresponding terminal according to the received first network information;
a second instruction sending module 703, configured to periodically send the network information request instruction to each terminal in the first group of terminals in response to that a first network condition corresponding to each terminal in the first group of terminals in the part or all of the terminals is a first network state, so that each terminal in the first group of terminals responds to the network information request instruction to reply to second network information;
a second condition determining module 704, configured to determine a second network condition of the corresponding terminal according to the received second network information;
the program updating module 705 is configured to issue program updating data to a first terminal in the first group of terminals to start program updating in response to a second network condition corresponding to the first terminal in the first group of terminals being a second network state.
Further, the program updating apparatus 700 provided in this embodiment further includes:
a first sending module 706, configured to send the program update data to each terminal in the second group of terminals to start program update in response to that a first network condition corresponding to each terminal in the second group of terminals in the part or all of the terminals is a second network state;
a second issuing module 707, configured to respond to that a first network condition corresponding to each terminal in a third group of terminals in the partial or all terminals is a third network state, select a specified number of terminals in the third group of terminals, and issue the program update data to each terminal in the specified number of terminals in the third group of terminals to start program update;
wherein there is no intersection between the second set of terminals, the third set of terminals, and the first set of terminals;
further, the program updating apparatus 700 provided in this embodiment further includes:
a first display module 708, configured to display that a network anomaly occurs in each terminal in a fourth group of terminals, except for the partial terminals, in response to that the first network information is not replied by each terminal in the fourth group of terminals within a specified time;
further, the program updating apparatus 700 provided in this embodiment further includes:
a second display module 709, configured to display that a network anomaly occurs in the first terminal in the first group of terminals in response to that the second network condition corresponding to the first terminal in the first group of terminals is the first network state and lasts for a specified time;
further, the program updating apparatus 700 provided in this embodiment further includes:
a first receiving module 710, configured to periodically receive third network information reported by the first terminal in the first group of terminals;
a third condition determining module 711, configured to determine, according to the received third network information, a third network condition of the first terminal in the first group of terminals;
a terminating module 712, configured to terminate the program update of the first terminal in the first group of terminals in response to the third network condition of the first terminal in the first group of terminals being a fourth network state;
a suspending module 713, configured to suspend the program update of the first terminal of the first group of terminals in response to the third network condition of the first terminal of the first group of terminals being the first network state;
further, the program updating apparatus 700 provided in this embodiment further includes:
a third instruction sending module 714, configured to periodically send the network information request instruction to the first terminal in the first group of terminals;
a second receiving module 715, configured to respond to receiving, within a specified time, fourth network information replied by the first terminal in the first group of terminals in response to the network information request instruction;
a fourth condition determining module 716, configured to determine a fourth network condition of the first terminal in the first group of terminals according to the received fourth network information;
a restart module 717 configured to restart the program update for the first terminal in the first group of terminals in response to the fourth network condition for the first terminal in the first group of terminals being a second network state;
further, the program updating apparatus 700 provided in this embodiment further includes:
a third receiving module 718, configured to periodically receive third network information that is respectively reported by a specified number of terminals in the first group of terminals, the second group of terminals, and the third group of terminals;
a fifth condition determining module 719, configured to determine a third network condition of the corresponding terminal according to the received third network information;
a reducing module 720, configured to reduce, in response to that the third network condition corresponding to a part of terminals in a specified number of terminals in the first group of terminals, the second group of terminals, and the third group of terminals is a third network state, the number of program updates performed by the part of terminals in the specified number of terminals.
The program updating method implemented by the program updating apparatus disclosed in this embodiment is as described in the first embodiment, and therefore, will not be described in detail herein. Optionally, each module and the other operations or functions in the second embodiment are respectively for implementing the method in the first embodiment of the present invention, and the beneficial effects of this embodiment are the same as those of the first embodiment, and are not described herein again for brevity.
[ third embodiment ]
As shown in fig. 8, a program updating system 800 according to a third embodiment of the present invention includes: a processor 801 and a memory 803; the memory 803 stores instructions that are executed by the processor 801 and that, for example, cause the processor 801 to perform operations to perform the program update method described in the foregoing first embodiment.
It should be noted that the program updating system 800 disclosed in this embodiment has instructions that enable the processor 801 to execute operations to perform the program updating method as described in the foregoing first embodiment, and therefore, the detailed description is not repeated here. Optionally, each processor and each memory in this embodiment are respectively for implementing the method in the first embodiment of the present invention, and the technical effect of the program updating system 800 disclosed in this embodiment is the same as that of the program updating method in the first embodiment, and therefore, no further description is given here.
[ fourth example ] A
As shown in fig. 9, a computer-readable storage medium 900 according to a fourth embodiment of the present invention is a non-volatile memory and stores computer-readable instructions, and the computer-readable instructions include instructions for executing the program updating method according to the first embodiment, so that the description thereof is not repeated here. The computer-readable storage medium 900 is, for example, a non-volatile memory, and includes: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). The computer-readable storage medium 900 may execute computer-readable instructions by one or more processors or processing devices.
In addition, the technical effect of the computer-readable storage medium 900 disclosed in this embodiment is the same as that of the program updating method in the first embodiment, and is not described herein again.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and technical solutions of the embodiments can be arbitrarily combined and used without conflict between technical features and structures, and without departing from the purpose of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and/or method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units/modules is only one logical division, and there may be other divisions in actual implementation, for example, multiple units or modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units/modules described as separate parts may or may not be physically separate, and parts displayed as units/modules may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units/modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A program update method, comprising:
sending a network information request instruction to a plurality of terminals, and respectively responding to the network information request instruction by part or all of the terminals to reply first network information;
judging a first network condition of a corresponding terminal according to the received first network information;
responding to a first network condition corresponding to each terminal of a first group of terminals in the part or all of the terminals as a first network state, periodically sending the network information request instruction to each terminal of the first group of terminals, and responding to the network information request instruction by each terminal of the first group of terminals to reply second network information;
judging a second network condition of the corresponding terminal according to the received second network information;
and responding to a second network condition corresponding to a first terminal in the first group of terminals as a second network state, and issuing program updating data to the first terminal in the first group of terminals to start program updating.
2. The method for updating a program according to claim 1, wherein after said determining a first network condition of the corresponding terminal according to the received first network information, further comprising:
responding to a first network condition corresponding to each terminal of a second group of terminals in the partial or all terminals as a second network state, and issuing the program updating data to each terminal of the second group of terminals to start program updating;
responding to a third network state corresponding to each terminal in a third group of terminals in the partial or all terminals, selecting a specified number of terminals in the third group of terminals, and sending the program updating data to each terminal in the specified number of terminals in the third group of terminals to start program updating;
wherein there is no intersection between the second set of terminals, the third set of terminals, and the first set of terminals.
3. The method of claim 1, wherein after the sending the network information request command to the plurality of terminals, if some of the terminals respectively respond to the network information request command to reply to the first network information, further comprising:
and responding to that each terminal in a fourth group of terminals except the partial terminals in the plurality of terminals does not reply the first network information within a specified time, and displaying that each terminal in the fourth group of terminals has network abnormity.
4. The method for updating a program according to claim 1, wherein after said determining a second network condition of the corresponding terminal according to the received second network information, further comprising:
and responding to the second network condition corresponding to the first terminal in the first group of terminals as the first network state and lasting for a specified time, and displaying that the first terminal in the first group of terminals has network abnormality.
5. The method of claim 2, wherein the issuing the program update data to each terminal in the second group of terminals to start the program update in response to the first network condition corresponding to each terminal in the second group of terminals in the plurality of terminals being the second network state comprises:
and issuing the program updating data to each terminal in the second group of terminals and maintaining the corresponding maximum transmission rate to start the program updating.
6. The method of claim 1, further comprising, after said issuing program update data to a first terminal of said first group of terminals to begin a program update:
periodically receiving third network information reported by the first terminal in the first group of terminals;
judging a third network condition of the first terminal in the first group of terminals according to the received third network information;
terminating the program update for the first terminal in the first set of terminals in response to the third network condition for the first terminal in the first set of terminals being a fourth network state;
suspending the program update for the first terminal in the first set of terminals in response to the third network condition for the first terminal in the first set of terminals being the first network state.
7. The program update method of claim 6, further comprising, after said terminating said program update for said first terminal in said first set of terminals:
periodically sending the network information request instruction to the first terminal in the first group of terminals;
responding to fourth network information replied by the first terminal in the first group of terminals in response to the network information request instruction and received within a specified time;
judging a fourth network condition of the first terminal in the first group of terminals according to the received fourth network information;
restarting the program update for the first terminal in the first set of terminals in response to the fourth network condition for the first terminal in the first set of terminals being a second network state.
8. The program update method of claim 2, further comprising, after said issuing the program update data to each of the specified number of terminals of the third set of terminals to begin a program update:
periodically receiving third network information respectively reported by a specified number of terminals in the first group of terminals, the second group of terminals and the third group of terminals;
judging a third network condition of the corresponding terminal according to the received third network information;
and in response to that the third network condition corresponding to a part of terminals in the specified number of terminals in the first group of terminals, the second group of terminals and the third group of terminals is a third network state, reducing the number of the program updates performed by the part of terminals in the specified number of terminals.
9. A program update apparatus for executing the program update method according to any one of claims 1 to 8, the program update apparatus comprising:
a first instruction sending module, configured to send a network information request instruction to multiple terminals, so that some or all of the multiple terminals respectively respond to the network information request instruction to reply to first network information;
the first condition judging module is used for judging the first network condition of the corresponding terminal according to the received first network information;
a second instruction sending module, configured to periodically send the network information request instruction to each terminal in the first group of terminals in response to that a first network condition corresponding to each terminal in the first group of terminals in the part or all of the terminals is a first network state, so that each terminal in the first group of terminals responds to the network information request instruction to reply to second network information;
the second condition judging module is used for judging the second network condition of the corresponding terminal according to the received second network information;
and the program updating module is used for responding to a second network condition corresponding to a first terminal in the first group of terminals as a second network state, and issuing program updating data to the first terminal in the first group of terminals to start program updating.
10. A program update processing system, comprising: a processor and a memory coupled to the processor; wherein the memory stores instructions for execution by the processor and the instructions cause the processor to perform operations to perform the program update method of any of claims 1 to 8.
CN202010092120.4A 2020-02-14 2020-02-14 Program updating method, device and system Active CN113271282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010092120.4A CN113271282B (en) 2020-02-14 2020-02-14 Program updating method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010092120.4A CN113271282B (en) 2020-02-14 2020-02-14 Program updating method, device and system

Publications (2)

Publication Number Publication Date
CN113271282A true CN113271282A (en) 2021-08-17
CN113271282B CN113271282B (en) 2023-06-20

Family

ID=77227181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010092120.4A Active CN113271282B (en) 2020-02-14 2020-02-14 Program updating method, device and system

Country Status (1)

Country Link
CN (1) CN113271282B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585555A (en) * 2003-08-18 2005-02-23 乐金电子(中国)研究开发中心有限公司 Network status announcement service for universal package wireless business system
CN101997861A (en) * 2009-08-27 2011-03-30 杭州华三通信技术有限公司 Data storage method and equipment
CN102148662A (en) * 2011-03-21 2011-08-10 大唐移动通信设备有限公司 Adjusting method and device for data transmitting speed
CN102209077A (en) * 2011-06-09 2011-10-05 山东大学 Improved-transmission control protocol-friendly multicast congestion control (TFMCC)-protocol-based communication method
CN103458466A (en) * 2012-05-30 2013-12-18 株式会社日立制作所 Flow control device, flow control method, network flow management system, and network flow management method
CN103516796A (en) * 2013-09-26 2014-01-15 深圳酷派技术有限公司 Data processing method and system in weak signal situation
CN105376144A (en) * 2015-12-04 2016-03-02 小米科技有限责任公司 Information processing method and device
CN106485803A (en) * 2016-11-07 2017-03-08 上海外服宝信信息技术有限公司 A kind of offline punch card method, terminal, server and system
CN107493518A (en) * 2017-08-15 2017-12-19 深圳创维数字技术有限公司 IPTV terminal network egress switching method, device and readable storage medium storing program for executing
US20180143819A1 (en) * 2015-09-14 2018-05-24 At&T Intellectual Property I, L.P. Method and apparatus for distributing software
CN108093019A (en) * 2016-11-23 2018-05-29 腾讯科技(深圳)有限公司 The method for refreshing and terminal of a kind of information about firms

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585555A (en) * 2003-08-18 2005-02-23 乐金电子(中国)研究开发中心有限公司 Network status announcement service for universal package wireless business system
KR20050019290A (en) * 2003-08-18 2005-03-03 엘지전자 주식회사 Method for notifying network state of general packet radio service system
CN101997861A (en) * 2009-08-27 2011-03-30 杭州华三通信技术有限公司 Data storage method and equipment
CN102148662A (en) * 2011-03-21 2011-08-10 大唐移动通信设备有限公司 Adjusting method and device for data transmitting speed
CN102209077A (en) * 2011-06-09 2011-10-05 山东大学 Improved-transmission control protocol-friendly multicast congestion control (TFMCC)-protocol-based communication method
CN103458466A (en) * 2012-05-30 2013-12-18 株式会社日立制作所 Flow control device, flow control method, network flow management system, and network flow management method
CN103516796A (en) * 2013-09-26 2014-01-15 深圳酷派技术有限公司 Data processing method and system in weak signal situation
US20180143819A1 (en) * 2015-09-14 2018-05-24 At&T Intellectual Property I, L.P. Method and apparatus for distributing software
CN105376144A (en) * 2015-12-04 2016-03-02 小米科技有限责任公司 Information processing method and device
CN106485803A (en) * 2016-11-07 2017-03-08 上海外服宝信信息技术有限公司 A kind of offline punch card method, terminal, server and system
CN108093019A (en) * 2016-11-23 2018-05-29 腾讯科技(深圳)有限公司 The method for refreshing and terminal of a kind of information about firms
CN107493518A (en) * 2017-08-15 2017-12-19 深圳创维数字技术有限公司 IPTV terminal network egress switching method, device and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN113271282B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN105099988B (en) Method, access method and device and system for supporting gray scale to issue
CN108322345A (en) A kind of dissemination method and server of fault restoration data packet
CN110933137B (en) Data synchronization method, system, equipment and readable storage medium
CN106909411A (en) A kind of file updating method and device
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
CN103024065A (en) System configuration management method for cloud storage system
CN111400041A (en) Server configuration file management method and device and computer readable storage medium
WO2023093323A1 (en) Version upgrade method and apparatus
CN104202204A (en) Clock synchronous control method, device and system based on SNTP
CN112039718A (en) Upgrade state detection method, server, device and storage medium
CN114531373A (en) Node state detection method, node state detection device, equipment and medium
CN113271282A (en) Program updating method, device and system
CN115023919A (en) Firewall rule updating method and device, server and storage medium
CN105893135B (en) Distributed data processing method and data center
CN109040286B (en) Client online state maintenance method based on memory database
CN107566475B (en) Session failover method and device
CN114090369A (en) Service instance monitoring method, device and storage medium
CN113535402A (en) Load balancing processing method and device based on 5G MEC and electronic equipment
CN109936482B (en) Operation and maintenance method and system of node equipment
CN109218359A (en) A kind of method and server end of internet of things equipment software upgrading
CN117692326A (en) Remote upgrading method, device, equipment and medium of Internet of things equipment
CN116527707A (en) Data processing method, system, device, equipment and storage medium
CN117349113A (en) Communication service process protection method and system
CN112866393A (en) Method, device and system for data interaction between platforms
CN114398067A (en) Streaming data processing method and device and main control computer

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