WO2013017020A1 - Method and system for operating executable node - Google Patents

Method and system for operating executable node Download PDF

Info

Publication number
WO2013017020A1
WO2013017020A1 PCT/CN2012/078904 CN2012078904W WO2013017020A1 WO 2013017020 A1 WO2013017020 A1 WO 2013017020A1 CN 2012078904 W CN2012078904 W CN 2012078904W WO 2013017020 A1 WO2013017020 A1 WO 2013017020A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
node
request message
response message
server
Prior art date
Application number
PCT/CN2012/078904
Other languages
French (fr)
Chinese (zh)
Inventor
金志皓
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2013017020A1 publication Critical patent/WO2013017020A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and system for operating an executable node. Background technique
  • 0MA (Open Mobi le Al l iance) DM (Device Management) VI. 3 is a unified device management specification (hereinafter referred to as the DM specification) established by OMA DM WorkGrou.
  • the DM system provides a low-cost solution for third-party management and setting of environment and configuration information in terminal devices (such as mobile terminals and functional objects in terminals) to solve problems encountered during the use of these devices, such as Install and upgrade software and firmware through OTA (Over The Ai r, wireless network), and provide more personalized and personalized services to enhance user experience.
  • Third parties can be operators, service providers or cooperation. Party's information management department.
  • REST (REpresentat State State Transfer) 4 describes an architectural style network system.
  • REST refers to a set of architectural constraints and principles. The application or design that satisfies these constraints and principles is RESTful.
  • RESTful is a design style of a Web Service (an interface proposed to enable communication and sharing between isolated sites).
  • the standard HTTP (HyperText Transfer Protocol) method is adopted. Operate on resources.
  • a device management protocol that conforms to the RESTful design style can be called a RESTful DM.
  • the server uses the standard HTTP method to operate the M0 (Management Object) on the terminal. This kind of operation is easy to interface with existing Web standards, and DM management can also be implemented through standard Web methods. At the same time, by simplifying the protocol process, the capability requirements for the DM terminal can also be reduced.
  • the existing executable node of OMA DM is executed by the server as a bearer through HTTP.
  • the terminal sends a SyncML (Synchronized Markup Language) file, which is an XML (Extensible Markup Language) extension that defines various commands used by OMA DM by defining SyncML.
  • SyncML Synchronized Markup Language
  • XML Extensible Markup Language
  • the client needs to parse the semantics of SyncML to know the stage in which the current session is located and the commands issued by the server. It is necessary to parse the M0 that conforms to the SyncML format, that is, to manage the data. It also needs to parse the session and command information contained in the SyncML, that is, the management command, which has high requirements on the capabilities of the terminal device, and cannot directly manage the device by using the HTTP standard method. Not conducive to direct device management through web applications. SUMMARY OF THE INVENTION In view of the above problems, embodiments of the present invention provide a method and system for operating an executable node, and the device can be directly managed by using an HTTP standard method.
  • the embodiment of the invention provides a method for operating an executable node, including:
  • Receiving a trigger message sending a first request message
  • the first response message is a response message that is sent according to the first request message, where the first response message includes information indicating that the executable node performs an operation
  • the second response message is a response message that is sent according to the second request message, where the second response message includes an error code
  • the embodiment of the present invention further provides a method for operating an executable node, including: sending a trigger message;
  • Sending a first response message where the first response message is a response message that is sent according to the first request message, where the first response message includes information indicating that the executable node performs an operation;
  • the response message sent, the second response message includes an error code.
  • the embodiment of the present invention further provides a method for operating an executable node, where the executable node adds a node value, and the method includes:
  • the node is an executable node.
  • the embodiment of the present invention further provides a method for operating an executable node, where the executable node adds a node value, and the method includes:
  • the embodiment of the present invention further provides a client that operates on an executable node, where the client includes, a receiving unit, a message parsing unit, a message generating unit, a sending unit, a determining unit, and an executable node, where:
  • the receiving unit is configured to receive a message sent by the server, where the message sent by the server includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message; a response message includes information indicating that the executable node performs an operation, the second response message includes an error code, and the second response message may further include information indicating that the executable node performs an operation;
  • the message is either the first request message and the second request message, the first request message includes an indication of the identity verification information and the requesting device information; the second request message is used to indicate that the node is an executable node, and Contains information indicating that the executable node performs an operation;
  • the message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send a message to the server.
  • the message sent to the server includes a first request message and a second request message, where the first request message is used to be used by the client.
  • the device information is sent to the server, and the second request message is used to cause the server to return a specific error code; the message sent to the server is a first response message, and the first response message includes Device information
  • the determining unit is configured to determine, according to the parsing result of the message parsing unit, an executable node that the server needs to operate;
  • the executable node has an executable attribute for executing an operation command sent by the server to complete the corresponding operation.
  • the embodiment of the present invention further provides a server for operating an executable node, where the server includes: a receiving unit, a message parsing unit, a message generating unit, and a sending unit, where:
  • the receiving unit is configured to receive a message sent by the client, where the message sent by the client includes a first request message and a second request message, where the first request message is used to send device information of the device where the client is located.
  • the message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send the message to the client
  • the message sent to the client includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message; the first response message includes an indication that the executable node performs The second response message includes an error code, and the second response message further includes information indicating that the executable node performs an operation; the message sent to the client is the first request message.
  • the second request message the first request message includes an indication of the identity verification information and the requesting device information; the second request message is used to indicate that the node is an executable node, and includes an indication that the executable node performs an operation.
  • Information is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the par
  • the embodiment of the present invention further provides a system for operating an executable node, where the system includes a client and a server.
  • the client includes a receiving unit, a message parsing unit, a message generating unit, a sending unit, a determining unit, and an executable node, where:
  • the receiving unit is configured to receive a message sent by the server, where the message sent by the server includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message;
  • a response message includes an indication that the executable node performs an operation
  • the second response message includes an error code, and the second response message may further include information indicating that the executable node performs an operation;
  • the message sent by the server is either the first request message and the second a request message, the first request message includes an indication of the authentication information and the requesting device information;
  • the second request message is used to indicate that the node is an executable node, and includes information indicating that the executable node performs an operation;
  • the message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send a message to the server.
  • the message sent to the server includes a first request message and a second request message, where the first request message is used to send device information of the client to the server, and the second request message is used to The server returns a specific error code; the message sent to the server is a first response message, and the first response message includes the device information;
  • the determining unit is configured to determine, according to an analysis result of the message parsing unit, an executable node that the server needs to operate;
  • the executable node has an executable attribute for executing an operation command sent by the server to complete a corresponding operation.
  • the client includes a receiving unit, a message parsing unit, a message generating unit, and a sending unit, and the towel:
  • the receiving unit is configured to receive a message sent by the client, where the message sent by the client includes a first request message and a second request message, where the first request message is used to send device information of the device where the client is located.
  • the message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send the message to the client
  • the message sent to the client includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message; the first response message includes an indication that the executable node performs The second response message includes an error code, and the second response message further includes information indicating that the executable node performs an operation; the message sent to the client is the first request message.
  • a second request message where the first request message includes identity verification information and a request The indication of the device information; the second request message is used to indicate that the node is an executable node, and includes information indicating that the executable node performs an operation.
  • FIG. 1 is a schematic diagram of a basic framework of an OMA DM
  • FIG. 2 is a flowchart of a method for operating an executable node according to an embodiment of the present invention
  • FIG. 3 is a flow chart of another method for operating an executable node according to an embodiment of the present invention.
  • FIG. 4 is a flow chart of still another method for operating an executable node according to an embodiment of the present invention.
  • FIG. 5 is a flow chart of still another method for operating an executable node according to an embodiment of the present invention.
  • FIG. 6 is a flow chart of still another method for operating an executable node according to an embodiment of the present invention.
  • FIG. 7 is a flow chart of still another method for operating an executable node according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a client operating on an executable node according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a server operating on an executable node according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a system for operating an executable node according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. Based on the embodiments of the present invention, those of ordinary skill in the art are not All other embodiments obtained under the premise of creative work are within the scope of the invention.
  • the overall structure of the OMA DM includes a terminal device and a server.
  • the DM client on the terminal device is used to interpret and execute the management commands issued by the DM server.
  • the DM server communicates with the DM client in the terminal device through the DM protocol to implement management of the terminal device.
  • the device management tree stored on the terminal device can be regarded as an interface for the DM server to manage the terminal device.
  • the device management tree includes some management objects.
  • the DM server achieves the purpose of managing the terminal device by operating the management object.
  • the operation commands are Get, Replace, Exec, Copy, De lete, and so on.
  • the existing executable node of OMA DM is implemented by the server as a bearer through HTTP, and sends a SyncML file to the terminal.
  • SyncML various commands used by OMA DM are defined.
  • the URI on the terminal needs to be executed as ". /FanOut/
  • the node of Opera t ions/S tar t first, the node must be an executable node, that is, the node attribute of the node is "Exec"; then the server needs to pass HTTP or other bearer mode during the specified session.
  • Send a SyncML packet to the terminal is in the form of an XML file containing the description of the node that needs to be executed as follows:
  • Ht tp / /www. syncml. org/mgmt-server ⁇ /LocURIX/Source>
  • the client receives such a file, first parses SyncHdr to know which server needs to be managed, and also needs to parse the ID of the management session, and the ID of the message itself, and also know the ID of the command.
  • the type of the command is "Exec”
  • the attribute of the target node of the command is "Exec”. In combination with the above information, the target node can be executed.
  • the client needs to parse the semantics of SyncML to know the stage in which the current session is located and the commands issued by the server. It is necessary to parse the M0 that conforms to the SyncML format, that is, to manage the data; and to parse the session and command information contained in the SyncML, that is, the management command.
  • the capability of the terminal device is high, and the device cannot be directly managed by using the HTTP standard method, which is not conducive to device management directly through the network application.
  • the server performs device management on the client through the standard HTTP method, it needs to follow the M0 design of the existing OMA DM, and operate the nodes in these M0s using the standard HTTP method.
  • the standard HTTP methods include PUT, DELETE, POST, GET.
  • the MO that carries the OMA DM using HTTP is to express the management command and the session flow by using the standard methods provided by HTTP itself, and only the part that manages the data needs to be parsed. This can reduce the server and client capacity requirements, reduce the burden of over-the-air transmission, and use the standard HTTP method to carry commands, which is beneficial for Web App to directly manage the management data of OMA DM.
  • HTTP server For the terminal, some terminals have the ability to configure HTTP Server (HTTP server), that is, can accept HTTP requests. Most terminals do not have HTTP Server configured. Capability, only HTTP Cl ient (HTTP client) can be configured, that is, only HTTP requests can be initiated, and HTTP requests cannot be accepted.
  • FIG. 2 it is a flowchart of a method for operating an executable node according to an embodiment of the present invention.
  • HTTP Server + HTTP Cl ient is deployed on the server side, and only HTTP Cl is deployed on the client side.
  • the ient the client requests the resource from the server through the standard HTTP method, and the server sends an indication to the client through the response message Response, and the response includes a set HTTP request initiated by the client.
  • the server sets a corresponding HTTP request in the Response, and after receiving the Response, the client initiates an HTTP request set in the Response to the server, and the server responds to the request, and the client responds according to the response.
  • the client does not deploy HTTP Server, so it cannot listen to HTTP messages at any time, nor can it receive HTTP requests.
  • the server needs to manage the client, it sends a notification message to the client through WAP PUSH or SIP PUSH or SMS, and the session is pulled up.
  • the client After receiving the notification message, the client first verifies the notification message and the server. Validity, and then initiate an HTTP request to the server.
  • the purpose of this HTTP request is to send the device information of the device where the client is located to the server.
  • This HTTP request is a POST request. This step can be considered as prior art.
  • For the HTTP POST information refer to the following example:
  • the server After receiving the last HTTP POST request sent by the client, the server needs to return an HTTP response.
  • the server sets the next HTTP request that needs to be initiated by the client in the form of text.
  • the HTTP request is included in the HTTP request.
  • the server needs to perform device management actions on the client. For example, when the server needs the client to update its own email settings, it will return an HTTP response as follows:
  • the last three lines are the contents of the text format carried by the HTTP response.
  • the client After receiving the HTTP response, the client directly sends the text format as the next HTTP request to the server to obtain an HTTP GET request to obtain the email settings of the device where the client is stored on the server. Since the OMA DM management data and HTTP method have GET commands, the client can directly perform an HTTP GET operation on M0.
  • the last three lines are the contents of the text format carried by the HTTP response.
  • the client After receiving the HTTP response, the client directly sends the text format as the next HTTP request to the server to initiate an HTTP PUT request. Since HTTP itself does not support the "Exec" command, subsequent steps 204 and 205 are required to determine the execution action.
  • the client initiates an HTTP request according to the HTTP response one in step 2.
  • the PUT command can also be a POST command. Since the target of the PUT or POST command (Universal Resource Locator) is ". /ManagementMO/Star t" under the root node of the client, it does not exist on the server. This node, so an PUT or POST operation on this URL will cause an error.
  • the purpose of this setup is to have the server return a specific error code.
  • the server After receiving the second request message in step 303, the server returns a second response message due to an error of the URL, and the second response message includes an error code.
  • the second response message further includes information indicating that the executable node performs an operation, that is, the node URI that needs to be executed may be carried again when the error code is sent.
  • An example of the server returning an error code for HTTP request 2 in step 203 is as follows: HTTP/1. 1 410 Gone
  • the error code returned by the server can carry the node URI that needs to be executed again, preventing the client from having the cached executable node URI:
  • the client After receiving the second response message, the client determines, according to the error code, that the second request message set by the server in the first response message is to execute the node.
  • the client determines, according to the first response message, a node that needs to be executed, and the node performs a corresponding operation, specifically by using ht tp in the first request message: //Server Addres s/Cl lent Addres s/ManagementMO/S tar Or determining, according to the second response message, the node that needs to be executed, and the node performs a corresponding operation.
  • the second response message needs to include information indicating that the executable node performs an operation.
  • the embodiment of the invention discloses a method for operating an executable node, which can be directly used.
  • the HTTP standard method manages the device, which facilitates device management directly through the network application, and also reduces the capability requirements for the terminal device.
  • FIG. 3 it is a flowchart of another method for operating an executable node according to an embodiment of the present invention.
  • HTTP Server + HTTP C ient is deployed on the server side, and only the client side is deployed.
  • HTTP C l ient the client requests resources from the server through the standard HTTP method, and the server sends an indication to the client through the response message Response, and the response includes a set HTTP request initiated by the client.
  • the server sets a corresponding HTTP request in the Response, and after receiving the Response, the client initiates an HTTP request set in the Response to the server, and the server responds to the request, and the client responds according to the request.
  • the response determines the execution action.
  • the client receives the trigger message sent by the server, and sends the first request message to the server according to the trigger message.
  • the specific implementation of this step is the same as step 201.
  • the 302. Receive a first response message, where the first response message is a response message that is sent according to the first request message, where the first response message includes information indicating that the executable node performs an operation, and the first response
  • the text directly in the message contains information that indicates that the executable node is performing the operation.
  • the server After receiving the first request message sent by the client, the server returns a response message. In the response, the server sets the next HTTP request required by the client in the form of text, and the server needs to be included in the HTTP request. Device management actions performed on the client.
  • step 202 The specific embodiment of this step is the same as step 202.
  • the client sends a second request message to the server according to the first response message in step 302.
  • the second request message includes address information of the executable node that needs to be executed, that is, the URL of the executable node. Since the node does not exist on the server, an operation error occurs on the operation of the URL, thereby causing the server Return a specific error code
  • step 203 The specific embodiment of this step is the same as step 203.
  • the response message sent, the second response message includes an error code.
  • the server After receiving the second request message in step 303, the server returns a second response message due to an error of the URL, and the second response message includes an error code.
  • the second response message further includes information indicating that the executable node performs an operation, that is, the node URI that needs to be executed may be carried again when the error code is sent.
  • step 204 The specific embodiment of this step is the same as step 204.
  • the client After receiving the second response message, the client determines, according to the error code, that the second request message set by the server in the first response message is to execute the node.
  • the client determines, according to the first response message, a node that needs to be executed, and the node performs a corresponding operation, specifically by using ht tp in the first request message: //Server Addres s/Cl lent Addres s/ManagementMO/S tar Or determining, according to the second response message, the node that needs to be executed, and the node performs a corresponding operation.
  • the second response message needs to include information indicating that the executable node performs an operation.
  • the embodiment of the invention discloses a method for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device.
  • HTTP Server + HTTP Cl ient is deployed on the server side, and only HTTP is deployed on the client side.
  • Cl ient the client requests resources from the server through the standard HTTP method, and the server sends an indication to the client through the response message Response, and the response includes a set HTTP request initiated by the client.
  • the server sets a corresponding HTTP request in the Response, and after receiving the response, the client initiates an HTTP request set in the Response to the server, and the server responds to the request, and the client The execution of the action is judged based on the response.
  • the specific steps include:
  • the client does not deploy HTTP Server, so it cannot listen to HTTP messages at any time, nor can it receive HTTP requests.
  • the server needs to manage the client, it sends a notification message to the client through WAP PUSH or SIP PUSH or SMS to use for session pull.
  • the client after receiving the trigger message sent by the server, the client sends a first request message to the server according to the trigger message, and the server receives the first request message.
  • the first request message received by the server is the same as step 201.
  • Send a first response message where the first response message is a response message that is sent according to the first request message, where the first response message includes information indicating that the executable node performs an operation, and the first response
  • the text directly in the message contains information that indicates that the executable node is performing the operation.
  • the server After receiving the first request message sent by the client, the server returns a response message. In the response, the server sets the next HTTP request required by the client in the form of text, and the server needs to be included in the HTTP request. Device management actions performed on the client.
  • step 202 The specific embodiment of this step is the same as step 202.
  • the client sends a second request message to the server according to the first response message in step 403.
  • the second request message includes address information of the executable node that needs to be executed, that is, the URL of the executable node. Since the node does not exist on the server, an operation error occurs on the operation of the URL, thereby causing the server Return a specific error code
  • step 203 The specific embodiment of this step is the same as step 203.
  • the server After receiving the second request message in step 404, the server returns a second response message due to an error of the URL, and the second response message includes an error code.
  • the second response message further includes information indicating that the executable node performs an operation, that is, the node URI that needs to be executed may be carried again when the error code is sent.
  • step 204 The specific embodiment of this step is the same as step 204.
  • step 406 may be further included after step 405.
  • the client After receiving the second response message, the client determines, according to the error code, that the second request message set by the server in the first response message is to execute the node.
  • Client based The first response message determines a node that needs to be executed, and the node performs a corresponding operation, specifically, by using ht tp: //Server Addres s/Cl lent Addres s/ManagementMO/S tar t in the first request message; Or determining, according to the second response message, a node that needs to be executed, where the node performs a corresponding operation.
  • the second response message needs to include information indicating that the executable node performs an operation.
  • the embodiment of the invention discloses a method for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device.
  • HTTP Server + HTTP Cl ient is deployed on both the server side and the client side. Both parties interact with each other using standard HTTP methods to carry device management data.
  • the server needs to perform an action on the executable node on the client, the first HTTP method is used to send a notification message to the client. After the client authenticates the server, the device information is returned.
  • the server uses the standard HTTP method to represent the executable node. Execution action. Specific steps are as follows:
  • the server sends a first request message, and the first request message is a GET request as follows, and carries a notification message therein for the client to verify the identity of the server.
  • the client is required to return device information, which facilitates subsequent device management.
  • This step can be considered as prior art.
  • the first request message is:
  • the client After the client verifies the notification message of the server, it returns a response message to the server, and carries the device information therein.
  • This step can be considered as a prior art, for example, the second response message is: HTTP/1. 1 200 0K
  • the node value of the executable node in the M0 of the 0MA DM does not exist.
  • node values are added to all executable nodes.
  • the attribute of the executable node is "Exec”
  • there is no node value in the existing standard and the node value is now added to all nodes whose attribute is "Exec”.
  • the value may be a string, a number, a character, or the like.
  • the PUT or POST request does not carry the modified value, just triggers the executable action.
  • the value may be a string.
  • the PUT or POST request needs to modify the node value of the executable node to the string "Exec".
  • the client will determine that it is using an execution command for that node.
  • the client after receiving the PUT or POST request of the method 1 in step 303, the client first determines After the client determines that the node attribute is "Exec", the client determines that the purpose of the operation is to execute the node, and the client is triggered to perform the corresponding action.
  • Method 2 after receiving the PUT or POST request of the method 2 in step 303, the client first determines the attribute of the target node, and after the client determines that the node attribute is "Exec", it continues to determine whether the value written to the node is a character.
  • the embodiment of the invention discloses a method for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device.
  • FIG. 6 it is a flowchart of another method for operating an executable node according to an embodiment of the present invention.
  • HTTP Server + HTTP C ent is deployed on both the server side and the client side.
  • the two parties use the standard HTTP method to carry device management data for interaction.
  • the server needs to perform an action on the executable node on the client, the first HTTP method is used to send a notification message to the client. After the client authenticates the server, the device information is returned.
  • the server uses the standard HTTP method to represent the executable node. Execution action. Specific steps are as follows:
  • the server sends a first request message, and the first request message is a GET request as follows, and carries a notification message therein for the client to verify the identity of the server.
  • the client is required to return device information, which facilitates subsequent device management.
  • the specific embodiment of this step is the same as step 501.
  • step 602. Send a first response message, where the first response message includes the device information. After the client verifies the notification message of the server, it returns a response message to the server, carrying the device information therein.
  • the specific embodiment of this step is the same as step 502.
  • the node in the M0 of the OMA DM does not have a node value.
  • node values are added to all executable nodes.
  • the attribute of the executable node is "Exec”.
  • the embodiment of the invention discloses a method for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device.
  • FIG. 7 it is a flowchart of another method for operating an executable node according to an embodiment of the present invention.
  • HTTP Server + HTTP C ent is deployed on both the server side and the client side.
  • the two parties use the standard HTTP method to carry device management data for interaction.
  • the server needs to perform an action on the executable node on the client, the first HTTP method is used to send a notification message to the client. After the client authenticates the server, the device information is returned.
  • the server uses the standard HTTP method to represent the executable node. Execution action. Specific steps are as follows:
  • the server sends a first request message, and the first request message is a GET request as follows, and carries a notification message therein for the client to verify the identity of the server.
  • the client is required to return device information, which facilitates subsequent device management.
  • the specific embodiment of this step is the same as step 501.
  • step 702. Receive a first response message, where the first response message includes the device information. After the client verifies the notification message of the server, it returns a response message to the server, carrying the device information therein.
  • the specific embodiment of this step is the same as step 502.
  • the node value of the executable node in the M0 of the OMA DM does not exist.
  • node values are added to all executable nodes.
  • the attribute of the executable node is "Exec”
  • there is no node value in the existing standard and the node value is now added to all nodes whose attribute is "Exec”.
  • the server needs to perform PUT on the executable node when it needs to execute an executable node on the client. Or POST request.
  • step 704 may be further included after step 703.
  • the embodiment of the invention discloses a method for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device.
  • the embodiment of the present invention discloses a client.
  • the client 80 includes a receiving unit 801, a message parsing unit 802, a message generating unit 803, and a sending unit.
  • the receiving unit 801 is configured to receive a message sent by the server, where the message sent by the server includes a trigger message, a first response message, and a second response message, where the trigger message is used Triggering a client to initiate a request message, the trigger message is a WAP PUSH or a SIP PUSH or a short message; the first response message includes information indicating that the executable node performs an operation; the second response message includes an error code, where the The second response message also contains information indicating that the executable node performs the operation.
  • the message sent by the server is either a first request message and a second request message, where the first request message includes an indication of the identity verification information and the requesting device information, and the second request message is used to indicate that the node is
  • the execution node also contains information indicating that the executable node performs the operation.
  • the message parsing unit 802 is configured to parse the message received by the receiving unit 801.
  • the message generating unit 803 is configured to generate a message according to the parsing result of the message parsing unit 802.
  • the sending unit 804 is configured to send a message to the server, where the message sent to the server includes a first request message and a second request message, where the first request message is used to send the device information of the client 80 to the The server, the second request message is used to enable the server to return a specific error code; the message sent to the server is a first response message, and the first response message includes the device information.
  • the determining unit 805 determines an executable node that the server needs to operate according to the parsing result of the message parsing unit 802.
  • the executable node 806 is a node in the client management object, and has an executable attribute for executing an operation command sent by the server to complete the corresponding operation.
  • the embodiment of the present invention discloses a client that operates on an executable node, and can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device.
  • the embodiment of the present invention discloses a server.
  • the server 90 includes a receiving unit 901, a message parsing unit 902, and a message generating unit 903.
  • Sending unit 904 where:
  • the receiving unit 901 is configured to receive a message sent by the client, where the message sent by the client includes a first request message and a second request message, where the first request message is used to send device information of the device where the client is located to The server 90, the second request message is used to cause the server 90 to return a specific error code; the message sent by the client is a first response message, and the first response message includes the device information.
  • the message parsing unit 902 is configured to parse the message received by the receiving unit 901.
  • the message generating unit 903 is configured to generate a message according to the parsing result of the message parsing unit 902.
  • the sending unit 904 is configured to send a message to the client, where the message sent to the client includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger the client to initiate the request message, and the trigger message is The WAP response or the IP PUSH or the short message; the first response message includes information indicating that the executable node performs an operation; the second response message includes an error code, and the second response message further includes an indication The information that the executable node performs the operation.
  • the message sent to the client is either a first request message and a second request message, where the first request message includes an indication of the identity verification information and the requesting device information; the second request message is used to indicate the node It is an executable node that contains information indicating that the executable node performs operations.
  • the embodiment of the invention discloses a server that operates on an executable node, and can directly manage the device by using an HTTP standard method, which is convenient for directly managing the device through the network application, and also reduces the capability requirement for the terminal device.
  • the present invention is implemented
  • the example discloses a system, as shown in FIG. 10, including a client 80 and a server 90.
  • the client 80 includes a receiving unit 801, a message parsing unit 802, a message generating unit 803, a sending unit 804, a determining unit 805, and an executable node 806, where:
  • the receiving unit 801 is configured to receive a message sent by the server, where the message sent by the server includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message, and the trigger message is P PUSH Or the SIP PUSH or the short message; the first response message includes information indicating that the executable node performs an operation; the second response message includes an error code, and the second response message further includes an indication executable node The information that performs the operation.
  • the message sent by the server is either a first request message and a second request message, where the first request message includes an indication of the identity verification information and the requesting device information, and the second request message is used to indicate that the node is
  • the execution node also contains information indicating that the executable node performs the operation.
  • the message parsing unit 802 is configured to parse the message received by the receiving unit 801.
  • the message generating unit 803 is configured to generate a message according to the parsing result of the message parsing unit 802.
  • the sending unit 804 is configured to send a message to the server, where the message sent to the server includes a first request message and a second request message, where the first request message is used to send device information of the device where the client 80 is located.
  • the second request message is used to cause the server 90 to return a specific error code; the message sent to the server is a first response message, and the first response message includes the Device Information.
  • the determining unit 805 determines an executable node that the server 90 needs to operate according to the parsing result of the message parsing unit 802.
  • the executable node 806 is a node in the client management object, and has an executable attribute for executing an operation command sent by the server 90 to complete the corresponding operation.
  • the server includes a receiving unit 901, a message parsing unit 902, a message generating unit 903, and a sending unit 904, where:
  • the receiving unit 901 is configured to receive the message sent by the client 80, where the message sent by the client includes a first request message and a second request message, where the first request message is used to send device information of the device where the client is located.
  • the second request message is used to cause the server 90 to return a specific error code;
  • the message sent by the client is a first response message, and the first response message includes the Device Information.
  • the message parsing unit 902 is configured to parse the message received by the receiving unit 901.
  • the message generating unit 903 is configured to generate a message according to the parsing result of the message parsing unit 902.
  • the sending unit 904 is configured to send a message to the client, where the message sent to the client includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message, and trigger a message.
  • the first response message includes information indicating that the executable node performs an operation;
  • the second response message includes an error code, and the second response message further includes an indication The information that the executable node performs the operation.
  • the message sent to the client is either a first request message and a second request message, where the first request message includes an indication of the identity verification information and the requesting device information, and the second request message is used to indicate the node. It is an executable node that contains information indicating that the executable node performs operations.
  • the embodiment of the invention discloses a system for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device.
  • All or part of the steps of implementing the above method embodiments may be performed by hardware related to the program instructions, and the program may be stored in a computer readable storage medium, and when executed, the steps including the foregoing method embodiments are performed.
  • the storage medium includes: R0M, RAM, disk or optical disc, and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Embodiments of the present invention relate to the technical field of communications, and relate specifically to a method and system for operating an executable node. Disclosed is the method for operating the executable node, comprising: receiving a trigger message, transmitting a first request message; receiving a first response message, the first response message comprises information instructing the executable node to execute an operation; transmitting a second request message on the basis of the first response message; receiving a second response message, the second response message comprises an error code; confirming triggering of an executable operation on the basis of the error code in the second response message. Also disclosed is a system for operating the executable node. Employment of the embodiments of the present invention allows direct use of an HTTP standard method for management of a device, thus facilitating the performance of device management directly via a network application, while at the same time reducing requirements on terminal device capabilities.

