CN106656582A - System upgrading method and device - Google Patents

System upgrading method and device Download PDF

Info

Publication number
CN106656582A
CN106656582A CN201611091152.2A CN201611091152A CN106656582A CN 106656582 A CN106656582 A CN 106656582A CN 201611091152 A CN201611091152 A CN 201611091152A CN 106656582 A CN106656582 A CN 106656582A
Authority
CN
China
Prior art keywords
state
detection time
preset
presently
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611091152.2A
Other languages
Chinese (zh)
Inventor
钱庄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611091152.2A priority Critical patent/CN106656582A/en
Publication of CN106656582A publication Critical patent/CN106656582A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a system upgrading method and device, and belongs to the technical field of communications. The method comprises: determining a current state of a to-be-upgraded system when the current time is a preset detection time, wherein the preset detection time is a time for detecting whether to upgrade the system after the system is ready to be upgraded; and upgrading the system when the current state of the system is not a preset state, wherein the preset state is a state for accessing a terminal into a network or executing an appointed task. In embodiments of the invention, when the current time is the preset detection time, but the current state is not the preset state, that is, when the system is determined not to be in the state for accessing the terminal into the network or executing the appointed task, the system is upgraded, thereby ensuring that the currently executed task and the current user surfing the internet through a network device are not influenced by network disconnection during system upgrading.

Description

