This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2003-307245, filed Aug. 29, 2003, the entire contents of which are incorporated herein by reference.
1. Field
This invention relates to a communication device that communicates with an external device, and a method for establishing the communication connection between devices.
2. Description of the Related Art
Recently, it is common for personal computers and personal digital assistants to support wireless communications with other devices without any required cable connections. One type of communication protocol of the wireless communication function is BLUETOOTH®, which is a well-known, short range radio link.
In wireless communication complying with BLUETOOTH®, for example, when connecting device A and device B, the device A searches for devices complying with BLUETOOTH® wireless communication including device B (or device B may search for devices). Then, the user selects a desired device B out of all devices searched at this time.
Given the growing popularity of wireless communications, over time, it is expected that the number of devices having such wireless communication functionality will greatly increase. As a result, conventional wireless connection procedures will require more time and labor by the user to select a desired device. For some users, this additional time and labor may outweigh the overall convenience of use.
Japanese Patent Application Publication (KOKAI) No. 2002-359873 discloses a device that decreasing the searching number of selection candidates by checking profiles that the searched devices have. If the searched device does not have any profile that the user selected on the searching device, then the searched device is excluded from the candidates.
In the devices disclosed in this reference, however, the user is required to select the user designation profile for reducing the searching number of selection candidates. Therefore, if device A is desired to be connected to device B at one time or connected to device C at other times, every time the connection object is changed, the user needs to select the profile to be used therein again. That is, the user is forced to comply with a complicated selection procedure, and may also experience inconvenience during use.
Further, along with recent advancement in semiconductor manufacture technology, this kind of information processing apparatus is much reduced in size in order to improve the portability, not having the display device necessary for selecting the profile to be used or having only a minimum limit of operation buttons. In the electronic device manufactured in such trend, it is very difficult for the user to select the profile.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention, and together with the detailed description of the embodiments given below, serve to explain the principles of the invention.
Various embodiments according to the present invention will be described hereinafter with reference to the accompanying drawings. In general, according to one embodiment of the invention, a communication device comprises a communication unit that communicates with an external device. The communication device may be adapted as a computer, a personal digital assistant, an audio player, or the like. The communication device further comprises an outputting device for outputting an inquiry to an external device surrounding the communication device through the communication unit both for a first time and for a second time, a receiving device for receiving a response to the inquiry from an external device, a detecting device for detecting a connection object coming out of the external device that did not respond to the inquiry within the first time, and did respond to the inquiry within the second time, and a establishing device for establishing a communication connection with the connection object detected by the detecting device.
In the following description, certain terminology is used to describe features of the invention. For example, the term “unit” may represent hardware and/or a software module that are configured to perform one or more functions. The term “connection object” is an audio output device targeted for wireless communications with an audio input device. It is contemplated, however, that the invention does not require the devices to transmit audio, but may be utilized for the transmission of video or other types of data.
According to an embodiment,
In such environment, it is assumed that there is a user who would like to listen to the music, using the audio player 103 and the remote loudspeaker 202. The audio player 103 playbacks the audio data for the music, and transmits it to the remote loudspeaker 202. The remote loudspeaker 202, outputs the music in accordance with the audio data transmitted from the audio player 103 over a wireless communication connection. Therefore, the wireless communication connection between the audio player 103 and the remote loudspeaker 202 is established before transmission. When establishing the communication connection, a method for selecting the connection object is applied as further described in
Similarly, the remote loudspeaker 202, as shown in
As shown, a controller 1030 is a control function performed by the control unit 103C, and administrates overall control of the audio player 103.
A device information acquisition unit 1031 is a function that acquires device information from the device being searched by way of a communication unit 1034, and the acquired device information is recorded in an acquired information storage unit 1032. The device information acquisition unit 1031 is a function performed by the control unit 103C and the wireless communication unit 14. The RAM 13 operates as the acquired information storage unit 1032 while the communication unit 1034 is a function performed by the wireless communication unit 14.
Acquisition of device information by the device information acquisition unit 1031 is executed twice in the connection object selecting method of this embodiment. Herein, the device group of which device information is acquired at the first time is defined as a first set (P), and the device group of which device information is acquired at the second time is defined as a second set (Q). The device information acquisition unit 1031 records the acquired device information in the acquired information storage unit 1032 in a format so that each device of which device is acquired may be later distinguished whether to belong to the first set (P) or the second set (Q).
A connection object selector 1033 is a function that selects the device as candidate's object of connection on the basis of the device information recorded in the acquired information storage unit 1032 and attributes information of the connection object device preliminarily stored in a connection object attribute storage unit 1035. The connection object selector 1033 is a function performed by the control unit 103C and the user interface unit 15. ROM 12 and/or RAM 13 operate as the connection object attribute storage unit 1035.
The attribute information stored in the connection object attribute storage unit 1035 is not perfect information for specifically identifying the connection object device, but is assumed to have a certain margin for reducing into specific devices to be connected from the group of devices to be searched. For example, if the remote loudspeaker 202 is the device at connection object, the attribute information is an attribute of “loudspeaker.” Since there are a plurality of remote speakers having the same attribute, a specific remote loudspeaker cannot be identified by this attribute alone. However, from a group of multiple devices having various attributes, only those having the attribute of “loudspeaker” may be limited. In the case of the audio player, if the object of connection is only the device having the attribute of “loudspeaker,” by setting this attribute preliminarily in the connection object attribute storage unit 1035, the user's work of setting the connection object attribute may be saved.
On the other hand,
Referring now to FIGS. 5 to 8, the principle of establishing the communication connection between the audio player 103 and the remote loudspeaker 202 by the connection object selecting method will be described.
At first, the remote loudspeaker 202, namely the desired device, is placed in a Disabled state by turning off the switch 24S. Since the wireless communication unit 24 is turned off, the remote loudspeaker 202 is not able to provide device information to the searching device (see item 310 in
While the remote loudspeaker 202 is disabled, the audio player 103 as the searching device acquires device information from the device being searched by broadcasting a first inquiry (see item 320 in
The remote loudspeaker 202 does not provide the device information, but other devices to be searched, that is, the remote loudspeaker 201 and the headphones 203 provide the device information corresponding to the first inquiry if these devices are placed in Enabled states to provide device information (see item 330 in
Accordingly, the audio player 103 stores the obtained device information in the acquired information storage unit 1032. At the same time, the set of the devices from which device information is obtained at this time is stored as a first set (P). The first set (P) is as shown in
Next, the remote loudspeaker 202 is placed in an Enabled state by turning on of the switch 24S of wireless communication unit 24. As the wireless communication unit 24 is powered on, the remote loudspeaker 202 is able to provide device information to the searching device (item 340 in
While the remote loudspeaker 202 is now placed in the Enabled state, the audio player 103 broadcasts a second inquiry, and obtains device information from the devices to be searched (item 350 in
The audio player 103 stores the obtained device information in the acquired information storage unit 1032. At the same time, the set of the devices from which the device information is obtained at this time is stored as second set (Q). The second set (Q) is as shown in
The connection object selector 1033 of the audio player 103, referring to the sets (P) and (Q) stored in the acquired information storage unit 1032, compares the first set (P) and the second set (Q), and pick up the device information which is not included in the first set (P) and is included in the second set (Q) This comparison is similar to a logical subtraction, when the first set (P) is subtracted from the second set (Q). The picked-up device information is stored as a third set (R) in the acquired information storage unit 1032. (see item 380 in
As shown in
In order to enhance the accuracy of the device included in the third set (R) to coincide with the remote loudspeaker 202 as the device being searched for the connection, the device in the third set (R) may be collated with the attribute information stored in the connection object attribute storage unit 1035.
That is, the connection object selecting method of the embodiment may be to select the desired device according to the following outline.
It is only the specific device to be connected (hereinafter referred to as the “desired device”) that the state is intentionally changed in an attempt to provide device information by the device information provider 2021 from the targeted device being searched. Hence, the desired device is not included in the first set (P), but is expected to be included in the second set (Q).
For a relatively short period of time when the procedure in the connection object selecting method of the embodiment is executed, it is expected that the state whether or not to provide the information of other devices is hardly changed. Therefore, all other devices except the desired device are expected to be included in both first set (P) and second set (Q).
Therefore, when the device information included in the first set (P) is deleted from the device information included in the second set (Q), the third set (R) should result in including only the desired device. However, depending on the circumstances, the third set (R) may occur in the following cases, the accuracy may be enhanced by further modifying the procedure.
Examples of the third set (R) are shown below.
In (Case 1), the desired device is obtained. In (Case 2) and (Case 3), other devices than the desired device are included in the third set (R), and the intended candidate of connection object is not obtained. In (Case 2), the device attribute as mentioned above is used to identify and confirm the desired device. Further, in both (Case 2) and (Case 3), in order that other devices than the desired device may be more securely included in the first set (P), the device information acquisition operation in terms of the first inquiry may be repeated until the number of devices included in the first set (P) is saturated and/or is not changed for a predetermined time.
In (Case 4), the cause is that the desired device is not included in the second set (Q). In such an event, the device information acquisition operation by using the second inquiry may be continued until the desired device which is not included in the set (P) shows up, or the operation may be repeated until the number of devices included in the second set (Q) is saturated and/or is not changed for a predetermined time, so that the desired device may be included in the second set (Q) more securely. Not waiting until the number of elements in the second set (Q) is saturated as in the latter case, if the device information acquisition operation is stopped when the desired device which is not included in the first set (P) shows up in the second set (Q) as in the former case. As far as it is certain that all other devices than desired are contained in the first set (P), it is effective to shorten the required time in the operation using the second inquiry. By combining these techniques, the connection object candidate may be obtained more securely.
Next, referring to
Under the condition that the wireless communication unit 24 of the remote loudspeaker 202 is turned off by operation of the switch 24S, the user operates the user interface unit 15 of the audio player 103 so as to start to broadcast a first inquiry for searching. That is, the user instructs the audio player 103 to establish the communication connection with the device being searched (e.g., the remote loudspeaker 202), the audio player 103 starts to obtain device information from the devices being searched by using the first inquiry (operation S1). This acquisition of device information continues until the acquired device information does not increase in a given period of time, and obtains the set (P).
When there is no increase in the given period of time (Yes in operation S2), the audio player 103 terminates the device information acquisition, and displays a message on the display in the user interface unit 15. The message is to inform the user to set the device being searched for the connection in the Enabled state more specifically to encourage the user to turn on the switch 24S of the remote loudspeaker (operation S3).
The user waits for display of this message, and then places the remote loudspeaker 202 in the Enabled state to provide information by turning on the switch 24S in accordance with the message. At the time, the remote loudspeaker 201 and the headphones 203 as other devices being searched may be set in any state, but not be changed to the other state.
In the meantime, after displaying of the message, the audio player 103 waits for response or instruction from the user about this message (operation S4).
After the Switch 24S is turned off, the user operates the button in the user interface unit 15 to input “Completion of turning on” into the audio player 103. That is, the audio player 103 is instructed to start to broadcast a second inquiry to establish the communication connection.
When receiving the instruction from the user (Yes in operation S4), device information acquisition is started to gather device information from the devices being searched by broadcasting the second inquiry (operation S5). This acquisition of device information continues until there is no increase in a given period of time and device information is obtained from a device being searched of which device information is not obtained in the first device information acquisition. When these conditions are satisfied (Yes in operation S6, Yes in operation S7), the audio player 103 obtains the set (Q), and finishes this device information acquisition.
After the second device information acquisition, the audio player 103 obtains the set (R) that includes the device information being searched for the connection, from the difference between the device information (set (Q)) obtained in the second device information acquisition and the device information (set (P)) obtained in the first device information acquisition. At this time, when only the device information of the remote loudspeaker 202 may be included in the set (R), the audio player 103 selects the device information to be connected (operation S8). Then the audio player 103 executes connection process with the selected device being searched (operation S9).
Thus, according to the connection object selecting method of the embodiment, by a simple procedure such as turning on/off of the wireless communication unit 24 of the remote loudspeaker 202 as the device being searched to be connected, the audio player 103 may select the remote loudspeaker 202 as the connection object.
According to the present embodiment, the wireless communication unit 24 is turned off during first device information acquisition, and is turned on during second device information acquisition. However, the wireless communication unit 24 may be turned on during first device information acquisition and turned off during second device information acquisition. In this case, the device that did respond to the first inquiry and did not respond to the second inquiry is detected as the connection object.
Furthermore, instead of on/off of the communication unit 24, it is possible to turn on/off the power of the remote loudspeaker 202.
As described herein, a communication unit in the connection object selecting method of the embodiment may be either wireless communication or wired communication having plural devices connected in the communication enable state such as Local Area Network, so-called LAN. It may be effective in the case that the devices to be connected are remote in distance because of spatial spacing between devices, or input of information for identifying the device at the connection object is difficult, or input of connection object information is complicated because the devices at connection object are changed frequently.
In the embodiment described above, when the set (R) is in (Case 2), that is, when there are plural candidates of connection object, they are reduced by using the attribute information of the device. But if the user interface unit 15 of the audio player 103 has, for example, a small LCD with a display space of three lines, in the condition that the number of candidates of connection object is within three, they may be listed and displayed as choices to be selected by the user.
Further, according to the above-described embodiment, the user interface unit includes the small LCD for message display, and operation buttons for instruction. However, it may be replaced with audio input/output unit such as a loudspeaker and microphone, and the notice to the user and acceptance of response may be realized by voice.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
P2003-307245 | Aug 2003 | JP | national |