CN102769630A - Conversion method for CWMP (CPE WAN Management Protocol) and UPnP (Universal Plug and Play) protocol in terminal management - Google Patents

Conversion method for CWMP (CPE WAN Management Protocol) and UPnP (Universal Plug and Play) protocol in terminal management Download PDF

Info

Publication number
CN102769630A
CN102769630A CN2012102682415A CN201210268241A CN102769630A CN 102769630 A CN102769630 A CN 102769630A CN 2012102682415 A CN2012102682415 A CN 2012102682415A CN 201210268241 A CN201210268241 A CN 201210268241A CN 102769630 A CN102769630 A CN 102769630A
Authority
CN
China
Prior art keywords
upnp
cwmp
conversion
parameter
protocol
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
CN2012102682415A
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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN2012102682415A priority Critical patent/CN102769630A/en
Publication of CN102769630A publication Critical patent/CN102769630A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a conversion method for a CWMP (CPE WAN Management Protocol) and a UPnP (Universal Plug and Play) protocol in terminal management. A process of requesting message conversion comprises the following steps of: receiving a request message of the CWMP sent by an automatic configuration server by a home gateway, judging whether a long-distance calling method is used for operating a data model or not, and converting the request message into a configuration management service order or a basic management service order; and packaging the configuration management service order or the basic management service order to be a UPnP protocol message, and sending the UPnP protocol message to UPnP equipment. A process of responding the message conversion comprises the following steps of: after the home gateway receives a response message which is returned back from the UPnP equipment, judging that an error code in the response message is equal to 0 or not; if so, reversely converting the request message; if not, converting error codes of the UPnP protocol and the CWMP; and finally, packaging a reversely-converted order or the error code into a response message of the CWMP, and sending the response message to the automatic configuration server. According to the conversion method, a rule followed by protocol conversion can be provided, so that proxy equipment and a proxy system of a home network terminal can be managed in a long distance manner.

Description