Method for upgrading system and device
Technical field
It relates to communication technical field, more particularly to a kind of method for upgrading system and device.
Background technology
With the fast development of the communication technology, occur in that more and more can be used for connecting network and without user on the market The network equipment of interactive interface, such as light cat, router, switch etc..These network equipments generally can connect as terminal The hinge of network is connect, network can be connected to by these network equipments in order to terminal, and then be ensured that user can use and be somebody's turn to do Terminal is surfed the Net.In order to ensure that terminal can successfully be connected to network by the network equipment, it is commonly installed in the network equipment useful In management and the system of controlling network device resource, after operation a period of time, the network equipment would generally upgrade the system of itself, To repair some system vulnerabilities, increase New function, deletion system rubbish etc..
At present, the method for upgrading system that the network equipment is generally adopted for:When current time is Preset Time, system is entered Row upgrading, the Preset Time can be the time that the network device in advance is arranged, and the Preset Time generally has less user The time of network is connected by the network equipment, such as 2:00 AM is whole, 3:00 AM is whole etc..
The content of the invention
To overcome problem present in correlation technique, the disclosure to provide a kind of method for upgrading system and device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method for upgrading system, methods described includes:
When current time is to preset detection time, it is determined that the state being presently in, the default detection time is to treat For detecting whether carrying out the time of system upgrade after the system readiness of upgrading;
When the state being presently in not is preset state, the system is upgraded, the preset state is for For terminal to be connected into the state of network, or the state for being carrying out appointed task.
Alternatively, it is described to determine the state being presently in, including at least one in following manner:
It is determined that current uplink traffic or downlink traffic, when the uplink traffic or the downlink traffic are more than or wait When preset flow threshold value, it is determined that the state being presently in is the preset state;
Determine current connected terminal quantity, when the terminal quantity is more than or equal to the first predetermined number threshold value, It is determined that the state being presently in is the preset state;
It is determined that detecting the request bag quantity that connected terminal sends in detection time section, the detection time section is The time period of the first preset duration is spaced before the default detection time and with the default detection time;When the request bag When quantity is more than or equal to the second predetermined number threshold value, it is determined that the state being presently in is the preset state.
Alternatively, it is described when current time is to preset detection time, it is determined that after the state being presently in, also including:
When the state being presently in is the preset state, it is determined that detection time again, the detection time again is The time of the second preset duration is spaced after the default detection time and with the default detection time;
When the detection time again is reached, the step of execution is described to determine the state being presently in is returned, until this Till subsystem upgrading is completed.
Alternatively, methods described also includes:
When the system upgrade prompting message of designated terminal transmission is received, the system is upgraded, it is described to specify Terminal is for the terminal of the control upgrading system.
Alternatively, it is described after the system upgrade prompting message for receiving designated terminal transmission, also include:
When the state being presently in be the preset state when, to the designated terminal send cannot upgrade tip message, It is described cannot upgrade tip message be currently at the preset state for prompting, and the system cannot be upgraded.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of system upgrade device, described device includes:
First determining module, for when current time is to preset detection time, it is determined that the state being presently in, described pre- If detection time is after system readiness to be upgraded for detecting whether carrying out the time of system upgrade;
First upgraded module, for when the state being presently in not is preset state, upgrading to the system, institute It is to be used to for terminal to be connected to the state of network, or the state for being carrying out appointed task to state preset state.
Alternatively, first determining module includes at least one in following submodule:
First determination sub-module, for when the current time is the default detection time, it is determined that current is up Flow or downlink traffic, when the uplink traffic or the downlink traffic are more than or equal to preset flow threshold value, it is determined that The state being presently in is the preset state;
Second determination sub-module, for when the current time is the default detection time, determining current connected Terminal quantity, when the terminal quantity be more than or equal to the first predetermined number threshold value when, it is determined that the state being presently in is institute State preset state;
3rd determination sub-module, for when the current time is the default detection time, it is determined that in detection time Detect the request bag quantity that connected terminal sends in section, the detection time section for before the default detection time and With the time period that the default detection time is spaced the first preset duration;When the request bag quantity is preset more than or equal to second During amount threshold, it is determined that the state being presently in is the preset state.
Alternatively, described device also includes:
Second determining module, for when the state being presently in is the preset state, it is determined that detection time again, institute State detection time again be after the default detection time and with the default detection time be spaced the second preset duration when Between;
Trigger module, for when the detection time again is reached, triggering first determining module current institute is determined The state at place, till this system upgrade is completed.
Alternatively, described device also includes:
Second upgraded module, for when the system upgrade prompting message of designated terminal transmission is received, to the system Upgraded, the designated terminal is for the terminal of the control upgrading system.
Alternatively, described device also includes:
Sending module, for when the state being presently in is the preset state, sending to the designated terminal cannot Upgrade tip message, it is described cannot upgrade tip message be currently at the preset state for prompting, and cannot be to the system System is upgraded.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of system upgrade device, described device includes:
Processor;
For storing the memory of processor executable;
Wherein, the processor is configured to:
When current time is to preset detection time, it is determined that the state being presently in, the default detection time is to treat For detecting whether carrying out the time of system upgrade after the system readiness of upgrading;
When the state being presently in not is preset state, the system is upgraded, the preset state is for For terminal to be connected into the state of network, or the state for being carrying out appointed task.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:In the disclosed embodiments, when Current time for default detection time when, it may be determined that the state being presently in, the state being presently in is for be used for will be eventually End is connected to the state of network, or when being carrying out the state of appointed task, system can be upgraded, so as to ensure that The task that current user and the network equipment by network equipment connection network online is currently executing does not receive system upgrade When network disconnect impact.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the enforcement for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of the method for upgrading system according to an exemplary embodiment.
Fig. 2 is the flow chart of another kind of method for upgrading system according to an exemplary embodiment.
Fig. 3 A are a kind of block diagrams of the system upgrade device according to an exemplary embodiment.
Fig. 3 B are the block diagrams of the first determining module according to an exemplary embodiment.
Fig. 3 C are the block diagrams of another kind of system upgrade device according to an exemplary embodiment.
Fig. 3 D are the block diagrams of the third system upgrade device according to an exemplary embodiment.
Fig. 3 E are the block diagrams of the 4th kind of system update device according to an exemplary embodiment.
Fig. 4 is a kind of system upgrade device block diagram according to an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the present invention.
Before detailed explanation is carried out to the embodiment of the present disclosure, first the application scenarios of the embodiment of the present disclosure are given Introduce.Because the network equipment can disconnect network during upgrade-system, therefore can cause currently to connect the terminal of the network equipment Network is cannot connect to, and then the user for holding the terminal cannot be surfed the Net, therefore, the embodiment of the present disclosure provides a germline System upgrade method, when current time is to preset detection time, and is not at terminal being connected into network, and holds During the state of row appointed task, system is upgraded, so as to avoid because the network equipment carries out system upgrade on user Net is impacted.
Fig. 1 is a kind of flow chart of the method for upgrading system according to an exemplary embodiment.As shown in figure 1, this is System upgrade method is used in the network equipment, comprises the following steps.
In a step 101, when current time is to preset detection time, it is determined that the state being presently in, the default detection Time is after system readiness to be upgraded for detecting whether carrying out the time of system upgrade.
In a step 102, when the state being presently in not is preset state, system is upgraded, the preset state To be used to for terminal to be connected to the state of network, or the state for being carrying out appointed task.
In the disclosed embodiments, when current time is to preset detection time, it may be determined that the state being presently in, when The state being presently in is to be used to for terminal to be connected to the state of network, or when being carrying out the state of appointed task, System can be upgraded, so as to ensure that the current user by network equipment connection network online or the network equipment work as Before being carrying out of the task do not disconnected by network during system upgrade and being affected.
Optionally it is determined that the state being presently in, including at least one in following manner:
It is determined that current uplink traffic or downlink traffic, when uplink traffic or downlink traffic are more than or equal to default stream During amount threshold value, it is determined that the state being presently in is preset state;
Determine current connected terminal quantity, when terminal quantity is more than or equal to the first predetermined number threshold value, it is determined that The state being presently in is preset state;
It is determined that detecting the request bag quantity that connected terminal sends in detection time section, detection time section is default The time period of the first preset duration is spaced before detection time and with default detection time;When request bag quantity is more than or equal to the During two predetermined number threshold values, it is determined that the state being presently in is preset state.
Alternatively, when current time is to preset detection time, it is determined that after the state being presently in, also including:
When the state being presently in is preset state, it is determined that detection time again, again detection time is default detection The time of the second preset duration is spaced after time and with default detection time;
When again detection time is reached, return and perform the step of determining the state being presently in, until this subsystem liter Till level is completed.
Alternatively, method also includes:
When the system upgrade prompting message of designated terminal transmission is received, system is upgraded, it is intended that terminal is use In the terminal of control upgrade-system.
Alternatively, after the system upgrade prompting message for receiving designated terminal transmission, also include:
When the state being presently in is preset state, sending to designated terminal cannot upgrade tip message, it is impossible to upgrade Prompting message is currently at preset state for prompting, and system cannot be upgraded.
Above-mentioned all optional technical schemes, can be according to the alternative embodiment for arbitrarily combining to form the disclosure, disclosure reality Apply example no longer to repeat this one by one.
Fig. 2 is a kind of flow chart of the method for upgrading system according to an exemplary embodiment.As shown in Fig. 2 this is System upgrade method is used in the network equipment, comprises the following steps.
In step 201, when current time is to preset detection time, it is determined that the state being presently in, the default detection Time is after system readiness to be upgraded for detecting whether carrying out the time of system upgrade.
Wherein, the network equipment obtains first the system time of itself, and the system time of acquisition is defined as into current time, When current time is to preset detection time, it is determined that the state being presently in.
Wherein, the network equipment can in real time determine current time, it is also possible to according to predetermined period, periodically determine and work as The front time.When the network equipment periodically determines current time, in order to not miss default detection time, the predetermined period can be with As far as possible short, but in order to save the system resource of the network equipment, the predetermined period is also unsuitable too short.Additionally, for more supernumerary segment The about system resource of the network equipment, while the load in order to mitigate the network equipment, the network equipment can be with system to be upgraded When ready, then the step of determining current time is performed, wherein, when system readiness to be upgraded, the network equipment is same Sample can determine current time by real-time or periodic mode.
It should be noted that because the network equipment may disconnect network during upgrade-system, so that leading to Crossing the user of the network equipment connection network online cannot surf the Net during system upgrade, therefore, in order to avoid upgrade-system pair The upper network process of user is impacted, and the network equipment can in advance arrange a time as default detection time, for detecting It is current whether to carry out system upgrade, and the default detection time generally has less user to connect network by the network equipment The time of online, such as the default detection time can for 1:00 AM is whole, 2:00 AM it is whole etc..
Wherein it is determined that the state being presently in, including at least one in following manner:
First kind of way:It is determined that current uplink traffic or downlink traffic, when uplink traffic or downlink traffic are more than Or during equal to preset flow threshold value, it is determined that the state being presently in is preset state.
When the terminal of the current connection network equipment performs upload operation, such as certain pictures stored in the terminal are led to When crossing the network equipment and being uploaded to high in the clouds, uplink traffic can be produced in the network equipment;When the terminal of the current connection network equipment When performing down operation, such as when file in Dropbox being downloaded into the terminal by the network equipment, can produce in the network equipment Raw downlink traffic;Additionally, applying in running background in the terminal of the connection network equipment, it is also possible to apply corresponding with this Carry out data transmission between application server, a small amount of uplink traffic or downstream now can be also produced in the network device Amount, and may now not have user actually using net, therefore, when uplink traffic or downlink traffic are more than or equal to default stream During amount threshold value, the network equipment can determine that the state being presently in is preset state, that is to say it is considered that there is currently user Network online is connected by the network equipment, to upload or download file etc., and works as uplink traffic and downlink traffic is respectively less than During preset flow threshold value, it not is preset state that the network equipment can determine the state being presently in, and that is to say and can determine currently There is no user and network online is connected by the network equipment.
It should be noted that the preset flow threshold value can be the flow threshold that network device in advance is arranged, such as this is pre- If flow threshold can be 5MB (million), 8MB etc..
In addition, the network equipment not only can be uplink traffic and downlink traffic arranges unified flow threshold, i.e., it is above-mentioned pre- If flow threshold, certainly, in practical application, the network equipment can also be for uplink traffic and downlink traffic be respectively provided with it is different Flow threshold.Wherein, when network device in advance is respectively provided with uplink traffic threshold value and downlink traffic threshold value, it is first determined current Uplink traffic or downlink traffic, when uplink traffic be more than or equal to uplink traffic threshold value, or downlink traffic be more than or wait When downlink traffic threshold value, the network equipment can determine that the state being presently in is preset state, that is to say it is considered that current There is user and network online is connected by the network equipment, when uplink traffic is less than uplink traffic threshold value, and downlink traffic is less than During downlink traffic threshold value, it not is preset state that the network equipment can determine the state being presently in, and that is to say and can determine currently There is no user and network online is connected by the network equipment.
The second way:Current connected terminal quantity is determined, when terminal quantity is more than or equal to the first predetermined number During threshold value, it is determined that the state being presently in is preset state.
For some users, when the user needs to be surfed the Net by the network equipment, the terminal that can hold oneself connects The network equipment is connected to connect network, so as to using terminal online, and when the user need not surf the Net, oneself may be held Some terminals are disconnected with the network equipment, to save flow or terminal power for surfing the Net by the network equipment etc., because This, the network equipment can determine current connected terminal quantity by the above-mentioned second way, when terminal quantity is more than or waits When the first predetermined number threshold value, the network equipment can determine that the state being presently in is preset state, namely be to determine current Have and network online is connected by the network equipment compared with multi-user, when terminal quantity is less than the first predetermined number threshold value, network sets Standby to can determine the state being presently in not be preset state, namely be to determine and connected by the network equipment currently without user Network is surfed the Net.
The third mode:It is determined that the request bag quantity that connected terminal sends is detected in detection time section, detection Time period is the time period that the first preset duration is spaced before default detection time and with default detection time;When request bag quantity During more than or equal to the second predetermined number threshold value, it is determined that the state being presently in is preset state.
Holding the user of terminal would generally in the terminal install multiple applications, when the terminal is connected to net by the network equipment During network, user may trigger some options in the application that terminal is installed, so as to assign some instructions to terminal.When terminal inspection When measuring the instruction of user's triggering, the corresponding request bag of the instruction can be sent to the application correspondence by the terminal by the network equipment Application server, because the request bag that the terminal that connected sends is sent to application server by the network equipment, because This, the network equipment can be recorded the request bag quantity that the terminal for being connected sends, to determine institute in detection time section The request bag quantity that the terminal of connection sends, so as to work as request bag quantity in default detection time the second present count is more than or equal to During amount threshold value, it may be determined that the state being presently in is preset state, namely is to determine that there is currently user is set by the network Standby connection network online, when request bag quantity is less than the second predetermined number threshold value in default detection time, it may be determined that current State in which is not preset state, namely is to determine that connecting network by the network equipment currently without user surfs the Net.
It should be noted that the network equipment determines the implementation of the state being presently in except above-mentioned three kinds of implementations Outside, other modes are can also be, such as when the network equipment can count the connection starting of each terminal for connecting itself Between and disconnect the time, the conventional Connection Time section of each terminal is updated according to regularly statistics, and be stored in net Network equipment is local, and when current time is in the conventional Connection Time section of any of which terminal, the network equipment can determine currently State in which is preset state.
In addition, the network equipment can determine the state being presently in be used to connect terminal by above-mentioned three kinds of modes The state of network is connected to, and because preset state also includes being carrying out the state of appointed task, therefore, when the network equipment determines When itself is carrying out appointed task, can directly determine that the state being presently in is preset state.Wherein, it is intended that task can be with Including Backup Data, to network device management terminal to report data etc..
In step 202., when the state being presently in not is preset state, system is upgraded, the preset state To be used to for terminal to be connected to the state of network, or the state for being carrying out appointed task.
When the network equipment is not preset state by the state being presently in that step 201 determines, that is to say to recognize Network, or the network equipment are connected to currently without execution appointed task by the network equipment to there is currently no terminal, this When the network equipment can perform this step, and then system is upgraded, so as to make currently to surf the Net by the network equipment User be affected, the appointed task being carrying out in current network device is affected and is interrupted.
In step 203, when the state being presently in is preset state, it is determined that detection time again, this is detected again Time is the time that the second preset duration is spaced after default detection time and with default detection time.
When the network equipment is preset state by the state being presently in that step 201 determines, that is to say and can consider There is currently terminal and network is connected to by the network equipment, or the network equipment is currently executing appointed task, now net Network equipment can determine detection time again by performing this step, namely be to determine the time for detecting state next time, from And when the state being presently in is preset state, can postpone for a period of time to upgrade system, and then ensure that current Do not affected by system upgrade with the user for netting or being currently executing for task.
It should be noted that the network equipment can only determine detection time next time, and certainly, in practical application, network Equipment can also directly determine the multiple detection times after default detection time, and be spaced second between each detection time Preset duration so that the network equipment can be directly based upon the plurality of detection time determines state in which, without The step of once determining detection time again is carried out when determining state in which preset state every time, and then simplifies system liter The process of level.
In step 204, when it is determined that detection time again reach when, return to perform and determine the step of state being presently in Suddenly, till this system upgrade is completed.
Wherein, the network equipment obtains first the system time of itself, when the current system time of itself is to determine again During detection time, it is determined that again detection time reach, and return perform determine be presently in state the step of, until this is Till system upgrading is completed, when the current system time of itself is not the detection time again for determining, it is determined that detection time again Do not reach, the network equipment can continue to obtain the system time of itself by real-time or periodic mode.
It should be noted that after the step of returning execution and determine the state being presently in, when residing for the network equipment When state is not preset state, the network equipment can upgrade to system, so that currently with the user for netting and currently just Do not affected by system upgrade in performing for task, and when network equipment state in which is preset state, illustrated that network sets It is standby now to carry out the task that system upgrade still affect user to surf the Net or affect the network equipment to be currently executing, therefore net Network equipment can determine the time of third time detection, when reaching the time of third time detection, the shape being presently in be determined again State, by that analogy, until when determining that the state being presently in not is preset state, the network equipment just can upgrade to system, So as to avoid upgrade-system from impacting the user that surfs the Net or the network equipment being currently executing of the task.
Further, the network equipment can be upgraded to step 204 by performing above-mentioned steps 201 to system, certainly, In practical application, the network equipment can also be upgraded by following manner to system, including:Send designated terminal is received System upgrade prompting message when, system is upgraded, the designated terminal is the terminal for controlling upgrade-system.
For a network equipment, may currently there are multiple terminals to be connected to the network equipment, such as when the network When equipment is the home-use network equipment, each kinsfolk in one family may be connected to the terminal that oneself is held The network equipment pass through the net currently without other people to be connected to network when the kinsfolk for wherein holding designated terminal determines When network equipment is surfed the Net, the control page of the designated terminal logging in network equipment that can be held by oneself, or open oneself and hold The network equipment control application installed in some designated terminals, and then trigger the control page or the system upgrade in control application Prompting message delivery option, during so as to the trigger action that system upgrade prompting message delivery option is detected when the designated terminal, System upgrade prompting message can be sent to the network equipment, to point out the network equipment to upgrade to system.Namely It is, when the system upgrade prompting message of designated terminal transmission is received, it may be determined that passing through the net currently without user The connection network online of network equipment, therefore, the network equipment can upgrade to system.
It should be noted that in practical application, because the network equipment can count the company of each terminal for connecting itself Number of times or connection total duration are connect, therefore, the network equipment can select connection number of times more than default connection time from these terminals Several terminals, or connection total duration is more than the terminal of default connection total duration, it is possible to the terminal of selection is defined as specifying Terminal, that is to say that the terminal for selecting network equipment trust, as designated terminal, to work as designated terminal transmission is received During system upgrade prompting message, system is upgraded.Certainly, in practical application, the network equipment can also be by the institute for connecting There is terminal to be all defined as designated terminal, so that the terminal that all kinsfolks can be held by oneself is sent out to the network equipment Send system upgrade prompting message.
Further, after the system upgrade prompting message for receiving designated terminal transmission, the network equipment can be with It is determined that the state being presently in, when the state being presently in is preset state, to designated terminal send cannot upgrade tip disappear Breath, this cannot upgrade tip message to be used for the state that is presently in of prompting be preset state, and system cannot be upgraded.
Because certain kinsfolk in one family currently may be surfed the Net by the network equipment, and now other Kinsfolk may be not aware that somebody in online, consequently, it is possible to the system upgrade prompting message in triggering designated terminal sends Option, and then the designated terminal can send system upgrade prompting message to the network equipment, therefore, in order to avoid because of certain user Error in judgement and make the network equipment that system upgrade is carried out when just terminal being connected into network, and then avoid going up other The user of net impacts, and after the system upgrade prompting message for receiving designated terminal transmission, the network equipment can be performed It is determined that be presently in state the step of, when the state being presently in not be preset state when system is upgraded again.
In the disclosed embodiments, when current time is to preset detection time and be not at preset state, that is to say really It is fixed currently without user by network equipment online and currently without being carrying out for task when, the network equipment can be to system Upgraded, so as to ensure that the current user surfed the Net by the network equipment and being currently executing for task is not by system liter The impact that network disconnects during level.When current time is for default detection time and during in preset state, the network equipment can determine Detection time again, and determine the state being presently in again when again detection time is reached, when the state being presently in not For preset state when system is upgraded again, postpone the purpose of upgrading to reach, so ensure that the current user with net with And being currently executing for task is not affected by system upgrade.Additionally, the network equipment can with receiving designated terminal send out During the system upgrade prompting message for sending, when that is to say that the user for holding the designated terminal thinks that system upgrade can be carried out, to being System is upgraded, so as to avoid disconnection network during upgrade-system from impacting user's online.
Fig. 3 A are a kind of block diagrams of the system upgrade device 300 according to an exemplary embodiment.Referring to Fig. 3 A, the dress Put including the first determining module 301 and the first upgraded module 302.
First determining module 301, for when current time for default detection time when, it is determined that the state being presently in, in advance If detection time is after system readiness to be upgraded for detecting whether carrying out the time of system upgrade;
First upgraded module 302, for when the state being presently in not is preset state, upgrading to system, in advance If state is to be used to for terminal to be connected to the state of network, or the state for being carrying out appointed task.
Alternatively, at least one referring to Fig. 3 B, in the following submodule of the first determining module 301:
First determination sub-module 3011, for when current time is to preset detection time, it is determined that current uplink traffic Or downlink traffic, when uplink traffic or downlink traffic are more than or equal to preset flow threshold value, it is determined that the shape being presently in State is preset state;
Second determination sub-module 3012, for when current time is to preset detection time, determining current connected end End quantity, when terminal quantity is more than or equal to the first predetermined number threshold value, it is determined that the state being presently in is preset state;
3rd determination sub-module 3013, for when current time is to preset detection time, it is determined that in detection time section Detect the request bag quantity that connected terminal sends, detection time section for before default detection time and with during default detection Between be spaced time period of the first preset duration;When request bag quantity is more than or equal to the second predetermined number threshold value, it is determined that currently State in which is preset state.
Alternatively, referring to Fig. 3 C, the device also includes:
Second determining module 303, for when the state being presently in is preset state, it is determined that detection time again, then Secondary detection time is that the time of the second preset duration is spaced after default detection time and with default detection time;
Trigger module 304, for when again detection time is reached, triggering the first determining module the shape being presently in is determined State, till this system upgrade is completed.
Alternatively, referring to Fig. 3 D, the device also includes:
Second upgraded module 305, for when the system upgrade prompting message of designated terminal transmission is received, entering to system Row upgrading, it is intended that terminal is the terminal for controlling upgrade-system.
Alternatively, referring to Fig. 3 E, the device also includes:
Sending module 306, carries for when the state being presently in is preset state, sending to upgrade to designated terminal Show message, it is impossible to which upgrade tip message is currently at preset state for prompting, and system cannot be upgraded.
In the disclosed embodiments, when current time is to preset detection time, it may be determined that the state being presently in, when The state being presently in is to be used to for terminal to be connected to the state of network, or when being carrying out the state of appointed task, System can be upgraded, so as to ensure that the current user by network equipment connection network online and the network equipment work as Before being carrying out of the task do not disconnected by network during system upgrade and being affected.
With regard to the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram of the device 400 for system upgrade according to an exemplary embodiment.For example, fill Put 400 and may be provided in a network equipment.With reference to Fig. 4, device 400 includes process assembly 422, its further include one or Multiple processors, and the memory resource by representated by memory 432, can be by the execution of process assembly 422 for storage Instruction, such as application program.The application program stored in memory 432 can include one or more each correspondence In the module of one group of instruction.Additionally, process assembly 422 is configured to execute instruction, to perform a kind of method for upgrading system, this is System upgrade method includes:
When current time is to preset detection time, it is determined that the state being presently in, default detection time is to be upgraded System readiness after for detecting whether carrying out the time of system upgrade;
When the state being presently in not is preset state, system is upgraded, preset state is for for by eventually End is connected to the state of network, or the state for being carrying out appointed task.
Optionally it is determined that the state being presently in, including at least one in following manner:
It is determined that current uplink traffic or downlink traffic, when uplink traffic or downlink traffic are more than or equal to default stream During amount threshold value, it is determined that the state being presently in is preset state;
Determine current connected terminal quantity, when terminal quantity is more than or equal to the first predetermined number threshold value, it is determined that The state being presently in is preset state;
It is determined that detecting the request bag quantity that connected terminal sends in detection time section, detection time section is default The time period of the first preset duration is spaced before detection time and with default detection time;When request bag quantity is more than or equal to the During two predetermined number threshold values, it is determined that the state being presently in is preset state.
Alternatively, when current time is to preset detection time, it is determined that after the state being presently in, also including:
When the state being presently in is preset state, it is determined that detection time again, again detection time is default detection The time of the second preset duration is spaced after time and with default detection time;
When again detection time is reached, return and perform the step of determining the state being presently in, until this subsystem liter Till level is completed.
Alternatively, method also includes:
When the system upgrade prompting message of designated terminal transmission is received, system is upgraded, it is intended that terminal is use In the terminal of control upgrade-system.
Alternatively, after the system upgrade prompting message for receiving designated terminal transmission, also include:
When the state being presently in is preset state, sending to designated terminal cannot upgrade tip message, it is impossible to upgrade Prompting message is currently at preset state for prompting, and system cannot be upgraded.
Device 400 can also include that a power supply module 426 is configured to the power management of performs device 400, and one has Line or radio network interface 450 are configured to for device 400 to be connected to network, and input and output (I/O) interface 458.Dress Putting 400 can operate based on being stored in the operating system of memory 432, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the disclosed embodiments, when current time is to preset detection time, it may be determined that the state being presently in, when The state being presently in is to be used to for terminal to be connected to the state of network, or when being carrying out the state of appointed task, System can be upgraded, so as to ensure that the current user by network equipment connection network online and the network equipment work as Before being carrying out of the task do not disconnected by network during system upgrade and being affected.
Those skilled in the art will readily occur to its of the present invention after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification of the present invention, purposes or adaptations, these modifications, purposes or Person's adaptations follow the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the precision architecture for being described above and being shown in the drawings is the invention is not limited in, and And can without departing from the scope carry out various modifications and changes.The scope of the present invention is only limited by appended claim.

