Abstract:
To accurately determine the nearest electronic device in establishing a pairing with an electronic device to be a target for remote control. A terminal device includes a received signal strength acquiring unit, a device selection processing unit, and a connecting unit. The received signal strength acquiring unit receives a signal transmitted from a plurality of electronic devices and acquires the electric field strength of the received signal. The device selection processing unit selects an electronic device to be a target for connection from the plurality of electronic devices in accordance with a normalized electric field strength that is a value obtained by normalizing the electric field strength of the received signal using a parameter corresponding to and unique to an electronic device that transmits the received signal. The connecting unit establishes a connection with the electronic device selected at the device selection processing unit.