Embodiment
Below in conjunction with accompanying drawing specific embodiment of the present invention is elaborated.
Fig. 1 is that as shown in the figure, this flow process comprises according to the schematic flow diagram of the UPnP apparatus upgrading method of first embodiment of the invention:
Step S101 obtains the information that the description document of said UPnP equipment comprises, and this information comprises the upgrade server address information;
Step S102 according to said address information, detects said UPnP equipment and whether meets promotion condition, if do not meet, then repeating step S102 if meet, then gets into step S103;
Step S103 when detecting said UPnP equipment and meet promotion condition, notifies said UPnP equipment to upgrade.
In the present embodiment; Can obtain the description document (comprising device description file or service description file) of UPnP equipment earlier through the discovery mechanism of for example UPnP; With the acquisition descriptor, and then obtain the information that comprises in this descriptor, this information comprises UPnP apparatus upgrading server address information; DownloadURL information for example, this DownloadURL information is the address information of UPnP apparatus upgrading server.Can be connected to specified upgrade server according to DownloadURL information; And detect said UPnP equipment and whether meet promotion condition; For example, when detecting the existence upgrade file higher on this upgrade server, then notify UPnP equipment to upgrade than the FileVersion of the current use of UPnP equipment; Otherwise this testing process finishes, and waits for when connect upgrade server next time and detecting once more.
In another embodiment, the information that comprises of the said description document of obtaining also comprises the unit type information and the version information of said UPnP equipment.After in above-mentioned steps S101, obtaining the description document of UPnP equipment; And then obtain the information such as DownloadURL information, unit type and version information of UPnP equipment; Then in step S102; Be connected on the upgrade server according to said address information DownloadURL, and detect the upgrade file that whether exists unit type information and version information with said UPnP equipment to be complementary on this upgrade server, when on detecting this upgrade server, existing with the unit type of UPnP equipment and upgrade file that version number is complementary; Promptly detect the upgrade file that meets this UPnP unit type; And upgrade file is newer than the current suitable version of UPnP equipment, then obtains the URL (Uniform Resource Locator, uniform resource locator) of upgrade file; Notice UPnP equipment is upgraded, and comprises the URL of upgrade file in the notice; Otherwise this testing process finishes, and waits for when connect upgrade server next time and detecting once more.
In another embodiment; Information in the said description document of being obtained also is included in the UPnP apparatus upgrading sense cycle information that increases in this description document; DetectPeriod information for example; After then in above-mentioned steps S101, obtaining the description document of UPnP equipment; And then can obtain information such as the DownloadURL of UPnP equipment, the sense cycle of upgrading; Then in step S102 according to the value of address information D ownloadURL with upgrading sense cycle DetectPeriod, regularly be connected to the specified upgrade server of DownloadURL, can wait to detect whether there is qualified UPnP apparatus upgrading file on the upgrade server according to the unit type information and the version information of for example UPnP equipment.If there is not qualified upgrade file, testing process finishes so, waits for that the DetectPeriod time connects upgrade server once more afterwards and detects; If there is qualified upgrade file, then notify UPnP equipment to upgrade.
In the present embodiment; If when being connected with the upgrade server of UPnP; The upgrade server of UPnP needs authentication; So also can increase authentication information in description document, for example Username and Password information, the information in the description document of the UPnP equipment that then in above-mentioned steps S101, is obtained also comprises the Username and the Password information of UPnP equipment; In step S102, accept earlier the authentication of the upgrade server of UPnP then according to Username and Password information, authentication through after be connected to operations such as the specified upgrade server of DownloadURL detects.In the present embodiment, the description document of UPnP equipment can comprise one or two in authentication information and the upgrading sense cycle information.For example, the device description file of a UPnP equipment in the present embodiment can adopt the form of XML file as follows:
<root?xmlns=″urn:schemas-upnp-org:device-1-0″>
<device>
…
<downloadURL>The address of device upgrade server</DownloadURL>
<detectPeriod>The redaction sense cycle</DetectPeriod>
<username>User name is used in authentication</Username>
<password>Password is used in authentication</Password>...
</device>
</root>
In one embodiment of the invention, can realize the auto-update of the UPnP equipment in the home network through control appliances such as for example access devices.UPnP equipment is home network device, and what adopt in the home network is the UPnP agreement, can be through access devices such as home gateways for example as control appliance, thus make the software of UPnP equipment be convenient to upgrading.Access device is the equipment that home network device is kept watch on and managed; It directly is connected with external network, has remote management capability and remote upgrade function, for UPnP equipment; The function that has the UPnP control point in the access device, so access device can be used as control appliance.
In another embodiment of the present invention, the said step of notifying said UPnP equipment to upgrade among the step S103 as shown in Figure 1 specifically comprises: notify said UPnP equipment to download said upgrade file from said upgrade server and upgrade.In the present embodiment, be used for notifying the message of UPnP device downloads upgrade file to comprise the positional information of the upgrade file of redaction, UPnP equipment can directly be downloaded the upgrade file of redaction according to this positional information from upgrade server through control appliance.
Fig. 2 is the schematic flow diagram according to the UPnP apparatus upgrading method of second embodiment of the invention, and is as shown in the figure, and this flow process is on the basis of flow process shown in Figure 1, and the step of upgrading at the notice UPnP of step S103 equipment specifically also comprises:
Step S1031 downloads said upgrade file from said upgrade server;
Step S1032, the upgrade file of notifying said UPnP equipment to obtain said download is upgraded.
In the present embodiment; When detecting the upgrade file that has redaction on the upgrade server; Can download to the redaction upgrade file of UPnP equipment on the control appliance through FTP or http protocol earlier from the URL of said upgrade file, carry out the upgrading of UPnP equipment self thereby download the redaction file from control appliance by control appliance notice UPnP equipment.
Fig. 3 is the schematic flow diagram according to the UPnP apparatus upgrading method of third embodiment of the invention.As shown in the figure, this flow process comprises:
Step S301, control appliance obtain the description document of said UPnP equipment;
Step S302, Automatic Configuration Server ACS obtains the information relevant with the UPnP device upgrade that said description document comprises from said control appliance, and this information comprises the upgrade server address information;
Step S303, whether said ACS meets promotion condition according to the said UPnP equipment of said address detected, if do not meet, then returns step S303, if meet, then continues execution in step S304;
Step S304, said ACS indication control appliance notifies said UPnP equipment to upgrade.
In the present embodiment; Can be through access devices such as for example home gateways as control appliance; At UPnP equipment with after control appliance is connected; Control appliance obtains the description document of UPnP equipment through the discovery mechanism of UPnP; Thereby obtain the descriptor that this description document comprises, can comprise the upgrade informations such as DownloadURL (upgrade server address), DetectPeriod (sense cycle), Username (user name is used in authentication), Passwrod (password is used in authentication), unit type information and version number information of UPnP equipment in this descriptor, and these information configuration in the data model of control appliance.ACS can obtain these information of UPnP equipment through the GetParameterValues RPC order of TR-069 agreement from control appliance.
ACS can be according to the value of DetectPeriod; Regularly be connected to the specified upgrade server of DownloadURL; Detect UPnP equipment and whether meet promotion condition; For example, detect the new upgrade file that whether exists unit type information and version information with UPnP equipment to be complementary on this upgrade server.If there is qualified upgrade file; Then ACS obtains the URL of upgrade file; And indication control appliance notice UPnP equipment upgrades, and for example, ACS indication control appliance is through FTP or http protocol this upgrade file of URL download from upgrade file; Control appliance notice UPnP equipment is downloaded upgrade file from control appliance then, and perhaps ACS indication control appliance notice UPnP equipment obtains this upgrade file from the URL of upgrade file and upgrades.There is not qualified upgrade file on the upgrade server if detection is learnt, connects the upgrade file that upgrade server detects redaction once more after then ACS waits for the DetectPeriod time.
In the present embodiment, utilize ACS and control appliance to come UPnP equipment is carried out auto-update,, make that UPnP equipment is easy to upgrade more in conjunction with the advantage of control appliance and ACS.
Fig. 4 is the structural representation according to the UPnP apparatus upgrading control device of fourth embodiment of the invention.As shown in the figure, this control appliance comprises:
Acquisition module 1 is used to obtain the information that the description document of said UPnP equipment comprises, and this information comprises the upgrade server address information;
Detection module 2 is used for detecting said UPnP equipment according to the said address information that said acquisition module 1 obtains and whether meets promotion condition;
Executive Module 3 is used for when detection module 2 detects said UPnP equipment and meets promotion condition, notifying said UPnP equipment to upgrade.
In the present embodiment; Can obtain the description document (comprising device description file or service description file) of UPnP equipment earlier through the discovery mechanism of for example UPnP by acquisition module 1; To obtain descriptor; And then obtain the one or more information that comprise UPnP apparatus upgrading server address information that comprise in this descriptor, and DownloadURL information for example, this DownloadURL information is the address information of upgrade server.Be connected to specified upgrade server by detection module 2 according to DownloadURL information; And whether detection UPnP equipment meets promotion condition; For example; When detecting the existence upgrade file higher than the FileVersion of the current use of UPnP equipment on this upgrade server, then Executive Module 3 notice UPnP equipment are upgraded, if there is not version to be higher than the upgrade file of the current use file of this UPnP equipment; Then this testing process finishes, and detects once more when waiting for detection module connection 2 next time upgrade server.
In another embodiment, the information that comprises of the description document of the said UPnP equipment that obtains of said acquisition module 1 also comprises the unit type information and the version information of UPnP equipment.After thereby acquisition module 1 obtains the description document of UPnP equipment, can obtain the information such as DownloadURL information, unit type information and version information of UPnP equipment.Detection module 2 is connected on the upgrade server according to said address information DownloadURL then; And detect the upgrade file that whether exists unit type information and version information with said UPnP equipment to be complementary on this upgrade server; When on detecting this upgrade server, existing with the unit type of UPnP equipment and upgrade file that version number is complementary; Promptly detect the upgrade file that meets this UPnP unit type, and upgrade file is newer than the current suitable version of UPnP equipment, then obtains the URL of upgrade file; Notice UPnP equipment is upgraded, and comprises the URL of upgrade file in the notice; Otherwise this testing process finishes, and waits for when connect upgrade server next time and detecting once more.
In another embodiment; The information that the said description document that said acquisition module 1 obtains comprises also comprises said UPnP apparatus upgrading sense cycle information; DetectPeriod information for example; Then acquisition module 1 is after the description document of obtaining UPnP equipment; Can obtain information such as the DownloadURL of UPnP equipment, the sense cycle of upgrading; Detection module 2 regularly is connected to the specified upgrade server of DownloadURL according to the value of address information D ownloadURL with upgrading sense cycle information D etectPeriod then, can wait to detect whether there is qualified UPnP apparatus upgrading file on the upgrade server according to the unit type information and the version information of for example UPnP equipment.If there is not qualified upgrade file, testing process finishes so, connects upgrade server once more after detection module 2 is waited for the DetectPeriod time and detects; If there is qualified upgrade file, then Executive Module 3 notice UPnP equipment are upgraded.
In another embodiment of the present invention; Said Executive Module 3 specifically is used for detecting when having above-mentioned qualified upgrade file on the said upgrade server when detection module 2, notifies said UPnP equipment to download said upgrade file through control appliance from said upgrade server and upgrades.In the present embodiment, be used for notifying the message of UPnP device downloads upgrade file to comprise the positional information of the upgrade file of redaction, UPnP equipment can directly be downloaded the upgrade file of redaction according to this positional information from upgrade server through control appliance.
In another embodiment of the present invention; Said Executive Module 3 specifically is used for; When detection module 2 detects when having said qualified upgrade file on the said upgrade server; Download said upgrade file from said upgrade server, and the upgrade file of notifying said UPnP equipment to obtain said download is upgraded.In the present embodiment; Detection module 2 detects when having qualified upgrade file on the upgrade server; Executive Module 3 can be downloaded this upgrade file through FTP or http protocol from the URL of said upgrade file, thereby notifies UPnP equipment to obtain the upgrading that this upgrade file carries out the UPnP equipment self from control appliance then.
Among above-mentioned each embodiment, can realize the auto-update of the UPnP equipment in the home network, thereby make UPnP equipment be convenient to carry out the version updating of file or program through access devices such as for example home gateways as control appliance.
Fig. 5 is the structural representation according to the UPnP apparatus upgrading control system of fifth embodiment of the invention.As shown in the figure, the control system of present embodiment comprises control appliance and Automatic Configuration Server ACS.
Said ACS comprises:
First acquisition module 6 is used for obtaining the information that the description document of said UPnP equipment comprises from said control appliance, and this information comprises the upgrade server address information;
Detection module 7 is used for detecting said UPnP equipment according to the said address information that said first acquisition module 6 obtains and whether meets promotion condition;
First Executive Module 8 is used for when detection module 7 detects said UPnP equipment and meets promotion condition, indicating second Executive Module of said control appliance to notify said UPnP equipment to upgrade;
Said control appliance comprises:
Second acquisition module 4 is used to obtain the description document of said UPnP equipment;
Second Executive Module 5 after being used to receive the indication of said first Executive Module, notifies said UPnP equipment to upgrade.
In the present embodiment; Can obtain the description document (comprising device description file or service description file) of UPnP equipment earlier through the discovery mechanism of for example UPnP by second acquisition module 4; With the acquisition descriptor, and then obtain the information relevant that comprises in this descriptor, comprise the upgrade server address information in this information with the UPnP device upgrade; DownloadURL information for example, this DownloadURL information is the address information of upgrade server.Obtain said upgrade server address information by first acquisition module 6 from control appliance; Be connected to specified upgrade server by detection module 7 according to DownloadURL information then; And detect said UPnP equipment and whether meet promotion condition, for example detect whether there is qualified UPnP apparatus upgrading file on this upgrade server.There is qualified upgrade file on the upgrade server if detection module 7 detects, then upgrades by first Executive Module, 8 indications, second Executive Module, 5 notice UPnP equipment; Do not have qualified upgrade file if detection module 7 detects, then this testing process finishes, and detection module 7 waits for when connect upgrade server next time detecting whether there is upgrade file once more.
In another embodiment; The information that the description document of the said UPnP equipment that said second acquisition module 4 obtains comprises also comprises the unit type information and the version information of UPnP equipment; After thereby second acquisition module 4 obtains the description document of UPnP equipment; Can obtain the information such as DownloadURL, unit type information and version information of UPnP equipment, first acquisition module 6 obtains above-mentioned each information from second acquisition module 4 subsequently.Detection module 7 is connected on the upgrade server according to said address information DownloadURL then; And detect the upgrade file that whether exists unit type information and version information with said UPnP equipment to be complementary on this upgrade server; When on detecting this upgrade server, existing with the unit type of UPnP equipment and upgrade file that version number is complementary; Promptly detect the upgrade file that meets this UPnP unit type; And upgrade file is newer than the current suitable version of UPnP equipment, and then first Executive Module 8 obtains the URL (Uniform Resource Locator, uniform resource locator) of upgrade file; Indicate second Executive Module, 5 notice UPnP equipment to upgrade, comprise the URL of upgrade file in the notice; Otherwise this testing process finishes, and waits for when connect upgrade server next time and detecting once more.
In another embodiment; The information that the said description document that said second acquisition module 4 obtains comprises also comprises said UPnP apparatus upgrading sense cycle information D etectPeriod; Then second acquisition module 4 is after the description document of obtaining UPnP equipment; Can obtain information such as the DownloadURL of UPnP equipment, the sense cycle of upgrading information; First acquisition module 6 obtains above-mentioned each information from second acquisition module 4; Detection module 7 regularly is connected to the specified upgrade server of DownloadURL according to the value of address information D ownloadURL with upgrading sense cycle information D etectPeriod then, can wait according to the unit type information of for example UPnP equipment and version information and detect the new upgrade file that whether has qualified UPnP equipment on the upgrade server.If there is not qualified upgrade file, testing process finishes so, connects upgrade server once more after detection module 7 is waited for the DetectPeriod time and detects; If there is qualified upgrade file, then first Executive Module 8 obtains the URL of upgrade file, and indicates second Executive Module, 5 notice UPnP equipment to upgrade.
In another embodiment, after second Executive Module 5 specifically is used to receive the indication of first Executive Module 8, notifies said UPnP equipment to download said upgrade file and upgrade from the URL of said upgrade file.In addition; After second Executive Module 5 can also specifically be used to receive the indication of said first Executive Module 8; Download said upgrade file from the URL of said upgrade file, and notify said UPnP equipment to upgrade from the upgrade file that control appliance obtains said download.In the present embodiment, can select different modes that UPnP equipment is upgraded as required, make method of the present invention have more flexibility.
In the foregoing description; Utilize ACS and control appliance to come UPnP equipment is carried out auto-update; In conjunction with the advantage of control appliance and ACS, can realize the auto-update of the UPnP equipment in the home network, thereby make UPnP equipment be convenient to carry out the version updating of file or program.
Previous embodiment and advantage are exemplary, can not be interpreted as limitation of the present invention.This specification is intended to explain technical purpose of the present invention, scheme and effect, and the protection range of unrestricted claim.Under the situation that does not depart from essence of the present invention; The present invention may be embodied as various ways; The embodiment that more than describes does not receive the restriction of any details of front description; And should in the defined scope of accessory claim book, explain widely, so all interior variation and changes of boundary equivalent interior or this boundary that fall into claims all will be covered by accessory claim.