Claims (11)

1. a kind of method for upgrading system, it is characterised in that methods described includes:
When current time is to preset detection time, it is determined that the state being presently in, the default detection time is to be upgraded System readiness after for detecting whether carrying out the time of system upgrade;
When the state being presently in not is preset state, the system is upgraded, the preset state is to be used for Terminal is connected into the state of network, or the state for being carrying out appointed task.
2. the method for claim 1, it is characterised in that the state that the determination is presently in, including in following manner At least one:
It is determined that current uplink traffic or downlink traffic, when the uplink traffic or the downlink traffic are more than or equal to pre- If during flow threshold, it is determined that the state being presently in is the preset state;
Determine current connected terminal quantity, when the terminal quantity is more than or equal to the first predetermined number threshold value, it is determined that The state being presently in is the preset state;
It is determined that detecting the request bag quantity that connected terminal sends in detection time section, the detection time section is described The time period of the first preset duration is spaced before default detection time and with the default detection time;When the request bag quantity During more than or equal to the second predetermined number threshold value, it is determined that the state being presently in is the preset state.
3. the method for claim 1, it is characterised in that it is described when current time for default detection time when, it is determined that working as After front state in which, also include:
When the state being presently in is the preset state, it is determined that detection time again, the detection time again is described The time of the second preset duration is spaced after default detection time and with the default detection time;
When the detection time again is reached, the step of execution is described to determine the state being presently in is returned, until this is Till system upgrading is completed.
4. the method for claim 1, it is characterised in that methods described also includes:
When the system upgrade prompting message of designated terminal transmission is received, the system is upgraded, the designated terminal It is for the terminal of the control upgrading system.
5. method as claimed in claim 4, it is characterised in that described when the system upgrade prompting that receive designated terminal transmission After message, also include:
When the state being presently in be the preset state when, to the designated terminal send cannot upgrade tip message, it is described Cannot upgrade tip message be currently at the preset state for prompting, and the system cannot be upgraded.
6. a kind of system upgrade device, it is characterised in that described device includes:
First determining module, for when current time is to preset detection time, it is determined that the state being presently in, the default inspection The survey time is after system readiness to be upgraded for detecting whether carrying out the time of system upgrade;
First upgraded module, it is described pre- for when the state being presently in not is preset state, upgrading to the system If state is to be used to for terminal to be connected to the state of network, or the state for being carrying out appointed task.
7. device as claimed in claim 6, it is characterised in that first determining module is included in following submodule at least It is a kind of:
First determination sub-module, for when the current time is the default detection time, it is determined that current uplink traffic Or downlink traffic, when the uplink traffic or the downlink traffic are more than or equal to preset flow threshold value, it is determined that currently State in which is the preset state;
Second determination sub-module, for when the current time is the default detection time, determining current connected end End quantity, when the terminal quantity is more than or equal to the first predetermined number threshold value, it is determined that the state being presently in is described pre- If state;
3rd determination sub-module, for when the current time is the default detection time, it is determined that in detection time section Detect the request bag quantity that connected terminal sends, the detection time section for before the default detection time and with institute State the time period that default detection time is spaced the first preset duration;When the request bag quantity is more than or equal to the second predetermined number During threshold value, it is determined that the state being presently in is the preset state.
8. device as claimed in claim 6, it is characterised in that described device also includes:
Second determining module, for when the state being presently in is the preset state, it is determined that detection time again, it is described again Secondary detection time is that the time of the second preset duration is spaced after the default detection time and with the default detection time;
Trigger module, determines what is be presently in for when the detection time again is reached, triggering first determining module State, till this system upgrade is completed.
9. device as claimed in claim 6, it is characterised in that described device also includes:
Second upgraded module, for when the system upgrade prompting message of designated terminal transmission is received, carrying out to the system Upgrading, the designated terminal is for the terminal of the control upgrading system.
10. device as claimed in claim 9, it is characterised in that described device also includes:
Sending module, for when the state being presently in is the preset state, sending to the designated terminal to upgrade Prompting message, it is described cannot upgrade tip message be currently at the preset state for prompting, and the system cannot be entered Row upgrading.
11. a kind of system upgrade devices, it is characterised in that described device includes:
Processor;
For storing the memory of processor executable;
Wherein, the processor is configured to:
When current time is to preset detection time, it is determined that the state being presently in, the default detection time is to be upgraded System readiness after for detecting whether carrying out the time of system upgrade;
When the state being presently in not is preset state, the system is upgraded, the preset state is to be used for Terminal is connected into the state of network, or the state for being carrying out appointed task.
CN201611091152.2A 2016-12-01 2016-12-01 System upgrading method and device Pending CN106656582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611091152.2A CN106656582A (en) 2016-12-01 2016-12-01 System upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611091152.2A CN106656582A (en) 2016-12-01 2016-12-01 System upgrading method and device