The conversion method of CWMP and UPnP agreement in a kind of terminal management
Technical field
The present invention relates to the communications field, specifically is the conversion method of CWMP and UPnP agreement in a kind of terminal management.
Background technology
At present, the family gateway equipment in the user network can long-rangely installed, dispose, diagnose to Virtual network operator, but but can't surmount RGW (Residential Gateway, home gateway) directly controls other household equipments in the user network.Emerging service request forces them that range of management is enlarged; And then also comprise CPE (Customer Premise Equipment; User terminal) equipment is interior, and wherein the formation of CPE comprises RGW, access point, ip voice phone, STB, media server, people's computer, game server or the like.Purpose is to reduce the expense that Virtual network operator on-sites install, also need not the user simultaneously and terminal equipment is configured under the situation of operation, just can reach the function of configure user network environment remotely and then business transferring.
Present similar technical scheme has only proposed range of management is expanded to the imagination of subscriber household network.But how not specify the telemanagement service request from CWMP (CPE WAN Management Protocol; Subscriber terminal equipment wide area network management agreement) converts UPnP (Universal Plug and Play into; UPnP) method of agreement; And the conversion method of CWMP and UPnP agreement is the agent equipment of telemanagement home network terminal equipment and the core technology of system, has played crucial effects, if lack the conversion of CWMP and UPnP agreement; The research staff does not know the rule that protocol conversion should be followed, and just can't realize the agent equipment and the system of telemanagement home network terminal equipment yet.
Summary of the invention
To the defective that exists in the prior art; The object of the present invention is to provide the conversion method of CWMP and UPnP agreement in a kind of terminal management; The rule that provides protocol conversion to follow; Thereby realize the agent equipment of telemanagement home network terminal equipment, and realize the home network terminal long-distance management system.
For reaching above purpose; The technical scheme that the present invention takes is: the conversion method of CWMP and UPnP agreement in a kind of terminal management comprises the request message conversion of CWMP agreement and the response message conversion of UPnP agreement, wherein; The conversion of described request message comprises: after home gateway is received the request message of the CWMP agreement that Automatic Configuration Server sends; Judge the remote procedure calling (PRC) method operating data model whether in the request message, if then convert request message into the configuration admin service order; If not, then convert request message into the basic management service command; Order after will changing then is packaged into the UPnP protocol massages, sends to the UPnP equipment at terminal, and waits for the response message of the UPnP agreement that reception UPnP equipment returns; The conversion of said response message comprises: after home gateway receives the response message of the UPnP agreement that said UPnP equipment returns; Judge whether error code wherein equals 0; If equal 0, then said UPnP equipment is carried out request message success, reverse conversion described request message; If be not equal to 0, then UPnP equipment is carried out the request message failure, and the protocol conversion module that home gateway has is accomplished the conversion of UPnP agreement and CWMP protocol error sign indicating number; At last order that obtains after the reverse conversion or error code are encapsulated in the CWMP protocol responses message, send to Automatic Configuration Server.
On the basis of technique scheme, saidly convert request message into configuration admin service order, carry out the conversion between remote procedure calling (PRC) method name and the configuration admin service operational order name earlier; Carry out the conversion between remote procedure calling (PRC) method and the configuration admin service command parameter again.
On the basis of technique scheme; Conversion between said remote procedure calling (PRC) method and the configuration admin service command parameter; Comprise step: it is convertible principle that S131. follows that type is identical, implication is identical, and the incorporating parametric value list carries out the conversion of parameter name; S132. parameter value is changed, comprised the suffix of object path name in internodal space character in the prefix, alternative parameter path of replacement data model pathname and the replacement data model; S133. if the parameter that parses of request message exists only in the remote procedure calling (PRC) method, then in protocol conversion process directly with its deletion.
On the basis of technique scheme; Among the said S1; Parameter list is the array of a parameter value structure type in the remote procedure calling (PRC) method; Each array member comprises parameter name and parameter value two elements, and the parameter value tabulation is the array of a parameter value structure type in the operational order request message, and each array member comprises parameter path and parameter value two elements; Said protocol conversion module need convert parameter list member name, parameter name and the parameter value in the CWMP protocol massages into parameter value tabulation member name, parameter path and the parameter value in the UPnP protocol massages.
On the basis of technique scheme, the prefix of said replacement data model pathname, and internodal space character in the alternative parameter path are promptly accomplished the transfer process in data model path.
On the basis of technique scheme; When the UPnP device first at said terminal is reached the standard grade; Home gateway mapping terminal data model; Protocol conversion module is mapped to a plurality of subobjects in the CWMP data model with the UPnP operational order of non-data model access class, and the subobject name is the basic management service command title that UPnP equipment reports support.
On the basis of technique scheme, saidly convert request message into the basic management service command, need carry out the conversion between remote procedure calling (PRC) method name and the basic management service operations command name; And the conversion between remote procedure calling (PRC) method and the basic management service command parameter.
On the basis of technique scheme; If the operational order that said UPnP equipment provides can find corresponding remote procedure calling (PRC) method in the CWMP agreement, then change according to the remote procedure call of CWMP agreement and the corresponding relation in the said operational order mapping table.
On the basis of technique scheme; If the operational order that said UPnP equipment provides can not find corresponding remote procedure calling (PRC) method in the CWMP agreement; Then home gateway is through the remote procedure calling (PRC) method of configuration parameter value; Basic management service operations command object parameter is set, issues the respective operations command request.
On the basis of technique scheme, said reverse conversion request message, the state parameter in the operational order response message that UPnP equipment returns are the enumerated variable that state changes type, comprise to change to submit to and the change two kinds of constant values that come into force.
On the basis of technique scheme, if when the state parameter value returned of said UPnP equipment is for a change submitted to, protocol conversion module should convert thereof into numerical value 1, returns to Automatic Configuration Server as the state parameter value in the remote procedure call response message; If when the state parameter that said UPnP equipment returns for a change came into force, protocol conversion module should be converted into numerical value 0, returns to Automatic Configuration Server as the state parameter value in the remote procedure call response message.
On the basis of technique scheme; Access attribute value in the operational order response message that said protocol conversion module returns UPnP equipment is changed; With the access attribute value from the read-write Boolean 1 that converts into of character string; Convert Boolean 0 into from character string is read-only, and be combined into the parameter list in the remote procedure call response method, return to Automatic Configuration Server.
On the basis of technique scheme; Said protocol conversion module parses the error code element in the error response message that UPnP equipment returns; The error code element is used to deposit error code; And, convert the error code of corresponding CWMP protocol definition into, and be packaged into the error response message that meets the CWMP protocol format and return to Automatic Configuration Server according to the corresponding relation between CWMP error code and the UPnP error code.
Beneficial effect of the present invention is: through the conversion method of CWMP and UPnP agreement; Make the terminal management implementation method clearer and more definite and easy to implement; For the protocol conversion function of realizing the terminal equipment business configuration provides effective solution; Thereby realize the agent equipment of telemanagement home network terminal equipment, and realize the home network terminal long-distance management system.
Description of drawings
Fig. 1 is request message flow path switch figure in the conversion method of CWMP and UPnP agreement in the embodiment of the invention terminal management;
The CWMP data model figure of Fig. 2 in the embodiment of the invention BMS Action being mapped to;
Fig. 3 is response message flow path switch figure in the conversion method of CWMP and UPnP agreement in the embodiment of the invention terminal management;
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done further explain.
The conversion method of CWMP and UPnP agreement in a kind of terminal management of the present invention comprises the request message conversion of CWMP agreement and the response message conversion of UPnP agreement.
As shown in Figure 1, the conversion of described request message comprises step:
S11. after home gateway is received the request message of the CWMP agreement that ACS (Auto-Configuration Server, Automatic Configuration Server) sends, message content is resolved.
S12. judge RPC (Remote procedure call, remote procedure call) the method operating data model whether in the request message, if get into S13; If not, get into S14.
S13. convert request message into CMS (ConfigurationManagement Service, configuration admin service) order, get into S15;
S14. convert request message into BMS (BasicManagement Service, basic management service) order, get into S15;
S15. CMS order or BMS order after will changing are packaged into the UPnP protocol massages, send to the UPnP equipment at terminal, and wait for the response message of the UPnP agreement that reception UPnP equipment returns.
Among the said step S13, carry out the conversion between RPC method name and the CMS Action name (Action is an operational order, is meant in the UPnP agreement the various operations to terminal equipment) earlier, carry out the conversion between RPC method and the CMS parameter again.
Corresponding relation between the RPC method of CWMP agreement and the UPnP equipment CMS Action is as shown in table 1:
Table 1
The RPC method CMS?Action
A1:SetParameterValues B1:SetValues
A2:GetParameterValues B2:GetValues
A3:GetParameterNames B3:X_CT-COM_GetNames()
A4:SetParameterAttributes B4:SetAttributes
A5:GetParameterAttributes B5:GetAttributes
A6:AddObject B6:CreateInstance
A7:DeleteObject B7:DeleteInstance
Wherein, the 1st of table 1 is classified data as, is the RPC method of CWMP protocol definition, and these methods all can find the Action one to one that anticipates in the CMS of the 2nd row UPnP equipment, be the implication of various data representatives below:
A1:SetParameterValues is provided with parameter value RPC method, and ACS can revise one or more parameter value of CPE with the method;
A2:GetParameterValues, query parameter values RPC method, ACS can obtain the value of one or more parameters of CPE with the method;
A3:GetParameterNames obtains device parameter model RPC method, and ACS can find that a certain CPE goes up addressable parameter with the method;
A4:SetParameterAttributes revises parameter attribute RPC method, and ACS can change the attribute of the one or more parameters on the home gateway with the method;
A5:GetParameterAttributes query argument attribute RPC method, ACS can read on the home gateway one or the attribute of multi-parameter more with the method;
A6:AddObject adds object instance RPC method, and ACS can set up the new instance of a multi-instance object (multi-instance object) with the method;
A7:DeleteObject, deletion object instance RPC method, ACS can delete the particular instance of an object with the method.
B1:SetValues is provided with parameter value Action, and this order is used for the UPnP control point and revises UPnP device data Model parameter value:
B2:GetValues, query parameter values Action, this order is used for UPnP control point inquiry UPnP device data Model parameter value;
B3:X_CT-COM_GetNames obtains data model Action, and this order is used for instance or the parameter that the UPnP control point obtains the configurable inquiry of UPnP equipment;
B4:SetAttributes is provided with parameter attribute Action, and whether read-only this order be used for the property value (comprise data type, parameter or the instance of parameter etc.) of UPnP control point inquiry UPnP device data model parameter or object;
B5:GetAttributes, query argument attribute Action, this order is used for the property value that the UPnP control point is provided with UPnP device data model parameter or object;
B6:CreateInstance creates object instance Action, and it is new instance of data model Object Creation that this order is used for UPnP control point requirement UPnP equipment;
B7:DeleteInstance, deletion object instance Action, this order is used for the UPnP control point and requires the some instances of UPnP unit deletion (comprising objects all under this instance and parameter).
Has protocol conversion module on the said home gateway; After protocol conversion module is received the RPC method name in the CWMP management request that the ACS that resolved sends; In the 1st row of table 1, seek the method name of coupling, if can find the method name of coupling, then protocol conversion module should be according to this method name position; Find the Action of the 2nd row of going together with it in the table 1, and accomplish the conversion of administration order according to this corresponding relation.
For example: when query argument (A2:GetParameterValues) the RPC method of UPnP facility information is obtained in the ACS transmission; Protocol conversion module finds earlier the position of this RPC method in table 1; Promptly the 1st be listed as the 3rd row; Again in table 1 with this position go together the 2nd row find corresponding Action (B2:GetValues), accomplish the former to the conversion between the latter, i.e. conversion between RPC method name and the CMS Action name.
Transformation rule between said RPC method and the CMS parameter comprises step:
S131. following that type is identical, implication is identical is convertible principle, carries out the conversion of parameter name.
If the RPC method parameter is " title-value (Name-Value) " structure array to form; Then the conversion method of parameter name is: in the RPC method member of the member of parameter list ParameterList parameter and the parameter value in Action request message tabulation ParameterValueList parameter all be Name-Value to form, so need not parametric form is changed.But because parameter list ParameterList is the array of a parameter value structure ParameterValueStruct type, each array member comprises Name (parameter name) and Value (parameter value) two elements; And parameter value tabulation ParameterValueList is the array of a parameter value structure A_ARG_TYPE_ParameterValueList type, and each array member comprises ParameterPath (parameter path) and Value two elements.Therefore, protocol conversion module need convert parameter list member name ParameterValueStruct, Name and the Value in the CWMP message that parses into parameter value tabulation member name Parameter, ParameterPath and the Value in the UPnP protocol massages.
In addition, other non-structure types, but the identical parameter of data type and implication also can be carried out corresponding conversion.For example: the object name ObjectName parameter in the RPC method is character string type with many Instance Names MultiInstanceName parameter in the Action request message and implication is identical; Be used to deposit the multi-instance object pathname; Therefore, protocol conversion module need convert the object name ObjectName parameter name in the CWMP message that parses into the Instance Name MultiInstanceName parameter name in the UPnP protocol massages.
S132. parameter value is changed, comprised the suffix of object path name in internodal space character in the prefix, alternative parameter path of replacement data model pathname and the replacement data model.
The prefix of said replacement data model pathname; UPnP equipment management data model pathname is initial with "/UPnP/DM/ "; " InternetGatewayDevi ce.X_VENDOR-COM_ProxyDevice.DeviceList.{i}. " node of corresponding home gateway, protocol conversion module should be accomplished the replacement of pathname bebinning character.
The prefix of said replacement data model pathname, and internodal space character in the alternative parameter path are promptly accomplished the data model transfer process.UPnP equipment management data model path is with "/" beginning, and directly uses "/" to separate between node, and the data model that meets the CWMP protocol requirement is directly with root node beginning InternetGatewayDevice, and uses ". " to separate between node.Therefore, protocol conversion module should be accomplished additions and deletions of UPnP equipment management data model beginning "/" character in the data model transfer process and the conversion between "/" and ". ".
The suffix of object path name in the said replacement data model, UPnP equipment management data model part path is with the ending of "/" character, and the data model part path that meets the CWMP protocol requirement ends up with ". ".Therefore protocol conversion module should be accomplished the suffix replacement of part path.
S133. if the parameter that parses exists only in the remote procedure calling (PRC) method, then in protocol conversion process directly with its deletion.It is the parameter that the request message from the CWMP agreement parses here.
For example: the key parameter ParameterKey in the RPC method; Be used for whether the ACS tracking parameter upgrades or be sky; But among the Action owing to COS CMS that reports support at UPnP equipment and BMS; Fail to find the parameter of corresponding implication to exist; Therefore protocol conversion module if finding this parameter will directly delete, need not done any corresponding conversion and handle in the CWMP administration order that parses, and does not carry the key parameter ParameterKey among the RPC in the UPnP equipment control Action request message after conversion yet.
Said step S14 converts request message into BMS, need carry out the conversion between RPC method name and the BMS Action command name, and the conversion between RPC method and the BMS command parameter.
Carry out the conversion between RPC method name and the BMS Action command name; As shown in Figure 2; Be home gateway mapping terminal data model, protocol conversion module with the UPnP Action of non-data model access class, long-rangely restart Reboot, factory reset Baseline etc., be mapped to a plurality of subobjects under the ActionList.BMS. node in the CWMP data model; The subobject name is the BMS command name that UPnP equipment reports support, for example: Reboot, Baseline etc.Under aforesaid Action object, also generate some parameters, these parameters are corresponding one by one with input/return parameters of Action, and wherein return parameters is that read-only, input parameter is a read/write properties; Also comprising the Boolean type parameter that can write under the Action object as stated, and called after wake command InvokeAction.ACS is set to 1 through calling the InvokeAction parameter value that parameter value SetParameterValues method Action object is set, and realizes issuing UPnP equipment B MS order.Therefore; If resolve the RPC method for parameter value SetParameterValues method is set; And be provided with in the parameter Name parameter value comprise " InvokeAction " character string simultaneously the Value value equal 1, then need father's namespace node of the InvokeAction in the intercepting Name parameter value pathname to convert UPnP Action command name into.
Conversion between RPC method and the BMS command parameter; If parsing the SetParameterValues method that the RPC request message issues is the BMS order to the UPnP terminal equipment; Name translation in the parameter list that parameter value SetParameterValues method is set that then will parse behind each Name parameter value pathname last ". " number separator is the parameter of importing into of Action request command, and the Value parameter value is the parameter value that imports into of setting.
And the parameter value syntax conversion is regular, and is identical with above-mentioned " conversion between RPC method and the CMS command parameter " method rule.
As shown in Figure 3, said response message conversion comprises step:
S21. after home gateway receives the response message of the UPnP agreement that said UPnP equipment returns, message content is resolved.
S22. judge whether the error code in the corresponding message equals 0,, get into S23 if equal 0; If be not equal to 0, get into S24.
S23. it is successful to prove that said UPnP equipment is carried out request message, and reverse conversion described request message gets into S25.
S24. prove the failure of UPnP equipment execution request message, protocol conversion module is accomplished the conversion of UPnP agreement and CWMP protocol error sign indicating number, gets into S25.
S25. at last order after the reverse conversion or error code are encapsulated in the CWMP protocol responses message, send to ACS.
Among the said step S23; Be reversed the conversion of described request message; It is inverse conversion to above-mentioned S13 step; Transformation rule is basic identical, and wherein discrepant part is following: state (Status) parameter type in the Action response message that UPnP equipment returns is the variable of Status Type A_ARG_TYPE_ChangeStatus for a change, is to comprise to change to submit to
ChangesCommitted and the array of enumerating that changes the two kinds of parameter values of ChangesApplied that come into force.And home gateway returns to the Status parameter type that comprises in the RPC response command of ACS is integer; Its parameter value 0 and 1 is respectively applied for the expression parameter change and enters into force and use or parameter change has been submitted to but do not used; Though the RPC method is different with the Status parameter type among the Action; But on the parameter value implication one by one on the correspondence, therefore, if UPnP equipment returns the Status parameter value when for a change submitting ChangesCommitted to; Protocol conversion module should convert thereof into numerical value 1, returns to ACS as Status parameter value in the RPC response message; When UPnP equipment returned the Status parameter and for a change comes into force ChangesApplied, protocol conversion module should be converted into numerical value 0, returns to ACS as Status parameter value in the RPC response message.
And in the process of inverse conversion, if from the UPnP protocol massages, resolve and exist only in the operational order, then in protocol conversion process directly with its deletion.
In the Action response message that UPnP equipment returns; If response parameter comprises the pathname and visit (Access) property value thereof of node, instance, parameter; Then the Access property value is used to represent that node, instance, parameter pathname refer to the read-write properties of object and parameter, among the parameter information structure ParameterInfoStruct in this attribute and the RPC response method to write (Writable) attribute implication identical.Therefore; Access property value in the Action response message that protocol conversion module need return UPnP equipment is changed; Convert the Access property value into Boolean 1 from character string " read-write (readWrite) "; " read-only (readOnly) " converts Boolean 0 into from character string, and is combined into the ParameterList parameter type ParameterInfoStruct structure array in the RPC response method, returns to ACS.
Instance identification InstanceIdentifier parameter in the Action response message that UPnP equipment returns is the path that comprises the instance number; Protocol conversion module should only keep the numeral before this path ending "/" character, returns to ACS as the instance number InstanceNumber parameter value in the corresponding RPC response message.The leaf node initialization ChildrenInitialization parameter type that comprises in the Action response message that UPnP equipment returns is the initial parameter value tabulation A_ARG_TYPE_ParameterInitialValueList variable of XML structure; Be used to the one or more parameter assignment in the new instance of establishment; But because in the CWMP administration order; The parameter that can not find corresponding implication exists; Therefore protocol conversion module need not to carry leaf node initialization ChildrenInitialization parameter in the Action request message after the CWMP administration order that parses is changed.
Among the said step S24, protocol conversion module only need be accomplished the conversion of UPnP agreement and CWMP protocol error sign indicating number, and the corresponding relation between CWMP error code and the UPnP error code is as shown in table 2:
Table 2
CWMP?Fault?Codes UPnP?Error?Codes
9001 602,604,606,607,608,609,610,611,612
9002 501,603,(BMS)803,(BMS)804
9003 401,402,602,(CMS)707
9004 605,(CMS)708,(CMS)709
9005 (CMS)701,(CMS)702,(CMS)702
9006 (CMS)704
9007 600,601,(BMS)801,(CMS)705
9008 (CMS)706
The 1st columns certificate in the table 2; It is the error code type of CWMP protocol definition; When the family gateway is carried out in the CWMP management request process that ACS sends if mistake occurs; Home gateway can return error message according to the error response message form of CWMP protocol definition, and the DTC in the message (FaultCode) element is used to deposit error code, and FaultCode element value is shown in the 1st columns certificate in the table 2.
The 2nd columns certificate in the table 2; When UPnP equipment is being carried out the UPnP management request of sending at the UPnP control point on the home gateway if mistake occurs; Require UPnP equipment to echo according to the UPnP consensus standard and answer message (the response message delivery time that comprises expectation) at 30 seconds internal returns; But can not use output variable to come mistake in communication information, because of output variable can only be used for return data, so UPnP equipment can return error message according to definition error response message format among the UPnP architecture standard UDA 1.0; Error code in the message (errorCode) element promptly is used to deposit error code, and errorCode element value is shown in the 2nd columns certificate in the table 2.
After protocol conversion module parses the errorCode element value in the error response message that UPnP equipment returns, should convert the error code of corresponding CWMP protocol definition into according to the corresponding relation in the last table.
According to step S25, the order after the conversion is packaged into the CWMP protocol massages sends to ACS at last.
The present invention is not limited to above-mentioned execution mode, for those skilled in the art, under the prerequisite that does not break away from the principle of the invention, can also make some improvement and retouching, and these improvement and retouching also are regarded as within protection scope of the present invention.The content of not doing in this specification to describe in detail belongs to this area professional and technical personnel's known prior art.