Description

对可执行节点的操作方法及系统 本申请要求于 2011 年 07 月 29 日提交中国专利局、 申请号为 201110215400.0、 发明名称为"对可执行节点的操作方法及系统"的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。  Method and system for operating an executable node The present application claims priority to a Chinese patent application filed on July 29, 2011 by the Chinese Patent Office, Application No. 201110215400.0, entitled "Operation Method and System for Executable Nodes" The entire contents of which are incorporated herein by reference.
技术领域 本发明实施例涉及通信技术领域, 尤其是涉及一种对可执行节点的操 作方法及系统。 背景技术 The present invention relates to the field of communications technologies, and in particular, to a method and system for operating an executable node. Background technique
0MA ( Open Mobi le Al l iance, 开放移动联盟 ) DM ( Device Management , 设备管理) VI. 3是 OMA DM WorkGrou 制定的设备管理统一规范(以下简称 DM规范)。 DM 系统提供了一种低成本方案, 用于第三方管理和设置终端设 备(比如手机终端及终端中的功能对象) 中的环境和配置信息, 解决这些 设备在使用过程中遇到的问题, 例如通过 OTA (Over The Ai r,无线网络)方 式进行软件和固件的安装、 升级等操作, 并提供更加人性化和个性化的服 务, 提高用户体验, 第三方可以是运营商、 业务提供商或者合作方的信息 管理部门。 0MA (Open Mobi le Al l iance) DM (Device Management) VI. 3 is a unified device management specification (hereinafter referred to as the DM specification) established by OMA DM WorkGrou. The DM system provides a low-cost solution for third-party management and setting of environment and configuration information in terminal devices (such as mobile terminals and functional objects in terminals) to solve problems encountered during the use of these devices, such as Install and upgrade software and firmware through OTA (Over The Ai r, wireless network), and provide more personalized and personalized services to enhance user experience. Third parties can be operators, service providers or cooperation. Party's information management department.
REST (REpresentat ion State Transfer) 4笛述了一个架构样式的网络 系统, REST指的是一组架构约束条件和原则, 满足这些约束条件和原则 的应用程序或设计就是 RESTful。 RESTful是一种 Web Service (是为了使 原来各孤立的站点之间的信息能够相互通信、 共享而提出的一种接口) 的 设计风格, 通过标准的 HTTP (HyperText Transfer Protocol,超文本传输协 议)方法对资源进行操作。 符合 RESTful设计风格的设备管理协议可以称之 为 RESTful DM, 服务器使用标准的 HTTP方法, 对终端上的 M0 ( Management Object , 管理对象)进行操作。 这种操作易于与现有的 Web标准进行对接, 通过标准的 Web方法也能实施 DM管理。 同时通过简化协议过程, 也能够降 低对 DM终端的能力要求。  REST (REpresentat State State Transfer) 4 describes an architectural style network system. REST refers to a set of architectural constraints and principles. The application or design that satisfies these constraints and principles is RESTful. RESTful is a design style of a Web Service (an interface proposed to enable communication and sharing between isolated sites). The standard HTTP (HyperText Transfer Protocol) method is adopted. Operate on resources. A device management protocol that conforms to the RESTful design style can be called a RESTful DM. The server uses the standard HTTP method to operate the M0 (Management Object) on the terminal. This kind of operation is easy to interface with existing Web standards, and DM management can also be implemented through standard Web methods. At the same time, by simplifying the protocol process, the capability requirements for the DM terminal can also be reduced.
OMA DM现有的可执行节点执行方式为, 服务器通过 HTTP做为承载, 向 终端发送 SyncML ( Synchroniza t ion Markup Language, 同步标记语言)文 件, SyncML文件是一种 XML ( Extens ible Markup Language, 可扩展标记 语言)扩展, 通过定义 SyncML定义了 OMA DM使用的各类命令。 The existing executable node of OMA DM is executed by the server as a bearer through HTTP. The terminal sends a SyncML (Synchronized Markup Language) file, which is an XML (Extensible Markup Language) extension that defines various commands used by OMA DM by defining SyncML.
现有技术中, 客户端需要解析 SyncML的语义来获知当前会话所处的阶 段以及服务器下发的命令。 既要解析符合 SyncML格式的 M0, 即管理数据; 又要解析 SyncML中包含的会话和命令信息, 即管理命令, 对终端设备的能 力要求较高, 而且无法直接使用 HTTP标准方法对设备进行管理, 不利于通 过网络应用程序直接进行设备管理。 发明内容 鉴于上述问题, 本发明实施例提出了一种对可执行节点的操作方法及 系统, 可以直接使用 HTTP标准方法对设备进行管理。  In the prior art, the client needs to parse the semantics of SyncML to know the stage in which the current session is located and the commands issued by the server. It is necessary to parse the M0 that conforms to the SyncML format, that is, to manage the data. It also needs to parse the session and command information contained in the SyncML, that is, the management command, which has high requirements on the capabilities of the terminal device, and cannot directly manage the device by using the HTTP standard method. Not conducive to direct device management through web applications. SUMMARY OF THE INVENTION In view of the above problems, embodiments of the present invention provide a method and system for operating an executable node, and the device can be directly managed by using an HTTP standard method.
本发明实施例提出了一种对可执行节点的操作方法, 包括:  The embodiment of the invention provides a method for operating an executable node, including:
接收触发消息, 发送第一请求消息;  Receiving a trigger message, sending a first request message;
接收第一响应消息, 所述第一响应消息为根据所述第一请求消息所下 发的响应消息, 所述第一响应消息中包含有指示可执行节点执行操作的信 息;  Receiving a first response message, where the first response message is a response message that is sent according to the first request message, where the first response message includes information indicating that the executable node performs an operation;
根据所述第一响应消息, 发送第二请求消息;  Sending a second request message according to the first response message;
接收第二响应消息, 所述第二响应消息为根据所述第二请求消息所下 发的响应消息, 所述第二响应消息中包含有错误码;  Receiving a second response message, where the second response message is a response message that is sent according to the second request message, where the second response message includes an error code;
根据所述第二响应消息中的错误码, 确定触发可执行操作。  Determining a trigger executable operation based on the error code in the second response message.
本发明实施例还提出了一种对可执行节点的操作方法, 包括: 发送触发消息;  The embodiment of the present invention further provides a method for operating an executable node, including: sending a trigger message;
接收第一请求消息, 所述第一请求消息为根据所述触发消息所发起的 请求消息;  Receiving a first request message, where the first request message is a request message initiated according to the trigger message;
发送第一响应消息, 所述第一响应消息为根据所述第一请求消息所下 发的响应消息, 所述第一响应消息中包含有指示可执行节点执行操作的信 息;  Sending a first response message, where the first response message is a response message that is sent according to the first request message, where the first response message includes information indicating that the executable node performs an operation;
接收第二请求消息, 所述第二请求消息为根据所述第一响应消息所发 起的请求消息;  Receiving a second request message, where the second request message is a request message sent according to the first response message;
发送第二响应消息, 所述第二响应消息为根据所述第二请求消息所下 发的响应消息, 所述第二响应消息中包含有错误码。 Sending a second response message, where the second response message is sent according to the second request message The response message sent, the second response message includes an error code.
本发明实施例还提出了一种对可执行节点的操作方法, 所述可执行节 点增加了节点值, 所述方法方法包括:  The embodiment of the present invention further provides a method for operating an executable node, where the executable node adds a node value, and the method includes:
接收第一请求消息, 所述第一请求消息包含有身份验证信息及请求设 备信息的指示;  Receiving a first request message, where the first request message includes an indication of identity verification information and requesting device information;
发送第一响应消息, 所述第一响应消息包含有所述设备信息; 接收第二请求消息, 所述第二请求消息用于指示所述节点为可执行节 点, 同时包含有指示可执行节点执行操作的信息;  Sending a first response message, where the first response message includes the device information, and receiving a second request message, where the second request message is used to indicate that the node is an executable node, and includes an indication that the executable node performs Operational information;
根据所述第二请求消息, 确定所述节点为可执行节点。  Determining, according to the second request message, the node is an executable node.
本发明实施例还提出了一种对可执行节点的操作方法, 所述可执行节 点增加了节点值, 所述方法方法包括:  The embodiment of the present invention further provides a method for operating an executable node, where the executable node adds a node value, and the method includes:
发送第一请求消息, 所述第一请求消息包含有身份验证信息及请求设 备信息的指示;  Sending a first request message, where the first request message includes an indication of identity verification information and requesting device information;
接收第一响应消息, 所述第一响应消息包含有所述设备信息; 发送第二请求消息, 所述第二请求消息用于指示所述节点为可执行节 点, 同时包含有指示可执行节点执行操作的信息。  Receiving a first response message, where the first response message includes the device information, and sending a second request message, where the second request message is used to indicate that the node is an executable node, and includes an indication that the executable node performs Information about the operation.
本发明实施例还提出了一种对可执行节点操作的客户端, 所述客户端 包括, 接收单元、 消息解析单元、 消息生成单元, 发送单元、 确定单元、 可执行节点, 其中:  The embodiment of the present invention further provides a client that operates on an executable node, where the client includes, a receiving unit, a message parsing unit, a message generating unit, a sending unit, a determining unit, and an executable node, where:
所述接收单元, 用于接收服务器所发送的消息, 所述服务器发送的消 息包括触发消息, 第一响应消息及第二响应消息; 所述触发消息用于触发 客户端发起请求消息; 所述第一响应消息包含有指示可执行节点执行操作 的信息, 所述第二响应消息中包含有错误码, 所述第二响应消息中还可以 包含有指示可执行节点执行操作的信息; 所述服务器发送的消息或者是第 一请求消息及第二请求消息, 所述第一请求消息包含有身份验证信息及请 求设备信息的指示; 所述第二请求消息用于指示所述节点为可执行节点, 同时包含有指示可执行节点执行操作的信息;  The receiving unit is configured to receive a message sent by the server, where the message sent by the server includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message; a response message includes information indicating that the executable node performs an operation, the second response message includes an error code, and the second response message may further include information indicating that the executable node performs an operation; The message is either the first request message and the second request message, the first request message includes an indication of the identity verification information and the requesting device information; the second request message is used to indicate that the node is an executable node, and Contains information indicating that the executable node performs an operation;
所述消息解析单元, 用于解析所述接收单元所接收到的消息; 所述消息生成单元, 用于根据所述消息解析单元的解析结果生成消息; 所述发送单元, 用于向服务器发送消息, 所述向服务器发送的消息包 括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端的 设备信息发送给所述服务器, 所述第二请求消息用于使所述服务器返回特 定的错误码; 所述向服务器发送的消息或者是第一响应消息, 所述第一响 应消息中包含有所述设备信息; The message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send a message to the server. The message sent to the server includes a first request message and a second request message, where the first request message is used to be used by the client. The device information is sent to the server, and the second request message is used to cause the server to return a specific error code; the message sent to the server is a first response message, and the first response message includes Device information
所述确定单元, 用于根据所述消息解析单元的解析结果确定服务器需 要操作的可执行节点;  The determining unit is configured to determine, according to the parsing result of the message parsing unit, an executable node that the server needs to operate;
所述可执行节点, 具有可执行的属性, 用于执行服务器所下发的操作 命令, 完成相应操作。  The executable node has an executable attribute for executing an operation command sent by the server to complete the corresponding operation.
本发明实施例还提出了对可执行节点操作的服务器, 所述服务器包括, 接收单元、 消息解析单元、 消息生成单元、 发送单元, 其中:  The embodiment of the present invention further provides a server for operating an executable node, where the server includes: a receiving unit, a message parsing unit, a message generating unit, and a sending unit, where:
所述接收单元, 用于接收客户端发送的消息; 所述客户端发送的消息 包括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端 所在设备的设备信息发送给所述服务器, 所述第二请求消息用于使所述服 务器返回特定的错误码; 所述客户端发送的消息或者是第一响应消息, 所 述第一响应消息中包含有所述设备信息;  The receiving unit is configured to receive a message sent by the client, where the message sent by the client includes a first request message and a second request message, where the first request message is used to send device information of the device where the client is located. Sending to the server, the second request message is used to enable the server to return a specific error code; the message sent by the client is a first response message, and the first response message includes the device Information
所述消息解析单元, 用于解析所述接收单元所接收到的消息; 所述消息生成单元, 用于根据所述消息解析单元的解析结果生成消息; 所述发送单元, 用于向客户端发送消息, 所述向客户端发送的消息包 括触发消息, 第一响应消息及第二响应消息, 所述触发消息用于触发客户 端发起请求消息; 所述第一响应消息包含有指示可执行节点执行操作的信 息; 所述第二响应消息中包含有错误码, 所述第二响应消息中或者还包含 有指示可执行节点执行操作的信息; 所述向客户端发送的消息或者是第一 请求消息及第二请求消息, 所述第一请求消息包含有身份验证信息及请求 设备信息的指示; 所述第二请求消息用于指示所述节点为可执行节点, 同 时包含有指示可执行节点执行操作的信息。  The message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send the message to the client The message sent to the client includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message; the first response message includes an indication that the executable node performs The second response message includes an error code, and the second response message further includes information indicating that the executable node performs an operation; the message sent to the client is the first request message. And the second request message, the first request message includes an indication of the identity verification information and the requesting device information; the second request message is used to indicate that the node is an executable node, and includes an indication that the executable node performs an operation. Information.
本发明实施例还提出了一种对可执行节点操作的系统, 所述系统包括 客户端和服务器,  The embodiment of the present invention further provides a system for operating an executable node, where the system includes a client and a server.
所述客户端包括接收单元、 消息解析单元、 消息生成单元, 发送单元、 确定单元、 可执行节点, 其中:  The client includes a receiving unit, a message parsing unit, a message generating unit, a sending unit, a determining unit, and an executable node, where:
所述接收单元, 用于接收服务器所发送的消息, 所述服务器发送的消 息包括触发消息, 第一响应消息及第二响应消息; 所述触发消息用于触发 客户端发起请求消息; 所述第一响应消息包含有指示可执行节点执行操作 的信息, 所述第二响应消息中包含有错误码, 所述第二响应消息中还可以 包含有指示可执行节点执行操作的信息; 所述服务器发送的消息或者是第 一请求消息及第二请求消息, 所述第一请求消息包含有身份验证信息及请 求设备信息的指示; 所述第二请求消息用于指示所述节点为可执行节点, 同时包含有指示可执行节点执行操作的信息; The receiving unit is configured to receive a message sent by the server, where the message sent by the server includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message; A response message includes an indication that the executable node performs an operation The second response message includes an error code, and the second response message may further include information indicating that the executable node performs an operation; the message sent by the server is either the first request message and the second a request message, the first request message includes an indication of the authentication information and the requesting device information; the second request message is used to indicate that the node is an executable node, and includes information indicating that the executable node performs an operation;
所述消息解析单元, 用于解析所述接收单元所接收到的消息; 所述消息生成单元, 用于根据所述消息解析单元的解析结果生成消息; 所述发送单元, 用于向服务器发送消息, 所述向服务器发送的消息包 括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端的 设备信息发送给所述服务器, 所述第二请求消息用于使所述服务器返回特 定的错误码; 所述向服务器发送的消息或者是第一响应消息, 所述第一响 应消息中包含有所述设备信息;  The message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send a message to the server. The message sent to the server includes a first request message and a second request message, where the first request message is used to send device information of the client to the server, and the second request message is used to The server returns a specific error code; the message sent to the server is a first response message, and the first response message includes the device information;
所述确定单元, 用于根据所述消息解析单元的解析结果确定所述服务 器需要操作的可执行节点;  The determining unit is configured to determine, according to an analysis result of the message parsing unit, an executable node that the server needs to operate;
所述可执行节点, 具有可执行的属性, 用于执行所述服务器所下发的 操作命令, 完成相应操作。  The executable node has an executable attribute for executing an operation command sent by the server to complete a corresponding operation.
所述客户端包括接收单元、 消息解析单元、 消息生成单元、 发送单元, 其巾:  The client includes a receiving unit, a message parsing unit, a message generating unit, and a sending unit, and the towel:
所述接收单元, 用于接收客户端发送的消息; 所述客户端发送的消息 包括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端 所在设备的设备信息发送给所述服务器, 所述第二请求消息用于使所述服 务器返回特定的错误码; 所述客户端发送的消息或者是第一响应消息, 所 述第一响应消息中包含有所述设备信息;  The receiving unit is configured to receive a message sent by the client, where the message sent by the client includes a first request message and a second request message, where the first request message is used to send device information of the device where the client is located. Sending to the server, the second request message is used to enable the server to return a specific error code; the message sent by the client is a first response message, and the first response message includes the device Information
所述消息解析单元, 用于解析所述接收单元所接收到的消息; 所述消息生成单元, 用于根据所述消息解析单元的解析结果生成消息; 所述发送单元, 用于向客户端发送消息, 所述向客户端发送的消息包 括触发消息, 第一响应消息及第二响应消息, 所述触发消息用于触发客户 端发起请求消息; 所述第一响应消息包含有指示可执行节点执行操作的信 息; 所述第二响应消息中包含有错误码, 所述第二响应消息中或者还包含 有指示可执行节点执行操作的信息; 所述向客户端发送的消息或者是第一 请求消息及第二请求消息, 所述第一请求消息包含有身份验证信息及请求 设备信息的指示; 所述第二请求消息用于指示所述节点为可执行节点, 同 时包含有指示可执行节点执行操作的信息。 The message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send the message to the client The message sent to the client includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message; the first response message includes an indication that the executable node performs The second response message includes an error code, and the second response message further includes information indicating that the executable node performs an operation; the message sent to the client is the first request message. And a second request message, where the first request message includes identity verification information and a request The indication of the device information; the second request message is used to indicate that the node is an executable node, and includes information indicating that the executable node performs an operation.
通过本发明实施例公开了一种对可执行节点的操作方法及系统, 可以 直接使用 HTTP标准方法对设备进行管理, 有利于通过网络应用程序直接进 行设备管理, 同时也降低了对终端设备的能力要求。 附图说明 图 1是 OMA DM基本框架示意图;  An embodiment of the present invention discloses a method and a system for operating an executable node. The device can be directly managed by using an HTTP standard method, which facilitates device management directly through a network application, and also reduces the capability of the terminal device. Claim. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a basic framework of an OMA DM;
图 2是本发明实施例所公开的一种对可执行节点的操作方法的流程图; 图 3是本发明实施例所公开的又一种对可执行节点的操作方法的流程 图;  2 is a flowchart of a method for operating an executable node according to an embodiment of the present invention; FIG. 3 is a flow chart of another method for operating an executable node according to an embodiment of the present invention;
图 4是本发明实施例所公开的又一种对可执行节点的操作方法的流程 图;  4 is a flow chart of still another method for operating an executable node according to an embodiment of the present invention;
图 5是本发明实施例所公开的又一种对可执行节点的操作方法的流程 图;  FIG. 5 is a flow chart of still another method for operating an executable node according to an embodiment of the present invention; FIG.
图 6是本发明实施例所公开的又一种对可执行节点的操作方法的流程 图;  6 is a flow chart of still another method for operating an executable node according to an embodiment of the present invention;
图 7是本发明实施例所公开的又一种对可执行节点的操作方法的流程 图;  FIG. 7 is a flow chart of still another method for operating an executable node according to an embodiment of the present invention; FIG.
图 8是本发明实施例所公开的一种对可执行节点操作的客户端的结构 示意图;  FIG. 8 is a schematic structural diagram of a client operating on an executable node according to an embodiment of the present invention; FIG.
图 9是本发明实施例所公开的一种对可执行节点操作的服务器的结构 示意图;  9 is a schematic structural diagram of a server operating on an executable node according to an embodiment of the present invention;
图 10是本发明实施例所公开的一种对可执行节点操作的系统的结构示 意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。 FIG. 10 is a schematic structural diagram of a system for operating an executable node according to an embodiment of the present invention. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. Based on the embodiments of the present invention, those of ordinary skill in the art are not All other embodiments obtained under the premise of creative work are within the scope of the invention.
如图 1所示, OMA DM的整体结构包括终端设备和服务器。 终端设备上 的 DM客户端用于解释和执行 DM服务器下发的管理命令, DM服务器通过 DM 协议与终端设备中的 DM客户端进行通信来实现对终端设备的管理。 终端设 备上存储的设备管理树可以被认为是一个 DM服务器对终端设备进行管理的 接口, 设备管理树中包括一些管理对象, DM服务器通过对管理对象的操作 达到管理终端设备的目的。操作命令有 Get (获取)、 Replace (替换)、 Exec (执行)、 Copy (复制)、 De lete (删除)等。  As shown in FIG. 1, the overall structure of the OMA DM includes a terminal device and a server. The DM client on the terminal device is used to interpret and execute the management commands issued by the DM server. The DM server communicates with the DM client in the terminal device through the DM protocol to implement management of the terminal device. The device management tree stored on the terminal device can be regarded as an interface for the DM server to manage the terminal device. The device management tree includes some management objects. The DM server achieves the purpose of managing the terminal device by operating the management object. The operation commands are Get, Replace, Exec, Copy, De lete, and so on.
OMA DM现有的可执行节点执行方式为, 服务器通过 HTTP做为承载, 向 终端发送 SyncML文件, 通过定义 SyncML定义了 OMA DM使用的各类命令, 例如需要执行终端上 URI为 ". /FanOut/Opera t ions/S tar t" 的节点时, 首 先, 这个节点必须是一个可执行节点, 即该节点的节点属性为 "Exec" ; 然 后服务器需要在规定的会话过程中, 通过 HTTP或者其他承载方式, 向终端 发送一个 SyncML包, 这个包的形式为一个 XML文件, 在其中包含了需要执 行某个节点的描述如下:  The existing executable node of OMA DM is implemented by the server as a bearer through HTTP, and sends a SyncML file to the terminal. By defining SyncML, various commands used by OMA DM are defined. For example, the URI on the terminal needs to be executed as ". /FanOut/ When the node of Opera t ions/S tar t", first, the node must be an executable node, that is, the node attribute of the node is "Exec"; then the server needs to pass HTTP or other bearer mode during the specified session. Send a SyncML packet to the terminal. The package is in the form of an XML file containing the description of the node that needs to be executed as follows:
<SyncML xmlns=/ SYNCML: SYNCML 1. V > <SyncML xmlns= / SYNCML: SYNCML 1. V >
<SyncHdr>  <SyncHdr>
<VerDTD>l . 2</VerDTD>  <VerDTD>l. 2</VerDTD>
<VerProto>DM/l. 3</VerProto>  <VerProto>DM/l. 3</VerProto>
<Ses s ionID>K/Ses s ionID>  <Ses s ionID>K/Ses s ionID>
<MsgID>2</MsgID>  <MsgID>2</MsgID>
<TargetXLocURI > IMEI: 493005100592800</LocURIX/Target> <SourceXLocURI>  <TargetXLocURI > IMEI: 493005100592800</LocURIX/Target> <SourceXLocURI>
ht tp: / /www. syncml. org/mgmt-server</LocURIX/Source> Ht tp: / /www. syncml. org/mgmt-server</LocURIX/Source>
<Cred>  <Cred>
<Meta>  <Meta>
<Type xmlns=' syncml: met inf '>syncml: auth-bas ic</Type>  <Type xmlns=' syncml: met inf '>syncml: auth-bas ic</Type>
<Format xmlns= syncml: met inf ' >b64</Format> <Format xmlns = syncml: met inf '>b64</Format>
</Meta>  </Meta>
<Data>QnJ lY2Uy0k9oQmVoYXZK/Data> <!― base64 forma t t ing of 'user i d: pas sword' ― > <Data>QnJ lY2Uy0k9oQmVoYXZK/Data> <! ― base64 forma tt ing of 'user id: pas sword' ― >
</Cred>  </Cred>
</SyncHdr>  </SyncHdr>
<SyncBody>  <SyncBody>
<CmdID>K/CmdID>  <CmdID>K/CmdID>
<Cmd>Exec</Cmd>  <Cmd>Exec</Cmd>
<TargetRef >. /FanOut/Oper t ions/S tar t</TargetRef>  <TargetRef >. /FanOut/Oper t ions/S tar t</TargetRef>
</SyncBody>  </SyncBody>
客户端收到这样一个文件, 首先解析 SyncHdr 获知是哪个服务器需要 对其进行管理,还需要解析出这个管理会话的 ID, 以及这个消息本身的 I D, 同时还要获知命令的 ID, 命令的类型是 "Exec" , 以及命令的目标节点的属 性是 " Exec"。 结合上述信息, 才能对目标节点进行执行操作。  The client receives such a file, first parses SyncHdr to know which server needs to be managed, and also needs to parse the ID of the management session, and the ID of the message itself, and also know the ID of the command. The type of the command is "Exec", and the attribute of the target node of the command is "Exec". In combination with the above information, the target node can be executed.
在此方法中, 客户端需要解析 SyncML的语义来获知当前会话所处的阶 段以及服务器下发的命令。 既要解析符合 SyncML格式的 M0 , 即管理数据; 又要解析 SyncML中包含的会话和命令信息, 即管理命令。 对终端设备的能 力要求较高, 无法直接使用 HTTP标准方法对设备进行管理, 不利于通过网 络应用程序直接进行设备管理。 服务器通过标准 HTTP方法对客户端进行设备管理过程中, 需要沿用现 有 OMA DM的 M0设计, 并对这些 M0中的节点使用标准的 HTTP方法进行操 作, 标准 HTTP方法包括 PUT、 DELETE , POST, GET等。 这样使用 HTTP承载 OMA DM的 MO , 即利用 HTTP本身提供的标准方法表达管理命令和会话流程, 而需要解析的只有 M0即管理数据的部分。 这样可以降低对服务器和客户端 的能力要求, 减少空中传输的负担, 而且使用标准 HTTP方法携带命令, 有 利于 Web App直接管理 OMA DM的管理数据。  In this method, the client needs to parse the semantics of SyncML to know the stage in which the current session is located and the commands issued by the server. It is necessary to parse the M0 that conforms to the SyncML format, that is, to manage the data; and to parse the session and command information contained in the SyncML, that is, the management command. The capability of the terminal device is high, and the device cannot be directly managed by using the HTTP standard method, which is not conducive to device management directly through the network application. When the server performs device management on the client through the standard HTTP method, it needs to follow the M0 design of the existing OMA DM, and operate the nodes in these M0s using the standard HTTP method. The standard HTTP methods include PUT, DELETE, POST, GET. Wait. In this way, the MO that carries the OMA DM using HTTP is to express the management command and the session flow by using the standard methods provided by HTTP itself, and only the part that manages the data needs to be parsed. This can reduce the server and client capacity requirements, reduce the burden of over-the-air transmission, and use the standard HTTP method to carry commands, which is beneficial for Web App to directly manage the management data of OMA DM.
在沿用现有 OMA DM的 M0时, 需要一种操作方法, 对 M0中的可执行节 点进行操作, 但标准 HTTP方法中并不存在用于执行节点的 "Exec" 命令, 因此需要一种方法能够满足使用标准 HTTP方法实施设备管理, 同时又不给 服务器和终端增加额外的能力要求。  When the M0 of the existing OMA DM is used, an operation method is required to operate the executable node in the M0, but the "Exec" command for executing the node does not exist in the standard HTTP method, so a method is needed Efforts to implement device management using standard HTTP methods without adding additional capacity requirements to servers and terminals.
对于终端来说, 有的终端具备配置 HTTP Server ( HTTP服务器) 的能 力, 也就是可以接受 HTTP请求。 而大部分终端不具备配置 HTTP Server的 能力, 只能配置 HTTP Cl ient ( HTTP客户端), 也就是只能够发起 HTTP请 求, 而不能接受 HTTP请求。 如图 2 所示, 是本发明实施例所公开的一种对可执行节点的操作方法 的流程图, 本发明实施例中, 服务器侧部署 HTTP Server + HTTP Cl ient , 客户端侧仅部署 HTTP Cl ient , 客户端通过标准 HTTP方法向服务器请求资 源, 服务器通过响应消息 Response向客户端传递指示, 在 Response中包 含有设置好的需要客户端发起的 HTTP请求。 在需要执行可执行节点时, 服 务器在 Response中设置相应的 HTTP请求, 客户端收到该 Response后, 向 服务器发起所述 Response中设置的 HTTP请求, 服务器对该请求进行响应, 客户端根据该响应判断执行动作。 具体步骤包括: For the terminal, some terminals have the ability to configure HTTP Server (HTTP server), that is, can accept HTTP requests. Most terminals do not have HTTP Server configured. Capability, only HTTP Cl ient (HTTP client) can be configured, that is, only HTTP requests can be initiated, and HTTP requests cannot be accepted. As shown in FIG. 2, it is a flowchart of a method for operating an executable node according to an embodiment of the present invention. In the embodiment of the present invention, HTTP Server + HTTP Cl ient is deployed on the server side, and only HTTP Cl is deployed on the client side. The ient, the client requests the resource from the server through the standard HTTP method, and the server sends an indication to the client through the response message Response, and the response includes a set HTTP request initiated by the client. When the executable node needs to be executed, the server sets a corresponding HTTP request in the Response, and after receiving the Response, the client initiates an HTTP request set in the Response to the server, and the server responds to the request, and the client responds according to the response. Determine the execution action. The specific steps include:
201、 接受触发, 发送第一请求消息。  201. Accept the trigger and send the first request message.
客户端没有部署 HTTP Server , 因此不能随时监听 HTTP消息, 也不能 接收 HTTP请求。 服务器需要对客户端进行管理时, 通过 WAP PUSH或者 SIP PUSH或者短信等手段, 向客户端发送一个通知消息, 用于会话拉起, 客户 端收到这个通知消息之后, 首先验证通知消息及服务器的有效性, 然后向 服务器发起一个 HTTP请求, 这个 HTTP请求的目的是将客户端所在设备的 设备信息发送给服务器, 这个 HTTP请求是一个 POST请求, 这一步骤可以 认为是现有技术。 所述的 HTTP POST信息, 可以参考下面的例子:  The client does not deploy HTTP Server, so it cannot listen to HTTP messages at any time, nor can it receive HTTP requests. When the server needs to manage the client, it sends a notification message to the client through WAP PUSH or SIP PUSH or SMS, and the session is pulled up. After receiving the notification message, the client first verifies the notification message and the server. Validity, and then initiate an HTTP request to the server. The purpose of this HTTP request is to send the device information of the device where the client is located to the server. This HTTP request is a POST request. This step can be considered as prior art. For the HTTP POST information, refer to the following example:
POST ht tp: //ServerAddres s/Cl ient/DevicelD/DevInfoMO  POST ht tp: //ServerAddres s/Cl ient/DevicelD/DevInfoMO
HTTP/1. 1  HTTP/1. 1
Hos t: DMCl ient  Hos t: DMCl ient
Content-Type: app l icat ion/ syncml+xml  Content-Type: app l icat ion/ syncml+xml
"SyncML格式的 DevInfoMO内容"  "DevInfoMO content in SyncML format"
202、 发送第一响应消息, 所述第一响应消息中包含有指示可执行节点 执行操作的信息, 第一响应消息中直接使用文本包含了指示可执行节点执 行操作的信息。  202. Send a first response message, where the first response message includes information indicating that the executable node performs an operation, and the direct use text in the first response message includes information indicating that the executable node performs the operation.
服务器收到客户端发送的上一个 HTTP POST请求后,需要返回一个 HTTP 响应, 在这个响应中, 服务器以文本的形式, 设置了需要客户端发起的下 一个 HTTP请求, 在这个 HTTP请求中包含了服务器需要对客户端进行的设 备管理动作。 例如服务器需要客户端更新自身的 Email 设置时, 会返回一个如下的 HTTP响应: After receiving the last HTTP POST request sent by the client, the server needs to return an HTTP response. In this response, the server sets the next HTTP request that needs to be initiated by the client in the form of text. The HTTP request is included in the HTTP request. The server needs to perform device management actions on the client. For example, when the server needs the client to update its own email settings, it will return an HTTP response as follows:
HTTP/1.1 200 0K  HTTP/1.1 200 0K
Date: Wed, 6 Jun 2011 11: 22: 58 GMT  Date: Wed, 6 Jun 2011 11: 22: 58 GMT
Server: DMServer ID  Server: DMServer ID
Content-Type: text/plain  Content-Type: text/plain
GET http: //ServerAddress/Cl lent /Devi eel D/Emai 1 Sett ingMO HTTP/1.1  GET http: //ServerAddress/Cl lent /Devi eel D/Emai 1 Sett ingMO HTTP/1.1
Host: DMClient  Host: DMClient
最后三行是 HTTP响应所携带的文本格式的内容。客户端收到这个 HTTP 响应之后, 将文本格式的内容, 直接作为下一个 HTTP请求, 向服务器发起 一个 HTTP GET请求, 以获取保存在服务器上的该客户端所在设备的 Email 设置。 由于 OMA DM的管理数据和 HTTP方法都有 GET命令, 因此, 客户端 可以对 M0直接进行 HTTP GET操作。  The last three lines are the contents of the text format carried by the HTTP response. After receiving the HTTP response, the client directly sends the text format as the next HTTP request to the server to obtain an HTTP GET request to obtain the email settings of the device where the client is stored on the server. Since the OMA DM management data and HTTP method have GET commands, the client can directly perform an HTTP GET operation on M0.
对于可执行节点而言, 例如在服务器需要执行客户端自身的管理树中 的 ". /ManagementMO/Start" 节点时, 会返回一个如下的 HTTP响应:  For an executable node, for example, when the server needs to execute the ". /ManagementMO/Start" node in the client's own management tree, it returns an HTTP response as follows:
HTTP/1.1 200 0K  HTTP/1.1 200 0K
Date: Wed, 6 Jun 2011 11: 22: 58 GMT  Date: Wed, 6 Jun 2011 11: 22: 58 GMT
Server: DMServer ID  Server: DMServer ID
Content-Type: text/plain  Content-Type: text/plain
PUT http: //ServerAddress/Cl lent Address/ManagementMO/S tar t HTTP/1.1  PUT http: //ServerAddress/Cl lent Address/ManagementMO/S tar t HTTP/1.1
Host: DMClient  Host: DMClient
最后三行是 HTTP响应所携带的文本格式的内容。客户端收到这个 HTTP 响应之后, 将文本格式的内容, 直接作为下一个 HTTP请求, 向服务器发起 一个 HTTP PUT请求。 由于 HTTP本身不支持 "Exec" 命令, 因此需要后续 步骤 204和 205对执行动作进行判断。  The last three lines are the contents of the text format carried by the HTTP response. After receiving the HTTP response, the client directly sends the text format as the next HTTP request to the server to initiate an HTTP PUT request. Since HTTP itself does not support the "Exec" command, subsequent steps 204 and 205 are required to determine the execution action.
203、 根据所述第一响应消息, 发送第二请求消息, 所述第二请求消息 中包含有所述第一请求消息中指示可执行节点执行操作的信息。  203. Send a second request message according to the first response message, where the second request message includes information indicating that the executable node performs an operation in the first request message.
客户端根据步骤 2中的 HTTP响应一, 发起 HTTP请求。  The client initiates an HTTP request according to the HTTP response one in step 2.
PUT http: //ServerAddress/Cl lent Address/ManagementMO/S tar t HTTP/1. 1 PUT http: //ServerAddress/Cl lent Address/ManagementMO/S tar t HTTP/1. 1
Hos t: DMC l ient  Hos t: DMC l ient
其中 PUT 命令也可以是 POST命令, 由于 PUT 或 POST命令的目标 ( Universa l Resource Locator , 统一资源定位符)是客户端的根节点下 的 ". /ManagementMO/Star t" , 而在服务器上是不存在这个节点的, 因此对 这个 URL进行 PUT或 POST操作会发生错误。 这样设置的目的是为了使得服 务器返回特定的错误代码。  The PUT command can also be a POST command. Since the target of the PUT or POST command (Universal Resource Locator) is ". /ManagementMO/Star t" under the root node of the client, it does not exist on the server. This node, so an PUT or POST operation on this URL will cause an error. The purpose of this setup is to have the server return a specific error code.
204、 发送第二响应消息, 所述第二响应消息中包含有错误码。  204. Send a second response message, where the second response message includes an error code.
服务器收到步骤 303 中的第二请求消息之后, 由于 URL的错误, 会返 回一个第二响应消息, 所述第二响应消息中包含有错误码。 可选的, 所述 第二响应消息中还包含有指示可执行节点执行操作的信息, 即在发送错误 代码时可以再次携带需要执行的节点 URI。  After receiving the second request message in step 303, the server returns a second response message due to an error of the URL, and the second response message includes an error code. Optionally, the second response message further includes information indicating that the executable node performs an operation, that is, the node URI that needs to be executed may be carried again when the error code is sent.
服务器针对步骤 203中的 HTTP请求二, 返回一个错误码的例子如下: HTTP/1. 1 410 Gone  An example of the server returning an error code for HTTP request 2 in step 203 is as follows: HTTP/1. 1 410 Gone
Da te: Wed, 6 Jun 2011 11 : 22: 58 GMT  Da te: Wed, 6 Jun 2011 11 : 22: 58 GMT
Server: DMServer ID  Server: DMServer ID
可选的,服务器返回的错误码可以再次携带需要执行的节点 URI , 防止 客户端没有緩存之前的可执行节点 URI :  Optionally, the error code returned by the server can carry the node URI that needs to be executed again, preventing the client from having the cached executable node URI:
HTTP/1. 1 500 Interna l Server Error  HTTP/1. 1 500 Interna l Server Error
Da te: Wed, 6 Jun 2011 11 : 22: 58 GMT  Da te: Wed, 6 Jun 2011 11 : 22: 58 GMT
Server: DMServer ID  Server: DMServer ID
Content-Type: text/pla in  Content-Type: text/pla in
. /ManagementMO/Star t  . /ManagementMO/Star t
205、 根据第二响应消息中的错误码, 确定触发可执行操作。  205. Determine, according to the error code in the second response message, triggering the executable operation.
客户端收到了第二响应消息之后, 根据错误码, 判断出之前服务器在 第一响应消息中设置的第二请求消息的目的是执行所述节点。 客户端根据 所述第一响应消息确定需要执行的节点, 所述节点执行相应操作, 具体是 通 过 第 一 请 求 消 息 中 的 ht tp: //Server Addres s/Cl lent Addres s/ManagementMO/S tar t确定的;或者 根据所述第二响应消息确定需要执行的节点, 所述节点执行相应操作, 此 时, 所述第二响应消息中需包含有指示可执行节点执行操作的信息。 本发明实施例公开了一种对可执行节点的操作方法, 可以直接使用After receiving the second response message, the client determines, according to the error code, that the second request message set by the server in the first response message is to execute the node. The client determines, according to the first response message, a node that needs to be executed, and the node performs a corresponding operation, specifically by using ht tp in the first request message: //Server Addres s/Cl lent Addres s/ManagementMO/S tar Or determining, according to the second response message, the node that needs to be executed, and the node performs a corresponding operation. At this time, the second response message needs to include information indicating that the executable node performs an operation. The embodiment of the invention discloses a method for operating an executable node, which can be directly used.
HTTP标准方法对设备进行管理, 有利于通过网络应用程序直接进行设备管 理, 同时也降低了对终端设备的能力要求。 如图 3 所示, 是本发明实施例所公开的又一种对可执行节点的操作方 法的流程图, 本发明实施例中, 服务器侧部署 HTTP Server + HTTP C l ient , 客户端侧仅部署 HTTP C l ient , 客户端通过标准 HTTP方法向服务器请求资 源, 服务器通过响应消息 Response向客户端传递指示, 在 Response中包 含有设置好的需要客户端发起的 HTTP请求。 在需要执行可执行节点时, 服 务器在 Res ponse中设置相应的 HTTP请求, 客户端收到该 Res ponse后, 向 服务器发起所述 Response中设置的 HTTP请求, 服务器对该请求进行响应, 客户端根据该响应判断执行动作。 具体步骤包括: The HTTP standard method manages the device, which facilitates device management directly through the network application, and also reduces the capability requirements for the terminal device. As shown in FIG. 3, it is a flowchart of another method for operating an executable node according to an embodiment of the present invention. In the embodiment of the present invention, HTTP Server + HTTP C ient is deployed on the server side, and only the client side is deployed. HTTP C l ient , the client requests resources from the server through the standard HTTP method, and the server sends an indication to the client through the response message Response, and the response includes a set HTTP request initiated by the client. When the executable node needs to be executed, the server sets a corresponding HTTP request in the Response, and after receiving the Response, the client initiates an HTTP request set in the Response to the server, and the server responds to the request, and the client responds according to the request. The response determines the execution action. The specific steps include:
301、 接收触发消息, 发送第一请求消息。  301. Receive a trigger message, and send a first request message.
在本实施例中, 客户端接收服务器下发的触发消息, 并根据触发消息 向服务器发送第一请求消息, 本步骤具体实施方式与步骤 201相同。  In this embodiment, the client receives the trigger message sent by the server, and sends the first request message to the server according to the trigger message. The specific implementation of this step is the same as step 201.
302、 接收第一响应消息, 所述第一响应消息为根据所述第一请求消息 所下发的响应消息, 所述第一响应消息中包含有指示可执行节点执行操作 的信息, 第一响应消息中直接使用文本包含了指示可执行节点执行操作的 信息。  302. Receive a first response message, where the first response message is a response message that is sent according to the first request message, where the first response message includes information indicating that the executable node performs an operation, and the first response The text directly in the message contains information that indicates that the executable node is performing the operation.
服务器收到客户端发送的第一请求消息后, 返回一个响应消息, 在这 个响应中, 服务器以文本的形式, 设置了需要客户端发起的下一个 HTTP请 求, 在这个 HTTP请求中包含了服务器需要对客户端进行的设备管理动作。  After receiving the first request message sent by the client, the server returns a response message. In the response, the server sets the next HTTP request required by the client in the form of text, and the server needs to be included in the HTTP request. Device management actions performed on the client.
本步骤具体实施方式与步骤 202相同。  The specific embodiment of this step is the same as step 202.
303、 根据所述第一响应消息, 发送第二请求消息, 所述第二请求消息 中包含有所述第一请求消息中指示可执行节点执行操作的信息。  303. Send a second request message according to the first response message, where the second request message includes information indicating that the executable node performs an operation in the first request message.
客户端根据步骤 302 中的所述第一响应消息, 向服务器发送第二请求 消息。 第二请求消息中包含有需要执行的可执行节点的地址信息, 即所述 可执行节点的 URL , 由于在服务器上是不存在这个节点的, 因此对这个 URL 进行操作会发生错误, 从而使得服务器返回特定的错误代码  The client sends a second request message to the server according to the first response message in step 302. The second request message includes address information of the executable node that needs to be executed, that is, the URL of the executable node. Since the node does not exist on the server, an operation error occurs on the operation of the URL, thereby causing the server Return a specific error code
本步骤具体实施方式与步骤 203相同。  The specific embodiment of this step is the same as step 203.
304、 接收第二响应消息, 所述第二响应消息为根据所述第二请求消息 所下发的响应消息, 所述第二响应消息中包含有错误码。 304. Receive a second response message, where the second response message is according to the second request message. The response message sent, the second response message includes an error code.
服务器收到步骤 303 中的第二请求消息之后, 由于 URL的错误, 会返 回一个第二响应消息, 所述第二响应消息中包含有错误码。 可选的, 所述 第二响应消息中还包含有指示可执行节点执行操作的信息, 即在发送错误 代码时可以再次携带需要执行的节点 URI。  After receiving the second request message in step 303, the server returns a second response message due to an error of the URL, and the second response message includes an error code. Optionally, the second response message further includes information indicating that the executable node performs an operation, that is, the node URI that needs to be executed may be carried again when the error code is sent.
本步骤具体实施方式与步骤 204相同。  The specific embodiment of this step is the same as step 204.
305、 根据第二响应消息中的错误码, 确定触发可执行操作。  305. Determine, according to the error code in the second response message, triggering an executable operation.
客户端收到了第二响应消息之后, 根据错误码, 判断出之前服务器在 第一响应消息中设置的第二请求消息的目的是执行所述节点。 客户端根据 所述第一响应消息确定需要执行的节点, 所述节点执行相应操作, 具体是 通 过 第 一 请 求 消 息 中 的 ht tp: //Server Addres s/Cl lent Addres s/ManagementMO/S tar t确定的;或者 根据所述第二响应消息确定需要执行的节点, 所述节点执行相应操作, 此 时, 所述第二响应消息中需包含有指示可执行节点执行操作的信息。  After receiving the second response message, the client determines, according to the error code, that the second request message set by the server in the first response message is to execute the node. The client determines, according to the first response message, a node that needs to be executed, and the node performs a corresponding operation, specifically by using ht tp in the first request message: //Server Addres s/Cl lent Addres s/ManagementMO/S tar Or determining, according to the second response message, the node that needs to be executed, and the node performs a corresponding operation. At this time, the second response message needs to include information indicating that the executable node performs an operation.
本发明实施例公开了一种对可执行节点的操作方法, 可以直接使用 HTTP标准方法对设备进行管理, 有利于通过网络应用程序直接进行设备管 理, 同时也降低了对终端设备的能力要求。 如图 4 所示, 是本发明实施例所公开的又一种对可执行节点的操作方 法的流程图, 本发明实施例中, 服务器侧部署 HTTP Server + HTTP Cl ient , 客户端侧仅部署 HTTP Cl ient , 客户端通过标准 HTTP方法向服务器请求资 源, 服务器通过响应消息 Response向客户端传递指示, 在 Response中包 含有设置好的需要客户端发起的 HTTP请求。 在需要执行可执行节点时, 月良 务器在 Response中设置相应的 HTTP请求, 客户端收到该 Response后, 向 服务器发起所述 Response中设置的 HTTP请求, 服务器对该请求进行响应, 客户端根据该响应判断执行动作。 具体步骤包括:  The embodiment of the invention discloses a method for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device. As shown in FIG. 4, it is a flowchart of another method for operating an executable node according to an embodiment of the present invention. In the embodiment of the present invention, HTTP Server + HTTP Cl ient is deployed on the server side, and only HTTP is deployed on the client side. Cl ient , the client requests resources from the server through the standard HTTP method, and the server sends an indication to the client through the response message Response, and the response includes a set HTTP request initiated by the client. When the executable node needs to be executed, the server sets a corresponding HTTP request in the Response, and after receiving the response, the client initiates an HTTP request set in the Response to the server, and the server responds to the request, and the client The execution of the action is judged based on the response. The specific steps include:
401、 发送触发消息。  401. Send a trigger message.
客户端没有部署 HTTP Server , 因此不能随时监听 HTTP消息, 也不能 接收 HTTP请求。 服务器需要对客户端进行管理时, 通过 WAP PUSH或者 SIP PUSH或者短信等手段, 向客户端发送一个通知消息, 用于会话拉起。  The client does not deploy HTTP Server, so it cannot listen to HTTP messages at any time, nor can it receive HTTP requests. When the server needs to manage the client, it sends a notification message to the client through WAP PUSH or SIP PUSH or SMS to use for session pull.
402、 接收第一请求消息, 所述第一请求消息为根据所述触发消息所发 起的请求消息。 402. Receive a first request message, where the first request message is sent according to the trigger message. Request message.
在本实施例中, 客户端接收到服务器下发的触发消息后, 根据触发消 息向服务器发送第一请求消息, 服务器接收所述第一请求消息。  In this embodiment, after receiving the trigger message sent by the server, the client sends a first request message to the server according to the trigger message, and the server receives the first request message.
本步骤中, 服务器所接收的第一请求消息同步骤 201相同。  In this step, the first request message received by the server is the same as step 201.
403、 发送第一响应消息, 所述第一响应消息为根据所述第一请求消息 所下发的响应消息, 所述第一响应消息中包含有指示可执行节点执行操作 的信息, 第一响应消息中直接使用文本包含了指示可执行节点执行操作的 信息。  403. Send a first response message, where the first response message is a response message that is sent according to the first request message, where the first response message includes information indicating that the executable node performs an operation, and the first response The text directly in the message contains information that indicates that the executable node is performing the operation.
服务器收到客户端发送的第一请求消息后, 返回一个响应消息, 在这 个响应中, 服务器以文本的形式, 设置了需要客户端发起的下一个 HTTP请 求, 在这个 HTTP请求中包含了服务器需要对客户端进行的设备管理动作。  After receiving the first request message sent by the client, the server returns a response message. In the response, the server sets the next HTTP request required by the client in the form of text, and the server needs to be included in the HTTP request. Device management actions performed on the client.
本步骤具体实施方式与步骤 202相同。  The specific embodiment of this step is the same as step 202.
404、 接收第二请求消息, 所述第二请求消息为根据所述第一响应消息 所发起的请求消息, 所述第二请求消息中包含有所述第一请求消息中指示 可执行节点执行操作的信息。  404. Receive a second request message, where the second request message is a request message that is initiated according to the first response message, where the second request message includes the first request message that indicates that the executable node performs an operation. Information.
客户端根据步骤 403 中的所述第一响应消息, 向服务器发送第二请求 消息。 第二请求消息中包含有需要执行的可执行节点的地址信息, 即所述 可执行节点的 URL, 由于在服务器上是不存在这个节点的, 因此对这个 URL 进行操作会发生错误, 从而使得服务器返回特定的错误代码  The client sends a second request message to the server according to the first response message in step 403. The second request message includes address information of the executable node that needs to be executed, that is, the URL of the executable node. Since the node does not exist on the server, an operation error occurs on the operation of the URL, thereby causing the server Return a specific error code
本步骤具体实施方式与步骤 203相同。  The specific embodiment of this step is the same as step 203.
405、 发送第二响应消息, 所述第二响应消息为根据所述第二请求消息 所下发的响应消息, 所述第二响应消息中包含有错误码。  405. Send a second response message, where the second response message is a response message that is sent according to the second request message, where the second response message includes an error code.
服务器收到步骤 404 中的第二请求消息之后, 由于 URL的错误, 会返 回一个第二响应消息, 所述第二响应消息中包含有错误码。 可选的, 所述 第二响应消息中还包含有指示可执行节点执行操作的信息, 即在发送错误 代码时可以再次携带需要执行的节点 URI。  After receiving the second request message in step 404, the server returns a second response message due to an error of the URL, and the second response message includes an error code. Optionally, the second response message further includes information indicating that the executable node performs an operation, that is, the node URI that needs to be executed may be carried again when the error code is sent.
本步骤具体实施方式与步骤 204相同。  The specific embodiment of this step is the same as step 204.
可选的, 在步骤 405之后还可以包含步骤 406。  Optionally, step 406 may be further included after step 405.
406、 根据第二响应消息中的错误码, 确定触发可执行操作。  406. Determine, according to the error code in the second response message, triggering the executable operation.
客户端收到了第二响应消息之后, 根据错误码, 判断出之前服务器在 第一响应消息中设置的第二请求消息的目的是执行所述节点。 客户端根据 所述第一响应消息确定需要执行的节点, 所述节点执行相应操作, 具体是 通 过 第 一 请 求 消 息 中 的 ht tp: //Server Addres s/Cl lent Addres s/ManagementMO/S tar t确定的;或者 根据所述第二响应消息确定需要执行的节点, 所述节点执行相应操作, 此 时, 所述第二响应消息中需包含有指示可执行节点执行操作的信息。 After receiving the second response message, the client determines, according to the error code, that the second request message set by the server in the first response message is to execute the node. Client based The first response message determines a node that needs to be executed, and the node performs a corresponding operation, specifically, by using ht tp: //Server Addres s/Cl lent Addres s/ManagementMO/S tar t in the first request message; Or determining, according to the second response message, a node that needs to be executed, where the node performs a corresponding operation. At this time, the second response message needs to include information indicating that the executable node performs an operation.
本发明实施例公开了一种对可执行节点的操作方法, 可以直接使用 HTTP标准方法对设备进行管理, 有利于通过网络应用程序直接进行设备管 理, 同时也降低了对终端设备的能力要求。 如图 5 所示, 是本发明实施例所公开的又一种对可执行节点的操作方 法的流程图, 本发明实施例中, 在服务器侧和客户端侧都部署 HTTP Server + HTTP Cl ient , 双方互相使用标准 HTTP方法携带设备管理数据进行交互。 服务器需要对客户端上可执行节点进行执行动作时, 首先使用标准的 HTTP 方法发送通知消息给客户端, 客户端认证该服务器有效性后返回设备信息, 服务器使用标准的 HTTP方法表示对可执行节点的执行动作。具体步骤如下: The embodiment of the invention discloses a method for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device. As shown in FIG. 5, it is a flowchart of another method for operating an executable node according to an embodiment of the present invention. In the embodiment of the present invention, HTTP Server + HTTP Cl ient is deployed on both the server side and the client side. Both parties interact with each other using standard HTTP methods to carry device management data. When the server needs to perform an action on the executable node on the client, the first HTTP method is used to send a notification message to the client. After the client authenticates the server, the device information is returned. The server uses the standard HTTP method to represent the executable node. Execution action. Specific steps are as follows:
501、 发送第一请求消息, 所述第一请求消息包含有身份验证信息及请 求设备信息的指示。 501. Send a first request message, where the first request message includes an indication of identity verification information and requesting device information.
服务器发送第一请求消息, 第一请求消息为一个如下的 GET请求, 并 且在其中携带通知消息, 用于客户端验证服务器身份。 同时通过 GET请求, 要求客户端返回设备信息, 便于后续设备管理。 此步骤可认为是现有技术。 例如第一请求消息为:  The server sends a first request message, and the first request message is a GET request as follows, and carries a notification message therein for the client to verify the identity of the server. At the same time, through the GET request, the client is required to return device information, which facilitates subsequent device management. This step can be considered as prior art. For example, the first request message is:
GET ht tp: //Cl ientAddres s/DevInfoMO  GET ht tp: //Cl ientAddres s/DevInfoMO
HTTP/1. 1  HTTP/1. 1
Hos t: DMServer  Hos t: DMServer
Content-Type: App l icat ion/bin  Content-Type: App l icat ion/bin
"bin格式的通知消息"  "Notification message in bin format"
502、 发送第一响应消息, 所述第一响应消息包含有所述设备信息。 客户端验证服务器的通知消息后, 向服务器返回一个响应消息, 在其 中携带设备信息, 此步骤可以认为是现有技术, 例如第二响应消息为: HTTP/1. 1 200 0K  502. Send a first response message, where the first response message includes the device information. After the client verifies the notification message of the server, it returns a response message to the server, and carries the device information therein. This step can be considered as a prior art, for example, the second response message is: HTTP/1. 1 200 0K
Da te: Wed, 6 Jun 2011 11 : 22: 58 GMT Server: DMClientID Da te: Wed, 6 Jun 2011 11 : 22: 58 GMT Server: DMClientID
Content-Type: application/ syncml+xml  Content-Type: application/ syncml+xml
"SyncML格式的 DevInfoMO内容"  "DevInfoMO content in SyncML format"
503、 发送第二请求消息, 所述第二请求消息用于指示所述节点为可执 行节点, 同时包含有指示可执行节点执行操作的信息。  503. Send a second request message, where the second request message is used to indicate that the node is an executable node, and includes information indicating that the executable node performs an operation.
现有技术中, 0MA DM的 M0中可执行节点不存在节点值。 为了便于通过 HTTP请求进行执行动作, 对所有可执行节点增加节点值。 可执行节点的属 性为 "Exec", 在现有标准中不存在节点值, 现对所有属性为 "Exec" 的节 点增加节点值。  In the prior art, the node value of the executable node in the M0 of the 0MA DM does not exist. In order to facilitate the execution of actions through HTTP requests, node values are added to all executable nodes. The attribute of the executable node is "Exec", there is no node value in the existing standard, and the node value is now added to all nodes whose attribute is "Exec".
服务器需要执行客户端上某个可执行节点时,对该可执行节点进行 PUT 或 POST请求。  When the server needs to execute an executable node on the client, a PUT or POST request is made to the executable node.
方法一, 针对可执行节点增加的节点值, 规定其值可以为字符串, 数 字, 字符等。 该 PUT或 POST请求不携带修改值, 仅仅是触发可执行动作。  Method one, for the node value added by the executable node, the value may be a string, a number, a character, or the like. The PUT or POST request does not carry the modified value, just triggers the executable action.
例如: 在服务器需要执行客户 端 自 身 的 管理树 中 的 ". /ManagementMO/Start" 节点时, 可以发起如下 PUT或 POST请求:  For example: When the server needs to execute the ". /ManagementMO/Start" node in the client's own management tree, you can initiate the following PUT or POST request:
PUT http: //ClientAddress/ ManagementMO/Start  PUT http: //ClientAddress/ ManagementMO/Start
HTTP/1.1  HTTP/1.1
Host: DMServer  Host: DMServer
方法二, 可行的, 针对可执行节点增加的节点值, 规定其值可以为字 符串。 该 PUT 或 POST 请求需要将该可执行节点的节点值修改为字符串 "Exec"。 客户端才会判定其对该节点使用了执行命令。  Method 2, feasible, for the node value added by the executable node, the value may be a string. The PUT or POST request needs to modify the node value of the executable node to the string "Exec". The client will determine that it is using an execution command for that node.
例如: 在服务器需要执行客户 端 自 身 的 管理树 中 的 ". /ManagementMO/Start" 节点时, 可以发起如下 PUT或 POST请求:  For example: When the server needs to execute the ". /ManagementMO/Start" node in the client's own management tree, you can initiate the following PUT or POST request:
PUT http: //ClientAddress/ ManagementMO/Start  PUT http: //ClientAddress/ ManagementMO/Start
HTTP/1.1  HTTP/1.1
Host: DMServer  Host: DMServer
Content-Type: text/plain  Content-Type: text/plain
Content-Length: 4  Content-Length: 4
Exec  Exec
504、 根据所述第二请求消息, 判断所述节点为可执行节点。  504. Determine, according to the second request message, that the node is an executable node.
方法一, 客户端收到步骤 303中方法一的 PUT或 POST请求后, 首先判 断目标节点的属性, 客户端判断出该节点属性为 "Exec" 之后, 认定该操 作的目的是对节点进行执行, 则客户端被触发执行相应动作。 In the first method, after receiving the PUT or POST request of the method 1 in step 303, the client first determines After the client determines that the node attribute is "Exec", the client determines that the purpose of the operation is to execute the node, and the client is triggered to perform the corresponding action.
方法二, 客户端收到步骤 303中方法二的 PUT或 POST请求后, 首先判 断目标节点的属性, 客户端判断出该节点属性为 "Exec" 之后, 继续判定 写入该节点的值是否为字符串 "Exec" , 如果是, 则认定该操作的目的是对 该节点进行执行, 则客户端被触发执行相应动作。  Method 2, after receiving the PUT or POST request of the method 2 in step 303, the client first determines the attribute of the target node, and after the client determines that the node attribute is "Exec", it continues to determine whether the value written to the node is a character. The string "Exec", if yes, determines that the purpose of the operation is to execute the node, and the client is triggered to perform the corresponding action.
本发明实施例公开了一种对可执行节点的操作方法, 可以直接使用 HTTP标准方法对设备进行管理, 有利于通过网络应用程序直接进行设备管 理, 同时也降低了对终端设备的能力要求。 如图 6 所示, 是本发明实施例所公开的又一种对可执行节点的操作方 法的流程图, 本发明实施例中, 在服务器侧和客户端侧都部署 HTTP Server + HTTP C l i ent , 双方互相使用标准 HTTP方法携带设备管理数据进行交互。 服务器需要对客户端上可执行节点进行执行动作时, 首先使用标准的 HTTP 方法发送通知消息给客户端, 客户端认证该服务器有效性后返回设备信息, 服务器使用标准的 HTTP方法表示对可执行节点的执行动作。具体步骤如下: The embodiment of the invention discloses a method for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device. As shown in FIG. 6 , it is a flowchart of another method for operating an executable node according to an embodiment of the present invention. In the embodiment of the present invention, HTTP Server + HTTP C ent is deployed on both the server side and the client side. The two parties use the standard HTTP method to carry device management data for interaction. When the server needs to perform an action on the executable node on the client, the first HTTP method is used to send a notification message to the client. After the client authenticates the server, the device information is returned. The server uses the standard HTTP method to represent the executable node. Execution action. Specific steps are as follows:
601、 接收第一请求消息, 所述第一请求消息包含有身份验证信息及请 求设备信息的指示。 601. Receive a first request message, where the first request message includes an indication of identity verification information and requesting device information.
服务器发送第一请求消息, 第一请求消息为一个如下的 GET请求, 并 且在其中携带通知消息, 用于客户端验证服务器身份。 同时通过 GET请求, 要求客户端返回设备信息, 便于后续设备管理。 本步骤具体实施方式与步 骤 501相同。  The server sends a first request message, and the first request message is a GET request as follows, and carries a notification message therein for the client to verify the identity of the server. At the same time, through the GET request, the client is required to return device information, which facilitates subsequent device management. The specific embodiment of this step is the same as step 501.
602、 发送第一响应消息, 所述第一响应消息包含有所述设备信息。 客户端验证服务器的通知消息后, 向服务器返回一个响应消息, 在其 中携带设备信息。 本步骤具体实施方式与步骤 502相同。  602. Send a first response message, where the first response message includes the device information. After the client verifies the notification message of the server, it returns a response message to the server, carrying the device information therein. The specific embodiment of this step is the same as step 502.
603、 接收第二请求消息, 所述第二请求消息用于指示所述节点为可执 行节点, 同时包含有指示可执行节点执行操作的信息。  603. Receive a second request message, where the second request message is used to indicate that the node is an executable node, and includes information indicating that the executable node performs an operation.
现有技术中, OMA DM的 M0中可执行节点不存在节点值。 为了便于通过 HTTP请求进行执行动作, 对所有可执行节点增加节点值。 可执行节点的属 性为 "Exec" , 在现有标准中不存在节点值, 现对所有属性为 "Exec" 的节 点增加节点值。 服务器需要执行客户端上某个可执行节点时,对该可执行节点进行 PUT 或 POST请求。 In the prior art, the node in the M0 of the OMA DM does not have a node value. In order to facilitate the execution of actions through HTTP requests, node values are added to all executable nodes. The attribute of the executable node is "Exec". There is no node value in the existing standard. Now add the node value to all nodes whose attribute is "Exec". When the server needs to execute an executable node on the client, a PUT or POST request is made to the executable node.
本步骤具体实施方式与步骤 503相同。  The specific embodiment of this step is the same as step 503.
604、 根据所述第二请求消息, 判断所述节点为可执行节点。  604. Determine, according to the second request message, that the node is an executable node.
本步骤具体实施方式与步骤 503相同。  The specific embodiment of this step is the same as step 503.
本发明实施例公开了一种对可执行节点的操作方法, 可以直接使用 HTTP标准方法对设备进行管理, 有利于通过网络应用程序直接进行设备管 理, 同时也降低了对终端设备的能力要求。 如图 7 所示, 是本发明实施例所公开的又一种对可执行节点的操作方 法的流程图, 本发明实施例中, 在服务器侧和客户端侧都部署 HTTP Server + HTTP C l i ent , 双方互相使用标准 HTTP方法携带设备管理数据进行交互。 服务器需要对客户端上可执行节点进行执行动作时, 首先使用标准的 HTTP 方法发送通知消息给客户端, 客户端认证该服务器有效性后返回设备信息, 服务器使用标准的 HTTP方法表示对可执行节点的执行动作。具体步骤如下: The embodiment of the invention discloses a method for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device. As shown in FIG. 7 , it is a flowchart of another method for operating an executable node according to an embodiment of the present invention. In the embodiment of the present invention, HTTP Server + HTTP C ent is deployed on both the server side and the client side. The two parties use the standard HTTP method to carry device management data for interaction. When the server needs to perform an action on the executable node on the client, the first HTTP method is used to send a notification message to the client. After the client authenticates the server, the device information is returned. The server uses the standard HTTP method to represent the executable node. Execution action. Specific steps are as follows:
701、 发送第一请求消息, 所述第一请求消息包含有身份验证信息及请 求设备信息的指示。 701. Send a first request message, where the first request message includes an indication of identity verification information and requesting device information.
服务器发送第一请求消息, 第一请求消息为一个如下的 GET请求, 并 且在其中携带通知消息, 用于客户端验证服务器身份。 同时通过 GET请求, 要求客户端返回设备信息, 便于后续设备管理。 本步骤具体实施方式与步 骤 501相同。  The server sends a first request message, and the first request message is a GET request as follows, and carries a notification message therein for the client to verify the identity of the server. At the same time, through the GET request, the client is required to return device information, which facilitates subsequent device management. The specific embodiment of this step is the same as step 501.
702、 接收第一响应消息, 所述第一响应消息包含有所述设备信息。 客户端验证服务器的通知消息后, 向服务器返回一个响应消息, 在其 中携带设备信息。 本步骤具体实施方式与步骤 502相同。  702. Receive a first response message, where the first response message includes the device information. After the client verifies the notification message of the server, it returns a response message to the server, carrying the device information therein. The specific embodiment of this step is the same as step 502.
703、 发送第二请求消息, 所述第二请求消息用于指示所述节点为可执 行节点, 同时包含有指示可执行节点执行操作的信息。  703. Send a second request message, where the second request message is used to indicate that the node is an executable node, and includes information indicating that the executable node performs an operation.
现有技术中, OMA DM的 M0中可执行节点不存在节点值。 为了便于通过 HTTP请求进行执行动作, 对所有可执行节点增加节点值。 可执行节点的属 性为 "Exec" , 在现有标准中不存在节点值, 现对所有属性为 "Exec" 的节 点增加节点值。  In the prior art, the node value of the executable node in the M0 of the OMA DM does not exist. In order to facilitate the execution of actions through HTTP requests, node values are added to all executable nodes. The attribute of the executable node is "Exec", there is no node value in the existing standard, and the node value is now added to all nodes whose attribute is "Exec".
服务器需要执行客户端上某个可执行节点时,对该可执行节点进行 PUT 或 POST请求。 The server needs to perform PUT on the executable node when it needs to execute an executable node on the client. Or POST request.
本步骤具体实施方式与步骤 503相同。  The specific embodiment of this step is the same as step 503.
可选的, 在步骤 703之后还可以包含步骤 704。  Optionally, step 704 may be further included after step 703.
704、 根据所述第二请求消息, 判断所述节点为可执行节点。  704. Determine, according to the second request message, that the node is an executable node.
本步骤具体实施方式与步骤 503相同。  The specific embodiment of this step is the same as step 503.
本发明实施例公开了一种对可执行节点的操作方法, 可以直接使用 HTTP标准方法对设备进行管理, 有利于通过网络应用程序直接进行设备管 理, 同时也降低了对终端设备的能力要求。 相应于所公开的对可执行节点的操作方法, 本发明实施例公开了一种 客户端, 如图 8所示, 客户端 80包括接收单元 801、 消息解析单元 802、 消息生成单元 803 , 发送单元 804、 确定单元 805、 可执行节点 806 , 其中: 接收单元 801 用于接收服务器发送的消息, 所述服务器发送的消息包 括触发消息, 第一响应消息及第二响应消息, 所述触发消息用于触发客户 端发起请求消息, 触发消息为 WAP PUSH或者 SIP PUSH或者短信; 所述第 一响应消息包含有指示可执行节点执行操作的信息; 所述第二响应消息中 包含有错误码, 所述第二响应消息中或者还包含有指示可执行节点执行操 作的信息。  The embodiment of the invention discloses a method for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device. Corresponding to the disclosed method for operating an executable node, the embodiment of the present invention discloses a client. As shown in FIG. 8, the client 80 includes a receiving unit 801, a message parsing unit 802, a message generating unit 803, and a sending unit. 804, the determining unit 805, the executable node 806, where: the receiving unit 801 is configured to receive a message sent by the server, where the message sent by the server includes a trigger message, a first response message, and a second response message, where the trigger message is used Triggering a client to initiate a request message, the trigger message is a WAP PUSH or a SIP PUSH or a short message; the first response message includes information indicating that the executable node performs an operation; the second response message includes an error code, where the The second response message also contains information indicating that the executable node performs the operation.
所述服务器发送的消息或者是第一请求消息及第二请求消息, 所述第 一请求消息包含有身份验证信息及请求设备信息的指示; 所述第二请求消 息用于指示所述节点为可执行节点, 同时包含有指示可执行节点执行操作 的信息。  The message sent by the server is either a first request message and a second request message, where the first request message includes an indication of the identity verification information and the requesting device information, and the second request message is used to indicate that the node is The execution node also contains information indicating that the executable node performs the operation.
消息解析单元 802 , 用于解析接收单元 801所接收到的消息。  The message parsing unit 802 is configured to parse the message received by the receiving unit 801.
消息生成单元 803 , 用于根据消息解析单元 802的解析结果生成消息。 发送单元 804 , 用于向服务器发送消息, 所述向服务器发送的消息包括 第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端 80的 设备信息发送给所述服务器, 所述第二请求消息用于使所述服务器返回特 定的错误码; 所述向服务器发送的消息或者是第一响应消息, 所述第一响 应消息中包含有所述设备信息。  The message generating unit 803 is configured to generate a message according to the parsing result of the message parsing unit 802. The sending unit 804 is configured to send a message to the server, where the message sent to the server includes a first request message and a second request message, where the first request message is used to send the device information of the client 80 to the The server, the second request message is used to enable the server to return a specific error code; the message sent to the server is a first response message, and the first response message includes the device information.
确定单元 805 ,根据消息解析单元 802的解析结果确定服务器需要操作 的可执行节点。 可执行节点 806 , 是客户端管理对象中的节点, 具有可执行的属性, 用 于执行服务器所下发的操作命令, 完成相应操作。 The determining unit 805 determines an executable node that the server needs to operate according to the parsing result of the message parsing unit 802. The executable node 806 is a node in the client management object, and has an executable attribute for executing an operation command sent by the server to complete the corresponding operation.
本发明实施例公开了一种对可执行节点操作的客户端, 可以直接使用 HTTP标准方法对设备进行管理, 有利于通过网络应用程序直接进行设备管 理, 同时也降低了对终端设备的能力要求。 相应于本发明实施例所公开的对可执行节点的操作方法, 本发明实施 例公开了一种服务器, 如图 9所示, 服务器 90包括接收单元 901、 消息解 析单元 902、 消息生成单元 903、 发送单元 904 , 其中:  The embodiment of the present invention discloses a client that operates on an executable node, and can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device. Corresponding to the operation method of the executable node disclosed in the embodiment of the present invention, the embodiment of the present invention discloses a server. As shown in FIG. 9, the server 90 includes a receiving unit 901, a message parsing unit 902, and a message generating unit 903. Sending unit 904, where:
接收单元 901 用于接收客户端发送的消息, 所述客户端发送的消息包 括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端所 在设备的设备信息发送给所述服务器 90, 所述第二请求消息用于使所述服 务器 90返回特定的错误码; 所述客户端发送的消息或者是第一响应消息, 所述第一响应消息中包含有所述设备信息。  The receiving unit 901 is configured to receive a message sent by the client, where the message sent by the client includes a first request message and a second request message, where the first request message is used to send device information of the device where the client is located to The server 90, the second request message is used to cause the server 90 to return a specific error code; the message sent by the client is a first response message, and the first response message includes the device information.
消息解析单元 902 , 用于解析接收单元 901所接收到的消息。  The message parsing unit 902 is configured to parse the message received by the receiving unit 901.
消息生成单元 903 , 用于根据消息解析单元 902的解析结果生成消息。 发送单元 904 , 用于向客户端发送消息, 所述向客户端发送的消息包括 触发消息, 第一响应消息及第二响应消息, 所述触发消息用于触发客户端 发起请求消息, 触发消息为 WAP PUSH或者 S IP PUSH或者短信; 所述第一 响应消息包含有指示可执行节点执行操作的信息; 所述第二响应消息中包 含有错误码, 所述第二响应消息中或者还包含有指示可执行节点执行操作 的信息。  The message generating unit 903 is configured to generate a message according to the parsing result of the message parsing unit 902. The sending unit 904 is configured to send a message to the client, where the message sent to the client includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger the client to initiate the request message, and the trigger message is The WAP response or the IP PUSH or the short message; the first response message includes information indicating that the executable node performs an operation; the second response message includes an error code, and the second response message further includes an indication The information that the executable node performs the operation.
所述向客户端发送的消息或者是第一请求消息及第二请求消息, 所述 第一请求消息包含有身份验证信息及请求设备信息的指示; 所述第二请求 消息用于指示所述节点为可执行节点 , 同时包含有指示可执行节点执行操 作的信息。  The message sent to the client is either a first request message and a second request message, where the first request message includes an indication of the identity verification information and the requesting device information; the second request message is used to indicate the node It is an executable node that contains information indicating that the executable node performs operations.
本发明实施例公开了一种对可执行节点操作的服务器, 可以直接使用 HTTP标准方法对设备进行管理, 有利于通过网络应用程序直接进行设备管 理, 同时也降低了对终端设备的能力要求。 相应于本发明实施例所公开的对可执行节点的操作方法, 本发明实施 例公开了一种系统, 如图 10所示, 包括客户端 80和服务器 90。 The embodiment of the invention discloses a server that operates on an executable node, and can directly manage the device by using an HTTP standard method, which is convenient for directly managing the device through the network application, and also reduces the capability requirement for the terminal device. Corresponding to the method for operating an executable node disclosed in the embodiment of the present invention, the present invention is implemented The example discloses a system, as shown in FIG. 10, including a client 80 and a server 90.
所述客户端 80包括接收单元 801、 消息解析单元 802、 消息生成单元 803 , 发送单元 804、 确定单元 805、 可执行节点 806 , 其中:  The client 80 includes a receiving unit 801, a message parsing unit 802, a message generating unit 803, a sending unit 804, a determining unit 805, and an executable node 806, where:
接收单元 801用于接收服务器 90发送的消息, 所述服务器发送的消息 包括触发消息, 第一响应消息及第二响应消息, 所述触发消息用于触发客 户端发起请求消息, 触发消息为 P PUSH或者 SIP PUSH或者短信; 所述 第一响应消息包含有指示可执行节点执行操作的信息; 所述第二响应消息 中包含有错误码, 所述第二响应消息中或者还包含有指示可执行节点执行 操作的信息。  The receiving unit 801 is configured to receive a message sent by the server, where the message sent by the server includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message, and the trigger message is P PUSH Or the SIP PUSH or the short message; the first response message includes information indicating that the executable node performs an operation; the second response message includes an error code, and the second response message further includes an indication executable node The information that performs the operation.
所述服务器发送的消息或者是第一请求消息及第二请求消息, 所述第 一请求消息包含有身份验证信息及请求设备信息的指示; 所述第二请求消 息用于指示所述节点为可执行节点, 同时包含有指示可执行节点执行操作 的信息。  The message sent by the server is either a first request message and a second request message, where the first request message includes an indication of the identity verification information and the requesting device information, and the second request message is used to indicate that the node is The execution node also contains information indicating that the executable node performs the operation.
消息解析单元 802 , 用于解析接收单元 801所接收到的消息。  The message parsing unit 802 is configured to parse the message received by the receiving unit 801.
消息生成单元 803 , 用于根据消息解析单元 802的解析结果生成消息。 发送单元 804 , 用于向服务器 90发送消息, 所述向服务器发送的消息 包括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端 80所在设备的设备信息发送给所述服务器 90 , 所述第二请求消息用于使所 述服务器 90返回特定的错误码; 所述向服务器发送的消息或者是第一响应 消息, 所述第一响应消息中包含有所述设备信息。  The message generating unit 803 is configured to generate a message according to the parsing result of the message parsing unit 802. The sending unit 804 is configured to send a message to the server, where the message sent to the server includes a first request message and a second request message, where the first request message is used to send device information of the device where the client 80 is located. To the server 90, the second request message is used to cause the server 90 to return a specific error code; the message sent to the server is a first response message, and the first response message includes the Device Information.
确定单元 805 , 根据消息解析单元 802的解析结果确定服务器 90需要 操作的可执行节点。  The determining unit 805 determines an executable node that the server 90 needs to operate according to the parsing result of the message parsing unit 802.
可执行节点 806 , 是客户端管理对象中的节点, 具有可执行的属性, 用 于执行服务器 90所下发的操作命令, 完成相应操作。  The executable node 806 is a node in the client management object, and has an executable attribute for executing an operation command sent by the server 90 to complete the corresponding operation.
所述服务器包括接收单元 901、 消息解析单元 902、 消息生成单元 903、 发送单元 904 , 其中:  The server includes a receiving unit 901, a message parsing unit 902, a message generating unit 903, and a sending unit 904, where:
接收单元 901用于接收客户端 80发送的消息, 所述客户端发送的消息 包括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端 所在设备的设备信息发送给所述服务器 90, 所述第二请求消息用于使所述 服务器 90返回特定的错误码;所述客户端发送的消息或者是第一响应消息, 所述第一响应消息中包含有所述设备信息。 消息解析单元 902 , 用于解析接收单元 901所接收到的消息。 The receiving unit 901 is configured to receive the message sent by the client 80, where the message sent by the client includes a first request message and a second request message, where the first request message is used to send device information of the device where the client is located. To the server 90, the second request message is used to cause the server 90 to return a specific error code; the message sent by the client is a first response message, and the first response message includes the Device Information. The message parsing unit 902 is configured to parse the message received by the receiving unit 901.
消息生成单元 903 , 用于根据消息解析单元 902的解析结果生成消息。 发送单元 904 , 用于向客户端 80发送消息, 所述向客户端发送的消息 包括触发消息, 第一响应消息及第二响应消息, 所述触发消息用于触发客 户端发起请求消息, 触发消息为 P PUSH或者 SIP PUSH或者短信; 所述 第一响应消息包含有指示可执行节点执行操作的信息; 所述第二响应消息 中包含有错误码, 所述第二响应消息中或者还包含有指示可执行节点执行 操作的信息。  The message generating unit 903 is configured to generate a message according to the parsing result of the message parsing unit 902. The sending unit 904 is configured to send a message to the client, where the message sent to the client includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message, and trigger a message. The PPUSH or the SIP PUSH or the short message; the first response message includes information indicating that the executable node performs an operation; the second response message includes an error code, and the second response message further includes an indication The information that the executable node performs the operation.
所述向客户端发送的消息或者是第一请求消息及第二请求消息, 所述 第一请求消息包含有身份验证信息及请求设备信息的指示, 所述第二请求 消息用于指示所述节点为可执行节点 , 同时包含有指示可执行节点执行操 作的信息。  The message sent to the client is either a first request message and a second request message, where the first request message includes an indication of the identity verification information and the requesting device information, and the second request message is used to indicate the node. It is an executable node that contains information indicating that the executable node performs operations.
需要说明的是, 上述系统内的各单元之间的信息交互、 执行过程等内 容, 由于与本发明方法实施例基于同一构思, 具体内容可参见本发明方法 实施例中的叙述, 此处不再贅述。  It should be noted that the information exchange, the execution process, and the like between the units in the foregoing system are based on the same concept as the method embodiment of the present invention. For details, refer to the description in the method embodiment of the present invention. Narration.
本发明实施例公开了一种对可执行节点操作的系统, 可以直接使用 HTTP标准方法对设备进行管理, 有利于通过网络应用程序直接进行设备管 理, 同时也降低了对终端设备的能力要求。  The embodiment of the invention discloses a system for operating an executable node, which can directly manage the device by using an HTTP standard method, which facilitates device management directly through the network application, and also reduces the capability requirement for the terminal device.
实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件 来完成, 所述的程序可以存储于一计算机可读取存储介质中, 该程序在执 行时,执行包括上述方法实施例的步骤; 而所述的存储介质包括: R0M、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。  All or part of the steps of implementing the above method embodiments may be performed by hardware related to the program instructions, and the program may be stored in a computer readable storage medium, and when executed, the steps including the foregoing method embodiments are performed. And the storage medium includes: R0M, RAM, disk or optical disc, and other media that can store program code.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并 不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本 发明的保护范围应该以权利要求的保护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求 Rights request
1. 一种对可执行节点的操作方法, 其特征在于, 包括: A method for operating an executable node, comprising:
接收触发消息, 发送第一请求消息;  Receiving a trigger message, sending a first request message;
接收第一响应消息, 所述第一响应消息为根据所述第一请求消息所下 发的响应消息, 所述第一响应消息中包含有指示可执行节点执行操作的信 息;  Receiving a first response message, where the first response message is a response message that is sent according to the first request message, where the first response message includes information indicating that the executable node performs an operation;
根据所述第一响应消息, 发送第二请求消息;  Sending a second request message according to the first response message;
接收第二响应消息, 所述第二响应消息为根据所述第二请求消息所下 发的响应消息, 所述第二响应消息中包含有错误码;  Receiving a second response message, where the second response message is a response message that is sent according to the second request message, where the second response message includes an error code;
根据所述第二响应消息中的错误码, 确定触发可执行操作。  Determining a trigger executable operation based on the error code in the second response message.
2. 根据权利要求 1所述的对可执行节点的操作方法, 其特征在于, 所 述第二响应消息中还包含有指示可执行节点执行操作的信息。  The method for operating an executable node according to claim 1, wherein the second response message further includes information indicating that the executable node performs an operation.
3.根据权利要求 1或 2所述的对可执行节点的操作方法,其特征在于, 还包括, 在所述确定触发可执行操作后,  The method for operating an executable node according to claim 1 or 2, further comprising: after the determining triggers an executable operation,
根据所述第一响应消息确定需要执行的节点, 所述节点执行相应操作; 或者根据所述第二响应消息确定需要执行的节点, 所述节点执行相应 操作, 此时, 所述第二响应消息中需包含有指示可执行节点执行操作的信 息。  Determining, according to the first response message, a node that needs to be executed, the node performing a corresponding operation; or determining, according to the second response message, a node that needs to be executed, where the node performs a corresponding operation, and at this time, the second response message It must contain information indicating that the executable node is performing operations.
4. 根据权利要求 1至 3任一所述的对可执行节点的操作方法, 其特征 在于, 所述第一响应消息中包含有指示可执行节点执行操作的信息, 是在 第一响应消息中直接使用文本包含了指示可执行节点执行操作的信息。  The method for operating an executable node according to any one of claims 1 to 3, wherein the first response message includes information indicating that the executable node performs an operation, and is in the first response message. The direct use text contains information that indicates that the executable node is performing an operation.
5. 根据权利要求 1至 4任一所述的对可执行节点的操作方法, 其特征 在于, 所述第二请求消息中包含有所述第一请求消息中指示可执行节点执 行操作的信息。  The method for operating an executable node according to any one of claims 1 to 4, wherein the second request message includes information indicating that the executable node performs an operation in the first request message.
6. 一种对可执行节点的操作方法, 其特征在于, 包括:  6. A method for operating an executable node, comprising:
发送触发消息;  Send a trigger message;
接收第一请求消息, 所述第一请求消息为根据所述触发消息所发起的 请求消息;  Receiving a first request message, where the first request message is a request message initiated according to the trigger message;
发送第一响应消息, 所述第一响应消息为根据所述第一请求消息所下 发的响应消息, 所述第一响应消息中包含有指示可执行节点执行操作的信 息; 接收第二请求消息, 所述第二请求消息为根据所述第一响应消息所发 起的请求消息; Sending a first response message, where the first response message is a response message that is sent according to the first request message, where the first response message includes information indicating that the executable node performs an operation; Receiving a second request message, where the second request message is a request message initiated according to the first response message;
发送第二响应消息, 所述第二响应消息为根据所述第二请求消息所下 发的响应消息, 所述第二响应消息中包含有错误码。  And sending a second response message, where the second response message is a response message that is sent according to the second request message, where the second response message includes an error code.
7. 一种对可执行节点的操作方法, 所述可执行节点增加了节点值, 其 特征在于, 所述方法包括:  A method of operating an executable node, the executable node adding a node value, wherein the method comprises:
接收第一请求消息, 所述第一请求消息包含有身份验证信息及请求设 备信息的指示;  Receiving a first request message, where the first request message includes an indication of identity verification information and requesting device information;
发送第一响应消息, 所述第一响应消息包含有所述设备信息; 接收第二请求消息, 所述第二请求消息用于指示所述节点为可执行节 点, 同时包含有指示可执行节点执行操作的信息;  Sending a first response message, where the first response message includes the device information, and receiving a second request message, where the second request message is used to indicate that the node is an executable node, and includes an indication that the executable node performs Operational information;
根据所述第二请求消息, 确定所述节点为可执行节点。  Determining, according to the second request message, the node is an executable node.
8. 根据权利要求 5所述的对可执行节点的操作方法, 其特征在于, 确 定所述节点为可执行节点包括,  8. The method of operating an executable node according to claim 5, wherein determining that the node is an executable node comprises:
判断所述节点的属性为可执行之后, 则确定所述操作的目的是对所述 节点进行执行操作;  After determining that the attribute of the node is executable, determining that the purpose of the operation is to perform an operation on the node;
或者判断所述节点的属性为可执行之后, 判断写入该节点的值是否为 字符串 "Exec" , 若是则确定所述操作的目的是对所述节点进行执行操作。  Or after determining that the attribute of the node is executable, it is determined whether the value written to the node is a string "Exec", and if so, it is determined that the purpose of the operation is to perform an operation on the node.
9. 一种对可执行节点的操作方法, 所述可执行节点增加了节点值, 其 特征在于, 所述方法包括:  9. A method of operating an executable node, the executable node adding a node value, wherein the method comprises:
发送第一请求消息, 所述第一请求消息包含有身份验证信息及请求设 备信息的指示;  Sending a first request message, where the first request message includes an indication of identity verification information and requesting device information;
接收第一响应消息, 所述第一响应消息包含有所述设备信息; 发送第二请求消息, 所述第二请求消息用于指示所述节点为可执行节 点, 同时包含有指示可执行节点执行操作的信息。  Receiving a first response message, where the first response message includes the device information, and sending a second request message, where the second request message is used to indicate that the node is an executable node, and includes an indication that the executable node performs Information about the operation.
1 0. 一种对可执行节点操作的客户端, 其特征在于, 包括, 接收单元、 消息解析单元、 消息生成单元, 发送单元、 确定单元、 可执行节点, 其中: 所述接收单元, 用于接收服务器所发送的消息, 所述服务器发送的消 息包括触发消息, 第一响应消息及第二响应消息; 所述触发消息用于触发 客户端发起请求消息; 所述第一响应消息包含有指示可执行节点执行操作 的信息, 所述第二响应消息中包含有错误码, 所述第二响应消息中还可以 包含有指示可执行节点执行操作的信息; 所述服务器发送的消息或者是第 一请求消息及第二请求消息, 所述第一请求消息包含有身份验证信息及请 求设备信息的指示; 所述第二请求消息用于指示所述节点为可执行节点, 同时包含有指示可执行节点执行操作的信息; A client operating on an executable node, comprising: a receiving unit, a message parsing unit, a message generating unit, a sending unit, a determining unit, and an executable node, where: the receiving unit is configured to: Receiving a message sent by the server, the message sent by the server includes a trigger message, a first response message, and a second response message; the trigger message is used to trigger a client to initiate a request message; the first response message includes an indication Performing information about the operation performed by the node, where the second response message includes an error code, and the second response message may also be And the information that is sent by the server is the first request message and the second request message, where the first request message includes the identity verification information and the indication of the requesting device information; The second request message is used to indicate that the node is an executable node, and includes information indicating that the executable node performs an operation;
所述消息解析单元, 用于解析所述接收单元所接收到的消息; 所述消息生成单元, 用于根据所述消息解析单元的解析结果生成消息; 所述发送单元, 用于向服务器发送消息, 所述向服务器发送的消息包 括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端的 设备信息发送给所述服务器, 所述第二请求消息用于使所述服务器返回特 定的错误码; 所述向服务器发送的消息或者是第一响应消息, 所述第一响 应消息中包含有所述设备信息;  The message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send a message to the server. The message sent to the server includes a first request message and a second request message, where the first request message is used to send device information of the client to the server, and the second request message is used to The server returns a specific error code; the message sent to the server is a first response message, and the first response message includes the device information;
所述确定单元, 用于根据所述消息解析单元的解析结果确定服务器需 要操作的可执行节点;  The determining unit is configured to determine, according to the parsing result of the message parsing unit, an executable node that the server needs to operate;
所述可执行节点, 具有可执行的属性, 用于执行服务器所下发的操作 命令, 完成相应操作。  The executable node has an executable attribute for executing an operation command sent by the server to complete the corresponding operation.
11. 一种对可执行节点操作的服务器, 其特征在于, 包括, 接收单元、 消息解析单元、 消息生成单元、 发送单元, 其中:  A server for operating an executable node, comprising: a receiving unit, a message parsing unit, a message generating unit, and a sending unit, wherein:
所述接收单元, 用于接收客户端发送的消息; 所述客户端发送的消息 包括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端 所在设备的设备信息发送给所述服务器, 所述第二请求消息用于使所述服 务器返回特定的错误码; 所述客户端发送的消息或者是第一响应消息, 所 述第一响应消息中包含有所述设备信息;  The receiving unit is configured to receive a message sent by the client, where the message sent by the client includes a first request message and a second request message, where the first request message is used to send device information of the device where the client is located. Sending to the server, the second request message is used to enable the server to return a specific error code; the message sent by the client is a first response message, and the first response message includes the device Information
所述消息解析单元, 用于解析所述接收单元所接收到的消息; 所述消息生成单元, 用于根据所述消息解析单元的解析结果生成消息; 所述发送单元, 用于向客户端发送消息, 所述向客户端发送的消息包 括触发消息, 第一响应消息及第二响应消息, 所述触发消息用于触发客户 端发起请求消息; 所述第一响应消息包含有指示可执行节点执行操作的信 息; 所述第二响应消息中包含有错误码, 所述第二响应消息中或者还包含 有指示可执行节点执行操作的信息; 所述向客户端发送的消息或者是第一 请求消息及第二请求消息, 所述第一请求消息包含有身份验证信息及请求 设备信息的指示; 所述第二请求消息用于指示所述节点为可执行节点, 同 时包含有指示可执行节点执行操作的信息。 The message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send the message to the client The message sent to the client includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message; the first response message includes an indication that the executable node performs The second response message includes an error code, and the second response message further includes information indicating that the executable node performs an operation; the message sent to the client is the first request message. And the second request message, the first request message includes an indication of the identity verification information and the requesting device information; the second request message is used to indicate that the node is an executable node, and the same Contains information indicating that the executable node is performing an operation.
12. 一种对可执行节点操作的系统, 其特征在于, 包括客户端和服务 器,  12. A system for operating an executable node, comprising: a client and a server,
所述客户端包括接收单元、 消息解析单元、 消息生成单元, 发送单元、 确定单元、 可执行节点, 其中:  The client includes a receiving unit, a message parsing unit, a message generating unit, a sending unit, a determining unit, and an executable node, where:
所述接收单元, 用于接收服务器所发送的消息, 所述服务器发送的消 息包括触发消息, 第一响应消息及第二响应消息; 所述触发消息用于触发 客户端发起请求消息; 所述第一响应消息包含有指示可执行节点执行操作 的信息, 所述第二响应消息中包含有错误码, 所述第二响应消息中还可以 包含有指示可执行节点执行操作的信息; 所述服务器发送的消息或者是第 一请求消息及第二请求消息, 所述第一请求消息包含有身份验证信息及请 求设备信息的指示; 所述第二请求消息用于指示所述节点为可执行节点, 同时包含有指示可执行节点执行操作的信息。  The receiving unit is configured to receive a message sent by the server, where the message sent by the server includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message; a response message includes information indicating that the executable node performs an operation, the second response message includes an error code, and the second response message may further include information indicating that the executable node performs an operation; The message is either the first request message and the second request message, the first request message includes an indication of the identity verification information and the requesting device information; the second request message is used to indicate that the node is an executable node, and Contains information indicating that the executable node is performing an operation.
所述消息解析单元, 用于解析所述接收单元所接收到的消息; 所述消息生成单元, 用于根据所述消息解析单元的解析结果生成消息; 所述发送单元, 用于向服务器发送消息, 所述向服务器发送的消息包 括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端的 设备信息发送给所述服务器, 所述第二请求消息用于使所述服务器返回特 定的错误码; 所述向服务器发送的消息或者是第一响应消息, 所述第一响 应消息中包含有所述设备信息  The message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send a message to the server. The message sent to the server includes a first request message and a second request message, where the first request message is used to send device information of the client to the server, and the second request message is used to The server returns a specific error code; the message sent to the server is a first response message, and the first response message includes the device information.
所述确定单元, 用于根据所述消息解析单元的解析结果确定服务器需 要操作的可执行节点;  The determining unit is configured to determine, according to the parsing result of the message parsing unit, an executable node that the server needs to operate;
所述可执行节点, 具有可执行的属性, 用于执行服务器所下发的操作 命令, 完成相应操作;  The executable node has an executable attribute for executing an operation command sent by the server to complete a corresponding operation;
所述服务器包括接收单元、 消息解析单元、 消息生成单元、 发送单元, 其巾:  The server includes a receiving unit, a message parsing unit, a message generating unit, and a sending unit, and the towel:
所述接收单元, 用于接收客户端发送的消息; 所述客户端发送的消息 包括第一请求消息及第二请求消息, 所述第一请求消息用于将所述客户端 所在设备的设备信息发送给所述服务器; 所述第二请求消息用于使所述服 务器返回特定的错误码; 所述客户端发送的消息或者是第一响应消息, 所 述第一响应消息中包含有所述设备信息; 所述消息解析单元, 用于解析所述接收单元所接收到的消息; 所述消息生成单元, 用于根据所述消息解析单元的解析结果生成消息; 所述发送单元, 用于向客户端发送消息, 所述向客户端发送的消息包 括触发消息, 第一响应消息及第二响应消息, 所述触发消息用于触发客户 端发起请求消息; 所述第一响应消息包含有指示可执行节点执行操作的信 息; 所述第二响应消息中包含有错误码, 所述第二响应消息中或者还包含 有指示可执行节点执行操作的信息; 所述向客户端发送的消息或者是第一 请求消息及第二请求消息, 所述第一请求消息包含有身份验证信息及请求 设备信息的指示; 所述第二请求消息用于指示所述节点为可执行节点, 同 时包含有指示可执行节点执行操作的信息。 The receiving unit is configured to receive a message sent by the client, where the message sent by the client includes a first request message and a second request message, where the first request message is used to send device information of the device where the client is located. Sending to the server; the second request message is used to cause the server to return a specific error code; the message sent by the client is a first response message, and the first response message includes the device information; The message parsing unit is configured to parse the message received by the receiving unit, the message generating unit is configured to generate a message according to the parsing result of the message parsing unit, and the sending unit is configured to send the message to the client The message sent to the client includes a trigger message, a first response message, and a second response message, where the trigger message is used to trigger a client to initiate a request message; the first response message includes an indication that the executable node performs The second response message includes an error code, and the second response message further includes information indicating that the executable node performs an operation; the message sent to the client is the first request message. And the second request message, the first request message includes an indication of the identity verification information and the requesting device information; the second request message is used to indicate that the node is an executable node, and includes an indication that the executable node performs an operation. Information.
PCT/CN2012/078904 2011-07-29 2012-07-20 Method and system for operating executable node WO2013017020A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110215400.0A CN102904742B (en) 2011-07-29 2011-07-29 To method of operation and the system of executable node
CN201110215400.0 2011-07-29

