Embodiment
Below in conjunction with the accompanying drawing among the present invention, the technical scheme among the present 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.
For making the present invention that understands who those skilled in the art know that, at first introduce some professional knowledges that the present invention relates to.
Equipment in the home network can be diversified, for example electric equipments such as television set, computer, washing machine, air-conditioning.
In registration type service network, a registrar is set, after each equipment is reached the standard grade, all in registrar, register, during registration, information that not only can device registration, the descriptor of the service that can also device registration can provide.In registration type service network, online equipment can inquire the log-on message of online equipment in registrar.In addition, registration type service network gateway can be set between registrar and the equipment, registration type service network gateway can be transmitted the message between registrar and the equipment.
In the broadcast-type service network, the equipment of reaching the standard grade can be broadcasted online message, online message can carry the descriptor of the service that the information of the equipment of reaching the standard grade and the equipment of reaching the standard grade can provide, other online equipment all can be received online message, and the descriptor of the information of the record equipment of reaching the standard grade and the equipment of the reaching the standard grade service that can provide.Each online equipment can be at local search to the information of all online equipment and the descriptor of the service that can provide.
In the present invention, the form of the message that any one equipment in the broadcast-type service network sends generally is a broadcast-type service network form, that is to say that the message that the broadcast-type service network sends is the message according to the requirement structure of the employed application layer protocol of broadcast-type service network.The form of the message that any one equipment in the registration type service network sends generally is a registration type service network form, that is to say that the message that registration type service network sends is the message according to the requirement structure of the employed application layer protocol of registration type service network.
In the present invention, message between registration type service network and the broadcast-type service network need be carried out format conversion, format conversion both can be meant the modification of message being formed structure, just construct message according to the requirement of application layer protocol, also can be meant the element in the message is made amendment, for example destination address be made amendment, certainly, can also be meant the situation of other conversions, illustrate no longer one by one here.
Home network interconnect device described below, home network service system, method for discovering equipment and service calling method may be used to realize the interconnected of registration type service network and broadcast-type service network.
At first introduce a kind of home network interconnect device provided by the invention.As shown in Figure 1, this device comprises: registration type service network gateway 101 and broadcast-type service network equipment 102; Registration type service network gateway 101, the message conversion that is used for the broadcast-type service network that broadcast-type service network equipment 102 provides is issued the broadcast-type service network form of registration type service network is the message of registration type service network form, and the message of registration type service network form is sent to registration type service network; Broadcast-type service network equipment 102, the message conversion that is used for the registration type service network that registration type service network gateway 101 provides is issued the registration type service network form of broadcast-type service network is the message of broadcast-type service network form, and the message of broadcast-type service network form is sent to the broadcast-type service network.
The broadcast-type service network is issued the message of registration type service network can carry out format conversion by registration type service network gateway 101, conversely, registration type service network is issued the message of broadcast-type service network can carry out format conversion by broadcast-type service network equipment 102.
For making registration type service network and broadcast-type service network interconnected, need to register the information of the online equipment in the broadcast-type service network in the registration type service network, need to write down the information of the online equipment in the registration type service network in the broadcast-type service network.
In actual applications, registration has address and sign in the registrar of the online equipment in the registration type service network in registration type service network, and sign also can be meant the title of equipment.But, the address of the online equipment in the registration type service network in registration type service network and be identified at may not be effective in the broadcast-type service network.For guaranteeing that the online equipment in the registration type service network also exists effective address and sign in the broadcast-type service network, at registration type service network after registration type service network gateway 101 sends on-line message, registration type service network gateway 101 can produce address and the sign of online equipment in the broadcast-type service network in the registration type service network, and the online equipment in the storage registration type service network in registration type service network the address and sign with the address in the broadcast-type service network with the mapping relations between identifying.
In actual applications, to issue the destination address of message of the broadcast-type service network form of registration type service network can be the address of online equipment in the broadcast-type service network in the registration type service network to the broadcast-type service network.In this case, registration type service network gateway 101 is when carrying out the format conversion of message, can according to the online equipment in the registration type service network in registration type service network the address and the online equipment in sign and the registration type service network in the broadcast-type service network the address and the mapping relations between the sign, the destination address of message of the registration type service network form after the conversion is set to the address of online equipment in registration type service network in the registration type service network.
In actual applications, the online equipment in the broadcast-type service network uses effective address and sign in the broadcast-type service network, and sign also can be meant the title of equipment.But, the address of online equipment in the broadcast-type service network in the broadcast-type service network and be identified at may not be effective in the registration type service network.For guaranteeing that the online equipment in the broadcast-type service network also exists effective address and sign in registration type service network, at the broadcast-type service network after broadcast-type service network equipment 102 sends on-line message, broadcast-type service network equipment 102 can produce address and the sign of online equipment in registration type service network in the broadcast-type service network, and the online equipment in the stored broadcast type service network in the broadcast-type service network the address and sign with the address in registration type service network with the mapping relations between identifying.
In actual applications, the destination address of message that registration type service network is issued the registration type service network form of broadcast-type service network can be the address of online equipment in registration type service network in the broadcast-type service network.In this case, broadcast-type service network equipment 102 is when carrying out the format conversion of message, can according to the online equipment in the broadcast-type service network in the broadcast-type service network the address and the mapping relations between sign and address in registration type service network and the sign, the destination address of the message of the broadcast-type service network form after changing is set to the address of online equipment in the broadcast-type service network in the broadcast-type service network.
Above-mentioned home network interconnect device can be applied in the home network service system, and to this, the present invention also provides a kind of home network service system.As shown in Figure 2, this home network service system can comprise: registration type service network 21, broadcast-type service network 22 and home network interconnect device 20; Home network interconnect device 20, be used to realize the interconnected of registration type service network 21 and broadcast-type service network 22, wherein, the message conversion of broadcast-type service network 22 being issued the broadcast-type service network form of registration type service network 21 is the message of registration type service network form, and the message of registration type service network form sent to registration type service network 21, and, the message conversion of registration type service network 21 being issued the registration type service network form of broadcast-type service network 22 is the message of broadcast-type service network form, and the message of broadcast-type service network form is sent to broadcast-type service network 22.
In actual applications, home network interconnect device 20 can produce address and the sign of online equipment in broadcast-type service network 22 in the registration type service network 21, and the online equipment in the storage registration type service network 21 in registration type service network 21 the address and the online equipment in sign and the registration type service network 21 in broadcast-type service network 22 the address and identify between mapping relations.
The destination address of message that broadcast-type service network 22 is issued the broadcast-type service network form of registration type service network 21 can be the address of online equipment in broadcast-type service network 22 in the registration type service network 21, and the destination address of the message of the registration type service network form after the conversion can be the address of online equipment in registration type service network 21 in the registration type service network 21.
In actual applications, home network interconnect device 20 can produce address and the sign of online equipment in registration type service network 21 in the broadcast-type service network 22, and the online equipment in the stored broadcast type service network 22 in broadcast-type service network 22 the address and the online equipment in sign and the broadcast-type service network 22 in registration type service network 21 the address and the sign between mapping relations.
The destination address of message that registration type service network 21 is issued the registration type service network form of broadcast-type service network 22 can be the address of online equipment in registration type service network 21 in the broadcast-type service network 22, and the destination address of the message of the broadcast-type service network form after the conversion can be the address of online equipment in broadcast-type service network 22 in the broadcast-type service network 22.
Detailed description for above-mentioned home network service system can repeat no more here referring to the associated description of home network interconnect device shown in Figure 1.
In actual applications, after the equipment in the broadcast-type service network is reached the standard grade, can in registration type service network, register, same, after the equipment in the registration type service network is reached the standard grade, the information that the broadcast-type service network can recording equipment.In addition, online equipment in the registration type service network may need to call the service that the online equipment in the broadcast-type service network provides, equally, the online equipment in the broadcast-type service network also may need to call the service that the online equipment in the registration type service network provides.To this, the present invention provides two kinds of method for discovering equipment and two kinds of service calling methods also based on home network service system shown in Figure 2.
The scene of registering in registration type service network after at first reaching the standard grade based on the equipment in the broadcast-type service network is introduced a kind of method for discovering equipment of the present invention.
As shown in Figure 3, this method for discovering equipment comprises:
S301: the home network interconnect device obtains the on-line message of the broadcast-type service network form of the online device broadcasts in the broadcast-type service network.
After equipment in the broadcast-type service network is reached the standard grade, can broadcast on-line message, certainly, on-line message is the on-line message of broadcast-type service network form.The information of equipment can be carried in the on-line message, in addition, the service description information that equipment can provide can also be carried.The home network interconnect device can capture on-line message.
After the home network interconnect device obtains on-line message, can produce address and the sign of online equipment in registration type service network in the broadcast-type service network, and the online equipment in the broadcast-type service network set up in the broadcast-type service network the address and sign with the address in registration type service network with the mapping relations between identifying.
After carrying out S301, carry out S302: the home network interconnect device is converted to the on-line message of broadcast-type service network form the on-line message of registration type service network form.
If the application layer protocol that the broadcast-type service network uses is different with the application layer protocol that registration type service network uses, the home network interconnect device can re-construct the on-line message of the requirement structure of the application layer protocol that uses according to the broadcast-type service network on-line message for the requirement of the application layer protocol that meets the use of registration type service network so.Certainly,, the destination address of on-line message can also be made amendment if needed.
If the application layer protocol that the broadcast-type service network uses is identical with the application layer protocol of registration type service network use, the home network interconnect device format conversion of situations such as destination address of on-line message of can only making amendment so.
After carrying out S302, carry out S303: the home network interconnect device is issued registration type service network with the on-line message of registration type service network form.
The on-line message of issuing registration type service network can carry address and the sign of online equipment in registration type service network in the broadcast-type service network, is convenient to the online equipment in the registration type service network registration broadcast-type service network like this.
After carrying out S303, carry out S304: the online equipment in the registration type service network registration broadcast-type service network.
Registration type service network can be preserved address and the sign of online equipment in registration type service network in the broadcast-type service network, is convenient to operations such as subsequent query like this.Certainly, if the descriptor of the service that the online equipment in the broadcast-type service network that carries in the on-line message can provide, the service network of registration type so can also be preserved the descriptor of the service that the online equipment in the broadcast-type service network can provide.
The success of registration type service network with behind the online facility registration in the broadcast-type service network, can send the message that succeeds in registration of registration type service network form to the home network interconnect device, the home network interconnect device can be the message that succeeds in registration of broadcast-type service network form with the message conversion that succeeds in registration of registration type service network form, afterwards, the home network interconnect device can be issued the message that succeeds in registration of broadcast-type service network form the online equipment in the broadcast-type service network.
More clearly understand method for discovering equipment shown in Figure 3 for ease of those skilled in the art, based on home network service system shown in Figure 4, again method for discovering equipment shown in Figure 3 is described below.
As shown in Figure 4, interoperability gateway 40 (being home network interconnect device above-mentioned) comprises registration type service network gateway 401 and broadcast-type service network equipment 402, registration type service network 41 comprises registrar 411, registration type service network gateway 412, registration type service network equipment 413, registration type service network equipment 414 and registration type service network equipment 415, and broadcast-type service network 42 comprises broadcast-type service network equipment 421, broadcast-type service network equipment 422 and broadcast-type service network equipment 423.
Supposing that broadcast-type service network equipment 423 is reached the standard grade is registered to registration type service network 41, the flow process of device discovery as shown in Figure 5:
S501: broadcast-type service network equipment 423 broadcasting on-line message.On-line message is the on-line message of broadcast-type service network 42 forms, and on-line message carries 423 descriptors that service can be provided of broadcast-type service network equipment.
S502: broadcast-type service network equipment 402 is resolved on-line message, produce address and the implementor name (be equivalent to above-mentioned sign) of broadcast-type service network equipment 423 in registration type service network 41, preserve address and implementor name and address in registration type service network 41 and mapping relations implementor name between of broadcast-type service network equipment 423 in broadcast-type service network 42, and the on-line message of broadcast-type service network 42 forms is converted to the on-line message of registration type service network 41 forms.Need to prove, the source address of on-line message can be the address of broadcast-type service network equipment 423 in broadcast-type service network 42, on-line message can carry the implementor name of broadcast-type service network equipment 423 in broadcast-type service network 42, and broadcast-type service network equipment 402 can obtain address and the implementor name of broadcast-type service network equipment 423 in broadcast-type service network 42 by on-line message.Certainly, broadcast-type service network equipment 402 also can be provided with address and the implementor name of broadcast-type service network equipment 423 in broadcast-type service network 42 in advance.
S503: broadcast-type service network equipment 402 is issued registration type service network gateway 401 with the on-line message of registration type service network 41 forms.
S504: registration type service network gateway 401 is issued registrar 411 with the on-line message of registration type service network 41 forms, and perhaps the descriptor with address, implementor name and broadcast-type service network equipment 423 services that can provide of broadcast-type service network equipment 423 in registration type service network 41 offers registrar 411.
S505: registrar 411 registration broadcast-type service network equipment 423.That is, registrar 411 is preserved address and the implementor name of broadcast-type service network equipment 423 in registration type service network 41, in addition, also preserves the descriptor of 423 services that can provide of broadcast-type service network equipment.
S506: after succeeding in registration, registrar 411 sends the message that succeeds in registration to registration type service network gateway 401.The message that succeeds in registration is the message of registration type service network 41 forms, and the destination address of the message that succeeds in registration is the address of broadcast-type service network equipment 423 in registration type service network 41.
S507: registration type service network gateway 401 is transmitted the message that succeeds in registration to broadcast-type service network equipment 402.
S508: broadcast-type service network equipment 402 is resolved the message that succeeds in registration, by the mapping relations of mentioning among the S502, search the address of broadcast-type service network equipment 423 in broadcast-type service network 42, with the message conversion that succeeds in registration of registration type service network 41 forms is the message that succeeds in registration of broadcast-type service network 42 forms, and the destination address of the message that succeeds in registration after the conversion is the address of broadcast-type service network equipment 423 in broadcast-type service network 42.
S509: the message that succeeds in registration after broadcast-type service network equipment 402 will be changed is issued broadcast-type service network equipment 423.
Based on the scene of the information that the equipment in the registration type service network is reached the standard grade, equipment reached the standard grade in broadcast-type service network record, introduce another kind of method for discovering equipment of the present invention below.
As shown in Figure 6, this method for discovering equipment comprises:
S601: the on-line message that the online equipment in the registration type service network that home network interconnect device acquisition registration type service network sends is reached the standard grade, this on-line message is the on-line message of registration type service network form.
After equipment in the registration type service network is reached the standard grade, can register in the registration type service network gateway in registration type service network.Afterwards, the registration type service network gateway in the registration type service network can send on-line message to the home network interconnect device, and certainly, on-line message is the on-line message of registration type service network form.The information of equipment can be carried in the on-line message, in addition, the service description information that equipment can provide can also be carried.
After the home network interconnect device obtains on-line message, can produce address and the sign of online equipment in the broadcast-type service network in the registration type service network, and the online equipment in the registration type service network set up in registration type service network the address and sign with the address in the broadcast-type service network with the mapping relations between identifying.
After carrying out S601, carry out S602: the home network interconnect device is converted to the on-line message of registration type service network form the on-line message of broadcast-type service network form.
If the application layer protocol that registration type service network uses is different with the application layer protocol that the broadcast-type service network uses, the home network interconnect device can re-construct the on-line message of the requirement structure of the application layer protocol that uses according to registration type service network the on-line message for the requirement of the application layer protocol that meets the use of broadcast-type service network so.Certainly,, the destination address of on-line message can also be made amendment if needed.
If the application layer protocol that registration type service network uses is identical with the application layer protocol of broadcast-type service network use, the home network interconnect device format conversion of situations such as destination address of on-line message of can only making amendment so.
After carrying out S602, carry out S603: the home network interconnect device is issued the broadcast-type service network with the on-line message of broadcast-type service network form.
The on-line message of issuing the broadcast-type service network can carry address and the sign of online equipment in the broadcast-type service network in the registration type service network, is convenient to the online equipment in the equipment records registration type service network in the broadcast-type service network like this.
After carrying out S603, carry out S604: the information of the online equipment at least one the equipment records registration type service network in the broadcast-type service network.
The information that can have only the online equipment in the equipment records registration type service network in the broadcast-type service network, the information that online equipment in a plurality of equipment records registration type service networks also can be arranged, certainly, also can be the information that all equipment all writes down the online equipment in the registration type service network.Equipment in the broadcast-type service network can be preserved address and the sign of online equipment in the broadcast-type service network in the registration type service network, is convenient to operations such as subsequent query like this.Certainly, if the descriptor of the service that the online equipment in the registration type service network that carries in the on-line message can provide, the broadcast-type service network can also be preserved the descriptor of the service that the online equipment in the registration type service network can provide so.
More clearly understand method for discovering equipment shown in Figure 6 for ease of those skilled in the art, based on home network service system shown in Figure 4, again method for discovering equipment shown in Figure 6 is described below.
Suppose that registration type service network equipment 415 reaches the standard grade, the information of broadcast-type service network 42 record registration type service network equipment 415, the flow process of device discovery as shown in Figure 7:
S701: registration type service network equipment 415 issue on-line message.On-line message is the on-line message of registration type service network 41 forms, and on-line message carries 415 descriptors that service can be provided of registration type service network equipment.
S702: registration type service network gateway 412 is issued registrar 411 with on-line message, and perhaps information and 415 of the registration type service network equipment with registration type service network equipment 415 can provide the descriptor of service to offer registrar 411.
S703: if registration type service network gateway 401 has been subscribed to the information whether equipment in the registration type service network 41 or registration type service network equipment 415 reach the standard grade, registrar 411 sends the on-line message that registration type service network equipment 415 are reached the standard grade to registration type service network gateway 401 so.
S704: registration type service network gateway 401 is resolved on-line message, produce address and the implementor name (be equivalent to above-mentioned sign) of registration type service network equipment 415 in broadcast-type service network 42, preserve address and implementor name and address in broadcast-type service network 42 and mapping relations implementor name between of registration type service network equipment 415 in registration type service network 41, and the on-line message of registration type service network 41 forms is converted to the on-line message of broadcast-type service network 42 forms.Need to prove, the source address of on-line message can be the address of registration type service network equipment 415 in registration type service network 41, on-line message can carry the implementor name of registration type service network equipment 415 in registration type service network 41, and registration type service network gateway 401 can obtain address and the implementor name of registration type service network equipment 415 in registration type service network 41 by on-line message.Certainly, registration type service network gateway 401 also can be provided with the address and the implementor name of registration type service network equipment 415 in registration type service network 41 in advance.
S705: registration type service network gateway 401 is issued broadcast-type service network equipment 402 with the on-line message of broadcast-type service network 42 forms.
S706: broadcast-type service network equipment 402 is issued broadcast-type service network 42 with the on-line message of broadcast-type service network 42 forms.
S707: all devices in the broadcast-type service network 42 is by monitoring, and obtains and address, the implementor name of record registration type service network equipment 415 in broadcast-type service network 42 and the descriptor of the service that can provide.
The scene of the service that provides based on the online equipment in the online equipment calls broadcast-type service network in the registration type service network is introduced a kind of service calling method of the present invention below.
As shown in Figure 8, this service calling method comprises:
S801: the request message of the service of calling the online equipment in the broadcast-type service network that home network interconnect device acquisition registration type service network sends, this request message is the request message of registration type service network form.
The service that online equipment in the registration type service network can be inquired about online equipment and can provide in the registrar in the registration type service network.When the online equipment in the registration type service network need call the service that the online equipment in the broadcast-type service network provides, online equipment in the registration type service network can send service invocation request message to the registration type service network gateway in the registration type service network, registration type service network gateway in the registration type service network can be issued the home network interconnect device with service invocation request message (being the request message among the S801), certainly, service invocation request message is the request message of registration type service network form.The destination address of the request message of registration type service network form can be the address of online equipment in registration type service network in the broadcast-type service network.
After carrying out S801, carry out S802: the home network interconnect device is converted to the request message of registration type service network form the request message of broadcast-type service network form.
The home network interconnect device can establish online equipment in the broadcast-type service network in the broadcast-type service network the address and the mapping relations between the address of the online equipment in the broadcast-type service network in registration type service network.
When the home network interconnect device is converted to the request message of broadcast-type service network form with the request message of registration type service network form, can according to the destination address of the request message of registration type service network form and the online equipment in the broadcast-type service network in the broadcast-type service network the address and the mapping relations between the address of the online equipment in the broadcast-type service network in registration type service network, search the address of online equipment in the broadcast-type service network in the broadcast-type service network corresponding with the destination address of the request message of registration type service network form, afterwards, the address of online equipment in the broadcast-type service network in the destination address of the request message of the home network interconnect device broadcast-type service network form broadcast-type service network that is set to find.
After carrying out S802, carry out S803: the home network interconnect device is issued the broadcast-type service network with the request message of broadcast-type service network form.
After carrying out S803, carry out S804: the online equipment in the broadcast-type service network provides service for the online equipment in the registration type service network.
For example, suppose that the online equipment in the broadcast-type service network can provide certain film, so the online equipment in the broadcast-type service network can by and registration type service network in online equipment between data channel provide this film for the online equipment in the registration type service network.
Need to prove, after carrying out S803, online equipment in the broadcast-type service network can send the service call answer message of broadcast-type service network form to the home network interconnect device, afterwards, the home network interconnect device can be replied the service call of broadcast-type service network form the service call answer message that message conversion is a registration type service network form, and the service call of registration type service network form is replied message issue registration type service network.
Wherein, the destination address of the service call answer message of broadcast-type service network form can be the address of online equipment in the broadcast-type service network in the registration type service network, and, the home network interconnect device can establish online equipment in the registration type service network in registration type service network the address and the mapping relations between the address of online equipment in the broadcast-type service network in the registration type service network.
When home network interconnection device is the service call answer message of registration type service network form in the service call answer message conversion with broadcast-type service network form; Can reply according to the service call of broadcast-type service network form destination address and the address of the online equipment in the registration type service network in registration type service network and the mapping relations between the address of online equipment in the broadcast-type service network in the registration type service network of message, search the address of online equipment in registration type service network in the registration type service network corresponding with the destination address of the service call answer message of broadcast-type service network form. Afterwards, the service call that the home network interconnect device can registration type service network form is replied the address of online equipment in registration type service network in the registration type service network that the destination address of message is set to find.
For making those skilled in the art more clearly understand service calling method shown in Figure 8, based on home network service system shown in Figure 4, again service calling method shown in Figure 8 is described below.
Suppose in a certain period, in registration type service network 41, have only registration type service network equipment 413 online, have only broadcast-type service network equipment 421 online in broadcast-type service network 42, registration type service network equipment 413 and broadcast-type service network equipment 421 is registration in registrar 411 all.The flow process that registration type service network equipment 413 calls the service that other equipment provide is as shown in Figure 9:
S901: registration type service network equipment 413 sends inquiry request message to registration type service network gateway 412, and this inquiry request message is used to inquire about current online equipment and the service that provides.
S902: registration type service network gateway 412 is transmitted to registrar 411 with inquiry request message.
S903: registrar 411 is resolved inquiry request messages, and the query facility tabulation obtains Query Result,, determines current online equipment and the service that provides that is, supposes currently to have only registration type service network equipment 413 and broadcast-type service network equipment 421 online.
S904: registrar 411 will carry the message of Query Result and issue registration type service network gateway 412.
S905: registration type service network gateway 412 will carry the forwards of Query Result and give registration type service network equipment 413.
S906: registration type service network equipment 413 is resolved Query Results, determines currently except that own online, has only broadcast-type service network equipment 421 online.
S907: registration type service network equipment 413 is issued registration type service network gateway 412 with service invocation request message, and the destination address of service invocation request message is the address of broadcast-type service network equipment 421 in registration type service network 41.
S908: registration type service network gateway 412 analysis service call request message, after the destination address of determining service invocation request message is the address of broadcast-type service network equipment 421 in registration type service network 41, send service invocation request message to registration type service network gateway 401, this service invocation request message is the request message of registration type service network 41 forms.
S909: registration type service network gateway 401 analysis service call request message, after the destination address of determining service invocation request message is the address of broadcast-type service network equipment 421 in registration type service network 41, give broadcast-type service network equipment 402 with the service invocation request forwards.
S910: broadcast-type service network equipment 402 analysis service call request message, after the destination address of determining service invocation request message is the address of broadcast-type service network equipment 421 in registration type service network 41, inquiry broadcast-type service network equipment 421 in broadcast-type service network 42 the address and the mapping relations between the address in registration type service network 41, obtain the address of broadcast-type service network equipment 421 in broadcast-type service network 42, and be the service invocation request message of broadcast-type service network 42 forms the service invocation request message conversion of registration type service network 41 forms.
S911: broadcast-type service network equipment 402 is issued broadcast-type service network equipment 421 with the service invocation request message of broadcast-type service network 42 forms.
S912: broadcast-type service network equipment 421 provides service for registration type service network equipment 413.
S913: broadcast-type service network equipment 421 returns service call to broadcast-type service network equipment 402 and replys message, this service call is replied the service call answer message that message is broadcast-type service network 42 forms, and the destination address that service call is replied message is the address of registration type service network equipment 413 in broadcast-type service network 42.
S914: broadcast-type service network equipment 402 analysis service are called answer message, after the destination address of determining service call answer message is the address of registration type service network equipment 413 in broadcast-type service network 42, service call is replied forwards give registration type service network gateway 401.
S915: registration type service network gateway 401 analysis service are called answer message, after the destination address of determining service call answer message is the address of registration type service network equipment 413 in broadcast-type service network 42, inquiry and registration type service network equipment 413 in registration type service network 41 the address and the mapping relations between the address in broadcast-type service network 42, obtain the address of registration type service network equipment 413 in registration type service network 41, and with the service call of broadcast-type service network 42 forms reply message conversion be registration type service network 41 forms call answer message.
S916: registration type service network gateway 401 is replied message with the service call of registration type service network 41 forms and is issued registration type service network gateway 412.
S917: registration type service network gateway 412 analysis service are called answer message, determining that service call is replied the destination address of message is the address of registration type service network equipment 413 in registration type service network 41, service call is replied forwards give registration type service network equipment 413.
The scene of the service that provides based on the online equipment in the online equipment calls registration type service network in the broadcast-type service network is introduced another kind of service calling method of the present invention below.
As shown in figure 10, this service calling method comprises:
S1001: the request message of the service of the online equipment in the registration type that the calls service network that home network interconnect device acquisition broadcast-type service network sends, this request message is the request message of broadcast-type service network form.
Online equipment in the broadcast-type service network can be in online equipment of local search and the service that can provide.When the online equipment in the broadcast-type service network need call the service that the online equipment in the registration type service network provides, the online equipment in the broadcast-type service network can send service invocation request message (request message among the S1001) to the home network interconnect device.Certainly, service invocation request message is the request message of broadcast-type service network form, and the destination address of service invocation request message is the address of online equipment in the broadcast-type service network in the registration type service network.
After carrying out S1001, carry out S1002: the home network interconnect device is converted to the request message of broadcast-type service network form the request message of registration type service network form.
The home network interconnect device can establish online equipment in the registration type service network in registration type service network the address and the mapping relations between the address of online equipment in the broadcast-type service network in the registration type service network.
When the home network interconnect device is converted to the request message of registration type service network form at the request message with broadcast-type service network form, can according to the destination address of the request message of broadcast-type service network form and the online equipment in the registration type service network in registration type service network the address and the mapping relations between the address of online equipment in the broadcast-type service network in the registration type service network, search the address of online equipment in registration type service network in the registration type service network corresponding with the destination address of the request message of broadcast-type service network form, afterwards, the address of online equipment in registration type service network in the destination address of the request message of the home network interconnect device registration type service network form registration type service network that is set to find.
After carrying out S1002, carry out S1003: the home network interconnect device is issued registration type service network with the request message of registration type service network form.
After carrying out S1003, carry out S1004: the online equipment in the registration type service network provides service for the online equipment in the broadcast-type service network.
For example, suppose that the online equipment in the registration type service network can provide certain film, the online equipment in the service network of registration type so can by and the broadcast-type service network in online equipment between data channel provide this film for the online equipment in the broadcast-type service network.
Need to prove, after carrying out S1003, online equipment in the registration type service network can send the service call answer message of registration type service network form to the home network interconnect device, afterwards, the home network interconnect device can be replied the service call of registration type service network form the service call answer message that message conversion is a broadcast-type service network form, and the service call of broadcast-type service network form is replied message issue the broadcast-type service network.
Wherein, the destination address of the service call answer message of registration type service network form can be the address of online equipment in registration type service network in the broadcast-type service network, and, the home network interconnect device can establish online equipment in the broadcast-type service network in the broadcast-type service network the address and the mapping relations between the address of the online equipment in the broadcast-type service network in registration type service network.
When home network interconnection device is the service call answer message of broadcast-type service network form in the service call answer message conversion with registration type service network form; Can reply according to the service call of registration type service network form destination address and the address of the online equipment in the broadcast-type service network in the broadcast-type service network and the mapping relations between the address of the online equipment in the broadcast-type service network in registration type service network of message, search the address of online equipment in the broadcast-type service network in the broadcast-type service network corresponding with the destination address of the service call answer message of registration type service network form. Afterwards, the service call that the home network interconnect device can broadcast-type service network form is replied the address of online equipment in the broadcast-type service network in the broadcast-type service network that the destination address of message is set to find.
For making those skilled in the art more clearly understand service calling method shown in Figure 10, based on home network service system shown in Figure 4, again service calling method shown in Figure 10 is described below.
Suppose in a certain period, in registration type service network 41, have only registration type service network equipment 413 online, have only broadcast-type service network equipment 421 online in broadcast-type service network 42, registration type service network equipment 413 and broadcast-type service network equipment 421 is registration in registrar 411 all.The flow process that broadcast-type service network equipment 421 calls the service that other equipment provide is as shown in figure 11:
S1101: broadcast-type service network equipment 421 obtains Query Result at the local search list of devices, that is, determine current except that own online, have only registration type service network equipment 413 online.
S1102: broadcast-type service network equipment 421 sends service invocation request message to broadcast-type service network equipment 402, this service invocation request message is the request message of broadcast-type service network 42 forms, and the destination address of service invocation request message is the address of registration type service network equipment 413 in broadcast-type service network 42.
S1103: broadcast-type service network equipment 402 analysis service call request message, after the destination address of determining service invocation request message is the address of registration type service network equipment 413 in broadcast-type service network 42, give registration type service network gateway 401 with the service invocation request forwards.
S1104: registration type service network gateway 401 analysis service call request message, after the destination address of determining service invocation request message is the address of registration type service network equipment 413 in broadcast-type service network 42, inquiry and registration type service network equipment 413 in registration type service network 41 the address and the mapping relations between the address in broadcast-type service network 42, obtain the address of registration type service network equipment 413 in registration type service network 41, and be the service invocation request message of registration type service network 41 forms the service invocation request message conversion of broadcast-type service network 42 forms.
S1105: registration type service network gateway 401 is issued registration type service network gateway 412 with the service invocation request message of registration type service network 41 forms.
S1106: registration type service network gateway 412 analysis service call request message, after the destination address of determining service invocation request message is the address of registration type service network equipment 413 in registration type service network 41, give registration type service network equipment 413 with the service invocation request forwards.
S1107: registration type service network equipment 413 analysis service call request message, for broadcast-type service network equipment 421 provides service.
S1108: registration type service network equipment 413 sends service call to registration type service network gateway 412 and replys message, and the destination address that this service call is replied message is the address of broadcast-type service network equipment 421 in registration type service network 41.
S1109: registration type service network gateway 412 analysis service are called answer message, after the destination address of determining service call answer message is the address of broadcast-type service network equipment 421 in registration type service network 41, service call is replied forwards give registration type service network gateway 401, service call is replied the service call answer message that message is registration type service network 41 forms.
S1110: registration type service network gateway 401 analysis service are called answer message, after the destination address of determining service call answer message is the address of broadcast-type service network equipment 421 in registration type service network 41, service call is replied forwards give broadcast-type service network equipment 402.
S1111: broadcast-type service network equipment 402 analysis service are called answer message, after the destination address of determining service call answer message is the address of broadcast-type service network equipment 421 in registration type service network 41, inquiry broadcast-type service network equipment 421 in broadcast-type service network 42 the address and the mapping relations between the address in registration type service network 41, obtain the address of broadcast-type service network equipment 421 in registration type service network 41, and the service call of registration type service network 41 forms is replied the service call answer message that message conversion is broadcast-type service network 42 forms.
S1112: broadcast-type service network equipment 402 is replied message with the service call of broadcast-type service network 42 forms and is issued broadcast-type service network equipment 421.
Need to prove; the home network interconnect device that the present invention mentions also can be called the interoperability gateway; also can be called the interoperability device (IDTHNSDS between two class home network service discovery systems; Interoperation Device between Two Home Network Service Discovery System); certainly; can also be called other titles; in a word, the device of the function of the home network interconnect device mentioned of every the present invention of having all should fall into protection scope of the present invention.
Need to prove that in the present invention, the home network interconnect device can carry out format conversion with message such as the on-line message of the equipment between registration type service network and the broadcast-type service network, the message that succeeds in registration, request message, service call answer message.This shows, because the present invention can realize the message between registration type service network and the broadcast-type service network is carried out format conversion, so, even registration type service network uses different application layer protocols respectively with the broadcast-type service network, the present invention still can realize transmitting the message between registration type service network and the broadcast-type service network, thereby realizes the interconnected of registration type service network and broadcast-type service network smoothly.
Need to prove, by above-mentioned several embodiment provided by the invention as can be seen, the present invention does not need to change the deployment and the configuration of legacy network, for example, registrar in the registration type service network and registration type service network gateway can be retained in the registration type service network, so it is comparatively convenient that the present invention realizes, save the cost of realizing.
Need to prove that some registration type service network is formed by a plurality of gateway bridge joints, in addition, generally speaking, the message that the online equipment of broadcast-type service network sends can not passed through a plurality of gateways.And in the present invention, the home network interconnect device can be the message of registration type service network form with the message conversion of broadcast-type service network form, because the message of registration type service network form can transmit through a plurality of gateways in registration type service network, so the message that this online equipment that also is equivalent to the broadcast-type service network sends can transmit through a plurality of gateways in registration type service network.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-OnlyMemory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.