Claims (13)

1. the conversion method of CWMP and UPnP agreement in the terminal management is characterized in that: comprise that the request message conversion of CWMP agreement and the response message of UPnP agreement change, wherein,
The conversion of described request message comprises: after home gateway is received the request message of the CWMP agreement that Automatic Configuration Server sends; Judge the remote procedure calling (PRC) method operating data model whether in the request message; If; Then convert request message into the configuration admin service order, if not, then convert request message into the basic management service command; Order after will changing then is packaged into the UPnP protocol massages, sends to the UPnP equipment at terminal, and waits for the response message of the UPnP agreement that reception UPnP equipment returns;
The conversion of said response message comprises: after home gateway receives the response message of the UPnP agreement that said UPnP equipment returns; Judge whether error code wherein equals 0; If equal 0, then said UPnP equipment is carried out request message success, reverse conversion described request message; If be not equal to 0, then UPnP equipment is carried out the request message failure, and the protocol conversion module that home gateway has is accomplished the conversion of UPnP agreement and CWMP protocol error sign indicating number; At last order that obtains after the reverse conversion or error code are encapsulated in the CWMP protocol responses message, send to Automatic Configuration Server.
2. the conversion method of CWMP and UPnP agreement in the terminal management as claimed in claim 1; It is characterized in that: saidly convert request message into configuration admin service order, carry out the conversion between remote procedure calling (PRC) method name and the configuration admin service operational order name earlier; Carry out the conversion between remote procedure calling (PRC) method and the configuration admin service command parameter again.
3. the conversion method of CWMP and UPnP agreement in the terminal management as claimed in claim 2 is characterized in that: the conversion between said remote procedure calling (PRC) method and the configuration admin service command parameter comprises step:
S131. following that type is identical, implication is identical is convertible principle, and the incorporating parametric value list carries out the conversion of parameter name;
S132. parameter value is changed, comprised the suffix of object path name in internodal space character in the prefix, alternative parameter path of replacement data model pathname and the replacement data model;
S133. if the parameter that parses of request message exists only in the remote procedure calling (PRC) method, then in protocol conversion process directly with its deletion.
4. the conversion method of CWMP and UPnP agreement in the terminal management as claimed in claim 3; It is characterized in that: among the said S1; Parameter list is the array of a parameter value structure type in the remote procedure calling (PRC) method; Each array member comprises parameter name and parameter value two elements, and the parameter value tabulation is the array of a parameter value structure type in the operational order request message, and each array member comprises parameter path and parameter value two elements; Said protocol conversion module need convert parameter list member name, parameter name and the parameter value in the CWMP protocol massages into parameter value tabulation member name, parameter path and the parameter value in the UPnP protocol massages.
5. the conversion method of CWMP and UPnP agreement in the terminal management as claimed in claim 3 is characterized in that: the prefix of said replacement data model pathname, and internodal space character in the alternative parameter path, promptly accomplish the transfer process in data model path.
6. the conversion method of CWMP and UPnP agreement in the terminal management as claimed in claim 1; It is characterized in that: when the UPnP device first at said terminal is reached the standard grade; Home gateway mapping terminal data model; Protocol conversion module is mapped to a plurality of subobjects in the CWMP data model with the UPnP operational order of non-data model access class, and the subobject name is the basic management service command title that UPnP equipment reports support.
7. the conversion method of CWMP and UPnP agreement in the terminal management as claimed in claim 6; It is characterized in that: saidly convert request message into the basic management service command, need carry out the conversion between remote procedure calling (PRC) method name and the basic management service operations command name; And the conversion between remote procedure calling (PRC) method and the basic management service command parameter.
8. like the conversion method of CWMP and UPnP agreement in claim 2 or the 7 described terminal managements; It is characterized in that:, then change according to the remote procedure call of CWMP agreement and the corresponding relation in the said operational order mapping table if the operational order that said UPnP equipment provides can find corresponding remote procedure calling (PRC) method in the CWMP agreement.
9. like the conversion method of CWMP and UPnP agreement in claim 2 or the 7 described terminal managements; The operational order that said UPnP equipment provides it is characterized in that: if can not find corresponding remote procedure calling (PRC) method in the CWMP agreement; Then home gateway is through the remote procedure calling (PRC) method of configuration parameter value; Basic management service operations command object parameter is set, issues the respective operations command request.
10. the conversion method of CWMP and UPnP agreement in the terminal management as claimed in claim 1; It is characterized in that: said reverse conversion request message; State parameter in the operational order response message that UPnP equipment returns is the enumerated variable that state changes type, comprises to change to submit to and the change two kinds of constant values that come into force.
11. the conversion method of CWMP and UPnP agreement in the terminal management as claimed in claim 10; It is characterized in that: if when the state parameter value returned of said UPnP equipment is for a change submitted to; Protocol conversion module should convert thereof into numerical value 1, returns to Automatic Configuration Server as the state parameter value in the remote procedure call response message; If when the state parameter that said UPnP equipment returns for a change came into force, protocol conversion module should be converted into numerical value 0, returns to Automatic Configuration Server as the state parameter value in the remote procedure call response message.
12. the conversion method of CWMP and UPnP agreement in the terminal management as claimed in claim 10; It is characterized in that: the access attribute value in the operational order response message that said protocol conversion module returns UPnP equipment is changed; With the access attribute value from the read-write Boolean 1 that converts into of character string; Convert Boolean 0 into from character string is read-only, and be combined into the parameter list in the remote procedure call response method, return to Automatic Configuration Server.
13. the conversion method of CWMP and UPnP agreement in the terminal management as claimed in claim 10; It is characterized in that: said protocol conversion module parses the error code element in the error response message that UPnP equipment returns; The error code element is used to deposit error code; And, convert the error code of corresponding CWMP protocol definition into, and be packaged into the error response message that meets the CWMP protocol format and return to Automatic Configuration Server according to the corresponding relation between CWMP error code and the UPnP error code.
CN2012102682415A 2012-08-01 2012-08-01 Conversion method for CWMP (CPE WAN Management Protocol) and UPnP (Universal Plug and Play) protocol in terminal management Pending CN102769630A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102682415A CN102769630A (en) 2012-08-01 2012-08-01 Conversion method for CWMP (CPE WAN Management Protocol) and UPnP (Universal Plug and Play) protocol in terminal management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102682415A CN102769630A (en) 2012-08-01 2012-08-01 Conversion method for CWMP (CPE WAN Management Protocol) and UPnP (Universal Plug and Play) protocol in terminal management

