CN105589705A - File updating method and device, and equipment - Google Patents

File updating method and device, and equipment Download PDF

Info

Publication number
CN105589705A
CN105589705A CN201410575462.6A CN201410575462A CN105589705A CN 105589705 A CN105589705 A CN 105589705A CN 201410575462 A CN201410575462 A CN 201410575462A CN 105589705 A CN105589705 A CN 105589705A
Authority
CN
China
Prior art keywords
file
terminal
network equipment
renewal
server
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
CN201410575462.6A
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 Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410575462.6A priority Critical patent/CN105589705A/en
Publication of CN105589705A publication Critical patent/CN105589705A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a file updating method and device, and equipment. The method is applied to network equipment and comprises the following steps: monitoring whether a target file in a server is updated or not; when the target file in the server is updated, obtaining an updated file corresponding to the target file from the server, and storing the updated file in the network equipment; detecting whether a terminal is connected into the network equipment or not; when the terminal is connected into the network equipment, judging whether the terminal meets a preset updating condition or not; and when the terminal meets the preset updating condition, generating a pushing message corresponding to the updating condition, and sending the pushing message to the terminal. The method can shorten waiting time for updating the file, greatly shortens file updating time on the terminal, and improves file updating efficiency on the terminal.

Description

File updating method, device and equipment
Technical field
The disclosure relates to Internet technical field, relates in particular to a kind of file updating method, device and equipment.
Background technology
Current, intelligent terminal has become a part indispensable in people's live and work, taking mobile phone as example, and userCan on mobile phone, various application programs can be installed, make people's live and work more abundant excellent.In mobile phone use procedure, for the application program that makes to install in mobile phone is more perfect, application program provider can be graduallyUser releases the redaction that some comprise new function, so that can upgrade in time.
But in correlation technique, be limited to the access speed of mobile phone and internet, and, the size of the file that need to upgradeDeng impact, can make the renewal process of application program slower, for example: user is positioned on the train of field or high-speed cruising,Now the mobile network signals of mobile phone place environment is bad.
Can be for the application program of background update for some, although in renewal process, cannot use this application program,But user can also normally use mobile phone, can accept reluctantly this very long renewal process. But for mobile phone operation beSystem, in renewal process, can cause mobile phone normally to use, and this makes user's endurable, is conventionally forced to putAbandon renewal process.
Summary of the invention
For overcoming the problem existing in correlation technique, the disclosure provides a kind of file updating method, device and equipment.
According to the first aspect of disclosure embodiment, a kind of file updating method is provided, be applied to the network equipment, comprising:
Whether monitor server internal object file upgrades;
In the time that described server internal object file has upgraded, from described server, obtain corresponding with described file destinationTransaction file, and be stored in the described network equipment;
Whether detect has terminal to access the described network equipment;
In the time having terminal to access the described network equipment, judge whether described terminal meets default update condition;
In the time that described terminal meets default update condition, generate the PUSH message corresponding with described transaction file and send to instituteState terminal.
In conjunction with first aspect, in the possible implementation of first aspect the first, described monitor server internal object fileWhether upgrade, comprising:
Obtain the renewal chained address of storing in the described network equipment, described renewal chained address is pointed in described server extremelyA few file destination;
Generation carries the renewal detection request Concurrency of described renewal chained address and gives described server;
Receive described server and detect according to described renewal the response message that request sends, in described response message, includeThe file identification of transaction file;
Determine that the corresponding file destination of described server file identification interior and in described response message upgrades.
In conjunction with first aspect, in the possible implementation of first aspect the second, default file in described monitor serverWhether upgrade, comprising:
Obtain fileinfo pre-stored in the described network equipment, described fileinfo at least comprises: file identification and basisGround version identifier, described fileinfo is the described network equipment in the time of the described network equipment of the historical access of terminal from described terminalInside acquire;
Generation carries the renewal detection request Concurrency of described fileinfo and gives described server;
Receive described server and detect according to described renewal the response message that request sends, in described response message, comprise to some extentState in server version identifier higher than the file identification of described local version identifier;
Determine that the corresponding file destination of described server file identification interior and in described response message upgrades.
In conjunction with first aspect, in the third possible implementation of first aspect, describedly judge that whether described terminal meetsDefault update condition, comprising:
Obtain the facility information of described terminal, described facility information comprises: device type and/or recognition of devices mark;
Whether the facility information that judges described terminal is default facility information;
In the time that described facility information is default facility information, determine that described terminal meets default update condition.
In conjunction with first aspect or the third possible implementation of first aspect, in the 4th kind of possible realization side of first aspectIn formula, describedly judge that whether described terminal meets default update condition, comprising:
Detect whether the file that described file destination is corresponding is installed in described terminal;
In the time that file corresponding to described file destination is installed in described terminal, obtain the basis of the file of installing in described terminalGround version identifier;
From described transaction file, obtain the renewal version identifier of described file destination;
Judge that whether version that described renewal version identifier is corresponding is higher than version corresponding to described local version identifier;
When version corresponding to described renewal version identifier is during higher than version corresponding to described local version identifier, determine described endEnd meets default update condition.
In conjunction with first aspect, in the 5th kind of possible implementation of first aspect, described method also comprises:
Detect and whether receive the renewal operation that described terminal sends according to described PUSH message;
In the time receiving the renewal operation that described terminal sends according to described PUSH message, described transaction file is sent to instituteState terminal, so that described terminal utilizes described transaction file to upgrade the file of installing in terminal.
According to the second aspect of disclosure embodiment, a kind of file update device is provided, be applied to the network equipment, this deviceComprise:
Upgrade monitoring means, whether upgrade for monitor server internal object file;
Transaction file acquiring unit, in the time that described server internal object file has upgraded, from described server underCarry the transaction file corresponding with described file destination;
Transaction file memory cell, for being stored in the described network equipment by described transaction file;
Whether terminal detecting unit, for detection of having terminal to access the described network equipment;
Terminal judges unit, in the time having terminal to access the described network equipment, judge described terminal whether meet default moreNew Terms;
Push unit, in the time that described terminal meets default update condition, generates the PUSH message of described transaction file alsoSend to described terminal.
In conjunction with second aspect, in the possible implementation of second aspect the first, described renewal monitoring means, comprising:
Address acquisition subelement, the renewal chained address of storing for obtaining the described network equipment, described more new url groundAt least one file destination in described server is pointed in location;
The first request generates subelement, and the renewal that carries described renewal chained address for generating detects request;
The first request sends subelement, described in the renewal detection request that carries described renewal chained address is sent toServer;
The first response message receives subelement, detects the response that request sends for receiving described server according to described renewalMessage, includes the file identification of transaction file in described response message;
First upgrades definite subelement, corresponding with the file identification in described response message for determining in described serverFile destination upgrade.
In conjunction with second aspect, in the possible implementation of second aspect the second, described renewal monitoring means, comprising:
Fileinfo obtains subelement, for obtaining the pre-stored fileinfo of the described network equipment, and described file letterBreath at least comprises: file identification and local version identifier, described fileinfo is that the described network equipment is in the historical access of terminalWhen the described network equipment, in described terminal, acquire;
The second request generates subelement, and the renewal that carries described fileinfo for generating detects request;
The second request sends subelement, gives described clothes for the renewal that carries described fileinfo is detected to request ConcurrencyBusiness device;
The second response message receives subelement, detects the response that request sends for receiving described server according to described renewalMessage, includes in described server version identifier higher than the file identification of described local version identifier in described response message;
Second upgrades definite subelement, corresponding with the file identification in described response message for determining in described serverFile destination upgrade.
In conjunction with second aspect, in the third possible implementation of second aspect, described terminal judges unit, comprising:
Apparatus information acquiring subelement, for obtaining the facility information of described terminal, described facility information comprises: equipment classType and/or recognition of devices mark;
Whether facility information judgment sub-unit is default facility information for the facility information that judges described terminal;
First terminal is determined subelement, in the time that described facility information is default facility information, determines that described terminal meetsDefault update condition.
In second aspect or the third possible implementation of second aspect, in the 4th kind of possible realization of second aspectIn mode, described terminal judges unit, comprising:
File detection sub-unit, for detection of whether the file that described file destination is corresponding is installed in described terminal;
The first mark is obtained subelement, in the time that file corresponding to described file destination is installed in described terminal, obtainsThe local version identifier of the file of installing in described terminal;
The second mark is obtained subelement, for obtain the renewal version identifier of described file destination from described transaction file;
Version judgment sub-unit, for judging that whether version that described renewal version identifier is corresponding is higher than described local version markKnow corresponding version;
The second terminal is determined subelement, for when version corresponding to described renewal version identifier is higher than described local version identifierWhen corresponding version, determine that described terminal meets default update condition.
In conjunction with second aspect, in the 5th kind of possible implementation of second aspect, described device also comprises:
Upgrade operation detection unit, for detection of whether receiving described terminal according to the renewal behaviour of described PUSH message transmissionDo;
Transaction file transmitting element, in the time receiving the renewal operation that described terminal sends according to described PUSH message,Described transaction file is sent to described terminal, so that described terminal utilizes described transaction file to the file of installing in terminalUpgrade.
According to the third aspect of disclosure embodiment, a kind of equipment is provided, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Whether monitor server internal object file upgrades;
In the time that described server internal object file has upgraded, from described server, obtain corresponding with described file destinationTransaction file, and be stored in the described network equipment;
Whether detect has terminal to access the described network equipment;
In the time having terminal to access the described network equipment, judge whether described terminal meets default update condition;
In the time that described terminal meets default update condition, generate the PUSH message of described transaction file and send to described endEnd.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
The method that disclosure embodiment provides, terminal is current while not being connected with the network equipment, the network equipment just canAutomatic access server, monitors the update status of the file destination in server, once monitor in serverFile destination upgrades, and the network equipment can be downloaded the transaction file corresponding with file destination from server in advance, and depositsStorage is in the network equipment, and this makes in the time having terminal to access this network equipment, presets more if the terminal of definite access meetsNew Terms, just directly sends the PUSH message corresponding with the transaction file of downloading in advance to terminal, can enter with prompt terminalRow upgrades.
In the time that terminal utilizes the method to carry out file update, just can directly from the network equipment, obtain in advance from serverThe transaction file of having downloaded, and without upgrade in directly from server down loading updating file, in correlation technique,Terminal is directly compared from server down loading updating file in the time of file update, owing to can not from network equipment down loading updating fileBe limited to the limit bandwidth between the network equipment and server, terminal can download to transaction file fast from the network equipment,Especially the larger situation of transaction file, therefore can reduce stand-by period of down loading updating file, makes file in terminalThe time of upgrading shortens greatly, has promoted the renewal efficiency of file in terminal.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, can notThe restriction disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in description and forms the part of this description, shows enforcement according to the inventionExample, and be used from and explain principle of the present invention with description one.
Fig. 1 is according to the flow chart of a kind of file updating method shown in an exemplary embodiment.
Fig. 2 is according to a kind of scene schematic diagram shown in an exemplary embodiment.
Fig. 3 is according to the flow chart of a kind of file updating method shown in another exemplary embodiment.
Fig. 4 is according to a kind of terminal interface schematic diagram shown in an exemplary embodiment.
Fig. 5 is according to the flow chart of a kind of file updating method shown in another exemplary embodiment.
Fig. 6 is according to the flow chart of a kind of file updating method shown in another exemplary embodiment.
Fig. 7 is according to the block diagram of a kind of file update device shown in an exemplary embodiment.
Fig. 8 is according to the block diagram of the renewal monitoring means shown in an exemplary embodiment.
Fig. 9 is according to the block diagram of the renewal monitoring means shown in another exemplary embodiment.
Figure 10 is according to the block diagram of the terminal judges unit shown in an exemplary embodiment.
Figure 11 is according to the block diagram of the terminal judges unit shown in another exemplary embodiment.
Figure 12 is according to the block diagram of a kind of file update device shown in an exemplary embodiment.
Figure 13 is according to the block diagram of a kind of equipment shown in an exemplary embodiment.
Detailed description of the invention
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings. Description below relates to attachedWhen figure, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous key element. Exemplary enforcement belowEmbodiment described in example does not represent all embodiments consistent with the present invention. On the contrary, they be only with asThe example of the consistent apparatus and method in some aspects that describe in detail in appended claims, of the present invention.
Fig. 1 is according to the flow chart of a kind of file updating method shown in an exemplary embodiment, as shown in Figure 1, and this articlePart update method for example, for the network equipment: router, the method comprises the following steps.
In step S11, whether monitor server internal object file upgrades.
In disclosure embodiment, the file destination in server can be application software, can be also system updateThe files such as file and other audio file, video file, e-book.
In this step, the mode whether monitor server internal object file has upgraded has a lot, for example: the network equipmentCan pass through access services device, the judged result that then reception server returns just includes service in this judged resultThe information whether file destination in device has upgraded. In addition, the network equipment can also on purpose obtain in serverThe version number of certain some specific file, then with this network equipment in existing version number compare, then by networkEquipment determines according to comparative result whether the file destination in server upgrades. Certainly, in other embodiments, alsoCan employing mode determine whether server internal object file upgrades.
In the time that described server internal object file has upgraded, in step S12, from described server, obtain with describedThe transaction file that file destination is corresponding, and be stored in the described network equipment. Otherwise, process ends.
In above-mentioned steps, can determine that the file destination in server upgrades, so in this step, can be according to prisonThe result recording is downloaded the transaction file corresponding with file destination from server, and transaction file can be upgrading compressionBag can be also the file of other form.
When getting after transaction file, transaction file need to be stored in the network equipment so that follow-up terminal need to this moreWhen new file, can be directly, rapidly transaction file is sent to terminal.
In step S13, detect and whether have terminal to access the described network equipment.
As shown in Figure 2, be a kind of scene schematic diagram that disclosure embodiment provides, figure comprises: terminal 1, network are establishedStandby 2 and server 3, wherein, terminal 1 can be linked in the network equipment 2 by wireless connections mode or wired mode,For example: in the time that the network equipment 2 is broadband router, terminal 1 can be linked in the network equipment 2 by wifi, and platformFormula computer can be linked in the network equipment 2 by netting twine; The network equipment 2 also can or have by wireless connections modeLine connected mode is for example linked into, in server 3: in the time that the network equipment 2 is broadband router, can pass through grid lineCable is connected with server 3, in the time that the network equipment 2 is the portable wifi router of 4G, now can pass through wireless modeBe connected with server.
In network equipment running, can detect and whether have terminal to pass through network equipment accesses network, and then definite netIn network equipment, whether there is terminal. Certainly, terminal also can only be connected with the network equipment, and not with network interaction data,So now can, by the physical address of the terminal that connects in Sampling network equipment, determine in the network equipment and whether connectThere is terminal.
In the time having terminal to access the described network equipment, in step S14, judge whether described terminal meets the default bar that upgradesPart. Otherwise, process ends.
The method providing due to the application is for the file in terminal is upgraded, and will have terminal soRequirement, for example: if file destination is the software in mobile phone, only has so and be linked in the network equipment when mobile phone, just meetingSoftware in mobile phone is upgraded, and when after panel computer, TV box or other accessing terminal to network equipment, noCan carry out software upgrading to these equipment. In addition, if file destination is only the system update file for MIUI system,Only have so when after the mobile phone access network equipment of MIUI system, just can carry out software upgrading, and the mobile phone of IOS system connectsEnter the network equipment, can't carry out software upgrading.
In concrete application, for default update condition can be freely set as required, and the default bar that upgrades is being setWhen part, conventionally arrange with some parameters, for example: default update condition is defined as mobile phone, parameter can be selected mobile phone soString number, and be the mobile phone of MIUI system when presetting update condition, parameter correspondingly can be selected one of MIUI system soA little identification markings. Can judge whether terminal meets default update condition by the parameter of these settings in this step like this.
In embodiment of the disclosure, in the time that operating system is upgraded, this step S14 can comprise the following steps.
11), obtain the facility information of described terminal.
Described facility information comprises: device type and/or recognition of devices mark.
12) whether the facility information that, judges described terminal is default facility information.
13), when described facility information is during for default facility information, determine that described terminal meets default update condition.
In another embodiment of the disclosure, the software of installing in to terminal or the audio or video of having seen upgradeTime, this step S14 can comprise the following steps.
21), detect whether the file that described file destination is corresponding is installed in described terminal.
22), in the time that file corresponding to described file destination is installed in described terminal, obtain the literary composition of installing in described terminalThe local version identifier of part.
23), from described transaction file, obtain the renewal version identifier of described file destination.
24), judge that whether version that described renewal version identifier is corresponding is higher than version corresponding to described local version identifier.
25), when version corresponding to described renewal version identifier is during higher than version corresponding to described local version identifier, determineDescribed terminal meets default update condition.
In addition, the software that can only just can install in specific operation system for some, in other embodiment of the disclosure,Can also first perform step 11)~13), then perform step 21)~25). No matter which kind of mode, all belongs to the disclosure and implementsThe protection domain of example.
In the time that described terminal meets default update condition, in step S15, generate the propelling movement corresponding with described transaction fileInformation and sending is given described terminal. Otherwise, process ends.
In the PUSH message generating, include the information corresponding with transaction file, these information can comprise: upgrade literary compositionThe file identification that part is corresponding, for example: dbase, or, the version number that transaction file is corresponding or version introduction etc.
The method that disclosure embodiment provides, terminal is current while not being connected with the network equipment, the network equipment just canAutomatic access server, monitors the update status of the file destination in server, once monitor in serverFile destination upgrades, and the network equipment can be downloaded the transaction file corresponding with file destination from server in advance, and depositsStorage is in the network equipment, and this makes in the time having terminal to access this network equipment, presets more if the terminal of definite access meetsNew Terms, just directly sends the PUSH message corresponding with the transaction file of downloading in advance to terminal, can enter with prompt terminalRow upgrades.
In the time that terminal utilizes the method to carry out file update, just can directly from the network equipment, obtain in advance from serverThe transaction file of having downloaded, and without upgrade in directly from server down loading updating file, in correlation technique,Terminal is directly compared from server down loading updating file in the time of file update, owing to can not from network equipment down loading updating fileBe limited to the limit bandwidth between the network equipment and server, terminal can download to transaction file fast from the network equipment,Especially the larger situation of transaction file, therefore can reduce stand-by period of down loading updating file, makes file in terminalThe time of upgrading shortens greatly, has promoted the renewal efficiency of file in terminal.
In concrete application, the method that disclosure embodiment provides not only can be for application software and operating system moreNewly, for example: for millet router, can be in server millet mobile phone operating system or millet box operation systemAfter system upgrades, download in advance the transaction file of millet mobile phone operating system or millet Cassette Operations System from server, and thenIn the time having millet mobile phone to be linked in this millet router, can carry out fast more the operating system of the millet mobile phone of accessNewly. Certainly, except operating system, can upgrade equally for some application software. In addition, the method also canUpgrade with the file to other non-application software, for example: TV play, server can be according to the broadcast situation of TV play,The up-to-date collection of TV plays that upgrades in time, like this, user can arrange the TV play that need to chase after in router, on userBetween schedule, after in server, collection of TV plays upgrades, router can be from server the TV after down loading updating in timeCollection of drama, and then when user is After Hours by after panel computer couple in router, just can be directly from router after down loading updatingCollection of TV plays, without again from server buffers, upgrade efficiency greatly promote.
In embodiment of the disclosure, as shown in Figure 3, the method can also comprise the following steps.
In step S16, detect and whether receive the renewal operation that described terminal sends according to described PUSH message.
In concrete application, can in PUSH message, be provided with " whether upgrading ", and the choosing such as " reresenting after a while "Select control, as shown in Figure 4, figure comprises: terminal 1, display screen 6 and PUSH message pop-up box 7, and when user clicks "Yes"Control time, terminal just directly sends the corresponding operation of upgrading to the network equipment.
In the time receiving the renewal operation that described terminal sends according to described PUSH message, in step S17, by more describedNew file sends to described terminal, so that described terminal utilizes described transaction file to upgrade the file of installing in terminal.Otherwise, process ends.
Owing to belonging to Intranet between terminal and the network equipment, the data transmission bauds between the two, much larger than the network equipment withData transmission bauds between server, so the network equipment can be transferred to terminal by transaction file fast, thereby withoutIn the time that terminal is upgraded, the network equipment from the stand-by period of server down loading updating file, can reduce down loading updating literary composition temporarilyThe stand-by period of part, greatly shortened the time of file update in terminal.
In addition, in other embodiment of the disclosure, user can also be set to acquiescence and upgrade, when PUSH message is sentGive after terminal, without user, terminal operated, just can be directly or with the backward terminal of PUSH message certain interval of timeSend transaction file, so that terminal utilizes this transaction file to upgrade.
In embodiment of the disclosure, for the network equipment, need the terminal of upgrading never to access beforeThis network equipment, for example: certain equipment vendor provides the end product in the network equipment (for example: router) and downstream simultaneously(for example: mobile phone and TV box etc.), so for this equipment vendor, for the ease of the software of downstream end product orSystem upgrade can customize the transaction file that some are downloaded in advance in the network equipment, is exactly more typically the operation of terminalThe transaction file that system is corresponding, in the time that the operating system of mobile phone has new version, just can by the router of this equipment vendorWith down operation system update file in advance, so that the mobile phone of this equipment vendor carries out system upgrade.
For this reason, in embodiment of the disclosure, as shown in Figure 5, this file updating method can comprise the following steps.
In step S21, obtain the renewal chained address of storing in the described network equipment.
In disclosure embodiment, upgrade chained address and point at least one file destination in described server.
Upgrading chained address can be for being stored in chained address in the network equipment, and in addition, upgrading chained address can also be withThe mode of script or application program is stored in the network equipment.
In step S22, generation carries the renewal detection request Concurrency of described renewal chained address and gives described server.
The network equipment can generate and upgrade the request of detection and send the time of setting to server according to the time interval of settingInterval can equate, for example: the network equipment is at a server of regular time every day access, between the time of certainly settingFor example, every free setting as required: if the time that in server, file destination upgrades is generally all at night,So the network equipment can be arranged on every day evening 6:00 to 12:00, each hour access a server so thatGet as early as possible the update status of file destination in server, terminal can be upgraded in time.
In step S23, receive described server and detect according to described renewal the response message that request sends.
For server, server can record version number or other knowledge of file destination when last time, the network equipment was accessedOther information, detects when request when server receives the renewal that the network equipment sends again like this, just can be by file destinationCurrent version number and the version number of last registration compare, and then can determine in the time of this access of the network equipment orderWhether mark file upgrades.
In response message, include the file identification of transaction file. In the time that server defines file update, just can be byThe file identification having upgraded returns to the network equipment.
In step S24, determine the corresponding file destination of described server file identification interior and in described response messageUpgrade.
After step S24, carry out above-mentioned steps S12.
The method that disclosure embodiment provides is built-in with in advance and upgrades chained address in the network equipment, and then network is establishedStandby according to these renewal chained addresses, the update status of the file destination of setting in access services device, and when in serverFile destination while having renewal, the transaction file of downloading object file from server in advance, the network equipment just like thisCan carry out prestrain to the transaction file of some specific files, and then work as terminal and need to carry out more these file destinationsWhen new, can, directly from the quick-downloading transaction file of this network equipment, be convenient to terminal and upgrade fast.
In embodiment of the disclosure, equipment vendor does not provide the end product in downstream, and the network equipment is only provided, thisSample, for the network equipment, may not pre-storedly have renewal chained address in it, but real in order to realize the disclosureExecute the method that example provides, as shown in Figure 6, the method can comprise the following steps.
In step S31, obtain fileinfo pre-stored in the described network equipment.
Described fileinfo at least comprises: file identification and local version identifier, described fileinfo is the described network equipmentIn the time of the described network equipment of the historical access of terminal, in described terminal, acquire.
As shown in Figure 2, the data link when data link 4 in figure shown in dotted line is the historical access network device of terminal,Data link when data link 5 shown in solid line is the current access network device of terminal.
Visible, the network equipment 2 can be by data link 4 for example, from the fileinfo in reading terminals 1: operation systemTitle and the version of operating system, the title of application software and the version of application software of system.
In step S32, generation carries the renewal detection request Concurrency of described fileinfo and gives described server.
In step S33, receive described server and detect according to described renewal the response message that request sends.
In described response message, include in described server version identifier higher than the file identification of described local version identifier.
In step S34, determine the corresponding file destination of described server file identification interior and in described response messageUpgrade.
After step S34, carry out above-mentioned steps S12.
Compared with embodiment illustrated in fig. 5, scheme embodiment illustrated in fig. 5 can only be to the more new url of setting in the network equipmentFile destination corresponding to address upgrades, and this mode is relatively limited to, and the method that disclosure embodiment provides, canBy carrying out interaction with terminal, and then read the file that terminal has been installed with in advance, for example: operating system, applicationThe TV plays that software, user have seen etc., when terminal disconnects with after being connected of the network equipment, the network equipment can be accessed like thisWhether the file of having installed in terminal in server upgrades, after upgrading, the network equipment can be in advance from server underCarry corresponding transaction file, when terminal is again after access network device, just direct down loading updating literary composition from the network equipmentPart, and upgrading in time, and without down loading updating file from server temporarily again.
Fig. 7 is according to a kind of file update device block diagram shown in an exemplary embodiment. With reference to Fig. 7, this device comprisesUpgrade monitoring means 11, transaction file acquiring unit 12, transaction file memory cell 13, terminal detecting unit 14, wholeEnd judging unit 15 and push unit 16.
This renewal monitoring means 11 is configured to, and whether monitor server internal object file upgrades;
This transaction file acquiring unit 12 is configured to, in the time that described server internal object file has upgraded, from describedIn server, download the transaction file corresponding with described file destination;
This transaction file memory cell 13 is configured to, and described transaction file is stored in the described network equipment;
Whether this terminal detecting unit 14 is configured to, detect and have terminal to access the described network equipment;
This terminal judges unit 15 is configured to, and in the time having terminal to access the described network equipment, whether judges described terminalMeet default update condition;
This push unit 16 is configured to, and when described terminal meets default update condition, generates described transaction filePUSH message also sends to described terminal.
In the time that terminal utilizes this device to carry out file update, just can directly from the network equipment, obtain in advance from serverThe transaction file of having downloaded, and without upgrade in directly from server down loading updating file, in correlation technique,Terminal is directly compared from server down loading updating file in the time of file update, owing to can not from network equipment down loading updating fileBe limited to the limit bandwidth between the network equipment and server, terminal can download to transaction file fast from the network equipment,Especially the larger situation of transaction file, therefore can reduce stand-by period of down loading updating file, makes file in terminalThe time of upgrading shortens greatly, has promoted the renewal efficiency of file in terminal.
In embodiment of this disclosure, as shown in Figure 8, this renewal monitoring means 11 can comprise: address acquisitionSubelement 101, the first request generate subelement 102, the first request sends subelement 103, the first response message receptionUnit 104 and first upgrades determines subelement 105, wherein,
This address acquisition subelement 101 is configured to, and obtains the renewal chained address of storing in the described network equipment, described inUpgrade chained address and point at least one file destination in described server;
This first request generates subelement 102 and is configured to, and generation carries the renewal detection of described renewal chained address and asksAsk;
This first request sends subelement 103 and is configured to, and the renewal that carries described renewal chained address is detected to requestSend to described server;
This first response message receives subelement 104 and is configured to, and receives described server and detects request according to described renewalThe response message sending, includes the file identification of transaction file in described response message;
This first renewal determines that subelement 105 is configured to, and determines the file in described server and in described response messageIdentifying corresponding file destination upgrades.
This device that disclosure embodiment provides is built-in with in advance and upgrades chained address in the network equipment, and then network is establishedStandby according to these renewal chained addresses, the update status of the file destination of setting in access services device, and when in serverFile destination while having renewal, the transaction file of downloading object file from server in advance, the network equipment just like thisCan carry out prestrain to the transaction file of some specific files, and then work as terminal and need to carry out more these file destinationsWhen new, can, directly from the quick-downloading transaction file of this network equipment, be convenient to terminal and upgrade fast.
In another embodiment of the disclosure, as shown in Figure 9, this renewal monitoring means 11 can comprise: fileinfo obtainsGet subelement 111, the second request generation subelement 112, the second request transmission subelement 113, the second response message receptionSubelement 114 and second upgrades determines subelement 115, wherein,
This file acquisition of information subelement 111 is configured to, and obtains fileinfo pre-stored in the described network equipment,Described fileinfo at least comprises: file identification and local version identifier, described fileinfo is that the described network equipment is at endWhen the described network equipment of the historical access of end, in described terminal, acquire;
This second request generates subelement 112 and is configured to, and generates the renewal detection request that carries described fileinfo;
This second request sends subelement 113 and is configured to, and the renewal that carries described fileinfo is detected to request ConcurrencyGive described server;
This second response message receives subelement 114 and is configured to, and receives described server and detects request according to described renewalThe response message sending, includes in described server version identifier higher than described local version identifier in described response messageFile identification;
This second renewal determines that subelement 115 is configured to, and determines the file in described server and in described response messageIdentifying corresponding file destination upgrades.
Compared with embodiment illustrated in fig. 8, scheme embodiment illustrated in fig. 8 can only be to the more new url of setting in the network equipmentFile destination corresponding to address upgrades, and this mode is relatively limited to, and this device that disclosure embodiment provides, canBy carrying out interaction with terminal, and then read the file that terminal has been installed with in advance, for example: operating system, applicationThe TV plays that software, user have seen etc., when terminal disconnects with after being connected of the network equipment, the network equipment can be accessed like thisWhether the file of having installed in terminal in server upgrades, after upgrading, the network equipment can be in advance from server underCarry corresponding transaction file, when terminal is again after access network device, just direct down loading updating literary composition from the network equipmentPart, and upgrading in time, and without down loading updating file from server temporarily again.
In another embodiment of the disclosure, as shown in figure 10, this terminal judges unit 15 can comprise: facility informationObtain subelement 151, facility information judgment sub-unit 152 and first terminal and determine subelement 153, wherein,
This apparatus information acquiring subelement 151 is configured to, and obtains the facility information of described terminal, described facility information bagDraw together: device type and/or recognition of devices mark;
This facility information judgment sub-unit 152 is configured to, and judges whether the facility information of described terminal is default equipment letterBreath;
This first terminal determines that subelement 153 is configured to, and in the time that described facility information is default facility information, determines instituteState terminal and meet default update condition.
In another embodiment of the disclosure, as shown in figure 11, this terminal judges unit 15 can comprise: file detectsSubelement 154, the first mark are obtained subelement 155, the second mark is obtained subelement 156, version judgment sub-unit 157Determine subelement 158 with the second terminal, wherein,
This file detection sub-unit 154 is configured to, and detects that whether described file destination is installed in described terminal is correspondingFile;
This first mark is obtained subelement 155 and is configured to, when the literary composition that described file destination is corresponding is installed in described terminalWhen part, obtain the local version identifier of the file of installing in described terminal;
This second mark is obtained subelement 156 and is configured to, and obtains the renewal of described file destination from described transaction fileVersion identifier;
This version judgment sub-unit 157 is configured to, and judges that whether version that described renewal version identifier is corresponding is higher than describedVersion corresponding to local version identifier;
This second terminal determines that subelement 158 is configured to, when version corresponding to described renewal version identifier is higher than describedWhen version corresponding to ground version identifier, determine that described terminal meets default update condition.
In another embodiment of the disclosure, as shown in figure 12, this device can also comprise: upgrade operation detection unit17 and transaction file transmitting element 18, wherein,
This renewal operation detection unit 17 is configured to, and whether detection receives described terminal is sent out according to described PUSH messageThe renewal operation of sending;
This transaction file transmitting element 18 is configured to, and sends more according to described PUSH message when receiving described terminalWhen new operation, described transaction file is sent to described terminal, so that described terminal utilizes described transaction file in terminalThe file of installing upgrades.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations is in relevant the methodIn embodiment, have been described in detail, will not elaborate explanation herein.
Figure 13 is according to the block diagram of a kind of equipment 1900 for file update shown in an exemplary embodiment. For example,Equipment 1900 may be provided in a network equipment, for example router. With reference to Figure 13, equipment 1900 comprises processing components1922, it further comprises one or more processors, and by the memory resource of memory 1932 representatives, forStorage can for example, by the instruction of the execution of processing components 1922, application program. The application program of storage in memory 1932Can comprise one or more each module corresponding to one group of instruction. Equipment 1900 can also comprise an electricitySource component 1926 is configured to the power management of actuating equipment 1900, and a wired or wireless network interface 1950 is configuredFor equipment 1900 is connected to network, and input and output (I/O) interface 1958. Equipment 1900 can operate baseIn the operating system that is stored in memory 1932, for example WindowsServerTM, MacOSXTM, UnixTM, LinuxTM,FreeBSDTM or similar.
In addition, processing components 1922 is configured to carry out instruction, to carry out a kind of file updating method, and described method bagDraw together:
Whether monitor server internal object file upgrades;
In the time that described server internal object file has upgraded, from described server, obtain corresponding with described file destinationTransaction file, and be stored in the described network equipment;
Whether detect has terminal to access the described network equipment;
In the time having terminal to access the described network equipment, judge whether described terminal meets default update condition;
In the time that described terminal meets default update condition, generate the PUSH message of described transaction file and send to described endEnd.
Those skilled in the art are considering description and putting into practice after invention disclosed herein, will easily expect of the present invention otherEmbodiment. The application is intended to contain any modification of the present invention, purposes or adaptations, these modification, purposesOr adaptations is followed general principle of the present invention and is comprised undocumented in the art known normal of the disclosureKnow or conventional techniques means. Description and embodiment are only regarded as exemplary, true scope of the present invention and spirit by underThe claim of face is pointed out.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, andCan carry out various amendments and change not departing from its scope. Scope of the present invention is only limited by appended claim.

