Patent ID: 9699821
Date: 2017-07-04
CPC Classifications: H04W

Claim:
1. A communication device forming a communication network with another communication device, the communication device comprising: a storage part configured to store a history of a failure in connection to the other communication device; a searching part configured to perform search for the other communication device existing therearound; a connection availability determination part configured to perform determination whether or not to connect to the other communication device on a basis of the history of the failure in connection to the other communication device found in the search; and a connection control part configured to: cause the searching part to perform the search again when it is determined not to connect to the other communication device; while execute a connection process of connecting to the other communication device when it is determined to connect to the other communication device; and; when the connection process fails, perform update of the history of the failure in connection to the other communication device and cause the searching part to perform the search again, wherein: the history includes identification information of the other communication device and a numerical value; the connection availability determination part is configured to in the determination: compare with a threshold the numerical value included by the history including the identification information coinciding with identification information of the other communication device found in the search; and only in a case where a magnitude relation between the numerical value and the threshold satisfies a predetermined condition, determine to connect to the other communication device; and the connection control part is configured to, in the update of the history, add or subtract a given value to or from the numerical value included by the history including the identification information coinciding with identification information of the other communication device failing in the connection process.