Publications (1)

Publication Number Publication Date
CN102769630A true CN102769630A (en) 2012-11-07

Family

ID=47096880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102682415A Pending CN102769630A (en) 2012-08-01 2012-08-01 Conversion method for CWMP (CPE WAN Management Protocol) and UPnP (Universal Plug and Play) protocol in terminal management

Country Status (1)

Country Link
CN (1) CN102769630A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450589A (en) * 2014-07-31 2016-03-30 阿里巴巴集团控股有限公司 Remote procedure call method and system
WO2016101602A1 (en) * 2014-12-24 2016-06-30 中兴通讯股份有限公司 Protocol conversion method and device
CN107025145A (en) * 2016-11-09 2017-08-08 阿里巴巴集团控股有限公司 Error code analysis method and device
CN108449312A (en) * 2018-01-31 2018-08-24 北京奇艺世纪科技有限公司 A kind of method for converting protocol, device, system and gateway
CN111935196A (en) * 2020-10-13 2020-11-13 之江实验室 Protocol conversion method of Modbus and dnp3 based on EdgeX Foundation
CN113542272A (en) * 2021-07-14 2021-10-22 芯河半导体科技(无锡)有限公司 Method for automatically adapting to remote management platform of operator
CN113904939A (en) * 2021-10-27 2022-01-07 中国联合网络通信集团有限公司 Method, device and storage medium for managing target terminal
CN114389988A (en) * 2022-01-13 2022-04-22 平安付科技服务有限公司 Remote procedure call method, device, equipment and medium based on network architecture
CN114817117A (en) * 2022-06-23 2022-07-29 浙江大华技术股份有限公司 Protocol compatible method, electronic device and computer readable storage device
CN114900558A (en) * 2022-04-21 2022-08-12 厦门亿联网络技术股份有限公司 Universal equipment management protocol control method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866855A (en) * 2005-09-13 2006-11-22 华为技术有限公司 System for tele-managing local network device and realization method
US20070201508A1 (en) * 2006-02-24 2007-08-30 Siemens Aktiengesellschaft Proxy agent for providing remote management of equipment in a communication network
CN101304350A (en) * 2007-05-11 2008-11-12 华为技术有限公司 Method and system for accessing household network equipment as well as household network access equipment
CN101795288A (en) * 2009-12-29 2010-08-04 华为终端有限公司 Equipment management method, system and device
CN101800917A (en) * 2009-02-09 2010-08-11 华为终端有限公司 Information management method and device for proxied equipment
CN101938458A (en) * 2009-06-29 2011-01-05 华为终端有限公司 Equipment management method, management equipment, proxy equipment and management system
CN102130937A (en) * 2010-12-03 2011-07-20 华为终端有限公司 Method for managing terminal device, proxy device and system
CN102150381A (en) * 2008-09-12 2011-08-10 三星电子株式会社 Unified device management method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866855A (en) * 2005-09-13 2006-11-22 华为技术有限公司 System for tele-managing local network device and realization method
US20070201508A1 (en) * 2006-02-24 2007-08-30 Siemens Aktiengesellschaft Proxy agent for providing remote management of equipment in a communication network
CN101304350A (en) * 2007-05-11 2008-11-12 华为技术有限公司 Method and system for accessing household network equipment as well as household network access equipment
CN102150381A (en) * 2008-09-12 2011-08-10 三星电子株式会社 Unified device management method and system
CN101800917A (en) * 2009-02-09 2010-08-11 华为终端有限公司 Information management method and device for proxied equipment
CN101938458A (en) * 2009-06-29 2011-01-05 华为终端有限公司 Equipment management method, management equipment, proxy equipment and management system
CN101795288A (en) * 2009-12-29 2010-08-04 华为终端有限公司 Equipment management method, system and device
CN102130937A (en) * 2010-12-03 2011-07-20 华为终端有限公司 Method for managing terminal device, proxy device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KEITHORG: "《家庭网关下挂应用终端管理方案》", 《百度文库 HTTP://WENKU.BAIDU.COM/LINK?URL=HADSUEZLS2WAHZKMY7CZ3WLM2MVVCA_ZOGQ9BA8XKMS6QQBZQYIUKBZ8EDRMCCAWRAVPC30SYVUIOIGF4RTES4KAQBC-Y65GGWNWUQMLAKK》 *
熊琦: "《TR-069协议在家庭网关中的实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450589B (en) * 2014-07-31 2018-12-14 阿里巴巴集团控股有限公司 Remote invocation method and system
CN105450589A (en) * 2014-07-31 2016-03-30 阿里巴巴集团控股有限公司 Remote procedure call method and system
WO2016101602A1 (en) * 2014-12-24 2016-06-30 中兴通讯股份有限公司 Protocol conversion method and device
CN105791237A (en) * 2014-12-24 2016-07-20 中兴通讯股份有限公司 Protocol conversion method and device
CN105791237B (en) * 2014-12-24 2020-05-08 中兴通讯股份有限公司 Protocol conversion method and device
CN107025145A (en) * 2016-11-09 2017-08-08 阿里巴巴集团控股有限公司 Error code analysis method and device
CN108449312A (en) * 2018-01-31 2018-08-24 北京奇艺世纪科技有限公司 A kind of method for converting protocol, device, system and gateway
CN111935196A (en) * 2020-10-13 2020-11-13 之江实验室 Protocol conversion method of Modbus and dnp3 based on EdgeX Foundation
CN113542272A (en) * 2021-07-14 2021-10-22 芯河半导体科技(无锡)有限公司 Method for automatically adapting to remote management platform of operator
CN113904939A (en) * 2021-10-27 2022-01-07 中国联合网络通信集团有限公司 Method, device and storage medium for managing target terminal
CN114389988A (en) * 2022-01-13 2022-04-22 平安付科技服务有限公司 Remote procedure call method, device, equipment and medium based on network architecture
CN114900558A (en) * 2022-04-21 2022-08-12 厦门亿联网络技术股份有限公司 Universal equipment management protocol control method and device
CN114900558B (en) * 2022-04-21 2024-04-19 厦门亿联网络技术股份有限公司 Universal equipment management protocol control method and device
CN114817117A (en) * 2022-06-23 2022-07-29 浙江大华技术股份有限公司 Protocol compatible method, electronic device and computer readable storage device
CN114817117B (en) * 2022-06-23 2022-10-04 浙江大华技术股份有限公司 Protocol compatibility method, electronic equipment and computer readable storage device