Claims (13)

1. a file updating method, is applied to the network equipment, it is characterized in that, the method comprises:
Whether monitor server internal object file upgrades;
In the time that described server internal object file has upgraded, from described server, obtain corresponding with described file destinationTransaction file, and be stored in the described network equipment;
Whether detect has terminal to access the described network equipment;
In the time having terminal to access the described network equipment, judge whether described terminal meets default update condition;
In the time that described terminal meets default update condition, generate the PUSH message corresponding with described transaction file and send to instituteState terminal.
2. method according to claim 1, is characterized in that, whether described monitor server internal object fileUpgrade, comprising:
Obtain the renewal chained address of storing in the described network equipment, described renewal chained address is pointed in described server extremelyA few file destination;
Generation carries the renewal detection request Concurrency of described renewal chained address and gives described server;
Receive described server and detect according to described renewal the response message that request sends, in described response message, includeThe file identification of transaction file;
Determine that the corresponding file destination of described server file identification interior and in described response message upgrades.
3. method according to claim 1, is characterized in that, in described monitor server, whether default fileUpgrade, comprising:
Obtain fileinfo pre-stored in the described network equipment, described fileinfo at least comprises: file identification and basisGround version identifier, described fileinfo is the described network equipment in the time of the described network equipment of the historical access of terminal from described terminalInside acquire;
Generation carries the renewal detection request Concurrency of described fileinfo and gives described server;
Receive described server and detect according to described renewal the response message that request sends, in described response message, comprise to some extentState in server version identifier higher than the file identification of described local version identifier;
Determine that the corresponding file destination of described server file identification interior and in described response message upgrades.
4. method according to claim 1, is characterized in that, describedly judges that whether described terminal meets default renewalCondition, comprising:
Obtain the facility information of described terminal, described facility information comprises: device type and/or recognition of devices mark;
Whether the facility information that judges described terminal is default facility information;
In the time that described facility information is default facility information, determine that described terminal meets default update condition.
5. according to the method described in claim 1 or 4, it is characterized in that, described to judge that whether described terminal meets defaultUpdate condition, comprising:
Detect whether the file that described file destination is corresponding is installed in described terminal;
In the time that file corresponding to described file destination is installed in described terminal, obtain the basis of the file of installing in described terminalGround version identifier;
From described transaction file, obtain the renewal version identifier of described file destination;
Judge that whether version that described renewal version identifier is corresponding is higher than version corresponding to described local version identifier;
When version corresponding to described renewal version identifier is during higher than version corresponding to described local version identifier, determine described endEnd meets default update condition.
6. method according to claim 1, is characterized in that, described method also comprises:
Detect and whether receive the renewal operation that described terminal sends according to described PUSH message;
In the time receiving the renewal operation that described terminal sends according to described PUSH message, described transaction file is sent to instituteState terminal, so that described terminal utilizes described transaction file to upgrade the file of installing in terminal.
7. a file update device, is applied to the network equipment, it is characterized in that, this device comprises:
Upgrade monitoring means, whether upgrade for monitor server internal object file;
Transaction file acquiring unit, in the time that described server internal object file has upgraded, from described server underCarry the transaction file corresponding with described file destination;
Transaction file memory cell, for being stored in the described network equipment by described transaction file;
Whether terminal detecting unit, for detection of having terminal to access the described network equipment;
Terminal judges unit, in the time having terminal to access the described network equipment, judge described terminal whether meet default moreNew Terms;
Push unit, in the time that described terminal meets default update condition, generates the PUSH message of described transaction file alsoSend to described terminal.
8. device according to claim 7, is characterized in that, described renewal monitoring means, comprising:
Address acquisition subelement, the renewal chained address of storing for obtaining the described network equipment, described more new url groundAt least one file destination in described server is pointed in location;
The first request generates subelement, and the renewal that carries described renewal chained address for generating detects request;
The first request sends subelement, described in the renewal detection request that carries described renewal chained address is sent toServer;
The first response message receives subelement, detects the response that request sends for receiving described server according to described renewalMessage, includes the file identification of transaction file in described response message;
First upgrades definite subelement, corresponding with the file identification in described response message for determining in described serverFile destination upgrade.
9. device according to claim 7, is characterized in that, described renewal monitoring means, comprising:
Fileinfo obtains subelement, for obtaining the pre-stored fileinfo of the described network equipment, and described file letterBreath at least comprises: file identification and local version identifier, described fileinfo is that the described network equipment is in the historical access of terminalWhen the described network equipment, in described terminal, acquire;
The second request generates subelement, and the renewal that carries described fileinfo for generating detects request;
The second request sends subelement, gives described clothes for the renewal that carries described fileinfo is detected to request ConcurrencyBusiness device;
The second response message receives subelement, detects the response that request sends for receiving described server according to described renewalMessage, includes in described server version identifier higher than the file identification of described local version identifier in described response message;
Second upgrades definite subelement, corresponding with the file identification in described response message for determining in described serverFile destination upgrade.
10. device according to claim 7, is characterized in that, described terminal judges unit, comprising:
Apparatus information acquiring subelement, for obtaining the facility information of described terminal, described facility information comprises: equipment classType and/or recognition of devices mark;
Whether facility information judgment sub-unit is default facility information for the facility information that judges described terminal;
First terminal is determined subelement, in the time that described facility information is default facility information, determines that described terminal meetsDefault update condition.
11. according to the device described in claim 7 or 10, it is characterized in that, described terminal judges unit, comprising:
File detection sub-unit, for detection of whether the file that described file destination is corresponding is installed in described terminal;
The first mark is obtained subelement, in the time that file corresponding to described file destination is installed in described terminal, obtainsThe local version identifier of the file of installing in described terminal;
The second mark is obtained subelement, for obtain the renewal version identifier of described file destination from described transaction file;
Version judgment sub-unit, for judging that whether version that described renewal version identifier is corresponding is higher than described local version markKnow corresponding version;
The second terminal is determined subelement, for when version corresponding to described renewal version identifier is higher than described local version identifierWhen corresponding version, determine that described terminal meets default update condition.
12. methods according to claim 7, is characterized in that, described device also comprises:
Upgrade operation detection unit, for detection of whether receiving described terminal according to the renewal behaviour of described PUSH message transmissionDo;
Transaction file transmitting element, in the time receiving the renewal operation that described terminal sends according to described PUSH message,Described transaction file is sent to described terminal, so that described terminal utilizes described transaction file to the file of installing in terminalUpgrade.
13. 1 kinds of equipment, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Whether monitor server internal object file upgrades;
In the time that described server internal object file has upgraded, from described server, obtain corresponding with described file destinationTransaction file, and be stored in the described network equipment;
Whether detect has terminal to access the described network equipment;
In the time having terminal to access the described network equipment, judge whether described terminal meets default update condition;
In the time that described terminal meets default update condition, generate the PUSH message of described transaction file and send to described terminal.
CN201410575462.6A 2014-10-24 2014-10-24 File updating method and device, and equipment Pending CN105589705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410575462.6A CN105589705A (en) 2014-10-24 2014-10-24 File updating method and device, and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410575462.6A CN105589705A (en) 2014-10-24 2014-10-24 File updating method and device, and equipment