Publications (1)

Publication Number Publication Date
WO2013017020A1 true WO2013017020A1 (en) 2013-02-07

Family

ID=47576793

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078904 WO2013017020A1 (en) 2011-07-29 2012-07-20 Method and system for operating executable node

Country Status (2)

Country Link
CN (1) CN102904742B (en)
WO (1) WO2013017020A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10266515B2 (en) 2013-12-30 2019-04-23 Lifesci Pharmaceuticals, Inc. Therapeutic inhibitory compounds
US10301284B2 (en) 2016-07-11 2019-05-28 Lifesci Pharmaceuticals, Inc. Therapeutic inhibitory compounds
US10308637B2 (en) 2015-07-01 2019-06-04 Lifesci Pharmaceuticals, Inc. Therapeutic inhibitory compounds

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159958A (en) * 2007-11-08 2008-04-09 中兴通讯股份有限公司 Method of maintaining node state
CN101313512A (en) * 2006-08-11 2008-11-26 华为技术有限公司 Method, terminal and system for terminal to carry out management operations in communication system
CN101374295A (en) * 2007-08-21 2009-02-25 华为技术有限公司 Method and terminal for selecting access network
US20110004654A1 (en) * 2008-12-22 2011-01-06 Nokia Corporation Device management session trigger

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101313512A (en) * 2006-08-11 2008-11-26 华为技术有限公司 Method, terminal and system for terminal to carry out management operations in communication system
CN101374295A (en) * 2007-08-21 2009-02-25 华为技术有限公司 Method and terminal for selecting access network
CN101159958A (en) * 2007-11-08 2008-04-09 中兴通讯股份有限公司 Method of maintaining node state
US20110004654A1 (en) * 2008-12-22 2011-01-06 Nokia Corporation Device management session trigger

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"OMA Device Management Protocol. Approved Version 1.2", OPEN MOBILE ALLIANCE, 9 February 2007 (2007-02-09) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10266515B2 (en) 2013-12-30 2019-04-23 Lifesci Pharmaceuticals, Inc. Therapeutic inhibitory compounds
US11021463B2 (en) 2013-12-30 2021-06-01 Attune Pharmaceuticals, Inc. Therapeutic inhibitory compounds
US10308637B2 (en) 2015-07-01 2019-06-04 Lifesci Pharmaceuticals, Inc. Therapeutic inhibitory compounds
US10301284B2 (en) 2016-07-11 2019-05-28 Lifesci Pharmaceuticals, Inc. Therapeutic inhibitory compounds
US10781200B2 (en) 2016-07-11 2020-09-22 Attune Pharmaceuticals, Inc. Therapeutic inhibitory compounds