Similar Documents

Publication Publication Date Title
CN102769630A (en) Conversion method for CWMP (CPE WAN Management Protocol) and UPnP (Universal Plug and Play) protocol in terminal management
CN100407625C (en) Method for providing business according to its type
KR100574519B1 (en) Apparatus and method for managing device information via network
CN101304350B (en) Method and system for accessing household network equipment as well as household network access equipment
KR100474483B1 (en) Aparatus for providing device information via network and method thereof
CN100583790C (en) Device for integration in a home network
EP1940079B1 (en) A communication device and a system for managing the local devies remotely and the method thereof
CN101185307B (en) Gateway device and control device
WO2022262465A1 (en) Opc ua-based centralized user configuration method and system for time sensitive network
CN101834768B (en) Digital home network inter-equipment mutual discovery method
US20060184615A1 (en) Service framework for home network
KR100637080B1 (en) Service framework for A Home network
CN102891785B (en) error code conversion method, system, PPPoE server and mobile terminal
KR20030073433A (en) Apparatus for controlling sub-network in home-network
CN102130937A (en) Method for managing terminal device, proxy device and system
KR20020035645A (en) Server-based multi-standard home network bridging
CN103067231A (en) System and method for managing home network application terminal equipment
US20120265862A1 (en) Method and system for device management, and device
CN113194495A (en) Base station network management multi-version adaptation method and system
JP5214929B2 (en) Method and apparatus for managing device services in home network
JP4792964B2 (en) Location information system
CN102006178A (en) SNMP-based network management method and system
KR100833335B1 (en) System and method for device management using OMA master device management client
EP2592781A1 (en) Method and system for managing network topologies in home networks
CN101938458A (en) Equipment management method, management equipment, proxy equipment and management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121107