Publications (1)

Publication Number Publication Date
CN105589705A true CN105589705A (en) 2016-05-18

Family

ID=55929312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410575462.6A Pending CN105589705A (en) 2014-10-24 2014-10-24 File updating method and device, and equipment

Country Status (1)

Country Link
CN (1) CN105589705A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309106A (en) * 2019-05-27 2019-10-08 深圳市好成绩网络科技有限公司 Method, apparatus, electronic equipment and the computer storage medium that file updates
CN110430253A (en) * 2019-07-30 2019-11-08 上海连尚网络科技有限公司 It is a kind of that the method and apparatus of novel update notification information is provided
CN111190630A (en) * 2020-01-02 2020-05-22 竞技世界(北京)网络技术有限公司 Terminal application updating method and server
CN111858085A (en) * 2020-06-12 2020-10-30 贝壳技术有限公司 Model file exporting method and device
CN112751917A (en) * 2020-12-28 2021-05-04 锐捷网络股份有限公司 Resource file loading method, network device, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841536A (en) * 2010-04-01 2010-09-22 深圳英飞拓科技股份有限公司 Remote automatic upgrading method for digital monitoring equipment
CN102291742A (en) * 2011-08-18 2011-12-21 中兴通讯股份有限公司 Method and device for updating version of wireless routing equipment
CN102314369A (en) * 2011-10-09 2012-01-11 杭州先锋电子技术股份有限公司 Self-upgrade method for equipment in remote online monitoring system
CN103838609A (en) * 2014-03-10 2014-06-04 广州金山网络科技有限公司 Method and system for automatically monitoring software updating

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841536A (en) * 2010-04-01 2010-09-22 深圳英飞拓科技股份有限公司 Remote automatic upgrading method for digital monitoring equipment
CN102291742A (en) * 2011-08-18 2011-12-21 中兴通讯股份有限公司 Method and device for updating version of wireless routing equipment
CN102314369A (en) * 2011-10-09 2012-01-11 杭州先锋电子技术股份有限公司 Self-upgrade method for equipment in remote online monitoring system
CN103838609A (en) * 2014-03-10 2014-06-04 广州金山网络科技有限公司 Method and system for automatically monitoring software updating

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309106A (en) * 2019-05-27 2019-10-08 深圳市好成绩网络科技有限公司 Method, apparatus, electronic equipment and the computer storage medium that file updates
CN110430253A (en) * 2019-07-30 2019-11-08 上海连尚网络科技有限公司 It is a kind of that the method and apparatus of novel update notification information is provided
CN111190630A (en) * 2020-01-02 2020-05-22 竞技世界(北京)网络技术有限公司 Terminal application updating method and server
CN111190630B (en) * 2020-01-02 2023-06-16 竞技世界(北京)网络技术有限公司 Updating method of terminal application and server
CN111858085A (en) * 2020-06-12 2020-10-30 贝壳技术有限公司 Model file exporting method and device
CN112751917A (en) * 2020-12-28 2021-05-04 锐捷网络股份有限公司 Resource file loading method, network device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US10169026B2 (en) Transferring operating environment of registered network to unregistered network
CN105589705A (en) File updating method and device, and equipment
EP3541043A1 (en) Account login method and apparatus
CN108810594A (en) Remote screen projection method, device and system
US20120254309A1 (en) Information processing apparatus and method, electronic device and control method thereof, and log collection system
CN104539977A (en) Live broadcast previewing method and device
KR20120089000A (en) Apparatus and method for providing application auto install function in digital device
US10097895B2 (en) Content providing apparatus, system, and method for recommending contents
CN105302601A (en) System and method for software upgrade server
US20130185424A1 (en) Apparatus, method and system for managing event information
US20160019046A1 (en) Light app offline updating method, device and terminal
CN105260082A (en) Display method for test data and development terminal
CN113010395A (en) Data acquisition method, apparatus, device, medium, and program product
EP2950559A1 (en) Communication apparatus, control method thereof, and program
CN105631715A (en) Advertisement updating supervision method and device
CN105488200A (en) Webpage display method and device
CN104780408B (en) A kind of Intelligent television control method and system based on intelligent terminal
KR101744696B1 (en) Method, device, program and recording medium for filtering information
CN104506526A (en) Hunting camera, and method, system and background system for monitoring hunting camera
CN115665450A (en) Video update pushing method and terminal
CN106230948A (en) Service end and advertisement pushing device and method
CN112764838A (en) Target content display method and device and electronic equipment
CN112689170A (en) Content playing method of display terminal, display terminal and readable storage medium
CN106060124A (en) Application program downloading method and mobile terminal
CN110309477A (en) Page access path acquisition method

Legal Events

Date Code Title Description
C06 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: 20160518

RJ01 Rejection of invention patent application after publication