Abstract:
In a system including the first terminal and the second terminal. A communication method at the first terminal includes the steps of preparing its own device name, detecting a request for connection with the second terminal, rewriting the device name in response to the request, and transmitting the changed device name to the second terminal. A communication method at the second terminal includes the steps of receiving device names from a plurality of first terminals, displaying the device names for the user of the second terminal to recognize a changed device name easier than unchanged device names, and communicating with the first terminal specified by a device name selected by the user.

Description:
BACKGROUND OF THE INVENTION  
         [0001]    1. Field of the Invention  
           [0002]    The present invention relates to a technique of searching for and connecting with a terminal of a communication party in wireless communication, and more particularly, to a technique allowing a user to readily search for and connect with a terminal of a communication party in short-range wireless communication.  
           [0003]    2. Description of the Background Art  
           [0004]    Recently, a short-range communication technique called Bluetooth has been put into practical use. The communication technique is capable of wireless communication with data communication speed of 1M bit/sec within a communication range of 10 m. The communication speed and communication range are kept so low that reduced cost and low power consumption of a communication device can be realized. Such a Bluetooth device is mounted on a mobile phone, a mobile terminal, a personal computer, electrical home appliance and the like. A network can be constructed for data communication between such apparatuses using the Bluetooth device.  
           [0005]    The constructed network can be used to implement various applications. For instance, a Bluetooth device is mounted to a mobile phone in addition to a communication circuit for communicating with other telephone devices. The user stores personal information into his/her own mobile phone including his/her address, phone number and the like. When the user meets someone for the first time, he/she can use the Bluetooth device to send the personal information from the user&#39;s mobile phone to the other person&#39;s mobile phone, instead of giving a business card.  
           [0006]    The communication technique allows data communication within the range of 10 m, which is a communication coverage. Thus, in the above-described example, if a mobile phone of another person with which the user desires no data communication exists within the communication coverage by the user&#39;s mobile phone, the personal information may be transmitted to that person&#39;s mobile phone. Thus, the communication technique goes through a procedure for specifying the terminal of a communication party before establishing a communication line between the user and the terminal of the communication party.  
           [0007]    In the procedure, the mobile phone of the user requesting for communication searches for the terminal of the communication party that is present within the communication coverage. The terminal within the communication coverage transmits an address specifying its home station when the communication device is in an active, i.e. standby, state. The mobile phone uses the received address to issue a request for a device name to the terminal of the communication party. The terminal that received the request transmits the device name set by the user to the mobile phone. The mobile phone stores the received device name by associating it with the address. The mobile phone displays a list of the received device names. The user of the mobile phone looks for the device name of a desired terminal from a plurality of device names. The user selects a device name and enters the selected device name using a keypad. The mobile phone searches for an address of the terminal based on the entered device name. The mobile phone uses the retrieved address to transmit a connection request command to the terminal. When the user of the terminal enters permission for the terminal to communicate with the mobile phone, the terminal transmits a connection response to the mobile phone. This allows the communication line to be established between the mobile phone and the terminal.  
           [0008]    As described above, in the wireless communication including the communication technique called Bluetooth that allows wireless communication with a terminal within a certain area, a procedure is provided, in terms of security, that searches for a terminal within a communication coverage and selects one of the retrieved plurality of terminals. A display unit of the mobile phone is, however, generally too small to display device names of many terminals at once. Moreover, even if such display is possible, it is difficult for the user to determine which terminal is to be connected with the communication line.  
         SUMMARY OF THE INVENTION  
         [0009]    An object of the present invention is to provide a communication system and a terminal used in the communication system, in which a user can readily select the terminal of a desired communication party from a number of terminals.  
           [0010]    Another object of the present invention is to provide a communication system and a terminal used in the communication system, in which the user can only communicate with the terminal of a desired communication party among a number of terminals.  
           [0011]    A further object of the present invention is to provide a communication system and a terminal used in the communication system, in which the terminal of a communication party can be selected from a number of terminals according to a predetermined condition.  
           [0012]    A yet another object of the present invention is to provide a communication system and a terminal used in the communication system, in which a terminal for communication can be selected from a number of terminals in response to a connection request from the terminal of a communication party according to a predetermined condition.  
           [0013]    According to an aspect of the present invention, a communication system effects communication between a first terminal and a second terminal. The first terminal includes a storage circuit to store first information for the second terminal to identify the first terminal and second information for a user of the second terminal to identify the first terminal, a detection circuit to detect instruction for connection with the second terminal, and a transmission circuit connected to the storage circuit and the detection circuit, to transmit the first information and the second information to the second terminal in response to the instruction. The second terminal includes a reception circuit to receive the first information and the second information from the first terminal, a determination circuit to determine a manner in which the user of the second terminal recognizes the second information based on the second information, a display circuit to display the second information of the first terminal, and a control circuit connected to the determination circuit and the display circuit, to control the display circuit such that the second information is displayed in the determined manner.  
           [0014]    According to the present aspect, when the user of the first terminal desires communication with the second terminal, the second information, for example, is changed and transmitted to the second terminal by the transmission circuit. When, for example, a Bluetooth device is used, the first information is a “BD (Bluetooth Device) address” and the second information is a “device name” transmitted in response to a NameRequest command. The “BD address” is used, when Bluetooth devices communicate with each other, by one device to identify the other party in the communication. The “device name” is registered by the user of the terminal, representing e.g. the full name of the user. The “device name” may be changed. The second terminal that received the changed “device name” displays the second information at the display circuit for the user of the second terminal to more readily recognize the device name, compared to the case with second information unchanged. Thus, the “device name,” e.g. the user&#39;s full name, of the first terminal that desires connection is presented to the user of the second terminal in preference to the “device name” of the first terminal that desires no connection. Even if there are a number of terminals within the communication coverage, the user of the second terminal can readily select the first terminal that desires connection. As a result, a communication system can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage. Note that the NameRequest command is for acquiring a device name in Bluetooth.  
           [0015]    According to another aspect of the present invention, a communication system effects communication between a first terminal and a second terminal. The first terminal includes a storage circuit to store first information for the second terminal to identify the first terminal and second information for a user of the second terminal to identify the first terminal, a transmission circuit connected to the storage circuit, to transmit the first information and the second information to the second terminal, a detection circuit to detect an instruction for connection with the second terminal, and an instruction transmission circuit connected to the detection circuit, to create third information and to transmit the third information to the second terminal in response to the instruction. The second terminal includes a reception circuit to receive the first information, the second information and the third information from the first terminal, a display circuit to display second information of the first terminal, and a control circuit connected to the display circuit, to control the display circuit such that the second information is displayed in a manner for the user of the second terminal to recognize the second information more readily when the third information is received, compared to when the third information is not received.  
           [0016]    According to the present aspect, when the user of the first terminal desires communication with the second terminal, the third information is transmitted to the second terminal by the instruction transmission circuit. The second terminal that received the third information displays the second information at the display circuit for the user of the second terminal to more readily recognize the second information, compared to when the third information is not received, under the control of the control circuit. This allows the “device name” of the first terminal that desires connection to be presented to the user of the second terminal, in preference to the “device name” of the first terminal that desires no connection. Even if there are a number of terminals within a communication coverage, the user of the second terminal can readily select the first terminal that desires connection. As a result, a communication system can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0017]    According to a further aspect of the present invention, a communication system effects communication between a first terminal and a second terminal. The first terminal includes a storage circuit to store information for the second terminal to identify the first terminal, a transmission circuit connected to the storage circuit, to transmit the information to the second terminal, and a creation circuit to create a first code indicating permission for connection with the second terminal. The second terminal includes a reception circuit to receive the information from the first terminal, a creation circuit to create a second code indicating permission for connection with the first terminal, a command transmission circuit connected to the creation circuit, to transmit a connection request command to the first terminal based on the information, and a code transmission circuit to transmit the second code to the first terminal based on the information. The first terminal further includes a command reception circuit to receive the connection request command and the second code from the second terminal, a determination circuit connected to the command reception circuit, to determine whether or not connection is to be made with the second terminal, based on the first code and the second code, and a response command transmission circuit connected to the determination circuit, to transmit a connection response command to the second terminal, based on a result determined by the determination circuit.  
           [0018]    According to the present aspect, the first terminal creates the first code when it permits connection with the second terminal. The second terminal creates the second code when it permits the connection with the first terminal. For instance, the same numeral is set for the first and second codes by the respective users of the first and second terminals. The second terminal transmits the connection request command and the second code to the first terminal based on information, e.g. “BD address.” Upon reception of the connection request command and the second code, the first terminal determines whether or not connection is to be made, based on the first and second codes, i.e., determines whether or not the codes have the same numeral. If it is determined that the connection is to be made, the connection response command is transmitted from the first terminal to the second terminal to connect a communication line. As a result, a communication system can be provided in which communication can only be made with the terminal of a desired communication party even if there are a number of terminals within a communication coverage.  
           [0019]    According to a yet another aspect of the present invention, a first terminal is provided in a communication system effecting communication between a first terminal and a second terminal. The second terminal receives, from the first terminal, first information for the second terminal to identify the first terminal and second information for a user of the second terminal to identify the first terminal, determining a manner in which the user of the second terminal recognizes the second information, based on the second information, and displaying the second information in the manner. The first terminal includes a storage circuit to store the first information and the second information, a detection circuit to detect an instruction for connection with the second terminal, and a transmission circuit connected to the storage circuit and the detection circuit, to transmit the first information and the second information to the second terminal in response to the instruction.  
           [0020]    According to the present aspect, when the user of the first terminal desires communication with the second terminal, the second information, for example, is changed and transmitted to the second terminal by the transmission circuit. The second terminal that received the changed second information, e.g. changed “device name,” displays the second information at the display circuit for the user of the second terminal to more readily recognize the information, compared to the case with the second information unchanged. Thus, the “device name” of the first terminal that desires connection is presented to the user of the second terminal in preference to the “device name” of the first terminal that desires no connection. Even if there are a number of first terminals within the communication coverage of the second terminal, the user of the second terminal can readily select the first terminal that desires connection. As a result, a terminal can be provided in which a user can readily select the terminal of a desired communication party from a number of terminals present in a communication coverage.  
           [0021]    According to a further aspect of the present invention, a first terminal is provided in a communication system effecting communication between a first terminal and a second terminal. The second terminal receives, from the first terminal, first information for the second terminal to identify the first terminal, second information for a user of the second terminal to identify the first terminal and third information, and displays the second information for the user of the second terminal to recognize the second information more readily when the third information is received, compared to when the third information is not received. The first terminal includes a storage circuit to store the first information and the second information, a transmission circuit connected to the storage circuit, to transmit the first information and the second information to the second terminal, a detection circuit to detect an instruction for connection with the second terminal, and an instruction transmission circuit connected to the detection circuit, to create the third information and to transmit the third information to the second terminal, in response to the instruction.  
           [0022]    According to the present aspect, when the user of the first terminal desires communication with the second terminal, the third information is transmitted to the second terminal by the instruction transmission circuit. The second terminal that received the third information displays the second information at the display circuit for the user of the second terminal to more readily recognize the information, compared to when the third information is not received. Thus, the “device name” of the first terminal that desires connection is presented to the user of the second terminal in preference to the “device name” of the first terminal that desires no connection. Even if there are a number of terminals within the communication coverage, the user of the second terminal can readily select the first terminal that desires connection. As a result, a terminal can be provided in which a user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0023]    According to another aspect of the present invention, a first terminal is provided in a communication system effecting communication between the first terminal and a second terminal. The first terminal includes a storage circuit to store information for the second terminal to identify the first terminal, a transmission circuit connected to the storage circuit, to transmit the information to the second terminal, and a creation circuit to create a first code indicating permission for connection with the second terminal. The second terminal receives the information from the first terminal, creates a second code indicating permission for connection with the first terminal, and transmits a connection request command and the second code to the first terminal based on the information. The first terminal further includes a command reception circuit to receive the connection request command and the second code from the second terminal, a determination circuit connected to the command reception circuit, to determine whether or not connection is to be made with the second terminal, based on the first code and the second code, and a response command transmission circuit connected to the determination circuit, to transmit a connection response command to the second terminal based on a result determined by the determination circuit.  
           [0024]    According to the present aspect, the first terminal creates the first code when it permits connection with the second terminal. The second terminal creates the second code when it permits connection with the first terminal. For instance, the same numeral is set for the first and second codes by the users of the first and second terminals. The second terminal transmits the connection request command and the second code to the first terminal based on information, e.g., “BD address.” Upon reception of the connection request command and the second code, the first terminal determines whether or not connection is made based on the first and the second codes, i.e., determines whether or not the codes have the same numeral. If it is determined that the connection is made, the connection response command is transmitted from the first terminal to the second terminal, to connect a communication line. As a result, a terminal can be provided that can communicate only with the terminal of a desired communication party among a number of terminals that may be present within a communication coverage.  
           [0025]    More preferably, the first terminal further includes a circuit to transmit a transmission request command requesting for transmission of the second code to the second terminal. The second terminal transmits the second code to the first terminal in response to the transmission request command received from the first terminal.  
           [0026]    Thus, upon reception of the connection request command from the second terminal, the first terminal transmits the transmission request command to the second terminal in order to receive a code for determining if connection is to be made with the second terminal. The first terminal determines whether or not the connection is to be made, based on the second code transmitted from the second terminal in response to the transmission request command and the first code created by the first terminal. This allows determination to be performed for the connection based on the codes, only when the second terminal issues a request for the determination based on the codes.  
           [0027]    More preferably, in the first terminal, the code is created based on data indicating date and time at which an instruction is given for creation of the code.  
           [0028]    Thus, the users of the first and second terminals simultaneously instruct the respective terminals to create codes. The terminals create codes, respectively, based on data of the instructed date and time (date, hour and minutes) according to a predetermined calculation method. The first terminal can determine whether or not the code calculated from the date/time data when it determines whether or not connection is to be made with the second terminal.  
           [0029]    More preferably, the code includes first data based on date and time at which an instruction is given for creation of the code and second data identifying terminals that belong to a same category according to a predetermined rule. The determination circuit includes a circuit to determine whether or not connection is to be made with the second terminal, based on the first data and the second data.  
           [0030]    According to the invention, a plurality of terminals are divided into at least two categories to communicate with one another according to such a rule that terminals belonging to the same category do not communicate with each other for exchanging data and that terminals belonging to different categories communicate with each other for exchanging data. The users at the plurality of terminals belonging to the same category (for instance, one company forms one category when personal information data are exchanged), simultaneously press the same numeric key. By determining whether or not communication is made based on thus created first and second data, terminals belonging to different categories communicate with each other to exchange personal information, while terminals belonging to the same category do not communicate with each other.  
           [0031]    According to a further aspect of the present invention, a second terminal is provided in a communication system effecting communication between a first terminal and the second terminal. The first terminal stores first information for the second terminal to identify the first terminal and second information for a user of the second terminal to identify the first terminal, and transmits the first information and the second information to the second terminal when an instruction for connection with the second terminal is detected. The second terminal includes a reception circuit to receive the first information and the second information from the first terminal, a determination circuit connected to the reception circuit, to determine a manner in which the user of the second terminal recognizes the second information, based on the second information, a display circuit to display the second information of the first terminal, and a control circuit connected to the determination circuit and the display circuit, to control the display circuit such that the second information is displayed in the determined manner.  
           [0032]    According to the present aspect, when the user of the first terminal desires communication with the second terminal, the second information, for example, is transmitted to the second terminal. The second terminal that received changed second information, e.g. changed “device name,” displays the second information at the display circuit, under the control of the control circuit, for the user of the second terminal to more readily recognize the information, compared to the case with the second information unchanged. Thus, the “device name” of the first terminal that desires connection is presented to the user of the second terminal in preference to the “device name” of the first terminal that desires no connection. Even if there are a number of first terminals within the communication coverage of the second terminal, the user of the second terminal can readily select the first terminal that desires connection. As a result, a terminal can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0033]    According to yet another aspect of the present invention, a second terminal is provided in a communication system effecting communication between a first terminal and the second terminal. The first terminal stores first information for the second terminal to identify the first terminal and second information for a user of the second terminal to identify the first terminal, transmitting the first information and the second information to the second terminal, and transmits third information to the second terminal in response to an instruction for connection with the second terminal. The second terminal includes a reception circuit to receive the first information, the second information and the third information from the first terminal, a display circuit to display the second information of the first terminal, and a control circuit connected to the display circuit, to control the display circuit such that the second information is displayed in a manner for the user of the second terminal to recognize the second information more readily when the third information is received, compared to when the third information is not received.  
           [0034]    According to the present aspect, when the user of the first terminal desires communication with the second terminal, the third information is transmitted to the second terminal. The second terminal that received the third information displays the second information at the display circuit, under the control of the control circuit, for the user of the second terminal to more readily recognize the information, compared to when the third information is not received. Thus, the “device name” of the first terminal that desires connection is presented to the user of the second terminal in preference to the “device name” of the first terminal that desires no connection. Even if there are a number of terminals within the communication coverage, the user of the second terminal can readily select the first terminal that desires connection. As a result, a terminal can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0035]    More preferably, the second terminal further includes an input circuit to input data specifying a first terminal to be connected with the second terminal, determined by the user of the second terminal based on the second information displayed on the display circuit, and a command transmission circuit connected to the input circuit, to transmit a connection request command to the first terminal based on first information of a first terminal specified by the data.  
           [0036]    According to the present aspect, the first terminal that desires connection with the second terminal is displayed with higher priority at the display circuit in the second terminal. The user of the second terminal selects the first terminal to be connected, based on the display. The command transmission circuit transmits the connection request command to the selected first terminal. When the first terminal transmits the connection response command to the second terminal, the first and second terminals are connected with each other.  
           [0037]    According to a further aspect of the present invention, a second terminal is provided in a communication system effecting communication between the first terminal and the second terminal. The first terminal transmits information for the second terminal to identify the first terminal, to the second terminal, creates a first code indicating permission for connection with the second terminal, and determines whether or not connection is to be made with the second terminal based on a second code received from the second terminal and the first code. The second terminal includes a reception circuit to receive the information from the first terminal, a creation circuit to create a second code indicating permission for connection with the first terminal, a command transmission circuit connected the creation circuit, to transmit a connection request command to the first terminal based on the information, and a code transmission circuit to transmit the second code to the first terminal based on the information.  
           [0038]    According to the present aspect, the first terminal creates the first code when it permits connection with the second terminal. The second terminal creates the second code when it permits connection with the first terminal. The second terminal transmits the connection request command and the second code to the first terminal, based on information. Upon reception of the connection request command and the second code, the first terminal determines whether or not connection is to be made, based on the first and second codes. If it is determined that the connection is to be made, the first terminal transmits the connection response command to the second terminal, to connect a communication line. As a result, a terminal can be provided that can communicate only with the terminal of a desired communication party among a number of terminals that may be present within the communication coverage.  
           [0039]    More preferably, the second terminal further includes a circuit to transmit the second code to the first terminal in response to the transmission request command received from the first terminal. The first terminal transmits, to the second terminal, a transmission request command requesting for transmission of the second code.  
           [0040]    Thus, upon reception of the connection request command from the second terminal, the first terminal transmits the transmission request command to the second terminal in order to receive a code for determining if connection is to be made with the second terminal. The first terminal determines whether or not the connection is made, based on the second code transmitted from the second terminal in response to the transmission request command and the first code created by the first terminal. This allows determination to be performed for connection based on the codes, only when the second terminal issues a request for the determination based on the codes.  
           [0041]    More preferably, the code is created based on data indicating date and time at which an instruction is given for creation of the code.  
           [0042]    Thus, the users of the first and second terminals simultaneously instruct the respective terminals to create codes. The terminals create codes, respectively, based on data of the instructed date and time according to a predetermined calculation method. The first terminal can determine whether or not the code calculated from the date/time data when it determines whether or not connection is to be made with the second terminal.  
           [0043]    According to a still further aspect of the present invention, a communication method is provided at a first terminal in a communication system effecting communication between the first terminal and a second terminal. The second terminal receives, from the first terminal, first information for the second terminal to identify the first terminal and second information for a user of the second terminal to identify the first terminal, determines a manner in which the user of the second terminal recognizes the second information, based on the second information, and displays the second information in the manner. The communication method includes the steps of preparing the first information and the second information, detecting an instruction for connection with the second terminal, and transmitting the first information and the second information to the second terminal in response to the instruction.  
           [0044]    According to the present aspect, when the user of the first terminal desires communication with the second terminal, the second information, for example, is changed to be transmitted to the second terminal. The second terminal that received the changed second information, e.g. changed “device name,” displays the second information for the user of the second terminal to more readily recognize the information, compared to the case with the second information unchanged. Thus, the “device name” of the first terminal that desires connection is presented to the user of the second terminal in preference to the “device name” of the first terminal that desires no connection. Even if there are a number of first terminals within the communication coverage of the second terminal, the user of the second terminal can readily select the first terminal that desires connection. As a result, a communication method can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0045]    According to another aspect of the present invention, a communication method is provided at a first terminal in a communication system effecting communication between the first terminal and a second terminal. The second terminal receives, from the first terminal, first information for the second terminal to identify the first terminal, second information for a user of the second terminal to identify the first terminal and third information, and displays the second information in a manner for the user of the second terminal to recognize the second information more readily when the third information is received, compared to when the third information is not received. The communication method includes the steps of preparing the first information and the second information, transmitting the first information and the second information to the second terminal, detecting an instruction for connection with the second terminal, and creating third information and transmitting the third information to the second terminal in response to the instruction.  
           [0046]    According to the present aspect, when the user of the first terminal desires communication with the second terminal, the third information is transmitted to the second terminal. The second terminal that received the third information displays the second information for the user of the second terminal to more readily recognize the information, compared to when the third information is not received. Thus, the “device name” of the first terminal that desires connection is presented to the user of the second terminal in preference to the “device name” of the first terminal that desires no connection. Even if there are a number of terminals within the communication coverage, the user of the second terminal can readily select the first terminal that desires connection. As a result, a communication method can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0047]    According to a further aspect of the present invention, a communication method is provided at a first terminal in a communication system effecting communication between the first terminal and a second terminal. The communication method includes the steps of preparing information for the second terminal to identify the first terminal, transmitting the information to the second terminal, and creating a first code indicating permission for connection with the second terminal. The second terminal receives the information from the first terminal, creates a second code indicating permission for connection with the first terminal, and transmits a connection request command and the second code to the first terminal based on the information. The communication method further includes the steps of receiving the connection request command and the second code from the second terminal, determining whether or not connection is to be made with the second terminal, based on the first code and the second code, and transmitting a connection response command to the second terminal, based on a determination result at the step of determining whether or not connection is to be made with the second terminal.  
           [0048]    According to the present aspect, the first terminal creates the first code when it permits connection with the second terminal. The second terminal creates the second code when it permits the connection with the first terminal. The second terminal transmits the connection request command and the second code to the first terminal based on information. Upon reception of the connection request command and the second code, the first terminal determines whether or not connection is to be made, based on the first and second codes, i.e., determines whether or not the codes have the same numeral. If it is determined that the connection is to be made, the connection response command is transmitted from the first terminal to the second terminal to connect a communication line. As a result, a communication method can be provided in which communication can only be made with the terminal of a desired communication party among a number of terminals that may be present within a communication coverage.  
           [0049]    According to a further aspect of the present invention, a communication method is provided at a second terminal in a communication system effecting communication between a first terminal and the second terminal. The first terminal stores first information for the second terminal to identify the first terminal and second information for a user of the second terminal to identify the first terminal, and transmits the first information and the second information to the second terminal when an instruction for connection with the second terminal is detected. The communication method includes the steps of receiving the first information and the second information from the first terminal, determining a manner in which a user of the second terminal recognizes the second information based on the second information, displaying the second information of the first terminal, and controlling the step of displaying the second information such that the second information is displayed in the determined manner.  
           [0050]    According to the present aspect, when the user of the first terminal desires communication with the second terminal, the second information, for example, is transmitted to the second terminal. The second terminal that received changed second information, e.g. changed “device name,” displays the second information for the user of the second terminal to more readily recognize the information, compared to the case with the second information unchanged. Thus, the “device name” of the first terminal that desires connection is presented to the user of the second terminal in preference to the “device name” of the first terminal that desires no connection. Even if there are a number of first terminals within the communication coverage of the second terminal, the user of the second terminal can readily select the first terminal that desires connection. As a result, a communication method can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0051]    According to a further aspect of the present invention, a communication method is provided at a second terminal in a communication system effecting communication between a first terminal and the second terminal. The first terminal stores first information for the second terminal to identify the first terminal and second information for a user of the second terminal to identify the first terminal, transmits the first information and the second information to the second terminal, and transmits third information to the second terminal in response to an instruction for connection with the second terminal. The communication method includes the steps of receiving the first information, the second information and the third information, from the first terminal, displaying the second information of the first terminal, and controlling the step of displaying the second information such that the second information is displayed in a manner for the user of the second terminal to recognize the second information more readily when the third information is received, compared to when the third information is not received.  
           [0052]    According to the present aspect, when the user of the first terminal desires communication with the second terminal, the third information is transmitted to the second terminal. The second terminal that received the third information displays the second information for the user of the second terminal to more readily recognize the information, compared to when the third information is not received. Thus, the “device name” of the first terminal that desires connection is presented to the user of the second terminal in preference to the “device name” of the first terminal that desires no connection. Even if there are a number of terminals within the communication coverage, the user of the second terminal can readily select the first terminal that desires connection. As a result, a communication method can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0053]    According to a further aspect of the present invention, a communication method is provided at a second terminal in a communication system effecting communication between a first terminal and the second terminal. The first terminal transmits information for the second terminal to identify the first terminal, to the second terminal, creates a first code indicating permission for connection with the second terminal, and determining whether or not connection is made with the second terminal, based on a second code received from the second terminal and the first code. The communication method includes the steps of receiving the information from the first terminal, creating the second code indicating permission for connection with the first terminal, transmitting a connection request command to the first terminal based on the information, and transmitting the second code to the first terminal based on the information.  
           [0054]    According to the present aspect, the first terminal creates the first code when it permits connection with the second terminal. The second terminal creates the second code when it permits the connection with the first terminal. The second terminal transmits the connection request command and the second code to the first terminal based on information. Upon reception of the connection request command and the second code, the first terminal determines whether or not connection is to be made, based on the first and second codes. If it is determined that the connection is to be made, the connection response command is transmitted from the first terminal to the second terminal, to connect a communication line. As a result, a communication system can be provided in which communication can only be made with the terminal of a desired communication party even if there are a number of terminals within a communication coverage.  
           [0055]    According to another aspect of the present invention, a recording medium records a program for communication using a computer, in a communication system effecting communication between the computer and a terminal. The terminal receives, from the computer, first information for the terminal to identify the computer and second information for a user of the terminal to identify the computer, determines a manner in which the user of the terminal recognizes the second information, based on the second information, and displays the second information in the manner. The program makes the computer execute a preparation procedure for preparing the first information and the second information, a detection procedure for detecting an instruction for connection with the terminal, and a transmission procedure for transmitting the first information and the second information to the terminal, in response to the instruction.  
           [0056]    According to the present aspect, when the user of the computer desires communication with the terminal, the second information, for example, is changed and transmitted to the terminal by a transmission procedure. The terminal that received changed second information, e.g. changed “device name” when the computer is mounted on a Bluetooth device, displays the second information for the user of the terminal to more readily recognize the information, compared to the case with the second information unchanged. Thus, the “device name” of a computer that desires connection is presented to the user of the second terminal in preference to the “device name” of a computer that desires no connection. Even if there are a number of computers within the communication coverage of the terminal, the user of the terminal can readily select the computer that desires connection. As a result, a program can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0057]    According to a further aspect of the present invention, a recording medium records a program for communication using a computer, in a communication system effecting communication between a computer and a terminal. The terminal receives, from the computer, first information for the terminal to identify the computer, second information for a user of the terminal to identify the computer and the third information, and displays the second information in a manner for the user of the terminal to recognize the second information more readily when the third information is received, compared to when the third information is not received. The program makes the computer execute a preparation procedure for preparing the first information and the second information, a transmission procedure for transmitting the first information and the second information to the terminal, a detection procedure for detecting an instruction for connection with the terminal, and an instruction transmission procedure for creating third information and transmitting the third information in response to the instruction.  
           [0058]    According to the present aspect, when the user of the computer desires communication with the terminal, the third information is transmitted to the terminal by the instruction transmission procedure. The terminal that received the third information displays the second information for the user of the terminal to more readily recognize the information, compared to when the third information is not received. Thus, the “device name” of a computer that desires connection is presented to the user of the terminal in preference to the “device name” of a computer that desires no connection. Even if there are a number of terminals within the communication coverage, the user of the terminal can readily select the computer that desires connection. As a result, a program can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0059]    According to a further aspect of the present invention, a recording medium records a program for communication using a computer, in a communication system effecting communication between the computer and a terminal. The program makes the computer execute a preparation procedure for preparing information for the terminal to identify the computer, a transmission procedure for transmitting the information to the terminal, and a creation procedure for creating a first code indicating permission for connection with the terminal. The terminal receives the information from the computer, creates a second code indicating permission for connection with the computer, and transmits a connection request command and the second code to the computer based on the information. The program further makes the computer execute a command reception procedure for receiving the connection request command and the second code from the terminal, a determination procedure for determining whether or not connection is to be made with the terminal based on the first code and the second code, and a response command transmission procedure for transmitting a connection response command to the terminal based on a determination result by the determination procedure.  
           [0060]    According to the present aspect, the computer creates the first code when it permits connection with the terminal. The terminal creates the second code when it permits the connection with the computer. The terminal transmits the connection request command and the second code to the computer based on information. Upon reception of the connection request command and the second code, the computer determines whether or not connection is to be made, based on the first and second codes, i.e., determines whether or not the codes have the same numeral. If it is determined that the connection is to be made, the connection response command is transmitted from the computer to the terminal, to connect a communication line. As a result, a program can be provided in which communication can only be made with the terminal of a desired communication party even if there are a number of terminals within a communication coverage.  
           [0061]    According to a further aspect of the present invention, a recording medium records a program for communication using a computer, in a communication system effecting communication between the computer and a terminal. The terminal stores first information for the computer to identify the terminal and second information for a user of the computer to identify the terminal, and transmits the first information and the second information to the computer when an instruction for connection with the computer is detected. The program makes the computer execute a reception procedure for receiving the first information and the second information from the terminal, a determination procedure for determining a manner in which a user of the computer recognizes the second information, based on the second information, a display procedure for displaying the second information of the terminal, and a control procedure for controlling the display procedure such that the second information is displayed in the determined manner.  
           [0062]    According to the present aspect, when the user of the terminal desires communication with the computer, the second information, for example, is transmitted to the computer. The computer that received changed second information, e.g. changed “device name” when the computer is mounted on a Bluetooth device, is controlled by the control procedure such that the user of the computer can more readily recognize the information, compared to the case with the second information unchanged, to display the second information at the display procedure. Thus, the “device name” of a terminal that desires connection is presented to the user of the computer in preference to the “device name” of a terminal that desires no connection. Even if there are a number of terminals within the communication coverage of the computer, the user of the computer can readily select the computer that desires connection. As a result, a program can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0063]    According to a further aspect of the present invention, a recording medium records a program for communication using a computer, in a communication system effecting communication between the computer and a terminal. The terminal stores first information for the computer to identify the terminal and second information for a user of the computer to identify the terminal, transmits the first information and the second information to the computer, and transmits third information to the computer in response to an instruction for connection with the computer. The program makes the computer execute a reception procedure for receiving the first information, the second information and the third information from the terminal, a display procedure for displaying the second information of the terminal, and a control procedure for controlling the display procedure such that the second information is displayed in a manner for the user of the computer to recognize the second information more readily when the third information is received, compared to when the third information is not received.  
           [0064]    According to the present aspect, when the user of the terminal desires communication with the computer, the third information is transmitted to the computer. The computer that received the third information is controlled by the control procedure such that the second information is displayed at the display procedure, for the user of the computer to more readily recognize the second information, compared to when the third information is not received. Thus, the “device name” of a terminal that desires connection is presented to the user of the computer in preference to the “device name” of a terminal that desires no connection. Even if there are a number of terminals within the communication coverage, the user of the computer can readily select the terminal that desires connection. As a result, a program can be provided in which the user can readily select the terminal of a desired communication party from a number of terminals within a communication coverage.  
           [0065]    According to a further aspect of the present invention, a recording medium records a program for communication using a computer, in a communication system effecting communication between the computer and a terminal. The terminal transmits information for the computer to identify the terminal to the computer, creates a first code indicating permission for connection with the computer, and determines whether or not connection is to be made with the computer, based on a second code received from the computer and the first code. The program makes the computer execute a reception procedure for receiving the information from the terminal, a creation procedure for creating a second code indicating permission for connection with the terminal, a command transmission procedure for transmitting a connection request command to the terminal based on the information, and a code transmission procedure for transmitting the second code to the terminal based on the information.  
           [0066]    According to the present aspect, the terminal creates the first code when it permits connection with the computer. The computer creates the second code when it permits the connection with the terminal. The computer transmits the connection request command and the second code to the terminal based on information. Upon reception of the connection request command and the second code, the terminal determines whether or not connection is to be made, based on the first and second codes. If it is determined that the connection is to be made, the connection response command is transmitted from the terminal to the computer, to connect a communication line. As a result, a program can be provided in which communication can only be made with the terminal of a desired communication party even if there are a number of terminals within a communication coverage.  
           [0067]    The foregoing and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings. 
       
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0068]    [0068]FIG. 1 is an outline view of a mobile phone according to an embodiment of the present invention;  
         [0069]    [0069]FIG. 2 is a control block diagram of a mobile phone according to an embodiment of the present invention;  
         [0070]    [0070]FIG. 3 is a flow chart illustrating a procedure of control in a process on the searching side executed in a mobile phone according to the first embodiment of the present invention;  
         [0071]    [0071]FIG. 4 is a flow chart illustrating a procedure of control in a process on the searched side executed in a mobile phone according to the first embodiment of the present invention;  
         [0072]    [0072]FIG. 5 is a state transition view of a communication system according to the first embodiment of the present invention;  
         [0073]    FIGS.  6  to  14  show examples of a screen display of the mobile phone according to the first embodiment of the present invention;  
         [0074]    [0074]FIGS. 15 and 16 are flow charts illustrating a procedure of control in a process on the searching side executed in a mobile phone according to the second embodiment of the present invention;  
         [0075]    [0075]FIG. 17 is a flow chart illustrating a procedure of control in a process on the searched side executed in the mobile phone according to the second embodiment of the present invention;  
         [0076]    [0076]FIG. 18 is a stage transition view of a communication system according to the second embodiment of the present invention;  
         [0077]    [0077]FIG. 19 is an example of a screen display of the mobile phone according to the second embodiment of the present invention;  
         [0078]    [0078]FIGS. 20 and 21 are flow charts illustrating a procedure of control in a process on the searching side executed in a mobile phone according to the third embodiment of the present invention;  
         [0079]    [0079]FIG. 22 is a flow chart illustrating a procedure of control in a process on the searched side executed in the mobile phone according to the third embodiment of the present invention;  
         [0080]    [0080]FIG. 23 is a state transition view of a communication system according to the third embodiment of the present invention;  
         [0081]    FIGS.  24  to  34  show examples of a screen display of the mobile phone according to the third embodiment of the present invention;  
         [0082]    [0082]FIGS. 35 and 36 are flow charts illustrating the procedure of control in a process on the searching side executed by a mobile phone according to the fourth embodiment of the present invention;  
         [0083]    [0083]FIGS. 37 and 38 are flow charts illustrating the procedure of control in a process on the searched side executed in the mobile phone according to the fourth embodiment of the present invention;  
         [0084]    [0084]FIG. 39 is a state transition view of a communication system according to the fourth embodiment of the present invention; and  
         [0085]    FIGS.  40  to  43  show examples of a screen display of the mobile phone according to the fourth embodiment of the present invention. 
     
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS  
       [0086]    Embodiments of the present invention will be described below with reference to the drawings. In the following description and the drawings, the same parts are denoted by the same reference characters. The name and function thereof are also the same. Therefore, detailed description thereof will not be repeated.  
       First Embodiment  
       [0087]    Referring to FIG. 1, a mobile phone  100  according to the present embodiment includes an input/output unit  150  including an operation portion  152  from which the user enters information, a display portion  154  displaying the information, a sound input portion  156  from which sound is input, and a sound output portion  158  producing sound, and includes a short-range wireless device  140 . For display unit  154 , e.g., an LCD (Liquid Crystal Display) is used. For short-range wireless device  140 , e.g., a Bluetooth device is used. The short-range wireless communication device is, however, not limited thereto. Moreover, the short-range wireless communication device may be mounted to other apparatuses, not limited to the mobile phone.  
         [0088]    Referring to FIG. 2, a control block of mobile phone  100  shown in FIG. 1 is described. As shown in FIG. 2, mobile phone  100  includes a control portion  110  controlling the entire mobile phone  100 , a communication portion  120  for communicating with other telephones, a storage portion  130  storing a program executed in control portion  110 , intermediate data of the program, and information received via communication portion  120  and short-range wireless device  140 , short-range wireless device  140  performing wireless communication with mobile phone  100  having the same type of wireless device mounted thereto, and input/output unit  150 .  
         [0089]    Operation portion  152  is used by the user of mobile phone  100  to enter, by ten keys or the like, a telephone number of another telephone, a display request for an electronic mail received by communication portion  120 , and a display request for personal information of the user of another mobile phone  100  received by short-range wireless device  140 .  
         [0090]    Display portion  154  displays the number of the other party that was input by operation portion  152 , a received electronic mail, received personal information of others and the like. Sound input portion  156  includes a microphone for entering sound. Sound output portion  158  includes a speaker for producing sound.  
         [0091]    In mobile phone  100  according to the present embodiment, a method of communicating by the user is implemented by a hardware of mobile phone  100  and a software executed by control portion  110 . Such a software is generally stored into storage portion  130  to be executed by control portion  110 . The hardware itself of mobile phone  100  shown in FIGS. 1 and 2 is a common one. Therefore, the most essential part of the present invention is the software recorded in storage portion  130 . It is noted that the operation of mobile phone  100  itself shown in FIGS. 1 and 2 is well-known, and thus the detailed description thereof will not be repeated here.  
         [0092]    Storage portion  130  of mobile phone  100  stores personal information of the user of mobile phone  100 . The personal information includes name, address, telephone number and electronic-mail address. The personal information includes the personal information of the user of each mobile phone  100 , and the personal information of the user of another mobile phone  100  received via short-range wireless device  140 .  
         [0093]    In the following description, a “card exchange mode” is discussed in which personal information of the users of respective mobile phones  100  are exchanged with each other using short-range wireless communication device  140 . The present invention is, however, not limited to this mode.  
         [0094]    Referring to FIG. 3, a program executed in mobile phone  100  according to the present embodiment is related to a process on the searching side (hereinafter referred to as “searching-side process”), having a control structure as described below.  
         [0095]    At step (hereinafter abbreviated as S)  100 , control portion  110  of mobile phone  100  on the searching side detects a connection request. The process is performed based on information entered from operation portion  152  by the user of mobile phone  100  on the searching side. At S 102 , control portion  110  issues a search request. In this process, control portion  110  searches for mobile phone  100  on the searched side that is capable of wireless communication with mobile phone  100  on the searching side via short-distance wireless device  140 . Specifically, control portion  110  instructs short-distance wireless device  140  to transmit a search request command.  
         [0096]    At S 104 , control portion  110  determines whether or not a search response is received from mobile phone  100  on the searched side. When the search response is received from mobile phone  100  on the searched side (YES at S 104 ), the process goes on to S 106 . If not (NO at S 104 ), the process goes on to S 108 . It is noted that the search response received in the process at S 104  includes a BD address.  
         [0097]    At S 106 , control unit  110  stores the received BD address into storage portion  130 . Here, the number of mobile phones from which the search response is received is assumed as M.  
         [0098]    At S 108 , control portion  110  determines whether or not a predetermined time has elapsed since the search request process was performed. If the predetermined time has elapsed (YES at S 108 ), the process goes on to S 110 . If not (NO at S 108 ), the process goes back to S 104 , and further waits for reception of the search response.  
         [0099]    At S 110 , control unit  110  initializes a variable N (N=1). At S 112 , control unit  110  issues a NameRequest command to a device identified by the Nth BD address. At S 114 , control portion  110  determines whether or not the NameRequest response is received from mobile phone  100  on the searched side. It is noted that the NameRequest response includes a device name. If the NameRequest response is received (YES at S 114 ), a process goes on to S 116 . It not (NO at S 114 ), the process goes on to S 118 .  
         [0100]    At S 116 , control portion  110  stores a device name included in the received NameRequest response into storage portion  130 . Here, the device name is stored by associating it with the BD address.  
         [0101]    At S 118 , control unit  110  determines whether or not a predetermined time has elapsed since the NameRequest command was issued. If the predetermined time has elapsed (YES at S 118 ), the process goes on to S 120 . If not (NO at S 118 ), the process goes back to S 114 , to further wait for reception of the NameRequest response.  
         [0102]    At S 120 , control portion  110  adds 1 to variable N. At S 122 , control portion  110  determines whether or not variable N is greater than M. If variable N is greater than M (YES at S 112 ), the process goes on to S 124 . If not (NO at S 122 ), the process goes back to S 112 , to perform a process for a device identified by the next BD address.  
         [0103]    At S 124 , control portion  110  reads out a device name stored in storage portion  130 . At S 126 , control portion  110  searches for a special character included in the device name. An example of the special character to be searched for is “!” here. At S 128 , control portion  110  causes display portion  154  to display the device name including such a special character with high priority.  
         [0104]    At S 130 , control portion  110  performs a device selection process. The process is performed based on information entered from operation portion  152  by the user of mobile phone  100  on the searching side. At S 132 , control portion  110  issues a connection request to mobile phone  100  on the searched side to which the selected device is mounted. At S 134 , as connection is made with mobile phone  100  including the selected device, personal information are exchanged. At S 136 , a disconnection process is performed for cutting the communication, when exchange of personal information is terminated.  
         [0105]    Referring to FIG. 4, a program executed in mobile phone  100  according to the present embodiment is related to a searched-side process, having a control structure as described below.  
         [0106]    At S 150 , control portion  110  of mobile phone  100  on the searched side determines whether or not the connection request is detected. The determination is performed based on information entered from operation portion  152  by the user of mobile phone  100  on the searched side. The user of mobile phone  100  issues the connection request when he/she wishes to communicate with mobile phone  100  on the searching side. If the connection request is detected (YES at S 150 ), the process goes on to S 152 . If not (NO at S 150 ), the process goes on to S 154 .  
         [0107]    At S 152 , control portion  110  rewrites the device name pre-stored in storage portion  130 . Here, a special character (e.g.“!”) is added at the head and end of the pre-stored device name, to rewrite the device name.  
         [0108]    At S 154 , control portion  110  determines whether or not a search request is received from another mobile phone  100 . If the search request is received (YES at S 154 ), the process goes on to S 156 . If not (NO at S 154 ), the process goes on to S 158 .  
         [0109]    At S 156 , control portion  110  transmits a BD address to another mobile phone  100  that transmitted the search request.  
         [0110]    At S 158 , control portion  110  determines whether or not a predetermined time has elapsed since the connection request was issued. If the predetermined time has elapsed (YES at S 158 ), the process on the searched side (hereinafter referred to as “searched-side process”) is terminated. If not (NO at S 158 ), the process goes back to S 154 , to wait for reception of the search request.  
         [0111]    At S 160 , control portion  110  determines whether or not a NameRequest command is received from another mobile phone  100 . If the NameRequest command is received (YES at S 160 ), the process goes on to S 162 . If not (NO at S 160 ), the process goes on to S 164 .  
         [0112]    At S 162 , control portion  110  transmits a device name to mobile phone  100  on the searching side that transmitted the NameRequest command. Here, a pre-stored device name or a rewritten device name is transmitted.  
         [0113]    At S 164 , control portion  110  determines whether or not a predetermined time has elapsed since the BD address was transmitted. If the predetermined time has elapsed (YES at S 164 ), the searched-side process is terminated. If not (NO at S 164 ), the process goes back to S 160 , to wait for reception of the NameRequest command.  
         [0114]    At S 166 , control portion  110  determines whether or not a connection request is received from mobile phone  100  on the searching side. If the connection request is received (YES at S 166 ), the process goes on to S 168 . If not (NO at S 166 ), the searched-side process is terminated.  
         [0115]    At S 168 , control portion  110  performs a connection response process. In this process, a connection response is transmitted to mobile phone  100  on the searching side. At S 170 , control portion  110  performs exchange of personal information via wireless communication device  140 . In the process at S 170 , a screen may be displayed for the user of mobile phone  100  on the searched side to confirm whether or not the personal information are to be exchanged. At S 172 , control portion  110  performs a disconnection process for cutting the communication via wireless communication device  140 .  
         [0116]    The operation of mobile phone  100  according to the present embodiment based on the structure and flow charts described above will now be described with reference to FIG. 5.  
         [0117]    If the connection request is detected at mobile phone  100  on the searching side (S 100 ), a search request command is transmitted to mobile phone  100  on the searched side. Here, a screen shown in FIG. 6 is displayed on display portion  154  of mobile phone  100  on the searching side, for the user of mobile phone  100  on the searching side to select “send.” Moreover, display portion  154  of mobile phone  100  on the searched side displays a screen shown in FIG. 11. The user of mobile phone  100  on the searched side selects “receive.” 
         [0118]    At mobile phone  100  on the searched side, the device name is rewritten (S 152 ). Here, “!” is added to the head and end of the device name pre-stored in storage portion  130 . Thereafter, display portion  154  of mobile phone  100  on the searching side displays a screen shown in FIG. 7, while display portion  154  of mobile phone  100  on the searched side displays a screen shown in FIG. 12. If mobile phone  100  on the searched side receives a search request from mobile phone  100  on the searching side (YES at S 154 ), a BD address identifying a device of mobile phone  100  on the searched side is transmitted to mobile phone  100  on the searching side (S 156 ).  
         [0119]    If a search response including a BD address is received (YES at S 104 ) before a predetermined time has elapsed (NO at S 108 ), mobile phone  100  on the searching side stores the BD address into storage portion  130  (S 106 ). Mobile phone  100  on the searching side issues a NameRequest command corresponding to the device identified by the first BD address (S 112 ). Here, a mobile phone of a communication party is designated by the BD address received previously. Upon reception of the NameRequest command (YES at S 160 ), mobile phone  100  on the searched side transmits a device name to mobile phone  100  on the searching side (S 162 ). Here, the device name to be transmitted is a pre-stored device name or a device name obtained by rewriting the pre-stored device name. If the device names of the number corresponding to the number of the received search responses are received (YES at S 122 ), the device name stored in storage portion  130  is read out (S 124 ), and a special character (“!” in this example) included in the device name is searched for (S 126 ). The device name including the special character is displayed with higher priority on display portion  154  (S 128 ). Here, as shown in FIG. 8, the device name with an addition of “!” is displayed at the top on display portion  154  of mobile phone  100  on the searching side.  
         [0120]    As shown in FIG. 8, the user of mobile phone  100  on the searching side selects a mobile phone to be connected, based on the contents displayed on display portion  154  of mobile phone  100  on the searching side (S 130 ). A connection request is transmitted to the selected device (S 132 ), to commence exchange of personal information. In the exchange of personal information (S 124 ), display portion  154  of mobile phone  100  on the searched side changes its status from a screen indicating a connecting state, as shown in FIG. 12, to a confirmation screen as shown in FIG. 13. After confirmation by the user of mobile phone  100  on the searched side, the personal information are exchanged.  
         [0121]    Until mobile phones  100  are connected with each other in the exchange of personal information, display portion  154  of mobile phone  100  on the searching side displays a screen shown in FIG. 9. Moreover, while the personal information are exchanged, display portion  154  of mobile phone  100  on the searching side displays a screen shown in FIG. 10, whereas display portion  154  of mobile phone  100  on the searched side displays a screen shown in FIG. 14. After the personal information are exchanged, mobile phones  100  are disconnected (S 136 ).  
         [0122]    As described above, according to the mobile phone in the present embodiment, a short-range wireless device such as Bluetooth is mounted, and the device name of the short-range wireless device is pre-registered. The registered device name can be identified by the user of the mobile phone. If the user of the mobile phone wishes to exchange business cards with another user, the control portion of the mobile phone changes a part of the pre-registered device name. The changed device name is transmitted in response to the NameRequest command. The mobile phone that received the changed device name displays the changed device name on the display portion for the user of the mobile phone to more readily recognize the information. As a result, even if a number of mobile phones are present within a communication coverage of a device to which a short-range wireless communication device is mounted, a mobile phone that desires connection can readily be selected. As a result, the user can readily select a mobile phone of a desired communication party from a number of mobile phones.  
         [0123]    It is noted that the display of device names including a changed device name is not limited to the one in which the display order is changed such that the changed device name comes at the top. The changed device name may, for example, be displayed by highlighting, changing the display color, or generating an alarm.  
       Second Embodiment  
       [0124]    A mobile phone according to the second embodiment of the present invention is different from the mobile phone according to the first embodiment described above that transmits the changed device name. The mobile phone according to the present embodiment transmits a special common character such as a numeral that is predetermined between the users who wish to exchange business cards, and changes the display order of the device names to be displayed on the display portion based on the numeral.  
         [0125]    Note that, in the description below, the hardware configuration of the mobile phone according to the present embodiment is the same as the hardware configuration of the mobile phone according to the above-described first embodiment. Therefore, detailed description thereof will not be repeated here.  
         [0126]    Referring to FIGS. 15 and 16, a program executed in mobile phone  100  according to the present embodiment is related to a searching-side process and has a control structure as described below. It is noted that, in the processes shown in FIGS. 15 and 16, the same processes as those in FIG. 3 are denoted by the same step numbers. The processes performed thereat are also the same. Therefore, detailed description thereof will not be repeated here.  
         [0127]    At S 200 , control portion  110  of mobile phone  100  performs a connection request process. Here, a common character is input that was predetermined by the user of mobile phone  100  on the searching side and the user of mobile phone  100  on the searched side. This, for example, may be a numeral such as “2.” 
         [0128]    After the process at S 200 , the processes at S 102  to S 122  described earlier in the first embodiment are performed.  
         [0129]    After the process at S 122 , at S 202 , control portion  110  determines whether or not the common character is received. If the common character is received (YES at S 202 ), the process goes on to S 204 . If not (NO at S 202 ), the process goes on to S 206 .  
         [0130]    At S 204 , control portion  110  stores the common character into storage portion  130  by associating the character with the device name of the transmission source.  
         [0131]    At S 206 , control unit  110  determines whether or not a predetermined time has elapsed since the NameRequest command was issued. If the predetermined time has elapsed (YES at S 206 ), the process goes on to S 208  in FIG. 16. If not (NO at S 206 ), the process goes back to S 202 , to wait for reception of the common character.  
         [0132]    Referring to FIG. 16, at S 208 , control portion  110  searches for the common character stored in storage portion  130  that is associated with the device name.  
         [0133]    At S 210 , control portion  110  makes display portion  154  to preferentially display the device name for which the same common character as that input into mobile phone  100  on the searching side is stored. Here, for instance, when the user of mobile phone  100  on the searching side enters “2” while the user of mobile phone  100  on the searched side also enters “2,” to issue connection requests to each other, display portion  154  of mobile phone  100  on the searching side displays the device name of mobile phone  100  on the searched side at the top.  
         [0134]    Referring to FIG. 17, the program executed in mobile phone  100  according to the present embodiment is related to a searched-side process and has a control structure as described below. It is noted that, in the following processes, the same ones as those in FIG. 4 according to the first embodiment are denoted by the same step numbers. The processes performed thereat are also the same. Therefore, detailed description thereof will not be repeated here.  
         [0135]    At S 250 , control portion  110  detects an input, of a common character. The common character is the same as the common character entered by the user of mobile phone  100  on the searching side at S 200  in FIG. 15. Subsequently, the processes at S 154  to S 162  are performed.  
         [0136]    At S 252 , control portion  110  determines whether or not the common character is input. If the common character is input (YES at S 252 ), the process goes on to S 254 . If not (NO at S 252 ), the process goes on to S 166 .  
         [0137]    At S 254 , control portion  100  transmits the common character to mobile phone  100  on the searching side. Thereafter, the processes at S 166  to S 172  are performed to terminate the searched-side process.  
         [0138]    The operation of mobile phone  100  according to the present embodiment based on the structure and flow charts described above will now be described with reference to FIG. 18.  
         [0139]    The respective users of mobile phone  100  on the searching side and mobile phone  100  on the searched side press the same numeric key to issue connection requests. Mobile phone  100  on the searching side issues a search request to mobile phone  100  on the searched side (S 102 ). Mobile phone  100  on the searched side transmits a search response including a BD address to mobile phone  100  on the searching side (S 158 ). Mobile phone  100  on the searching side that received the BD address transmits a NameRequest to mobile phone  100  on the searched side (S 112 ). Mobile phone  100  on the searched side that received the NameRequest transmits a NameRequest response including a device name to mobile phone  100  on the searching side.  
         [0140]    If the common character has been entered by the user (YES at S 252 ), mobile phone  100  on the searched side transmits the common character to mobile phone  100  on the searching side (S 254 ). If mobile phone  100  on the searching side receives the common character (YES at S 202 ), the common character is stored, associated with the device name of the transmission source (S 204 ). The stored common character is searched for based on the device name (S 208 ), and the device name for which the same common character as the input common character (S 200 ) is stored is displayed with higher priority on display portion  154  (S 210 ). Here, display portion  154  of mobile phone  100  on the searching side shows a screen image as shown in FIG. 19. This allows the user of mobile phone  100  on the searching side to readily identify mobile phone  100  on the searched side.  
         [0141]    As described above, according to the mobile phone in the present embodiment, the display on the mobile phone on the searching side that shows a mobile phone of a desired communication party can be controlled based on the common character that is predetermined by the user of the mobile phone on the searching side and the user of the mobile phone on the searched side.  
         [0142]    It is noted that, though the device name and common character are separately transmitted in the description above, it is not limited thereto. For instance, the device name may be transmitted including the common character.  
       Third Embodiment  
       [0143]    Mobile phone  100  according to the present embodiment is not to control display on the mobile phone on the searching side, but to determine whether or not a connection is to be made, using an authentication code. It is noted that the hardware configuration of the mobile phone according to the present embodiment is the same as that of the mobile phone as described earlier in the first embodiment. Therefore, detailed description thereof will not be repeated here.  
         [0144]    Referring to FIGS. 20 and 21, a program executed in mobile phone  100  according to the present embodiment is related to a searching-side process, and has a control structure as described below. It is noted that, in the processes shown in FIGS. 20 and 21, the same processes as those in FIG. 3 according to the first embodiment are denoted by the same step numbers. The respective processes performed thereat are also the same. Therefore, detailed description thereof will not be repeated here.  
         [0145]    At S 300 , control portion  110  performs a connection request process by entering an authentication code. This process is performed by the user of mobile phone  100  on the searching side entering information indicating a connection request and the authentication code from operation portion  152 .  
         [0146]    Subsequently, the processes at S 102  to S 124  are performed. Referring to FIG. 21, at S 302 , control portion  110  initializes a variable N (N=1). At S 304 , control portion  110  issues a connection request with an authentication code attached, to a device identified by the Nth BD address.  
         [0147]    At S 306 , control portion  110  determines whether or not a connection response is received from mobile phone  100  on the searched side. If the connection response is received (YES at S 306 ), the process goes on to S 308 . If not (NO at S 306 ), the process goes on to S 310 .  
         [0148]    At S 308 , control portion  110  stores the device name of a device that transmitted the connection response into storage portion  130 .  
         [0149]    At S 310 , control portion  110  determines whether or not a predetermined time has elapsed since the connection request with authentication code was issued. If the predetermined time has elapsed YES at S 310 ), the process goes on to S 312 . If not (NO at S 310 ), the process goes back to S 306 , to further wait for reception of a connection response.  
         [0150]    At S 312 , control portion  110  adds  1  to variable N. At S 314 , control portion  110  determines whether or not variable N is greater than M. If variable N is greater than M (YES at S 314 ), the process goes on to S 316 . If not (NO at S 312 ), the process goes back to S 304 , to perform a process for a device identified by the next BD address.  
         [0151]    At S 316 , control portion  110  reads out, from storage portion  130 , the device name of a device that transmitted the connection response. At S 318 , control portion  110  displays a list of devices that transmitted the connection response on display portion  154 .  
         [0152]    At S 130 , the user of mobile phone  100  on the searching side selects a device, to be connected to the selected device for exchanging personal information.  
         [0153]    If the list of devices that transmitted the connection response shows only one mobile phone, the process at S 130  subsequent to S 308  may be omitted.  
         [0154]    Referring to FIG. 22, a program executed in mobile phone  100  according to the present embodiment is related to a searched-side process, and has a control structure as described below. It is noted that, in the processes shown in FIG. 22, the same ones as those in FIG. 4 according to the first embodiment described earlier are denoted by the same step numbers. The respective processes performed thereat are also the same. Therefore, detailed description thereof will not be repeated here.  
         [0155]    At S 350 , control portion  110  detects an input of an authentication code to perform a connection request process. The authentication code input herein is the same as the authentication code used at S 300  in FIG. 20. The code is predetermined by the user of mobile phone  100  on the searching side and the user of mobile phone  100  on the searched side. After the process, the processes at S 154  to S 164  are performed.  
         [0156]    At S 352 , control portion  110  determines whether or not the connection request with an authentication code is received. If the connection request with authentication code is received from mobile phone  100  on the searching side (YES at S 352 ), the process goes on to S 356 . If not (NO at S 352 ), the process goes on to S 354 . At S 354 , control portion  110  determines whether or not a predetermined time has elapsed since the device name was transmitted. If the predetermined time has elapsed (YES at S 354 ), the searched-side process is terminated. If not (NO at S 354 ), the process goes back to S 352 , to wait for reception of the connection request with an authentication code attached.  
         [0157]    At S 356 , control portion  110  determines whether or not the authentication code entered at S 350  matches with the authentication code received at S 352 . If the authentication codes match (YES at S 356 ), the process goes on to S 168 . If not (NO at S 356 ), the process goes on to S 358 . At S 358 , control portion  110  performs a process of rejecting connection. It is noted that, if the authentication codes match (YES at S 356 ), the processes at S 168  to S 172  described in the first embodiment are performed.  
         [0158]    The operation of mobile phone  100  according to the present embodiment based on the structure and flow charts described above will now be described with reference to FIG. 23.  
         [0159]    The authentication code is set by the user of mobile phone  100  on the searching side and the user of mobile phone  100  on the searched side. A connection request and an authentication code are input into mobile phone  100  on the searching side (S 300 ), while a connection request and an authentication code are input into mobile phone  100  on the searched side (S 350 ). The screen image displayed on screen portion  154  of mobile phone  100  on the searching side is shown in FIG. 24, whereas that displayed on display portion  154  of mobile phone  100  on the searched side is shown in FIG. 30.  
         [0160]    [0160]FIG. 25 shows a screen requesting for an authentication code displayed on display unit  154  of mobile phone  100  on the searching side. FIG. 31 shows a screen requesting for an authentication code, displayed on display unit  154  of mobile phone  100  on the searched side. In the search request and search response, and in the NameRequest command transmission and the NameRequest response, display portion  154  of mobile phone  100  on the searching side displays a screen image shown in FIG. 26, and display portion  154  of mobile phone  100  on the searched side displays a screen image shown in FIG. 32.  
         [0161]    The connection request with authentication code is transmitted from mobile phone  100  on the searching side to mobile phone  100  on the searched side (S 304 ). At mobile phone  100  on the searched side, it is determined whether or not the pre-input authentication code matches with the received authentication code (S 356 ). If the input authentication code matches with the received authentication code (YES at S 356 ), a connection response is transmitted from mobile phone  100  on the searched side to mobile phone  100  on the searching side (S 168 ).  
         [0162]    A list of devices that transmitted the connection response is displayed on display portion  154  of mobile phone  100  on the searching side (S 318 ), as shown in FIG. 27. The user of mobile phone  100  on the searching side selects a device (S 130 ). The process of connecting to the selected device is performed (S 132 ). Here, display portion  154  of mobile phone  100  on the searching side displays a screen image shown in FIG. 28. Display portion  154  of mobile phone  100  on the searched side that received a request for exchanging personal information from mobile phone  100  on the searching side displays a screen image shown in FIG. 33.  
         [0163]    When personal information are exchanged (S 134 , S 170 ), display portion  154  of mobile phone  100  on the searching side displays a screen shown in FIG. 29, while display portion  154  of mobile phone  100  on the searched side displays a screen shown in FIG. 34.  
         [0164]    As described above, the mobile phone according to the present embodiment can select one mobile phone from a plurality of mobile phones present within a communication coverage, using an authentication code predetermined by the user of the mobile phone on the searching side and the user of the mobile phone on the searched side. Personal information can be exchanged with the selected mobile phones.  
       Fourth Embodiment  
       [0165]    According to the present embodiment, a plurality of mobile phones are grouped as one category, and personal information are exchanged between a plurality of mobile phones in different categories. It is noted that the hardware of the mobile phone according to the present embodiment is the same as that of mobile phone  100  in the first embodiment described earlier. Therefore, detailed description thereof will not be repeated here.  
         [0166]    Referring to FIGS. 35 and 36, a program executed in mobile phone  100  according to the present embodiment is related to a searching-side process, and has a control structure as follows. It is noted that, in the processes shown in FIGS. 35 and 36, the same ones as those in FIGS. 20 and 21 in the third embodiment are denoted by the same step numbers. The respective processes performed thereat are also the same. Therefore, detailed description thereof will not be repeated here.  
         [0167]    At S 300 , control portion  110  of mobile phone  100  performs a connection request process. The connection request process is performed by the users of mobile phones  100  that belong to the same category entering the same authentication code. For instance, assuming that business cards are exchanged between the users who belong to two different companies. Here, the users who belong to the same company do not need to exchange business cards. The users who belong to different companies, however, need to exchange cards. The process for the mobile phone according to the present embodiment is applied to such a case. The users who belong to the same company enter the same authentication code.  
         [0168]    At S 400 , control portion  110  creates the first authentication code based on the current date and time. If, for example, the current date/time is Jul. 3, 2001, 3:15 p.m., “200107031515” is created as the first authentication code. At S 402 , control portion  110  creates the second authentication code based on the input authentication code. Subsequently, the processes at S 102  to S 124  are performed.  
         [0169]    Referring to FIG. 36, at S 302 , control portion  110  initializes a variable N (N=1). At S 404 , control portion  110  performs a connection request process with the first and second authentication code attached, to a device identified by the Nth BD address. Thereafter, the processes at S 306  to S 318  and at S 130  to S 316  are performed. After the disconnection process at S 316 , at S 406 , control portion  110  determines whether or not there still is another party to be connected. If there is another party to be connected (YES at S 406 ), the process goes back to S 318 , to further exchange personal information with the next device. If not (NO at S 406 ), the searching-side process is terminated.  
         [0170]    Referring to FIGS. 37 and 38, mobile phone  100  according to the present embodiment is related to a searched-side process and has a control structure as follows. It is noted that, in the processes shown in FIGS. 37 and 38, the same ones as those shown in FIG. 22 are denoted by the same step numbers. The respective processes performed thereat are also the same. Therefore, detailed description thereof will not be repeated here.  
         [0171]    At S 350 , control portion  110  performs a connection request process based on an authentication code input into mobile phone  100 . The authentication code input at S 350  is the same as the authentication code input at S 300  in FIG. 35. Moreover, the processes at S 300  and at S 350  are performed at the same time. For instance, the user of mobile phone  100  on the searching side and the user of mobile phone  100  on the searched side enter authentication codes in one room according to a signal. If it is assumed that a plurality of users between two companies exchange business cards as described earlier, the users who belong to the same company enter the same authentication code.  
         [0172]    At S 450 , control portion  110  creates the first authentication code based on the current date and time. The process at S 450  corresponds to the process at S 400  in FIG. 35.  
         [0173]    At S 452 , control portion  110  creates the second authentication code based on the input authentication code. The process at S 452  corresponds to the process at S 402  in FIG. 35. Subsequently, the processes at S 154  to S 162  are performed.  
         [0174]    At S 454 , control portion  110  determines whether or not a connection request with an authentication code is received. The authentication code to be received here includes the first authentication code and the second authentication code. If the connection request with authentication code is received (S at S 454 ), the process goes on to S 458  in FIG. 38. If not (NO at S 454 ), the process goes on to S 456 .  
         [0175]    At S 456 , control portion  110  determines whether or not a predetermined time has elapsed since the transmission of the device name at S 162 . If the predetermined time has elapsed (YES at S 456 ), the searched-side process is terminated. If not (NO at S 456 ), the process goes back to S 454 , to wait for reception of the connection request with authentication code.  
         [0176]    Referring to FIG. 38, at S 458 , control portion  110  determines whether or not the input first authentication code matches with the received first authentication code. Here, the first authentication code is determined as matched if it is within a predetermined range. For instance, if the first authentication code is “200107031515” as described earlier, the authentication code is determined as matched even if the first authentication code is actually slightly different such as “200107031514” or “200107031516.” This is because the time differences for the entering process arise due to individual differences, even if the users simultaneously press the connection request. If the first authentication codes match (YES at S 458 ), the process goes on to S 460 . If not (NO at S 458 ), the process goes on to S 358 .  
         [0177]    At S 460 , control portion  110  determines whether or not the input second authentication code matches with the received second authentication code. If the second authentication codes match with each other (YES at S 460 ), the process goes on to S 358 . If not (NO at S 460 ), the process goes on to S 168 .  
         [0178]    At S 168 , control portion  110  performs a connection response to mobile phone  100  on the searching side. Thus, in the present embodiment, the connection response is transmitted under the condition that the first authentication codes match with each other and that the second authentication codes do not match with each other. This is based on that, when a plurality of persons in two different companies exchange business cards, persons in the same company do not need to exchange the cards. The operation of mobile phone  100  according to the present embodiment based on the structure and flow charts described above will now be described with reference to FIG. 39.  
         [0179]    Assuming that mobile phone  100  on the searching side exchanges personal information with two mobile phones  100  on a searched side of the users who belong to a company different from the user of mobile phone  100  on the searching side.  
         [0180]    Each display portion  154  of mobile phone  100  on the searching side and mobile phone  100  on the searched side displays a screen image shown in FIG. 40. When a request is issued for exchange of personal information, a screen image requesting for an input of a group number is displayed, as shown in FIG. 41. A plurality of users who wish to exchange personal information simultaneously enter an authentication code predetermined for each group into mobile phone  100 , according to the screen image shown in FIG. 41 (S 300 , S 350 ).  
         [0181]    The first authentication codes are created respectively based on the input date and time (S 400 , S 450 ), and the second authentication codes are created based on the input authentication code (S 402 , S 452 ). Thereafter, the searching-side process and the NameRequest process are performed. A connection response process is performed based on the first and second authentication codes. Here, mobile phone  100  on the searched side performs connection response only when the first authentication codes match with each other and the second authentication codes do not match with each other (YES at S 458 , NO at S 460 , S 168 ).  
         [0182]    Thus, a mobile phone of a communication party for exchanging cards is specified, a device is selected by the user of mobile phone  100  on the searching side (S 130 ), connection is made with the selected device (S 132 ), and personal information are exchanged (S 134 , S 170 ). If the exchange of personal information with one device is terminated, a disconnection process is performed (S 136 , S 172 ), and if there is another device to be connected (YES at S 146 ), personal information is further exchanged with the next device. When personal information are exchanged, a screen image shown in FIG. 42 is displayed on display portion  154 . Moreover, if the exchange of personal information is terminated, a screen image shown in FIG. 43 is displayed.  
         [0183]    As described above, according to a mobile phone in the present embodiment, personal information can be exchanged only with a person having a mobile phone determined according to a predetermined rule. Furthermore, a plurality of mobile phones  100  can exchange personal information with one another.  
         [0184]    A modification common to the four embodiments above will be described below. Though it was described that the input information (e.g. a common character, the first authentication code and second authentication code) in the above-described embodiments are input by the user from the operation portion of a mobile phone, it is not limited thereto. Such input information may also be, for example, sound information input from a sound input portion of a mobile phone, not from an operation portion. In such a case, the input sound information is regarded as a “password”, and the common character, the first authentication code and the second authentication code are created based on the sound information. Moreover, a mobile phone may be provided with an image shooting portion. Other than the sound information, the input information above may also be an image information showing the user shot by the image shooting portion,. The mobile phone may further be provided with a fingerprint identification portion, and the input information may be user information identified by the fingerprint identification portion. The mobile phone may be provided with a GPS (Global Positioning System) for specifying a position. The input information may also be positional information of the mobile phone determined by the GPS. Moreover, the short-range wireless device may be provided with an identification portion for identifying the magnitude of received electric wave. The input information above may also be relative positional information of mobile phones determined by the identification portion.  
         [0185]    Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, the spirit and scope of the present invention being limited only by the terms of the appended claims.