Summary of the invention
The purpose of the embodiment of the invention is to provide device capability information processing method, system, gateway device and server, is the problem of standard capability information to solve the primordial potency information translation that agent equipment is difficult to the proxied device support in the prior art.
For solving the problems of the technologies described above, the embodiment of the invention provides following technical scheme:
A kind of device capability information processing method comprises:
Obtain the capacity of equipment parsing module of terminal equipment from server; Described capacity of equipment parsing module from server acquisition terminal equipment comprises: obtain device information of terminal; Send described facility information to described server; Receive the capacity of equipment parsing module that described server returns according to described facility information; Described capacity of equipment parsing module is after to be described server according to described facility information search the corresponding relation of the facility information preserved in advance and capacity of equipment parsing module, the capacity of equipment parsing module that finds according to described corresponding relation; Or after described server searches in advance the corresponding relation of the facility information preserved and original device ability according to described facility information, the described original device ability that finds according to described corresponding relation carried out the capacity of equipment parsing module that generates after the protocol conversion;
Be standard capability information by described capacity of equipment parsing module with the primordial potency information translation of described terminal equipment.
A kind of device capability information treatment system comprises: gateway device, server and terminal equipment,
Described gateway device is used for obtaining from server the capacity of equipment parsing module of terminal equipment, is standard capability information by described capacity of equipment parsing module with the primordial potency information translation of described terminal equipment; Described capacity of equipment parsing module from server acquisition terminal equipment comprises: obtain device information of terminal; Send described facility information to described server; Receive the capacity of equipment parsing module that described server returns according to described facility information; Described capacity of equipment parsing module is after to be described server according to described facility information search the corresponding relation of the facility information preserved in advance and capacity of equipment parsing module, the capacity of equipment parsing module that finds according to described corresponding relation; Or after described server searches in advance the corresponding relation of the facility information preserved and original device ability according to described facility information, the described original device ability that finds according to described corresponding relation carried out the capacity of equipment parsing module that generates after the protocol conversion.
A kind of gateway device comprises:
Interactive unit is used for from the capacity of equipment parsing module of server acquisition terminal equipment; Described interactive unit comprises: the apparatus information acquiring unit is used for obtaining device information of terminal; The facility information transmitting element is used for sending described facility information to described server; The parsing module receiving element is used for receiving the capacity of equipment parsing module that described server returns according to described facility information; Wherein, described capacity of equipment parsing module is after to be described server according to described facility information search the corresponding relation of the facility information preserved in advance and capacity of equipment parsing module, the capacity of equipment parsing module that finds according to described corresponding relation; Or after described server searches in advance the corresponding relation of the facility information preserved and original device ability according to described facility information, the described original device ability that finds according to described corresponding relation carried out the capacity of equipment parsing module that generates after the protocol conversion;
Converting unit, being used for by described capacity of equipment parsing module is standard capability information with the primordial potency information translation of described terminal equipment.
A kind of server comprises:
Receiving element is used for receiving the facility information that gateway device sends, and described facility information is the device information of terminal that described gateway device obtains;
Acquiring unit is used for the capacity of equipment parsing module according to the described terminal equipment of described apparatus information acquiring; Wherein, described acquiring unit comprises:
Corresponding relation is searched the unit, is used for searching the facility information of preservation in advance and the corresponding relation of capacity of equipment parsing module according to described facility information;
Parsing module obtains the unit, is used for obtaining described capacity of equipment parsing module according to described corresponding relation;
Or described acquiring unit comprises:
Corresponding relation is searched the unit, is used for searching the facility information of preservation in advance and the corresponding relation of original device ability according to described facility information, and obtains described original device ability according to described corresponding relation;
Conversion unit of protocol is used for described original device ability is carried out generating the capacity of equipment parsing module after the protocol conversion;
Return the unit, be used for returning described capacity of equipment parsing module to described gateway device.
The technical scheme that is provided by the above embodiment of the invention as seen, the embodiment of the invention is when the treatment facility ability information, obtaining the capacity of equipment parsing module of terminal equipment from server, is standard capability information by described capacity of equipment parsing module with the primordial potency information translation of described terminal equipment.Because the embodiment of the invention can be handled the original device ability information of terminal equipment, to obtain the standard device ability information that gateway device can be supported, therefore when having inserted new terminal equipment, gateway device by with the standard capability information of the new access terminal equipment of mutual acquisition of server so that gateway device can be realized obtaining any terminal unit ability information.
Embodiment
The embodiment of the invention provides device capability information processing method, system, gateway device and server, when the treatment facility ability information, obtaining the capacity of equipment parsing module of terminal equipment from server, is standard capability information by described capacity of equipment parsing module with the primordial potency information translation of described terminal equipment.
In order to make those skilled in the art person understand the present invention program better, and above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The first embodiment flow process of present device ability information processing method is as shown in Figure 1:
Step 101: the capacity of equipment parsing module that obtains terminal equipment from server.
Concrete, can obtain device information of terminal, send described facility information to server, the capacity of equipment parsing module that reception server returns according to described facility information.
Wherein, server can be searched the facility information of preservation in advance and the corresponding relation of capacity of equipment parsing module according to described facility information, and returns the described capacity of equipment parsing module that finds; Perhaps service can be searched the facility information of preservation in advance and the corresponding relation of original device ability according to described facility information, the described original device ability that finds is carried out generating the capacity of equipment parsing module after the protocol conversion, return described capacity of equipment parsing module.Capacity of equipment parsing module in the embodiment of the invention can be considered as a protocol conversion instrument, can be specially a software or program, the ability of non-TR-069 protocol format can be converted to the ability of TR-069 protocol format according to this capacity of equipment parsing module.
Wherein, server can be (Uniform Resource Locator, uniform resource locator) server of URL sensing; Or Automatic Configuration Server ACS; Or default server.
Step 102: be standard capability information with the primordial potency information translation of described terminal equipment by described capacity of equipment parsing module.
Wherein, can before obtaining described capacity of equipment parsing module, from described device information of terminal, obtain described primordial potency information; Perhaps after obtaining described capacity of equipment parsing module, obtain described primordial potency information from described terminal equipment; Perhaps when obtaining described capacity of equipment parsing module, obtains described server described primordial potency information; After perhaps obtaining described capacity of equipment parsing module, obtain described primordial potency information from described server.
The present invention obtain terminal equipment information method the second embodiment flow process as shown in Figure 2, this embodiment shows the server that points to by the specific URL that comprises in the facility information and provides the parsing module of resolving terminal unit ability to gateway device, the process that gateway device is resolved terminal unit ability according to this parsing module:
Step 201: gateway device obtains device information of terminal.
When terminal equipment was reached the standard grade, gateway device obtained device information of terminal, comprised the URL of terminal equipment ID and the server of the capacity of equipment that can obtain terminal equipment.The process of obtaining facility information is supported the difference of agreement according to terminal equipment and different, for example, if equipment is supported UPnP, then can be by finding terminal equipment and obtain device information of terminal at gateway device deploy control point; For other terminal equipment, can be by carrying out DHCP(Dynamic Host Configuration Protocol, DHCP) obtain device information of terminal alternately.
The third-party server that specific URL corresponding server can be carried out protocol conversion for the server of terminal equipment production firm, specific ACS or being used for of setting in advance.
Step 202: gateway device to facility information in the server transmitting apparatus information pointed to of URL.
The server that step 203:URL points to is according to the capacity of equipment parsing module of apparatus information acquiring terminal equipment.
Can in the server that URL points to, preserve the corresponding relation of device id and capacity of equipment parsing module in advance, after receiving facility information, search corresponding relation according to device id wherein, obtain and this device id corresponding equipment ability parsing module; Perhaps
Also can in the server that URL points to, preserve device id and the original device ability description corresponding relation of (comprising protocol capability description and data model description etc.) in advance, after receiving facility information, search corresponding relation according to device id wherein, obtain the original device ability description of this device id correspondence, then this original device ability description is carried out generating the capacity of equipment parsing module after the protocol conversion.
The server that step 204:URL points to is to gateway device transmitting apparatus ability parsing module.
Step 205: gateway device is resolved the original device ability that obtains from terminal equipment by the capacity of equipment parsing module.
The original device ability of terminal equipment (comprising device protocol ability and device data model capability etc.) is stored in the description document of terminal equipment usually, gateway device is by after obtaining this description document alternately with terminal equipment, with the capacity of equipment parsing module original device ability of terminal equipment is resolved, the original device ability is converted to the device data model of TR-069.
Need to prove, can obtain by step 201 from the original device ability that terminal equipment obtains, namely include the original device ability in the facility information; Also can be in step 204 back obtain this original device ability or the server that points to from URL obtains this original device ability by gateway device from terminal equipment; Perhaps the server that is pointed to by URL in step 204 sends to gateway device with this original device ability with the capacity of equipment parsing module, and this embodiment of the invention is not limited.
Step 206: gateway device will be resolved back device data model and will be mapped in the data model of self.
Gateway device can be in the following way when the mapping (enum) data model:
The data model of terminal equipment (ProxyDevice) and professional (Service) thereof is mapped under the Services node of gateway device, finishes the process that gateway device obtains terminal equipment information thus.
The present invention obtain terminal equipment information method the 3rd embodiment flow process as shown in Figure 3, this embodiment shows by ACS or default server and provides the parsing module of resolving terminal unit ability to gateway device, the process that gateway device is resolved terminal unit ability according to this parsing module:
Step 301: gateway device obtains device information of terminal.
When terminal equipment was reached the standard grade, gateway device obtained device information of terminal, be different with second example, and the facility information in the present embodiment only comprises device id, and does not comprise specific URL.The process of obtaining facility information is supported the difference of agreement according to terminal equipment can be different, do not repeat them here.
Step 302: gateway device is to ACS transmitting apparatus information.
In the present embodiment, because terminal equipment does not have the corresponding specific URL that can obtain its capacity of equipment, so gateway device is connected by setting up TR-069 with ACS, facility information sent to ACS handle.
Need to prove, in the present embodiment, gateway device is except can be to ACS transmitting apparatus information, can also send this facility information to pre-configured default URL corresponding server in the gateway device, default URL can be dispatch from the factory time configuration of gateway device, perhaps by ACS configuration, this default URL is server address or the third-party server address of terminal equipment manufacturer that can transmitting apparatus ability parsing module.
Step 303:ACS is according to the capacity of equipment parsing module of apparatus information acquiring terminal equipment.
Step 304:ACS server is to gateway device transmitting apparatus ability parsing module.
Step 305: gateway device is resolved the original device ability that obtains from terminal equipment by the capacity of equipment parsing module.
Need to prove, can obtain by step 301 from the original device ability that terminal equipment obtains, namely include the original device ability in the facility information; Also can obtain this original device ability or obtain this original device ability from ACS from terminal equipment by gateway device in step 304 back; Perhaps in step 304, by ACS this original device ability is sent to gateway device with the capacity of equipment parsing module, this embodiment of the invention is not limited.
Step 306: gateway device will be resolved back device data model and will be mapped in the data model of self.
Above-mentioned steps 303 step 203 to the specific descriptions of step 306 and second embodiment is similar to step 206, does not repeat them here.
Corresponding with the embodiment of present device ability information processing method, the present invention also provides the embodiment of device capability information treatment system, gateway device and server.
The embodiment block diagram of present device ability information treatment system as shown in Figure 4, this system comprises: gateway device 410 for clarity of illustration, also shows among Fig. 4 with gateway device 410 and carries out mutual server 420 and terminal equipment 430.
Wherein, gateway device 410 is used for obtaining from server 420 the capacity of equipment parsing module of terminal equipments 430, is standard capability information by described capacity of equipment parsing module with the primordial potency information translation of described terminal equipment 430.
The embodiment block diagram of gateway device of the present invention as shown in Figure 5, this gateway device comprises: interactive unit 510 and converting unit 520.
Wherein, interactive unit 510 is used for obtaining from server the capacity of equipment parsing module of terminal equipment; It is standard capability information with the primordial potency information translation of described terminal equipment that converting unit 520 is used for by described capacity of equipment parsing module.
Concrete, interactive unit 510 can comprise (not shown among Fig. 5): the apparatus information acquiring unit is used for obtaining device information of terminal; The facility information transmitting element is used for sending described facility information to described server; The parsing module receiving element is used for receiving the capacity of equipment parsing module that described server returns according to described facility information.
The embodiment block diagram of server of the present invention as shown in Figure 6, this server comprises: receiving element 610, acquiring unit 620 and return unit 630.
Wherein, receiving element 610 is used for receiving the facility information that gateway device sends, and described facility information is the device information of terminal that described gateway device obtains; The capacity of equipment parsing module that acquiring unit 620 is used for according to the described terminal equipment of described apparatus information acquiring; Returning unit 630 is used for returning described capacity of equipment parsing module to described gateway device.
Concrete, acquiring unit 620 can comprise (not shown among Fig. 6): corresponding relation is searched the unit, is used for searching the facility information of preservation in advance and the corresponding relation of capacity of equipment parsing module according to described facility information; Parsing module obtains the unit, is used for obtaining described capacity of equipment parsing module according to described corresponding relation.
Concrete, acquiring unit 620 also can comprise (not shown among Fig. 6): corresponding relation is searched the unit, be used for searching the facility information of preservation in advance and the corresponding relation of original device ability according to described facility information, and obtain described original device ability according to described corresponding relation; Conversion unit of protocol is used for described original device ability is carried out generating the capacity of equipment parsing module after the protocol conversion.
As seen through the above description of the embodiments, the embodiment of the invention obtains the capacity of equipment parsing module of terminal equipment from server when the treatment facility ability information; Be standard capability information by described capacity of equipment parsing module with the primordial potency information translation of described terminal equipment.Because the embodiment of the invention can be handled the original device ability information of terminal equipment, to obtain the standard device ability information that gateway device can be supported, therefore when having inserted new terminal equipment, gateway device by with the standard capability information of the new access terminal equipment of mutual acquisition of server so that gateway device can be realized obtaining any terminal unit ability information.
Those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Above-described embodiment of the present invention does not constitute the restriction to protection range of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.