WO2009049542A1 - Un procédé, un système et un appareil corrélatif pour transmettre une commande de demande de procédure distante - Google Patents

Un procédé, un système et un appareil corrélatif pour transmettre une commande de demande de procédure distante Download PDF

Info

Publication number
WO2009049542A1
WO2009049542A1 PCT/CN2008/072640 CN2008072640W WO2009049542A1 WO 2009049542 A1 WO2009049542 A1 WO 2009049542A1 CN 2008072640 W CN2008072640 W CN 2008072640W WO 2009049542 A1 WO2009049542 A1 WO 2009049542A1
Authority
WO
WIPO (PCT)
Prior art keywords
procedure call
remote procedure
command
call command
device management
Prior art date
Application number
PCT/CN2008/072640
Other languages
English (en)
French (fr)
Inventor
Rui Wang
Haitao Liu
Original Assignee
Huawei 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Priority to EP08840353A priority Critical patent/EP2197154B1/en
Priority to ES08840353T priority patent/ES2398408T3/es
Publication of WO2009049542A1 publication Critical patent/WO2009049542A1/zh
Priority to US12/758,497 priority patent/US8327391B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0233Object-oriented techniques, for representation of network management data, e.g. common object request broker architecture [CORBA]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/052Network management architectures or arrangements using standardised network management architectures, e.g. telecommunication management network [TMN] or unified network management architecture [UNMA]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Definitions

  • the invention relates to a method, system and related device for transmitting a remote procedure call command.
  • the application is filed on October 10, 2007, the Chinese Patent Office, the application number is 200710162810.7, and the invention name is "a remote procedure call command transmission method, system and The priority of the Chinese Patent Application, the entire disclosure of which is incorporated herein by reference.
  • the present invention relates to the field of communications, and in particular, to a method, system and apparatus for transmitting a remote procedure call command.
  • OMA Open Mobile Alliance Device Management
  • DM device management
  • the server manages and sets the environment and configuration information in the terminal devices (such as mobile terminal devices and functional objects in the terminal device) to resolve these terminal devices (CPE,
  • the DM server and the terminal device form a DM system, in which the server can pass through a wireless network (OTA, OTA,
  • Over the Air manages and sets up terminal devices, such as software and firmware installation and upgrades, to provide personalized services and enhance the user experience.
  • the DM agent on the terminal device is used to interpret and execute the management commands issued by the DM server.
  • the management tree stored on the terminal device can be regarded as an interface for the DM server to manage the terminal device through the DM protocol; the management tree includes some basic management objects (MO,
  • the DM server achieves the purpose of controlling the terminal device by operating the operation of the command MO; the operation command has Get (Get), Replace (Replace), Execute (Exec), Copy (Copy), Delete (Delete) Wait.
  • the DSL (Digital Subscriber Line) forum defines the WAN Management Protocol (CWMP).
  • CWMP is used in the DSL network environment to implement functions similar to OMA DM.
  • Management Server ACS, Auto-Configuration Server
  • RPC remote procedure call
  • the Call) command implements two-way communication with the terminal device to complete the remote management.
  • Various data models are stored in the CPE to maintain the parameters used by the various functions on the CPE.
  • the OMA DM specification is applied to the wireless environment
  • CWMP is applied to the fixed network environment.
  • WIFI Wireless Fidelity
  • WIMAX Worldwide Interoperability for Microwave Access
  • these communication technologies provide mobile functions through wireless channels, but their networks provide services. The way is in the category of fixed networks. Therefore, the inventor found in the development process that when WIFI, WIMA and WCDMA (Wideband Code Division Multiple Access) and other wireless communication methods are integrated, there is currently no one because the management specifications of terminals used under different networks are different.
  • a protocol or specification can manage all terminals under a converged network at the same time.
  • Embodiments of the present invention provide a method, system, and apparatus for transmitting a remote procedure call command, which implements management of all terminals using a protocol or specification under a converged network.
  • An embodiment of the present invention provides a method for remote procedure call command transmission, including: setting a remote procedure call command in device management specification information;
  • An embodiment of the present invention further provides a system for remote procedure call command transmission, including: a first device and a second device;
  • the first device is configured to set a remote procedure call command in the device management specification information, and send the device management specification information to the second device;
  • the second device is configured to receive device management specification information sent by the first device.
  • An embodiment of the present invention further provides a device management system, including: a first device and a second device, the first device, configured to set a remote procedure call command in device management specification information, and manage the device The specification information is sent to the second device;
  • the second device is configured to receive device management specification information of the first device, and execute a remote procedure call command carried in the device management specification information.
  • An embodiment of the present invention further provides a device management server, including:
  • a setting unit configured to set a remote procedure call command in the device management specification information
  • a transmission unit configured to transmit the device management specification information
  • An embodiment of the present invention further provides a terminal device, including:
  • a receiving unit configured to receive device management specification information, where the device management specification information carries a far Process procedure call command;
  • a processing unit configured to execute a remote procedure call command carried in the device management specification information received by the receiving unit.
  • the RPC command is set to send the device management specification information to the terminal device, so that the terminal device executes the RPC command, thereby implementing the terminal that manages the CWMP-based data model by using the OMA.DM specification under the converged network. All the terminals are managed by using the OMA.DM in the converged network. Since the RPC command is set to the device management specification information and sent to the terminal device, the OMA.DM is used to manage all the terminals in the converged network, so no special development is required. A protocol or specification manages all terminals in a converged network, saving development costs.
  • FIG. 1 is a diagram showing a general method of remote procedure call command transmission according to an embodiment of the present invention
  • FIG. 2 is a diagram showing the structure of a device management object in Embodiment 2 of the present invention.
  • FIG. 3 is a diagram showing another structure of a device management object in Embodiment 2 of the present invention.
  • Embodiment 4 shows a system for transmitting RPC commands according to Embodiment 5 of the present invention.
  • an RPC command needs to be transmitted between the DM server and the terminal device. That is, the DMI server uses the OMA DM specification information (hereinafter referred to as DM information) to send a command based on the CWMP data model (such as an RPC command) to the terminal device; the terminal device returns the execution result of the command to the DM server by using the OMA DM specification.
  • DM information OMA DM specification information
  • an embodiment of the present invention provides a method for remote procedure call command transmission.
  • FIG. 1 it is a general method diagram of remote procedure call command transmission provided by an embodiment of the present invention.
  • 101. Set a remote procedure call command in the device management specification information;
  • a method of delivering an RPC command by the OMA DM specification is described in detail in the following embodiments.
  • a method of transmitting an RPC command by expanding a command of the DM is described;
  • a specific DM MO Management
  • Object, management object A method of transmitting an RPC command;
  • Embodiment 3 a method of transmitting an RPC command by extending an DM command set is described.
  • Embodiments of the present invention describe a method of extending an DM command to transmit an RPC command through an extended DM command.
  • the following describes the method for transmitting RPC commands by using the Alert command as an example.
  • the usage specifications of the Alert command in the DM are as follows:
  • CmdID is the ID number set when each command is defined by DM.
  • the Correlator parameter is used to indicate a correlation value corresponding to an Alert command that carries an RPC command. When the RPC command takes a period of time to obtain an execution result, the communication peer can use the Correlator value to reply to the RPC command to indicate the The reply is a reply to the RPC command corresponding to the Correlator value.
  • the Alert code is set in the Date element, so that the communication peer recognizes what RPC command is carried by the Alert command.
  • the parameters of the RPC command are then carried in the Item, and the specific parameters can be described based on the XML (Extensible Markup Language) language.
  • the communication peer can determine the RPC command and parameters it carries, and then execute the RPC command, and reply to the Alert command through the Status command, the Results command, or the Alert command defined in the DM, and the reply will be replied.
  • the parameters are included in the Item of the Status command, the Results command, or the Alert command.
  • the RPC command is: GetParameterNames , which is used to get the names of certain parameters on the terminal device data model.
  • the command has two parameters: ParameterPath, indicating the path to obtain parameters on the data model, the terminal device can find these parameters according to the path; another parameter: NextLevel, indicating whether it needs to obtain the subordinate directory of the path, it is a Boolean value .
  • the execution of this command returns a value: ParameterlnfoStruct, which is a composite value containing two parameters: Name, Writable constitut, which is a composite value containing two parameters: Name, Writable structuril Name is the name of the parameter, Writable indicates whether the parameter can be assigned, if the parameter Is a child object, indicating whether the child object can be deleted.
  • the DM server sends an Alert command to the terminal device, and provides the name and parameters of the RPC command in the Item/DATA parameter in the Alert command.
  • the Alert command is as follows:
  • rpc is a predefined namespace, which indicates how to parse parameters such as ParameterPath and NextLevel.
  • the above Status command is used to reply to the GetParameterNames command, 200 indicates that the command is executed successfully, and the returned result is stored in the Item, indicating that there are two parameters in the path indicated by the Alert command, one of which is HostNumberOffintries, which can be assigned to the node. The other is Host., followed by ".” means that this is a child object with other parameters, the child object can not be deleted.
  • This example shows how to pass an RPC command using the Alert command.
  • a similar approach is to set a specific Alert Code (the RPC ID), assuming 1240.
  • the Alert ID can be set in the Data element of the Alert command to indicate that the Alert command is dedicated to carrying the RPC command.
  • the information about the RPC command, including the command name and command parameters, is all set in the Item.
  • the following Item content is the RPC command in the above example:
  • the terminal device learns from 1240 that this is an RPC command, and obtains the content of the command from the Item. After execution, the results of the execution are replied with the Status command, the Results command, or the Alert command.
  • FIG. 2 and FIG. 3 are the organization structures of two RPC MOs.
  • the RPC command and its parameters may be located at different nodes, that is, separately, that is, the RPC command is represented by an RPC command identifier, and the parameters of the RPC are described by using an XML, and the RPC command identifier may be an RPC command name or It is an identifier similar to the Alert code of the first embodiment; and the RPC MO shown in FIG. 3 saves the entire RPC command on the same node and describes it in XML.
  • the terminal device When the terminal device obtains the RPC command, for the structure shown in FIG. 2, it can find the module that executes the command through the RPC command identifier. Block, and pass the corresponding parameters; For the structure shown in Figure 3, after the terminal device obtains the RPC command, it needs to parse the description of the command, extract the command identifier and parameters from it, and then process the command by the corresponding execution module.
  • the Result node is used to save the result of the RPC command execution, and the Execute command is used to trigger the execution of the RPC command.
  • the server configures the RPC MO using the structure shown in Figure 2.
  • Set the Name value to GetParameterNames , or you can use an ID value such as 1248 to indicate this command.
  • the Execute node is executed, and the terminal device executes the command, and records the execution result (see the code provided in Item/Data in the Status command in Embodiment 1) to the Result node, and the server can pass the two.
  • One is included in the reply message of the Exec command. Like the Status reply in the first embodiment, it can be obtained from the Item of the Status command; the other is to reply only 200 success messages, and the server obtains the Get message of the Result node.
  • the result of the execution That is, when the server receives a 200 OK reply, it sends a Get command to get a Result.
  • the terminal device After receiving the command, the terminal device sends the content saved in the Result to the server.
  • the present invention describes a method for transmitting RPC commands by extending the DM command set. That is, the RPC command is added in the command set of the DM, so that the server can treat the RPC command as if it were a DM command, so that the RPC command can be conveniently transmitted to the device terminal.
  • the DM command set except for the Alert command, the rest of the commands are for the device management tree.
  • the RPC command not only includes operations on the data model, but also operations on the device, so you can design some DM commands similar to Alert.
  • the delivery of the RPC command is completed.
  • the following is the writing specification (DTD) for the RPC command:
  • the RPCCommand is the identifier of the RPC command; the CmdID is the ID number set when each command is sent by the DM; when the Correlator is used for the asynchronous operation, such as the RPC download command, when the command is issued, the status cannot be immediately replied because The result of the command execution cannot be included in the reply. Therefore, when the result is reported, the Correlator value needs to be used to inform the server which RPC command the result corresponds to; Item is the parameter of the RPC command.
  • This embodiment is similar to the method for transmitting an RPC command in the first embodiment.
  • the first embodiment can use an Alert code (such as the Alert code in Data) to distinguish different RPC commands.
  • the command is used to identify the RPC command. To distinguish between RPC commands. Since the method of transmitting the RPC is consistent with the embodiment, it will not be repeated here.
  • the RPC command in the device management specification information may be executed, thereby implementing the DM server to the terminal.
  • the device management specification information includes one of the following, or any combination thereof: an existing device management command, a device management object, and a newly added device management command.
  • the embodiment of the present invention discloses a system for transmitting a remote procedure call command, including: a first device, configured to set a remote procedure call command in device management specification information, and the device management specification The information is sent to the second device, and the second device is configured to receive the device management specification information of the first device.
  • the first device includes a device management server or a terminal device
  • the second device includes a device management server or a terminal device.
  • the first device is a device management server; and the second device is a terminal device.
  • the embodiment of the present invention discloses a device management system, including: a first device, configured to set a remote procedure call command in the device management specification information, and send the device management specification information to the second device; And receiving device management specification information of the first device, and executing the device management specification information.
  • the first device includes a device management server or a terminal device
  • the second device includes a device management server or a terminal device.
  • the embodiment of the invention further discloses a device management server, comprising: a setting unit, configured to set a remote procedure call command in the device management specification information; and a transmission unit, configured to transmit the device management specification information.
  • the device management specification information includes one of the following, or any combination thereof: an existing device management command, a device management object, and a newly added device management command, where the setting unit includes one of the following, or any combination thereof: a setting subunit for setting a remote procedure call command in an existing device management command; a second setting subunit for setting a remote procedure call command in a device management object; and a third setting subunit for remotely The procedure call command is set in the new device management command.
  • the embodiment of the invention further discloses a terminal device, comprising: a receiving unit, configured to receive device management specification information; a processing unit, configured to perform processing according to the device management specification information received by the receiving unit, and return the execution result to the device
  • the management server is configured to implement management of the terminal device by the device management server.
  • the DM server can transmit the RPC command to the terminal device, so that the terminal device executes the RPC command, so that some CWMP-based data models can be reused under the OMA DM system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Description

一种远程过程调用命令的传输方法、 系统及相关装置 本申请要求于 2007 年 10 月 10 曰提交中国专利局、 申请号为 200710162810.7, 发明名称为 "一种远程过程调用命令的传输方法、 系统和装 置" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信领域,尤其涉及一种远程过程调用命令的传输方法、 系统 和装置。
背景技术
开放移动联盟设备管理 ( OMA DM , Open Mobile Alliance Device Management )工作组制定了设备管理的统一规范。 在该规范中, 第三方(如 移动运营商、 业务提供商或者合作方的信息管理部门)利用设备管理(DM ,
Device Management )服务器管理和设置终端设备(比如手机终端设备及终端 设备中的功能对象) 中的环境和配置信息, 以解决这些终端设备(CPE,
Customer Premises Equipment )在使用过程中遇到的问题。所述 DM服务器和终 端设备组成一个 DM系统, 在该系统中, 务器可通过无线网络( OTA ,
Over the Air )方式对终端设备进行管理和设置, 如软件和固件的安装、升级等 操作, 以提供个性化的服务, 提高用户体验。
在 DM系统中,终端设备上的 DM代理用于解释和执行 DM服务器下发的管 理命令。 终端设备上存储的管理树可以被认为是一个 DM服务器通过 DM协议 对终端设备进行管理的接口; 该管理树包括一些基本管理对象(MO ,
Management Object ) , DM^务器通过操作命令 MO的操作达到控制终端设备 的目的; 所述操作命令有获取 ( Get ) 、 替换 ( Replace ) 、 执行(Exec ) 、 复 制 (Copy ) 、 删除(Delete )等。
数字用户线( DSL , Digital Subscriber Line )论坛定义了广域网用户设备 管理协议(CWMP, CPE WAN Management Protocol ) , CWMP应用于 DSL的 网络环境内, 实现与 OMA DM类似的功能; 在 DSL网络环境里, 管理服务器 ( ACS , Auto-Configuration Server ),通过远程过程调用( RPC, Remote Procedure
Call )命令与终端设备实现双向通信, 完成远程管理的目的。 CPE中保存着各 种数据模型, 以维护 CPE上各功能使用的参数。 在一般情况下, OMA DM规范应用于无线环境, 而 CWMP应用于固定网 络环境。随着无线保真( Wireless Fidelity, WIFI )、微波接入全球互通( Worldwide Interoperability for Microwave Access, WIMAX )等无线通信技术的发展,这些 通信技术虽然通过无线信道提供移动的功能,但其网絡提供服务的方式属于固 定网络的范畴。因此,发明人在开发过程中发现,当 WIFI、 WIMA 与 WCDMA (宽带码分多址接入)等无线通信方式相融合时, 由于当前不同网络下的终端 使用的管理规范不同,目前还没有一种协议或规范可以同时管理融合网络下的 所有终端。
发明内容
本发明的实施例提供了一种远程过程调用命令的传输方法、 系统和装置, 实现在融合网络下使用一种协议或规范管理所有的终端。
本发明的实施例提供了一种远程过程调用命令传输的方法, 包括: 将远程过程调用命令设置在设备管理规范信息中;
传输设备管理规范信息。
本发明的实施例还提供了一种远程过程调用命令传输的系统, 包括: 第一 设备和第二设备;
所述第一设备,用于将远程过程调用命令设置在设备管理规范信息中,并 将所述设备管理规范信息发送给所述第二设备;
所述第二设备, 用于接收所述第一设备发送的设备管理规范信息。
本发明的实施例还提供了一种设备管理系统, 包括: 第一设备和第二设备 所述第一设备,用于将远程过程调用命令设置在设备管理规范信息中,并 将所述设备管理规范信息发送给所述第二设备;
所述第二设备,用于接收所述第一设备的设备管理规范信息,并执行所述 设备管理规范信息中携带的远程过程调用命令。
本发明的实施例还提供了一种设备管理服务器, 包括:
设置单元, 用于将远程过程调用命令设置在设备管理规范信息中; 传输单元, 用于传输设备管理规范信息。
本发明的实施例还提供了一种终端设备, 包括:
接收单元,用于接收设备管理规范信息,所述设备管理规范信息中携带远 程过程调用命令;
处理单元,用于执行所述接收单元接收的设备管理规范信息中携带的远程 过程调用命令。
根据本发明实施例, 将 RPC命令设置在设备管理规范信息发送给终端设 备,以便终端设备执行该 RPC命令,从而实现在融合网络下使用 OMA.DM规 范管理基于 CWMP的数据模型的终端, 实现在融合网络下使用 OMA.DM管 理所有的终端; 由于本发明实施例将 RPC命令设置在设备管理规范信息发送 给终端设备, 实现在融合网络下使用 OMA.DM管理所有的终端, 因此不需要 专门开发一种协议或规范管理融合网络下所有的终端, 节约了开发成本。
附图说明
图 1示出了本发明实施例的远程过程调用命令传输总的方法图;
图 2示出了本发明实施例二中设备管理对象的结构;
图 3示出了本发明实施例二中另一种设备管理对象的结构;
图 4示出了本发明实施例五的传输 RPC命令的系统。
具体实施方式
为了便于本领域一般技术人员理解和实现本发明,现结合附图描绘本发明 的实施例。
在本发明的实施例中, 为了利用 OMA DM规范实现 DM服务器对 CWMP 系统的终端设备进行管理, 需要在 DM^务器与终端设备之间传输 RPC命令。 即, DMI艮务器采用 OMA DM规范信息(以下简称 DM信息) 向终端设备发送 基于 CWMP数据模型的命令(如 RPC命令) ; 终端设备采用 OMA DM规范向 DM服务器返回该命令的执行结果。
根据上述描述, 本发明实施例提供远程过程调用命令传输总的方法。
如图 1所示, 是本发明实施例提供的远程过程调用命令传输总的方法图。 101、 将远程过程调用命令设置在设备管理规范信息中;
102、 传输设备管理规范信息。
在下面实施例中详细描述通过 OMA DM规范传递 RPC命令的方法。 在实 施例一中, 描述了通过对 DM的命令(如 Alert (警报) )进行扩展, 以进行传 输 RPC命令的方法; 在实施例二中, 描述了通过特定的 DM MO ( Management Object, 管理对象)进行传递 RPC命令的方法; 在实施例三中, 描述了通过对 DM命令集的扩展, 以进行传输 RPC命令的方法。
实施例一
本发明实施例描述扩展 DM命令, 以通过扩展的 DM命令传输 RPC命令的 方法。 下面以 Alert命令为例描述传输 RPC命令的方法, Alert命令在 DM中的使 用规范为:
Alert (CmdID, Data?, Correlator?, Item*)
其中, CmdID是 DM定义的每条命令发送时设定的 ID号。 Data (数据)元 素用于指示该 Alert命令的类型; Item (项目)元素用于指示该 Alert命令的内容。 例如, Data = 1100表示这是一个显示消息, 终端设备收到该消息时, 会将 Item 中的内容显示给用户。 Correlator参数用于表示与某承载 RPC命令的 Alert命令对 应的一个相关值, 当该 RPC命令需要一段时间才能获得执行结果时, 通信对端 可以在回复该 RPC命令时使用这个 Correlator值,以表示该回复是对该 Correlator 值对应的 RPC命令的回复。
为了在 Alert命令中承载 RPC命令, 首先要为每条 RPC命令分配一个 Alert
Code (该 Alert Code称作 RPC命令码) , 将该 Alert码设置在 Date元素中, 以便 使通信对端识别该 Alert命令承载的是什么 RPC命令。 然后在 Item中承载该 RPC 命令的参数, 可基于 XML ( Extensible Markup Language, 可扩展标识语言)语 言来描述具体的参数。 这样, 当通信对端接收到 Alert命令时, 就可确定其承载 的 RPC命令和参数, 然后执行该 RPC命令, 并通过 DM中定义的 Status命令、 Results命令或 Alert命令来回复 Alert命令, 将回复的参数包含在 Status命令、 Results命令或 Alert命令的 Item中。
下面是一个在 Alert命令中承载 RPC命令的例子。
RPC命令为: GetParameterNames , 它用于获取终端设备数据模型上某些 参数的名称。 该命令有两个参数: ParameterPath, 指示需要获取数据模型上参 数的路径, 终端设备可以根据该路径找到这些参数; 另一个参数: NextLevel, 指示是否需要获取该路径的下级目录, 它是一个布尔值。该命令的执行返回一 个值: ParameterlnfoStruct,该值是一个复合值,包含两个参数: Name, Writable„ Name是该参数的名称, Writable指示是否可以对该参数进行赋值, 如果该参数 是一个子对象, 则表示是否可以删除该子对象。
DM服务器向终端设备发送 Alert命令, 在 Alert命令中的 Item/DATA的参数 中提供 RPC命令的名称和参数, Alert命令如下:
<Alert>
<CmdID>3 </CmdID>
<Data>1248</Data
<Item>
<Type xmlns="syncml:metinf'>application/dsl.cwmp.rpc</Type>
<Format xmlns=l'syncml:metinf'>xml</Format>
<Data>
<rpc:ParameterPath>InternetGatewayDevice.LANDevice.l .Hosts.<^c:Paramete rPath>
</Data>
</Item>
<Item>
<Type xmlns="syncml:metinf'>application/dsl.cwmp.rpc</Type>
<Format xmlns=,,syncml:metmf'>xml</Format>
<Data>
<rpc: NextLevel>true<^c :NextLevel>
</Data>
</Item>
</Alert>
其中 rpc是预先定义好的名字空间, 里面指示了如何解析 ParameterPath、 NextLevel等参数。
在该 Alert命令中 , 1248是 Alert码 , 表示该 Alert命令是用于 RPC消息中的 GetParameterNames命令; 两个 Item中包含了该命令的两个参数: ParameterPath 和 NextLevel。 因为 NextLevel = true; 终端设备可利用 Status命令或 Results命令 来返回 ParameterPath参数中指定的路径下一级的参数名称: <Status>
<MsgRef>2< MsgRef><CmdRef>3 </CmdRef>
<CmdID>2</CmdID>
<Cmd>Alert</Cmd>
<Data>200< Data>
<Item>
<Type xmlns="syncml:metinf'>application/dsl.cwmp.rpc</Type>
<Format xmlns=,,syncml:metmf'>xml</Format>
<Data>
<rpc: ParameterList>
<rpc:Name>IntemetGatewayDevice.LANDevice.l.Hosts.HostNumberOfEntrie s
</rpc:Name>
<rpc:Writabls>true</rpc:Writabl6>
</rpc: ParameterLi st>
<rpc: ParameterList>
<rpc:Name>
IntemetGatewayDevice .L ANDevice .1.Hosts.Host.</rpc:Name>
<rpc:Writable>false</rpc:Writable>
</rpc : ParameterLi st>
</Data>
</Item>
</Status>
上述 Status命令用于对 GetParameterNames命令进行回复, 200表示命令执 行成功,返回的结果保存在 Item中,表明在 Alert命令指示的路径下有两个参数, 其中一个为 HostNumberOffintries , 可以对该节点进行赋值 , 另一个为 Host., 后面紧跟的 "."表示这是一个子对象, 内含其它参数, 该子对象不能被删除。
通过该例子表明了利用 Alert命令传递 RPC命令的方法。 一种类似的方案是设定一个特定的 Alert Code (即 RPC识别码) , 假设为 1240。可将该 Alert识别码设置在 Alert命令的 Data元素中, 以表示该 Alert命令专 门用于承载 RPC命令。 而 RPC命令的相关信息, 包括命令名称和命令参数全部 设置在 Item中。 下面的 Item内容即为上述例子中的 RPC命令:
<Item>
<Type xmlns="syncml:metinf'>application/dsl.cwmp.rpc</Type>
<Format xmlns="syncml:metinf >xml< Format>
<Data>
<rpc: GetParameterNames>
<rpc:ParameterPath>InternetGatewayDevice.LANDevice.l.Hosts.<^c:Paramete rPath>
<rpc: NextLevel>true</rpc :NextLevel>
</rpc:GetParameterNames>
</Data>
</Item>
终端设备收到该消息后, 从 1240获知这是一条 RPC命令, 从 Item中获得该 命令的内容。 执行后, 并将执行的结果通过 Status命令、 Results命令或 Alert命 令进行回复。
上面以 Alert命令为例描述了传输 RPC命令的方法, 同理, 可采用其它 DM 命令传输 RPC命令。
实施例二
下面通过在 OMA 见范中定义一个新的 DM MO, 该 DM MO称作 RPC MO,可利用该 RPC MO来传输 RPC命令,图 2和图 3是两个 RPC MO的组织结构。 在图 2中, RPC命令及其参数可位于不同节点, 即分开表示, 即 RPC命令用 RPC 命令标识来表示, RPC的参数使用 XML的方式来描述,所述 RPC命令标识可以 是 RPC命令名称或是与实施例一的 Alert码类似的一个标识; 而图 3所示 RPC MO是将整个 RPC命令保存于同一节点,用 XML方式描述。当终端设备获得 RPC 命令时, 对于图 2所示的结构, 它可以通过 RPC命令标识找到执行该命令的模 块, 并传递相应参数; 对于图 3所示的结构, 终端设备获得 RPC命令后, 需要 解析命令的描述,从中提取出命令标识和参数,再由相应的执行模块处理该命 令。
在该 RPC MO中还有两个节点: Result (结果)和 Execute (执行)。 其中, Result节点用于保存 RPC命令执行的结果 , Execute命令用于触发执行该 RPC命 令。
下面是传递 RPC命令的例子:
服务器利用图 2所示的结构配置 RPC MO。 将 Name (名称)值设置为 GetParameterNames , 也可以用一个 ID值, 如 1248来表示这个命令。 再在 RPC/X/Parameter (参数)节点下设定 ParameterPath和 NextLevel两个参数, 分 别为:
<rpc :ParameterPath xmlns:rpc="syncml:metinf,>
InternetGatewayDevice.LANDevice.1.Hosts.
</rpc :ParameterPath>
<rpc: NextLevel>true</rpc: NextLevel>
如果是采用图 3所示的结构, 则将整个 RPC命令保存在 Command (命令) 节点下, 如:
<rpc: GetParameterNames xmlns:rpc="syncml:metinf'> <rpc:ParameterPath>IntemetGatewayDevice.LANDevice.1.Hosts.</rpc:Parame terPath>
<rpc :NextLevel>true</rpc :NextLevel>
</rpc:GetParameterNames>
服务器配置好 RPC命令信息后, 执行 Execute节点, 终端设备执行该命令, 并将执行结果(参见实施例一中 Status命令中 Item/Data内所提供的代码)记录 到 Result节点中, 服务器可以通过两种方式获得 PC执行的结果。 一是包含在 Exec指令的回复消息中, 与实施例一中的 Status回复一样 , 可以从所述 Status 命令的 Item中获得; 另一种是仅回复 200成功消息, 服务器通过对 Result节点的 Get获得执行的结果。 即当服务器收到 200OK回复后, 发送 Get指令获取 Result 节点内容:
<Get>
<CmdID>5</CmdID>
<Item>
<Target><LocURI>./RPC/Result< LocURI></Target> </Item>
</Get>
终端设备收到该命令后, 将 Result中保存的内容发送给服务器。
实施例三
本发明实施描述了通过对 DM命令集的扩展,以进行传输 RPC命令的方法。 即在 DM的指令集中增加 RPC命令, 这样, 务器就可象对待 DM命令一样 对待 RPC命令, 从而可方便地向设备终端传输 RPC命令。 在 DM的命令集中, 除 Alert命令外,其余命令都是针对设备管理树的, 而 RPC命令不仅包含对数据 模型的操作,还包括对设备的操作,所以可以设计一些类似于 Alert的 DM命令, 完成 RPC指令的下发。 下面是 RPC命令的书写规范(DTD ) :
RPCCommand (CmdID, Correlator?, Item*)
其中 RPCCommand是 RPC命令的标识; CmdID是 DM定义的每条命令发送 时设定的 ID号; Correlator用于非同步操作时, 如 RPC的 Download命令, 该命 令下发时, 由于无法立即回复, Status回复中无法包含命令执行的结果, 因此 在执行结果上报时, 需要通过 Correlator值告知服务器该结果对应的是哪一条 RPC命令; Item是该 RPC命令的参数。
本实施例与实施例一中的传送 RPC命令的方法相似,唯一的区别在于实施 例一可用 Alert码 (如 Data中的 Alert码 )来区分不同的 RPC命令; 而在本实施例 中用命令标识来区分 RPC命令。 由于传输 RPC的方法与实施例一致, 在此不再 重复。
在实施例一至实施例三中 , 当终端设备接收到 DM^务器传输的包括 RPC 命令的 DM规范信息后, 可执行所述设备管理规范信息中的 RPC命令, 进而实 现 DM艮务器对终端设备的管理。 所述设备管理规范信息包括下列其中之一, 或其任意组合: 现有设备管理命令、 设备管理对象、 新增设备管理命令。 实施例四
如图 4所示, 本发明实施例公开了一种远程过程调用命令传输的系统, 包 括: 第一设备, 用于将远程过程调用命令设置在设备管理规范信息中, 并将所 述设备管理规范信息发给第二设备; 第二设备,用于接收所述第一设备的设备 管理规范信息。所述第一设备包括设备管理服务器或终端设备,所述第二设备 包括设备管理服务器或终端设备。 在图 4中, 第一设备为设备管理服务器; 第 二设备为终端设备。
本发明实施例公开了一种设备管理系统, 包括: 第一设备, 用于将远程过 程调用命令设置在设备管理规范信息中,并将所述设备管理规范信息发给第二 设备; 第二设备, 用于接收所述第一设备的设备管理规范信息, 并执行该设备 管理规范信息。所述第一设备包括设备管理服务器或终端设备,所述第二设备 包括设备管理服务器或终端设备。
本发明实施例还公开了一种设备管理服务器, 包括: 设置单元, 用于将远 程过程调用命令设置在设备管理规范信息中;传输单元,用于传输设备管理规 范信息。 所述设备管理规范信息包括下列其中之一, 或其任意组合: 现有设备 管理命令、设备管理对象、新增设备管理命令, 所述设置单元包括下列其中之 一,或其任意组合: 第一设置子单元, 用于将远程过程调用命令设置在现有设 备管理命令中; 第二设置子单元,用于将远程过程调用命令设置在设备管理对 象中;第三设置子单元,用于将远程过程调用命令设置在新增设备管理命令中。
本发明实施例还公开了一种终端设备, 包括: 接收单元, 用于接收设备管 理规范信息; 处理单元,用于根据所述接收单元接收的设备管理规范信息进行 处理,并将执行结果返回设备管理服务器, 以实现设备管理服务器对终端设备 的管理。
根据本发明实施例, 可使 DM服务器可以将 RPC命令发送给终端设备, 以 便终端设备执行该 RPC命令, 从而使得一些基于 CWMP的数据模型可以在 OMA DM的系统下得到重用。
以上对本发明所提供的一种远程过程调用命令的传输方法、系统和装置进 行了详细介绍, 对于本领域的一般技术人员,依据本发明实施例的思想, 在具 体实施方式及应用范围上均会有改变之处, 综上所述,本说明书内容不应理解 为对本发明的限制。

Claims

权 利 要 求
1、 一种远程过程调用命令传输的方法, 其特征在于, 包括:
将远程过程调用命令设置在设备管理规范信息中;
传输所述设备管理规范信息。
2、根据权利要求 1所述的远程过程调用命令传输的方法, 其特征在于, 所 述设备管理规范信息包括现有设备管理命令,所述现有设备管理命令具体为警 报命令。
3、根据权利要求 2所述的远程过程调用命令传输的方法, 其特征在于, 所 述警报命令包括远程过程调用命令码和远程过程调用命令的参数,其中,每一 远程过程调用命令码对应一个远程过程调用命令。
4、根据权利要求 3所述的远程过程调用命令传输的方法, 其特征在于, 所 述将远程过程调用命令设置在设备管理规范信息中具体包括:将远程过程调用 命令码设置在警报命令的数据元素中,将远程过程调用命令的参数设置在警报 命令的项目元素中。
5、根据权利要求 2所述的远程过程调用命令传输的方法, 其特征在于, 所 述警报命令包括远程过程调用命令识别码、远程过程调用命令码和远程过程调 用命令的参数, 其中, 每一远程过程调用命令码对应一个远程过程调用命令。
6、根据权利要求 5所述的远程过程调用命令传输的方法, 其特征在于, 所 述将远程过程调用命令设置在设备管理规范信息中具体包括:将远程过程调用 命令识别码设置在警报命令的数据元素中,将远程过程调用命令码和远程过程 调用命令的参数设置在警报命令的项目元素中。
7、根据权利要求 1所述的远程过程调用命令传输的方法, 其特征在于, 所 述设备管理规范信息包括设备管理对象,所述设备管理对象包括远程过程调用 命令标识和远程过程调用命令参数,其中,每一远程过程调用命令标识对应一 个远程过程调用命令;所述远程过程调用命令标识和远程过程调用命令参数可 位于不同节点或同一节点。
8、根据权利要求 7所述的远程过程调用命令传输的方法, 其特征在于, 所 述设备管理对象还包括: 结果参数, 用于保存远程过程调用命令执行的结果; 执行命令节点, 用于触发执行该远程过程调用命令。
9、根据权利要求 1所述的远程过程调用命令传输的方法, 其特征在于, 所 述设备管理规范信息包括新增设备管理命令。
10、 根据权利要求 1所述的远程过程调用命令传输的方法, 其特征在于, 在所述传输设备管理规范信息之后,所述方法还包括:终端设备执行设备管理 规范信息中的远程过程调用命令。
1 1、一种远程过程调用命令传输的系统, 其特征在于, 包括: 第一设备和 第二设备;
所述第一设备,用于将远程过程调用命令设置在设备管理规范信息中,并 将所述设备管理规范信息发送给所述第二设备;
所述第二设备, 用于接收所述第一设备发送的设备管理规范信息。
12、根据权利要求 11所述的系统, 其特征在于, 所述第一设备包括设备管 理服务器或终端设备, 所述第二设备包括设备管理服务器或终端设备。
13、 一种设备管理系统, 其特征在于, 包括: 第一设备和第二设备 所述第一设备,用于将远程过程调用命令设置在设备管理规范信息中,并 将所述设备管理规范信息发送给所述第二设备;
所述第二设备,用于接收所述第一设备的设备管理规范信息,并执行所述 设备管理规范信息中携带的远程过程调用命令。
14、 一种设备管理服务器, 其特征在于, 包括:
设置单元, 用于将远程过程调用命令设置在设备管理规范信息中; 传输单元, 用于传输设备管理规范信息。
15、根据权利要求 14所述的设备管理服务器, 其特征在于, 所述设置单元 包括下列其中之一, 或其任意组合:
第一设置子单元, 用于将远程过程调用命令设置在现有设备管理命令中; 第二设置子单元, 用于将远程过程调用命令设置在设备管理对象中; 第三设置子单元, 用于将远程过程调用命令设置在新增设备管理命令中。
16、 一种终端设备, 其特征在于, 包括:
接收单元,用于接收设备管理规范信息,所述设备管理规范信息中携带远 程过程调用命令;
处理单元,用于执行所述接收单元接收的设备管理规范信息中携带的远程 过程调用命令。
PCT/CN2008/072640 2007-10-10 2008-10-10 Un procédé, un système et un appareil corrélatif pour transmettre une commande de demande de procédure distante WO2009049542A1 (fr)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP08840353A EP2197154B1 (en) 2007-10-10 2008-10-10 Method, system and correlative apparatus for transmitting a rpc command
ES08840353T ES2398408T3 (es) 2007-10-10 2008-10-10 Método, sistema y equipo correspondiente para transmitir una instrucción de RPC
US12/758,497 US8327391B2 (en) 2007-10-10 2010-04-12 Method, system and apparatus for transmitting remote procedure call commands

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710162810.7 2007-10-10
CN200710162810.7A CN101409632B (zh) 2007-10-10 2007-10-10 一种远程过程调用命令的传输方法、系统和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US12/758,497 Continuation US8327391B2 (en) 2007-10-10 2010-04-12 Method, system and apparatus for transmitting remote procedure call commands

Publications (1)

Publication Number Publication Date
WO2009049542A1 true WO2009049542A1 (fr) 2009-04-23

Family

ID=40567023

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/072640 WO2009049542A1 (fr) 2007-10-10 2008-10-10 Un procédé, un système et un appareil corrélatif pour transmettre une commande de demande de procédure distante

Country Status (5)

Country Link
US (1) US8327391B2 (zh)
EP (1) EP2197154B1 (zh)
CN (1) CN101409632B (zh)
ES (1) ES2398408T3 (zh)
WO (1) WO2009049542A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9026582B2 (en) * 2010-03-23 2015-05-05 Htc Corporation Device management methods and related apparatus for enhancing applicability of status messages in response to commands
CN102375755A (zh) * 2010-08-17 2012-03-14 鸿富锦精密工业(深圳)有限公司 数据模型对象删除识别装置及其使用方法
CN102761431A (zh) * 2011-04-29 2012-10-31 华为终端有限公司 事件上报方法及用户驻地设备
US9723091B1 (en) * 2012-11-09 2017-08-01 Noble Systems Corporation Variable length protocol using serialized payload with compression support
CN110392017B (zh) * 2018-04-18 2020-11-06 华为技术有限公司 处理rpc报文的方法及相关装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060236325A1 (en) * 2005-03-21 2006-10-19 Rao Bindu R Mobile device client
CN1969504A (zh) * 2004-07-09 2007-05-23 Lg电子株式会社 设备管理系统和设备管理命令调度方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6480901B1 (en) * 1999-07-09 2002-11-12 Lsi Logic Corporation System for monitoring and managing devices on a network from a management station via a proxy server that provides protocol converter
US6769022B1 (en) * 1999-07-09 2004-07-27 Lsi Logic Corporation Methods and apparatus for managing heterogeneous storage devices
US7321929B2 (en) * 2003-08-01 2008-01-22 Network Appliance, Inc. Programmable remote device management system for locally or remotely controlling and/or configuring a communication network switch
WO2006063118A2 (en) * 2004-12-07 2006-06-15 Pure Networks, Inc. Network management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1969504A (zh) * 2004-07-09 2007-05-23 Lg电子株式会社 设备管理系统和设备管理命令调度方法
US20060236325A1 (en) * 2005-03-21 2006-10-19 Rao Bindu R Mobile device client

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
See also references of EP2197154A4 *
THURLOW R: "RPC: Remote Procedure Call Protocol Specification Version 2.", THURLOW.DRAFT-IETF-NFSV4-RFCL 831 BIT, December 2006 (2006-12-01), XP008133003, Retrieved from the Internet <URL:http://tools.ietf.org/html/draft-ietf-nfsv4-rfc1831bis-06> *

Also Published As

Publication number Publication date
EP2197154A4 (en) 2011-06-08
US8327391B2 (en) 2012-12-04
EP2197154A1 (en) 2010-06-16
ES2398408T3 (es) 2013-03-15
US20100199291A1 (en) 2010-08-05
CN101409632A (zh) 2009-04-15
CN101409632B (zh) 2011-02-02
EP2197154B1 (en) 2012-12-12

Similar Documents

Publication Publication Date Title
US9009278B2 (en) Device management server, device management client, and method for locating a target operation object
US8095634B2 (en) Device management system for mobile devices that supports multiple-point transport
JP5574544B2 (ja) 単一化されたデバイス管理方法及びシステム
US20080244049A1 (en) Method and System for Device Management
CN113411215B (zh) 基于opc ua的时间敏感网络集中用户配置方法及系统
WO2010111959A1 (zh) 提供节点信息的方法、获取节点信息的方法及设备
WO2009062410A1 (fr) Procédé et dispositif pour instancier un objet de gestion d&#39;une arborescence de gestion dans un dispositif terminal
EP2171917B1 (en) System and method for providing device management service to electronic device having no broadband communication module
WO2009049542A1 (fr) Un procédé, un système et un appareil corrélatif pour transmettre une commande de demande de procédure distante
KR101292107B1 (ko) 설비 기술 프레임워크 정보의 보고 및 업데이트 방법, 설비와 시스템
EP2573978B1 (en) Method, apparatus and system for device management
CN101547460A (zh) 一种处理ddf信息的方法、设备及系统
CN101442791B (zh) 一种节点信息的发送方法和装置
CN101351046B (zh) 终端设备软件组件激活方法、终端设备及设备管理服务器
WO2010043150A1 (zh) 上报设备信息的方法、用户终端和服务器
WO2013082817A1 (zh) 一种识别移动终端的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08840353

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2008840353

Country of ref document: EP