Embodiment
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Embodiment one
The embodiment of the invention provides a kind of approaches to IM of proxied device, when proxied device (below be referred to as " equipment ") when reaching the standard grade, agent equipment (below be referred to as " gateway ") is mapped in the gateway data model by the data model of protocol conversion with equipment.And be described according to the data model after the mapping, generate description document.Gateway provides this description document to server, and server obtains device capability information from the description document that gateway provides.
As shown in Figure 1, the flow chart of the approaches to IM of a kind of proxied device that provides for the embodiment of the invention is used for making the ac server of DSL network to obtain the information of terminal equipment, and this method is applied to the agent equipment (gateway) in the DSL network, comprising:
Step 101 is obtained the ability information of proxied device;
Described proxied device is the proxied device in the DSL network, refers to not meet the proxied device of CWMP consensus standard especially.
Step 102 is mapped to the ability information of described proxied device in the data model of agent equipment.
Step 103, according to the data model generation description document of described agent equipment, this description document is used for describing the data model of described agent equipment;
This description document is the file type that server can be resolved.
Step 104 reports described description document to server.
Because server can be resolved description document, so can obtain device capability information according to the device capability information description document that gateway provides.
Wherein, described facility information comprises: one or more in the administration order that parameter name, parameter type, parameter value scope, parameter default, proxied device are supported.
As shown in Figure 2, by the above embodiment of the present invention, can make the server in the DSL network obtain the details of proxied device to be configured and to manage.
Embodiment two
The integrated stand composition of the approaches to IM of the proxied device that the embodiment of the invention provides as shown in Figure 3, Automatic Configuration Server ACS can directly pass through CWMP consultative management home gateway (IGD); For can't directly accepting the CWMP consultative management but with non-TR-069 equipment such as other IP device of home gateway networking or non-IP device, ACS acts on behalf of by home gateway, to at first send to home gateway to the administration configuration order of these non-TR-069 equipment, after home gateway receives these orders, be converted into the understandable order of non-TR-069 equipment, and send to TR-069 equipment, thereby realize the management of ACS to non-TR-069 equipment.
As shown in Figure 4, the approaches to IM flow chart of a kind of proxied device that provides for the embodiment of the invention, wherein, this method comprises:
Step 1: equipment is reached the standard grade, and gateway obtains the device capability information data model;
Be example with a UPnP (Universal Plug and Play, UPnP) equipment in the present embodiment.
Wherein, can send the SSDP:alive broadcast when equipment is reached the standard grade in UPnP, the control point (Control Point) that is deployed on the gateway will obtain the notice that equipment is reached the standard grade.
Control point on the gateway can be moved the XML that (action) obtain ability information in the data model that equipment supports by GetSupportedDataModel and be described, and this ability information for example comprises: the administration order that parameter name, parameter type, parameter value scope, parameter default, proxied device are supported.
For example:
<?xml?version=″1.0″encoding=″UTF-8″?>
<CMS?xmlns:xsi=″http://www.w3.org/2001/XMLSchema-instance″
xsi:noNamespaceSchemaLocation=″CMS.xsd″>
<StructurePathList>
<StructurePath>
/LAN/HostName
</StructurePath>
<StructurePath>
/LAN/IPv4/DefaultGateway
</StructurePath>
<StructurePath>
/LAN/IPv6/DefaultGateway
</StructurePath>
<StructurePath>
/LAN/IPv6/Addresses/*/IPAddress
</StructurePath>
<StructurePath>
/LAN/IPv6/Addresses/*/DHCPOption/*/Tag
</StructurePath>
</StructurePathList>
</CMS>
Wherein, / LAN/HostName ,/LAN/IPv4/DefaultGateway ,/LAN/IPv6/DefaultGateway ,/LAN/IPv6/Addresses/*/IPAddress ,/LAN/IPv6/Addresses/*/DHCPOption/*/Tag is the path and the title of parameter, this process has been obtained the parameter name of each parameter.Then, the control point on the gateway can obtain the details of the parameter that needs by the GetAttritubes action.
For example, be example with this parameter of Tag:
<?xml?version=″1.0″encoding=″UTF-8″?>
<CMS?xmlns:xsi=″http://www.w3.org/2001/XMLSchema-instance″
xsi:noNamespaceSchemaLocation=″CMS.xs?d″>
<ParameterAttributesList>
<Parameter>
<CompletePath>
/LAN/Pv6/Addresses/*/DHCPOption/*/Tag
</CompletePath>
<Type>unsignedInt</Type>
<ValueRange>1:254</ValueRange>
<DefaultValue>1</DefaultValue>
<Permission>ReadWrite</Permission>
<EventOnChange>false</EventOnChange>
<PersistentAfterReboot>true</PersistentAfterReboot>
</Parameter>
</ParameterAttributesList>
</CMS>
Wherein, whether whether/LAN/IPv6/Addresses/*/DHCPOption/*/Tag, unsignedInt, ReadWrite, false, true etc. are the associated description of this parameter, be followed successively by parameter pathname, type, readablely write, whether produce incident when changing, keep etc. after restarting;<ValueRange〉1:254</ValueRange 〉,<DefaultValue〉1</DefaultValue〉partly be the parameter correlation information in the UPnP data model, should comprise above information in the device data model relevant information that gateway obtains, in order to be converted to the XML description document that meets the CWMP agreement.
Step 2: gateway is mapped in the gateway data model by the data model of protocol conversion with proxied device; Comprise: the ability information that the ability information of proxied device is converted to reference format; The ability information of described reference format is joined in the data model of agent equipment.
Be mapped to the data model that meets the CWMP agreement in the present embodiment.
For example:
InternetGatewayDevice.
ProxiedDevice.1.
LAN.
HostName
IPv4.
DefaultGateway
IPv6.
DefaultGateway
Addresses.{i}
IPAddress
DHCPOption.{i}
Tag
Wherein: HostName, DefaultGateway, IPAddress, Tag are parameter name, and the agreement that the method for gateway acquisition and mapped device data model is supported because of equipment is different.
Step 3: gateway is described the generation description document to the device data model (being the data model of CWMP protocol format) after shining upon, promptly the language format that can resolve with server is described to generate description document the data model of described agent equipment, and described description document is the description document that the ability information of described proxied device is mapped to the data model of described agent equipment.
Use XML and language to be described in the present embodiment and generate the XML description document, the information of describing in this XML description document will comprise customizing messages, and this customizing messages comprises: the parameter value scope of the parameter name of proxied device, the parameter type of proxied device, proxied device and the parameter default of proxied device.Can also comprise the RPC method of equipment support etc.
For example, with/this parameter of LAN/IPv6/Addresses/*/DHCPOption/*/Tag is an example:
<ParameterValueList>
<Parameter>
<ParameterPath>
/LAN/IPv6/Addresses/*/DHCPOption/*/Tag
</ParameterPath>
<ValueType>
unsignedInt
</ValueType>
<ValueRange>
1:254
</ValueRange>
<DefaultValue>
1
</DefaultValue>
</Parameter>
</ParameterValueList>
Wherein ,/LAN/IPv6/Addresses/*/DHCPOption/*/Tag, unsignedInt, 1:254,1 are followed successively by: parameter name, parameter type, span, default value; Also can increase description, not limit and have only these other information.
Step 4: gateway and ACS connect, and the XML file that provides capacity of equipment to describe to ACS, and the mode that provides meets the regulation of CWMP agreement.
The XML file acquisition device ability information (comprise parameter name, parameter type, span, default value, can also comprise the RPC method of support etc.) that step 5:ACS describes according to the capacity of equipment that gateway provides.For example, gateway can provide a URL to ACS, and the data model of gateway support is described XML file (part that wherein also comprises proxied device) and can be got access to by this URL.ACS obtains the device capability information of proxied device by obtaining and resolving.
Be to be example in the above embodiment of the present invention with expandable mark language XML and CWMP agreement, but the present invention is not limited to this, and for example described description document can also be the description document of HTML HTML (HyperText Mark-up Language) form or the description document of standard generalized markup language SGML (Standard Generalized Markup Language) form.The data model of described agent equipment can also meet the Simple Network Management Protocol standard (Simple Network ManagementProtoco, SNMP).
By the above embodiment of the present invention, realized that ACS obtains the ability of proxied device, solved the problem that ACS can't obtain capacity information of committed facility comprehensively.
Embodiment three
As shown in Figure 5, the structure chart of the apparatus for management of information of a kind of proxied device that provides for the embodiment of the invention, be used for making the server of DSL network to obtain the information of terminal equipment, this device is arranged in the agent equipment (gateway) in the DSL network, comprise: map unit is used for the ability information of proxied device is mapped to the data model of agent equipment;
Generation unit is used for generating description document according to the data model of described agent equipment;
Report the unit, be used for reporting described description document to server.
Acquiringunit 501 is used to obtain the ability information of proxied device;
Described proxied device is the proxied device in the DSL network, refers to the proxied device of non-TR-069 especially.
Map unit 502 is used for the ability information of proxied device is mapped to the data model of agent equipment;
Generation unit 503 is used for generating description document according to the data model of described agent equipment;
Promptly the language format that can resolve with server is described to generate description document the data model of described agent equipment, and this description document is the file type that server can be resolved.
Transmittingelement 504 is used for reporting described description document to server;
For example report the unit to send description document to server, or send the deposit position URL of description document to server, server obtains description document from this URL.
Because server can be resolved description document, so can obtain device capability information according to the capacity of equipment description document that gateway provides.
Wherein, the ability information of described proxied device comprises: the administration order that parameter name and/or parameter type and/or parameter value scope and/or parameter default and/or proxied device are supported.
In another embodiment of the present invention, described map unit comprises: modular converter is used for the ability information of proxied device is converted to the ability information of reference format; Add module, be used for the ability information of described reference format is joined the data model of agent equipment.
In the above embodiment of the present invention, described description document is the description document of expandable mark language XML form, the description document of HTML html format or the description document of standard generalized markup language SGML form.The data model of described agent equipment meets CWMP consensus standard or Simple Network Management Protocol standard.
By the above embodiment of the present invention, realized that ACS obtains the ability of proxied device, solved the problem that ACS can't obtain capacity information of committed facility comprehensively.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.