Also Published As

Publication number Publication date
CN102904742B (en) 2015-10-07
CN102904742A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
US20220132413A1 (en) Network Slice Management Method and Related Apparatus
JP2007525870A (en) Specifying the management node in the device management system
WO2008031314A1 (en) A method for reporting the device capability information and a terminal device
EP2320329A1 (en) Device and corresponding system for mashup service, and method for establishing and using mashup service
KR20170033424A (en) Interworking light weight machine-to-machine protocol with device management protocol
WO2010034257A1 (en) Method for terminal configuration and management and terminal apparatus
WO2007112673A1 (en) The method of device capability information negotiation, the method, system and device of synchronization
CN102427409A (en) Configuration data submitting method based on network configuration protocol and server
WO2018059150A1 (en) Open capability implementation method and apparatus
EP2512064A1 (en) Data configuration method and apparatus
WO2007025428A1 (en) Method, system and terminal device of software component parameter configuration
WO2010028571A1 (en) Large data object transmission method, transmission system, transmitting device and receiving device
KR20120107022A (en) Method and apparatus for synchronizing personal information
JP2005341535A (en) Connectivity objects under mobile device management tree
WO2012113329A1 (en) Device management method and apparatus
WO2011127847A2 (en) Method, apparatus and mobile terminal for updating service content of unstructured supplementary service data
US9237206B2 (en) Method and apparatus for updating personal information in communication system
WO2013017020A1 (en) Method and system for operating executable node
JP2008514079A (en) Integrated method and apparatus for managing mobile devices and services
WO2008145047A1 (en) Method and device for initiating the session connection
WO2010108432A1 (en) Service processing method and apparatus, communication system and correlated device
EP3416351B1 (en) Implementation method, apparatus and system for remote access
Gligorić et al. M2M device management in LTE networks
EP2424162A1 (en) Method, apparatus and system for device management
WO2012075965A1 (en) Method, apparatus and system for device management

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: 12820335

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12820335

Country of ref document: EP

Kind code of ref document: A1