Publications (1)

Publication Number Publication Date
CN106656582A true CN106656582A (en) 2017-05-10

Family

ID=58814871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611091152.2A Pending CN106656582A (en) 2016-12-01 2016-12-01 System upgrading method and device

Country Status (1)

Country Link
CN (1) CN106656582A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114286366A (en) * 2021-12-23 2022-04-05 深圳创维数字技术有限公司 Wireless grid network upgrading method and device, main node and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782857A (en) * 2010-01-19 2010-07-21 福建三元达软件有限公司 Payment terminal, software upgrading method and system thereof
CN102799447A (en) * 2012-06-19 2012-11-28 优视科技有限公司 Method and system for updating internal software of mobile terminal
CN104954409A (en) * 2014-03-31 2015-09-30 杭州迪普科技有限公司 AP upgrading method and device thereof
CN105187262A (en) * 2015-10-27 2015-12-23 上海斐讯数据通信技术有限公司 Router upgrading method and system
US20150373561A1 (en) * 2014-06-18 2015-12-24 Google Inc. Automatically updating an access point
CN105721203A (en) * 2016-01-26 2016-06-29 北京小米移动软件有限公司 Upgrade processing method and device
CN105848190A (en) * 2016-05-24 2016-08-10 北京小米移动软件有限公司 OTA upgrading method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782857A (en) * 2010-01-19 2010-07-21 福建三元达软件有限公司 Payment terminal, software upgrading method and system thereof
CN102799447A (en) * 2012-06-19 2012-11-28 优视科技有限公司 Method and system for updating internal software of mobile terminal
CN104954409A (en) * 2014-03-31 2015-09-30 杭州迪普科技有限公司 AP upgrading method and device thereof
US20150373561A1 (en) * 2014-06-18 2015-12-24 Google Inc. Automatically updating an access point
CN105187262A (en) * 2015-10-27 2015-12-23 上海斐讯数据通信技术有限公司 Router upgrading method and system
CN105721203A (en) * 2016-01-26 2016-06-29 北京小米移动软件有限公司 Upgrade processing method and device
CN105848190A (en) * 2016-05-24 2016-08-10 北京小米移动软件有限公司 OTA upgrading method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114286366A (en) * 2021-12-23 2022-04-05 深圳创维数字技术有限公司 Wireless grid network upgrading method and device, main node and storage medium
CN114286366B (en) * 2021-12-23 2023-07-14 深圳创维数字技术有限公司 Wireless grid network upgrading method and device, master node and storage medium

