1. Field of the Invention
This invention relates to device searching technologies in a network, more specially, to a method of automatically searching for each other among devices in a digital home network.
2. Description of the Prior Art
With improving of the material life of the people, devices in a home such as information devices, communication devices, entertainment devices, home electrical appliances, automatic devices, and security monitoring apparatuses are gradually increasing. Meanwhile, due to the rapid popularity of personal computer and Internet in home, flourish development of telecommunication technologies and great improvement of intelligent devices, home network gets more and more attention, and the desire about a simple, flexible and reliable home network is increasing. Thus, a lot of concepts about home network are proposed, such as Smart Home, Electronic Home, e-Home, Digital Family, Network Home, and Intelligent Home. Specifically, Home network has the following four hierarchical meanings: (1) the information devices, communication devices, entertainment devices, home electrical appliances, automatic devices, and security monitoring apparatuses in the home are interconnected and communicate with each other, share resources and form a home intelligent network system; (2) the system is connected to community and Internet by means of a gateway so as to effect the information exchange with the circumstance outside the home; (3) the devices in the home and the connected network should meet a basic requirement of security, convenience, comfort, health and green, so as to provide a pleasure experience to people; and (4) it is easy to use, safe and reliable, convenient to maintain, and inexpensive so as to fulfill the requirements of home life.
In view of the above, the applicant has proposed a digital home network system in another application, as shown in
Based on the above network configuration, the interconnections and resources sharing among network devices are achieved as follows.
When a certain device A apply to access a home network, the device A firstly searches resource management devices in the home network, after finding out, it sends a registration request to the resource management device immediately. After the permission of the resource management device, a connection relation is established between the device A and the resource management device on basis of security authentication. After successfully connected, the device A performs a device registration to the resource management device in the network, that is, sends its own device information to the resource management device. Then, the device A registers services it can provide into the resource management device, and the latter stores all of the device information and the service registration information for searching.
When two devices which have connected with the home network are going to communicate, the device A actively initiating the operation firstly sends a device searching request to the resource management device. The resource management device searches in the device information stored thereon if there are any appropriate devices. If so, the corresponding information is sent to the device A. And the device A sends a request to a device B. Upon permitted, the device A performs a service call to the device B. After the completion of the current operations, the two devices disconnect automatically.
When a device leaves a network, the device will perform a device cancellation operation, and those relevant information including device information and service information are deleted from the resource management device.
In the course of the above operation, a resource management device may exist or not. If there is. not any resource management device, after respective searching procedures, a peer-to-peer connection is formed between the devices by self-negotiation so as to perform communications. When there is a resource management device, the resource management device will perform a device announcement periodically, that is, announce its own device information to other devices. Those devices other than resource management device can also perform the device announcement in other cases.
During the entire procedure of communications, what should be preliminary solved is the problem of discovering each other among the devices. A conventional device discovering method consists in that a user of device inputs device information manually, and then the devices can discover each other. For example, when a user purchases a printer, users who utilize this printer though network must know information about the printer such as its IP address, and then after setting the information about the printer on its own computer, can use the printer properly. Such an operation manner is very inconvenient to user, and with the increasing of the information devices, these manual operations will be more and more unacceptable.
Therefore, a main object of the present invention is to provide a method of searching for devices automatically in a network which makes automatic searching for and connecting with each other among devices possible so as to facilitate the user's operation and improve automatic and intelligent performance of the network.
The object of the prevent invention is achieved by the following technical solutions:
A method of searching for devices automatically in a network, including at least following steps of:
a. firstly searching, by a device initiating party, whether a resource management device exists in the network when two devices are interconnected; if so, going to step c, otherwise going to step b;
b. announcing its own device information, by the device initiating party, to all other devices in the network, at the same time, monitoring announcement information of all the other devices; when receiving information of other devices, sending a connection request from the device initiating party to a device requiring connection, and completing corresponding operations after receiving a response; for example, the device initiating party sends a peer-to-peer connection establishing request to a partner device, after receiving a response, a peer-to-peer connection is established between these two devices;
c. sending a device searching request from the device initiating party to the resource management device; upon receiving the request, making a search, by the resource management device, among device registration information stored therein; after a device satisfying conditions is found out, information related to that device being immediately sent to the device initiating party, otherwise, informing the device initiating party that the information is not found. The resource management device may send the information related to the device to the device initiating party in a format of device announcement.
In above solution, the step b further includes the step of: after receiving the request of the device initiating party, judging, by a requested party device whether it is accepted or not; if it is accepted, sending a connection accepted response from the requested party device to the device initiating party and then performing device connecting between these two devices; otherwise, sending a connection rejected response from the requested party device to the device initiating party.
The method further includes the step of: when each device applies to access the network, firstly registering its own device information onto the resource management device and forming a master-slave devices relation with the resource management device. Before registration, the resource management device announces its own device information in a multicasting manner, and before the device applying to access makes registration, it firstly receives the device announcement information of the resource management device.
As it can be seen, according to the method for searching devices in the home network proposed in the present invention, when there is no resource management device, each devices issues its own device information over the network in a multicasting manner such that the devices can get known about each other in advance, and then establish connection relation with the devices desired to connect; and when there is a resource management device, each home device can make a search whether a desired device exists or not by means of the resource management device so as to establish a connection relation with that device. Thus, an automatic search among network devices is achieved, and a more convenient service is provided to users, and the automatic and intelligent performance of the network is improved.
Hereunder, the present invention will be described in detail with reference to the attached drawings.
With respect to the whole digital home network, the connections among home devices may be through a resource management device, and may be not through the resource management device. Therefore, there are correspondingly two cases in the mutual discovering procedure of the home devices, that is, one case where there is a resource management device, and the other case where there is no resource management device.
As shown in
a. when a certain device A is going to interconnect with other devices, this device firstly searches in a digital home network, whether a resource management device exists or not, if so, the procedure goes to step c, otherwise goes to step b.
b. when there is no resource management device, each device in the network periodically announces its own device information to the network in a multicasting manner, and simultaneously listens to device announcement messages of other devices to obtain information about other devices. At this time, all home devices communicate and share resources in a peer-to-peer manner, and the peer-to-peer connection relations among devices is shown in
When the device A knows the information about other devices, it may initiate a peer-to-peer connection creating request to a certain device B. Upon receiving the request, the device B judges whether the request is accepted or not according to the relevant information of device A in the request. If the request is not accepted, then a connection rejected response is sent back; otherwise, a connection accepted response is sent back and a device connection is established therebetween. Subsequently, the devices A and B are interconnected, and the services and resources thereon can be exchanged and shared.
c. when there is the resource management device, upon the device A is going to connect with another device, the device A firstly sends a device searching request to the resource management device, and makes a search on the resource management device. Upon receiving the device searching request from the device A, the resource management device makes a search among device registration information stored therein for an appropriate device. If a device B satisfying conditions is found out, a device searching response is sent to the device A, and the relevant information about the device B is sent to the device A in a format of device announcement message and in a unicasting manner. The device A sends a request to the device B directly, and upon permitted, these two devices are interconnected. In this case, the resource management device is a master device, and other devices including the device A and device B are slave devices. Then, a device searching procedure performed among the master device(s) and the slave device(s) is shown in
Certainly, in the case where the resource management device exists, when each device applies to access the network, it will firstly register to the resource management device. In general, the resource management device makes device announcement to other devices in the network in a multicasting manner to describe that it is a resource management device and can provide an indexing service. When other devices receive the announcement message of the resource management device for the first time, they each register theirs own device information onto the resource management device in a unicasting manner, that is, each device sends a response message to the resource management device respectively. Once the registration is successful, the resource management device will form a master-slave relation with the device registered thereon, which means that the resource management device is the master device and all the devices registered on the resource management device are slave devices, and the relations between the master device and the slave devices are shown in
In the performing course of the step c, a format of the device searching message and a format of the device searching response message are shown in Table 1 and Table 2 respectively. Table 1 is a detailed format of the device searching message, including name of field, content of field, type of field, and value range of the field. Table 2 is a detailed format of the device searching response message, also including field name, field content, field type, and value range of the field.
According to Table 1 and Table 2, the first 6 fields of respective messages are the same, that is, the first field is message type; the second field is serial number of message, this serial number is used for retransmission of the message and the correspondence between the response message and request message; the four fields for the third to the six fields is used to indicate the sender of the message and the receiver of the message.
In practice, the device searching message and the device searching response message can be embodied in XML language. In summary, the above description is only about the preferred embodiments of the present invention, but is not intended to limit the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
02129656.1 | Sep 2002 | CN | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/CN03/05116 | 6/30/2003 | WO | 10/19/2005 |