Patent ID: 8599756

Claim:
A relay device for performing wireless communication with a wireless communication device to relay communication between the wireless communication device and another communication device, the relay device comprising: a communication interface connectable to at least two communication paths, the at least two communication paths including a first communication path and a second communication path; a wireless interface for wireless communication between the wireless communication device and the relay device; a relay mode storing section for storing a first relay mode which includes a first set of communication parameters for relaying, via the first communication path, the communication using the communication interface, and a second relay mode which includes a second set of communication parameters for relaying, via the second communication path which is different from the first communication path, using the communication interface; a communication failure determination section for determining whether there is a communication failure in the first communication path; a relay mode controlling section for enabling the first relay mode and disenabling the second relay mode when the communication failure determination section determines that there is no communication failure in the first communication path, and disenabling the first relay mode and enabling the second relay mode when the communication failure determination section determines that there is a communication failure occur in the first communication path; and a communication control section for controlling the communication based on either the first relay mode or the second relay mode that is enabled by the relay mode controlling section, wherein the first communication path includes a communication path leading to a determination server which performs permissible connection determination of whether the relay to the wireless communication device is permissible, the first relay mode includes, as one of the first set of communication parameters, a setting for enabling the permissible connection determination by the determination server, the second relay mode includes as one of the second set of communication parameters, a setting for enabling the permissible connection determination by the relay device; and the communication control section includes a permissible connection determination section for inquiring of the determination server and for performing the permissible connection determination based on a result of the inquiry when the first relay mode is enabled, and for performing the permissible connection determination singly when the second relay mode is enabled.