Similar Documents

Publication Publication Date Title
CN104363638B (en) router signal intensity adjusting method and device
US10135923B2 (en) Data transfer method and system
WO2017113527A1 (en) Method and device for switching virtual sim card, and terminal
CN106130816A (en) A kind of content distributing network monitoring method, monitoring server and system
CN103812726A (en) Automated testing method and device for data communication equipment
CN104765678A (en) Method and device for testing applications on mobile terminal
CN105282047A (en) Access request processing method and device
CN110147320A (en) Interface test method, device and electronic equipment
CN103139307B (en) A kind of Internet resources download the restoration methods and download system of interrupting
CN105721203B (en) Upgrade processing method and device
CN102857555A (en) Terminal, server and software updating method
CN104980399A (en) File transfer method, client and proxy server
CN105530683A (en) Network connection method and apparatus
CN105808427A (en) Test method, device and system of mobile terminal software
CN105095744A (en) Application access method and device
CN104426881A (en) Method and device for detecting malicious behavior
CN108345533A (en) A kind of application program adjustment method, equipment and server
CN113542256B (en) Method, device, equipment and storage medium for updating login credentials in client
CN105550105A (en) Selecting method and system of application programs with same function in mobile terminal
CN106656582A (en) System upgrading method and device
CN104615531A (en) Statistical method for accumulated terminal using duration time and network system
CN105187390A (en) Active mobile terminal malicious software network traffic data set acquisition method and system
CN110750453A (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN105069038A (en) Webpage operation request processing method and apparatus
CN109491702A (en) A kind of prioritization scheme determines method, apparatus, terminal device and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication