Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment one
As shown in Figure 2, the collocation method based on the TNDS object in the present embodiment comprises:
Step 101, the receiving equipment administration order;
Comprise the configuration information of the information of the node to be configured in the TNDS object, node to be configured and the information of node set to be configured in this order;
The information of node to be configured can identify the information of node to be configured for title of node to be configured etc.
The information of node set to be configured can be default set identification, the information of presetting the node that need ignore in the set identification set corresponding with default set identification or the information of node to be configured.Default set identification can for management subtree node complete or collected works' sign or management subtree with node layer complete or collected works sign etc.Under extreme case, node to be configured can be a node, and then this moment, node set to be configured is exactly this node itself, can identify this set with the information of this node.
Step 102, judge whether this order can dispose corresponding terminal equipment, judge whether that promptly each configuration information satisfies the preset rules of corresponding node to be configured respectively, and the configuration information correspondence whole nodes that terminal equipment is supported in the node set to be configured, if, carry out step 103, otherwise carry out step 104;
Wherein, determine described node set to be configured, determine according to the information of node to be configured whether described terminal equipment supports node to be configured according to the information of described node set to be configured.
Preset rules comprises the form and/or the nodal value data area of the configuration information of default node to be configured.
Step 103 uses the configuration information in this order that corresponding node to be configured is configured, and finishes;
Step 104 is determined this configuration failure.
In the said equipment administration order, can also comprise TNDS object type sign, after receiving device management command, can judge earlier and whether comprise TNDS object type sign in this order, if, then carry out step 102, otherwise can adopt other modes to be configured, for example adopt technical scheme of the prior art to be configured.
Embodiment two
In the present embodiment, the SCOMO in the terminal equipment (Software Component Management Object, software component management object) download management subtree complete or collected works are configured.
Fig. 3 shows the structural representation of a SCOMO download management subtree, in the present embodiment is this SCOMO download management subtree complete or collected works are configured.Among Fig. 3<x 〉
*Node is the root node of management subtree, and " * " number represents that the instantiation number of times of this node is for 0 time or repeatedly.Described<x 〉
*What solid box was represented in the child node of node is the node of Required, and frame of broken lines is represented is the node of Optional, "? " number the meaning be that also can occur 1 time can not appear in this node.In addition, described<x 〉
*Node also comprises two Ext nodes, and described Ext node is an internal node, is used for different vendor carries out different expansions to management tree purpose.
When device management server need be to support equipment management and application protocol (for example SCOMO agreement) thereof, but when supporting this management subtree of terminal configuration of different Optional nodes, can send management subtree complete or collected works to each terminal by the mode of broadcasting, also promptly comprise all Required and node Optional and the information such as nodal value, attribute thereof that define in the agreement and (do not need configuration as if certain node, can only set up an empty node, not comprise information such as its nodal value, attribute).What need special consideration is the Ext node, and above-mentioned this notion of management subtree complete or collected works can not comprise the Ext node, and at this moment device management server disposes this node relevant information separately to each terminal; Also can comprise the Ext node under special situation, for example each terminal is same manufacturer production, and the content and structure that comprises under its Ext node is identical.
Present embodiment based on the collocation method of TNDS object as shown in Figure 4, may further comprise the steps:
Step 201, the device management command that comprises the TNDS object that the receiving equipment management server sends;
Comprise the configuration information of the information of the node to be configured in the TNDS object, node to be configured and the information of node set to be configured in this device management command;
This device management command specifically can be as shown in Figure 5.The Add order indicates to add SCOMO agreement download management subtree on terminal; Wherein, the type that should the management subtree of having used the Meta/Type component identification, be application/vnd.syncml.dmtnds_full+xml, this represents that this management subtree is a TNDS object, " full " wherein is the download management subtree node complete or collected works sign of SCOMO protocol definition, represents that this device management command will be configured these whole nodes of managing in the subtree; Be this TNDS object in the Data element, wherein comprised the information of all nodes of this management subtree complete or collected works, the configuration information (being relevant informations such as nodal community, value) of all nodes.Only list root node, PkgID node and the configuration information thereof of management subtree in the device management command shown in Figure 5, omitted other node.
Step 202 judges whether comprise management subtree complete or collected works sign in this device management message, if, carry out step 203, otherwise, jump out this flow process, adopt other modes (as the prior art flow process) to be configured;
In the present embodiment, adopt the information (promptly managing subtree complete or collected works sign) of node set to be configured to be used as TNDS object type sign, thereby save the entrained amount of information of device management message.
Step 203 is selected a node to be configured, judges according to the information of the node to be configured that carries in the device management message whether terminal equipment supports this node, if, carry out step 204, otherwise, carry out step 206;
Specifically can know whether terminal equipment supports this node according to the title of node to be configured.
Step 204, judge whether the configuration information that carries in the administrative messag of this node correspondence to be configured satisfies the preset rules of this node to be configured, and promptly the form of this configuration information and/or nodal value data area are correct, if, carry out step 205, otherwise carry out step 210;
Step 205 keeps this node, carry out step 207;
In this step, keep this node and represent follow-up may the operation, do not represent certain preservation operation that exists this node.
Step 206 abandons this node;
In this step, abandon this node and represent follow-uply this node not to be operated, do not represent certain operation that abandons that exists.
Step 207 is judged whether last node to be configured of this node to be configured, if, carry out step 208, otherwise, step 203 returned;
Step 208, whole nodes that terminal equipment is supported in the management subtree that whether configuration information in the judgment device administration order is corresponding are if carry out step 209, otherwise carry out step 210;
Step 209 disposes the node of each reservation, finishes;
Step 210 is determined this configuration failure.
As seen, if judge the preset rules that arbitrary configuration information does not satisfy corresponding node to be configured, then determine this configuration failure;
And, then determine this configuration failure if judge whole nodes that terminal equipment is supported in the not corresponding set of configuration information (management subtree complete or collected works).
Device management information in the above-mentioned flow process is the structure generation of server according to the management tree of terminal equipment, and the information of the node to be configured in the device management information and the aggregate information of node to be configured all are that server is determined according to the structure of the management tree of terminal equipment.The method that server obtains the structure of management tree is:
Terminal equipment this terminal equipment of announcement server is supported when registration is professional equipment control and application protocol (for example SCOMO agreement) thereof supply described server to obtain the structure of the management tree of described terminal equipment; Perhaps
Server obtains the structure of the management tree of described terminal equipment according to the DDF of this locality storage.
In above-mentioned step shown in Figure 4:
(1) management subtree complete or collected works sign not necessarily uses Meta/Type unit usually to identify, and can use other element, also can be positioned over other position of administrative messag, and purpose is to make terminal can distinguish the technical scheme of whether using present embodiment to handle the TNDS object;
(2) present embodiment does not limit the layoutprocedure of node, for example can not keep and directly begins configuration node, but need the information of the original node of backup, carries out rollback during in order to configuration failure;
(3) judgement in the step 203,204,208 can use DDF to judge, for example in carry out step 203, can in describing, the corresponding management subtree of DDF search, see the description that whether comprises a node, can compare all nodes of supporting in node that keeps and the description of DDF corresponding management subtree when carrying out step 208, see whether comprised all nodes that this terminal is supported on the described management subtree, certainly, also can the comparison node number whether equate.But the present invention does not limit and uses DDF to judge, can use the information of other preservation to judge yet.
Because in the present embodiment, comprise the configuration information of the information of the node to be configured in the TNDS object, node to be configured and the information of node set to be configured in the device management command, and need judge whether to carry out the configuration of TNDS object according to above-mentioned information, and the node supported of configurating terminal device only, therefore, server is when generating device management command, do not need specifically to consider the support situation of each terminal to node, must not come the configuration management tree in strict accordance with the concrete property of each terminal, reduce the complexity of server configurating terminal.The technical scheme that adopts present embodiment to adopt is saved air resource thereby can use a device management message to dispose a plurality of terminals simultaneously, and the management tree of these a plurality of terminals can be different.As seen, the technical scheme that adopts present embodiment to adopt can be so that the configuration of TNDS object be more flexible.
And, because present embodiment can judged the preset rules that each configuration information satisfies corresponding node to be configured respectively, and the configuration information correspondence behind whole nodes that terminal equipment is supported in the node set to be configured, be configured operation again, in case avoided the rolling back action that configuration failure need carry out in the prior art.
In above-mentioned flow process, the information of the node set to be configured in the device management message can not be the management subtree complete or collected works of equipment control and application protocol definition thereof, but can determine node set to be configured according to the actual disposition needs.For example, in some cases, the management subtree node set that a plurality of terminal of desire configuration is supported is less than the complete or collected works of protocol definition, for example each terminal is not supported this node of EnvType, at this moment then do not need to issue the information and the corresponding configuration information of whole nodes of management subtree complete or collected works sign, management subtree correspondence, only need issue the node complete or collected works' that each terminal supports sign, the information and the corresponding configuration information of node that each terminal is supported gets final product.When specific implementation, the sign of node set to be configured can be application/vnd.syncml.dmtnds_multiclient+xml, and wherein " _ multiclient " expression node set to be configured is the node complete or collected works of each terminal support.
Embodiment three
When adopting the scheme of embodiment two, for the node that when certain disposes, does not need to dispose (can be the node of 0 Required) as Optional node or occurrence number, device management server has also disposed an empty node to terminal, has so just caused some redundancies of device management information.Therefore in the present embodiment, by to not needing configuration node not to be configured, realize removing the purpose of the redundancy of device management information, in the present embodiment, the information of configuration node set adopts the information of the node that need ignore in the set corresponding with default set identification of default set identification.
Present embodiment based on the collocation method of TNDS object as shown in Figure 6, may further comprise the steps:
Step 301, the device management command that comprises the TNDS object that the receiving equipment management server sends;
Comprise the configuration information of the information of the node to be configured in the TNDS object, node to be configured and the information of node set to be configured in this device management command, in this step, the information of node set to be configured comprises the information of the node that need ignore in the set corresponding with default set identification of default set identification;
This device management command specifically can be as shown in Figure 7.The Replace order indicates to replace SCOMO agreement download management subtree on terminal, this SCOMO agreement download management subtree can be as shown in Figure 3; The place that embodiment is different is the Name node has been added an Ignore element, is used to identify this node and need be left in the basket in configuration, can certainly represent whether ignore with the element value of Ignore.
Server is before issuing this order, need to determine the support situation of one or more terminal equipments to the node of certain management subtree, this can know from the DDF of its (), therefrom parses all nodes of support, to determine management subtree node complete or collected works' scope.In addition, server can be further judged the node specifying information situation that client is supported according to DDF, nodal community etc. for example, and purpose is to guarantee that the DDF that TNDS object that server sends to (respectively) client can meet its () defines.
Step 302 judges whether comprise TNDS object type sign in this device management message, if, carry out step 303, otherwise, jump out this flow process, adopt other modes (as the prior art flow process) to be configured;
In the present embodiment, adopt the information (i.e. " multiclient ") of node set to be configured to be used as TNDS object type sign, thereby save the entrained amount of information of device management message.
Step 303 is selected a node to be configured, judges according to the information of the node to be configured that carries in the device management message whether terminal equipment supports this node, if, carry out step 304, otherwise, carry out step 308;
Step 304 judges whether this node to be configured needs to be left in the basket, if carry out step 305, otherwise carry out step 306;
Specifically can usually judge this node to be configured whether needs are left in the basket according to whether having added Ignore unit before the Name node.
Step 305 writes down this node to be configured, carry out step 309;
Step 306 judges whether the configuration information that carries in the administrative messag of this node correspondence to be configured satisfies the preset rules of this node to be configured, if carry out step 307, otherwise carry out step 312;
Step 307 keeps this node, carry out step 309;
Step 308 abandons this node;
Step 309 is judged whether last node to be configured of this node to be configured, if, carry out step 310, otherwise, step 303 returned;
Step 310, whether the nodes that judgement all keeps and the node of record have comprised the whole nodes in the SCOMO agreement download management subtree, if carry out step 311, otherwise carry out step 312;
In the present embodiment, the node of judging the nodes that all keep and record whether comprised the whole nodes in the SCOMO agreement download management subtree be exactly configuration information in the judgment device administration order whether corresponding whole nodes that terminal equipment is supported in the node set to be configured, node set to be configured has comprised all not uncared-for node in the SCOMO agreement download management subtree.Carry out method that this step judges and also can be with the node of record from SCOMO agreement download management subtree complete or collected works, removes obtain set of node to be configured merge configuration information in the judgment device administration order whether corresponding whole nodes of terminal equipment support in the node set to be configured.
Step 311 disposes the node of each reservation, finishes;
Step 312 is determined this configuration failure.
In the present embodiment,, be not configured, realized removing the purpose of the redundancy of device management information not needing configuration node by ignoring sign.
Embodiment four
Originally execute example a kind of collocation method based on the TNDS object is provided, make device management server not need to dispose some more during the subtree of lower floor,, and only send in the management tree complete or collected works with node layer then without the complete or collected works of sending node.The same node layer here is meant each node that has same father node, for example, as shown in Figure 8, the Operations that provides for present embodiment manages XML (the eXtensible Markup Language of subtree, extending mark language) representation, in fact it also provided the structure of this management subtree when providing nodename (economizing the abbreviated node out of Memory in the code).Outermost<Node〉</Node〉element is used to identify and carry Operations node and all child nodes below it, wherein the Operations node is the root node (or claiming first node) of this management subtree, and its title is with the back to back NodeName element representation in above-mentioned Node element back.After the Operations node, used two<Node respectively〉</Node element with mode arranged side by side (promptly previous node with</Node occur again after finishing next node<Node) carry Download and DownloadInstall node, illustrate that then these two nodes have same father node Operations, are defined as same node layer to them here.And these two nodes of Operations and Download are not same node layers just, but the relation of father node and child node.
From the management sub-tree structure figure of Fig. 3, can find out this point more intuitively, for example directly with<x
*Each node that links to each other then is same node layer.But should be noted that here<x 〉
*Must could be claimed after the instantiation (for example being instantiated as node 1) that its child node is same node layer.The download management subtree that Fig. 9 provides for present embodiment has the schematic diagram of two examples, more can know from Fig. 9 and understand above-mentioned same node layer.As Fig. 9, two examples are arranged, i.e. example 1 and management subtree thereof and example 2 and management subtree thereof in the download management subtree.Only be confined to an example inside with node layer, that is to say that the child node that belongs to below another example (for example node 2) and the child node of node 1 then are not same node layers.
As shown in figure 10, be the schematic diagram of the device management command that sends to terminal based on the configuration server of TNDS object in the present embodiment, the Add order is to add the download management subtree on terminal; The type of this management subtree of wherein having used the Meta/Type component identification, promptly application/vnd.syncml.dmtnds_fullOfSameParent+xml represents that same node layer of this management subtree is complete or collected works; Be this TNDS object in the Data element, wherein comprised shown in Fig. 5<x 〉
*Relevant informations such as (being node 1) and all child nodes that directly link to each other with it thereof and nodal community, value, for example PkgID node, Operations node etc., but do not comprise the more lower floor child node of these child nodes, for example Download node.
Similar in the present embodiment based on the collocation method of TNDS object and flow process shown in Figure 4, its difference is:
Server is before issuing this order, need definite certain client or a plurality of client support situation to the node on the same level of certain management subtree, this can know from the DDF of its (), therefrom parse all nodes of supporting on the same level, to determine the scope of management subtree with the node layer complete or collected works.
In step 202, judgement be whether to comprise in this device management message that the management subtree is with layer complete or collected works sign (for example " _ fullOfSameParent " sign);
In step 208, need be the node of being withed a hook at the end by dividing with node layer, for each layer, the node whether terminal judges keeps has comprised all nodes that this terminal is supported on this layer, if there is one deck not satisfy then this administration order failure, if each layer all satisfies, use the nodal information configuration management subtree that keeps.
In the present embodiment, the TNDS object has only comprised one deck, therefore, as long as the node of this layer reservation has comprised all nodes that this terminal is supported on this layer, then uses the nodal information configuration management subtree that keeps.
It should be noted that in addition above-mentioned mention same node layer be to be in below certain node and its child node that directly links to each other, refer in particular to the child node that links to each other with an x node.And after the x node instanceization, also can be regarded as a same node layer, for example the x node instance turns to node 1, then node 1 oneself is a same node layer, therefore according to above-mentioned steps, device management server can dispose an above-mentioned node 1 separately on terminal, and does not dispose its child node.
Also has a kind of situation, if with the node that only has an Optional in the node layer, other node all is Required, then server can not send the complete or collected works with node layer, promptly can dispose the node of this Optional, the number of the same node layer that terminal can send according to server and the same node layer number of own support are judged server and have been disposed an optional node less, and can not cause configuration failure.
Equally, can identify the node that this configuration need be ignored in node layer, this method with embodiment three is identical.
Embodiment five
Terminal equipment in the present embodiment as shown in figure 11, comprising:
Receiver module is used for the receiving equipment administration order, comprises tree in the described order and describes the configuration information of the information of the node to be configured in the serializing TNDS object, described node to be configured and the information and the output of node set to be configured;
Judge module, be used to judge whether that each described configuration information satisfies the preset rules of corresponding node to be configured respectively, and described configuration information correspondence whole nodes of supporting of terminal equipment described in the node set to be configured, and output judged result, wherein, determine described node set to be configured according to the information of described node set to be configured, determine according to the information of described node to be configured whether described terminal equipment supports described node to be configured;
Configuration module is used in the judged result of described judge module using described configuration information that corresponding node to be configured is configured when being.
This terminal equipment can also comprise:
Identification module is used for judging whether described order comprises described TNDS object type sign, if then notify described judge module to carry out corresponding operating;
And/or
The agreement sending module is used for the described terminal equipment of announcement server is supported when registration is professional equipment control and application protocol thereof, obtains the structure of the management tree of described terminal equipment for described server.
Server in the present embodiment as shown in figure 12, comprising:
The order generation module is used to generate device management command, comprises information, the configuration information of described node to be configured and the information of node set to be configured of the node to be configured in tree and the description serializing TNDS object in the described order;
The order sending module is used for sending described order to terminal equipment.
This server can also comprise:
Management tree obtains module, is used to obtain the structure of the management tree of described terminal equipment, exports to described order generation module.
More than all embodiment, the preferred embodiments of the disclosure just, the common variation that those skilled in the art carries out in technical scheme of the present invention and replacing all should be included within protection scope of the present invention.