Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, 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 are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
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 information of treating configuration node in the TNDS object, the information of treating the configuration information of configuration node and treating the configuration node set in this order;
The information of treating configuration node can identify the information of treating configuration node for title of treating configuration node etc.
Treat that the information of configuration node set can or treat the information of configuration node for the information of the node that need ignore in the set corresponding with preset set identification of preset set identification, preset set identification.Preset 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, treat that configuration node can be a node, then this moment, treat that the configuration node set 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 corresponding preset rules of treating configuration node respectively, and configuration information corresponding treat whole nodes that terminal equipment is supported in the configuration node set, if; Carry out step 103, otherwise carry out step 104;
Wherein, confirm the said configuration node set of treating, confirm according to the information of treating configuration node whether said terminal equipment supports to treat configuration node according to the said information of configuration node set of treating.
Preset rules comprises the form and/or the nodal value data area of the preset configuration information of treating configuration node.
Step 103 uses the configuration information in this order that the corresponding configuration node of treating is configured, and finishes;
Step 104 is confirmed this configuration failure.
In the said equipment administration order, can also comprise TNDS object type sign; After receiving device management command; Can judge whether comprise TNDS object type sign in this order earlier, 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 ComponentManagement 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 representes that the instantiation number of times of this node is for 0 time or repeatedly.Said<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, said<x>
*Node also comprises two Ext nodes, and said 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 through 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; Under special situation, also can comprise the Ext node, for example each terminal is same manufacturer production, and the content and structure that comprises under its Ext node is identical.
The collocation method based on the TNDS object of present embodiment is 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 information of treating configuration node in the TNDS object, the information of treating the configuration information of configuration node and treating the configuration node set in this device management command;
This device management command specifically can be as shown in Figure 5.The Add order indicates on the terminal, to add SCOMO agreement download management subtree; Wherein, The type that should the management subtree of having used the Meta/Type component identification; Be application/vnd.syncml.dmtnds_full+xml; This this management subtree of expression is a TNDS object, and " _ full " wherein is the download management subtree node complete or collected works sign of SCOMO protocol definition, representes 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 (like the prior art flow process) to be configured;
In the present embodiment, adopt the information (promptly managing subtree complete or collected works sign) of treating the configuration node set to be used as TNDS object type sign, thereby save the entrained amount of information of device management message.
Step 203 is selected one and is treated configuration node, judges according to the information of treating configuration node of carrying 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 treating configuration node.
Step 204; Judge this treats whether the configuration information that carries in the corresponding administrative messag of configuration node satisfies the preset rules that this treats configuration node, 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 possibly the operation this node, do not represent certain preservation operation that exists.
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 judges this treats whether last treats configuration node to configuration node, 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 confirmed this configuration failure.
Thus it is clear that,, then confirm this configuration failure if judging arbitrary configuration information does not satisfy the corresponding preset rules of treating configuration node;
And, then confirm 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).
To be server generate according to the structure of the management tree of terminal equipment device management information in the above-mentioned flow process, the information of treating configuration node in the device management information and treat that the aggregate information of configuration node all is that server is confirmed 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 said server to obtain the structure of the management tree of said terminal equipment; Perhaps
Server obtains the structure of the management tree of said 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 the 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 the corresponding management subtree of DDF is described, 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 said 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 information of treating configuration node in the TNDS object, the information of treating the configuration information of configuration node and treating the configuration node set 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, must not come the configuration management tree, reduced the complexity at server configures terminal in strict accordance with the concrete property at each terminal to node.The technical scheme that adopts present embodiment to adopt is practiced thrift air resource thereby can use a device management message to dispose simultaneously a plurality of terminals, and the management tree at these a plurality of terminals can be different.It is thus clear that 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 satisfy the corresponding preset rules of treating configuration node respectively judging each configuration information; And configuration information is corresponding treat terminal equipment is supported in the configuration node set whole nodes after; 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 treating the configuration node set 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 confirm to treat the configuration node set 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 this node of EnvType is not supported at each terminal, at this moment then need not issue the information and the corresponding configuration information of the corresponding whole nodes of management subtree complete or collected works sign, management subtree, only need issue the node complete or collected works' that support at each terminal sign, the information and the corresponding configuration information of node that each terminal is supported gets final product.When concrete the realization, treat that the sign of configuration node set can be application/vnd.syncml.dmtnds_multiclient+xml, wherein the node complete or collected works that the configuration node set is supported for each terminal are treated in " _ multiclient " expression.
Embodiment three
When adopting the scheme of embodiment two; For the node that when certain disposes, need not dispose (can be the node of 0 Required) like Optional node or occurrence number; Device management server has also disposed an empty node to the terminal, has so just caused some redundancies of device management information.Therefore in the present embodiment; Through 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 preset set identification of preset set identification.
The collocation method based on the TNDS object of present embodiment is 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 information of treating configuration node in the TNDS object, the information of treating the configuration information of configuration node and treating the configuration node set in this device management command; In this step, treat that the information of configuration node set comprises the information of presetting the node that need ignore in the set identification set corresponding with preset set identification;
This device management command specifically can be as shown in Figure 7.The Replace order indicates on the terminal, to replace SCOMO agreement download management subtree, and 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 in configuration, need be left in the basket, and can certainly represent whether ignore with the element value of Ignore.
Server is before issuing this order; Need to confirm 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 confirm 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 (like the prior art flow process) to be configured;
In the present embodiment, adopt the information (i.e. " _ multiclient ") of treating the configuration node set to be used as TNDS object type sign, thereby save the entrained amount of information of device management message.
Step 303 is selected one and is treated configuration node, judges according to the information of treating configuration node of carrying in the device management message whether terminal equipment supports this node, if, carry out step 304, otherwise, carry out step 308;
Step 304 judges this treats whether configuration node need be left in the basket, if carry out step 305, otherwise carry out step 306;
Specifically can usually judge and this treat configuration node whether needs are left in the basket according to whether having added Ignore unit before the Name node.
Step 305 writes down this and treats configuration node, carry out step 309;
Step 306 judges this treats whether the configuration information that carries in the corresponding administrative messag of configuration node satisfies the preset rules that this treats configuration node, 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 judges this treats whether last treats configuration node to configuration node, if, carry out step 310, otherwise, step 303 returned;
Step 310 judges whether the node of all reservations 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 treat whole nodes that terminal equipment is supported in the configuration node set, treat that configuration node is gathered and 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 the configuration information that obtains treating in configuration node set and the judgment device administration order whether corresponding treat whole nodes of terminal equipment support in the configuration node set.
Step 311 disposes the node of each reservation, finishes;
Step 312 is confirmed 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 through ignoring sign.
Embodiment four
Originally execute example a kind of collocation method based on the TNDS object is provided, make device management server need not 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 (eXtensibleMarkup Language, the extending mark language) representation of subtree, and 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, and 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, two have been used respectively<node></Node>Element with mode arranged side by side (promptly previous node with</Node>Next node appears afterwards in end again<node>) carry Download and DownloadInstall node, explain 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 be same node layer by the child node that could claim it after the instantiation (for example being instantiated as node 1).The download management subtree that Fig. 9 provides for present embodiment has the sketch map of two instances, from Fig. 9, more can know and understand above-mentioned same node layer.Like Fig. 9, two instances are arranged, i.e. instance 1 and management subtree thereof and instance 2 and management subtree thereof in the download management subtree.Only be confined to an instance inside with node layer, that is to say that the child node that belongs to below another instance (for example node 2) and the child node of node 1 then are not same node layers.
Shown in figure 10, be the sketch map of the device management command that sends to the terminal based on the configuration server of TNDS object in the present embodiment, the Add order is on the terminal, to add the download management subtree; The type of this management subtree of wherein having used the Meta/Type component identification, promptly application/vnd.syncml.dmtnds_fullOfSameParent+xml representes 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 confirm 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 the 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, and 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 the terminal can be sent 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 in node layer, identify the node that this configuration need be ignored, this method with embodiment three is identical.
Embodiment five
Terminal equipment in the present embodiment, shown in figure 11, comprising:
Receiver module is used for the receiving equipment administration order, comprises tree in the said order and describes the information of treating configuration node in the serializing TNDS object, said information and the output of treating the configuration information of configuration node and treating the configuration node set;
Judge module; Be used to judge whether that each said configuration information satisfies the corresponding preset rules of treating configuration node respectively; And said configuration information is corresponding treats whole nodes that terminal equipment is supported described in the configuration node set, and the output judged result, wherein; Confirm the said configuration node set of treating according to the said information of configuration node set of treating, confirm according to the said information of configuration node of treating whether said terminal equipment supports the said configuration node of treating;
Configuration module is used in the judged result of said judge module using said configuration information that the corresponding configuration node of treating is configured when being.
This terminal equipment can also comprise:
Identification module is used for judging whether said order comprises said TNDS object type sign, if then notify said judge module to carry out corresponding operating;
And/or
The agreement sending module is used for the said terminal equipment of announcement server is supported when registration is professional equipment control and application protocol thereof, supplies said server to obtain the structure of the management tree of said terminal equipment.
Server in the present embodiment, shown in figure 12, comprising:
The order generation module is used to generate device management command, comprises tree in the said order and describes the information of treating configuration node in the serializing TNDS object, the said information of treating the configuration information of configuration node and treating the configuration node set;
The order sending module is used for sending said order to terminal equipment.
This server can also comprise:
Management tree obtains module, is used to obtain the structure of the management tree of said terminal equipment, exports to said order generation module.
More than all embodiment, the preferred embodiments of the disclosure just, common variation that those skilled in the art carries out in technical scheme of the present invention and replacement all should be included within protection scope of the present invention.