Patent ID: 9603114
Date: 2017-03-21
CPC Classifications: H04W

Claim:
1. A first communication apparatus comprising: a first type of interface for executing a wireless communication with a second communication apparatus, each of the first communication apparatus and the second communication apparatus being configured to selectively operate in any one of a plurality of states including a parent station state functioning as a parent station of a wireless network and a child station state functioning as a child station of the wireless network; a second type of interface for executing a wireless communication with the second communication apparatus; a memory configured to store one or more SSIDs and one or more BSSIDs for identifying one or more wireless networks in a case where the first communication apparatus connects to and/or forms the one or more wireless networks; and a controller configured to perform: receiving, under a state of the first communication apparatus connecting to and/or forming the one or more wireless networks, state information, first identification information including at least one of a first SSID and a first BSSID for identifying a first wireless network and second identification information including at least one of a second SSID and a second BSSID for identifying a second wireless network via the first type of interface from the second communication apparatus, in a case where the second communication apparatus is currently connecting to and/or forming both the first wireless network and the second wireless network, the first wireless network being a wireless network according to a first wireless communication method having a specific scheme, the specific scheme being a scheme that executes a wireless communication between two communication apparatuses for determining a parent station and the child station of the first wireless network when the first wireless network is formed by the two communication apparatuses, the second wireless network being a wireless network according to a second wireless communication method not having the specific scheme, the second wireless network being formed by an access point different from the first communication apparatus and the second communication apparatus, and the state information indicating that the second communication apparatus operates in a parent station state or in the child station state in the first wireless network; selecting, under the state of the first communication apparatus connecting to and/or forming the one or more wireless networks, from among the first wireless network and the second wireless network, by using the first identification information and the second identification information, at least one wireless network which the first communication apparatus is currently connecting to and/or forming; and executing a wireless communication for target data with the second communication apparatus via the second type of interface by using a target wireless network included in the selected at least one wireless network, wherein the selecting includes: judging, by using the state information, whether both the first communication apparatus and the second communication apparatus operate in the child station state in the first wireless network, in a case where the first communication apparatus is currently connecting to and/or forming both the wireless network and the second wireless network; selecting only the second wireless network in a case where the at least one of the second SSID and the second BSSID included in the second identification information is stored in the memory and it is judged that both the first communication apparatus and the second communication apparatus operate in the child station state; and selecting only the first wireless network in a case where the at least one of the first SSID and the first BSSID included in the first identification informations stored in the memory and it is judged that at least one of the first communication apparatus and the second communication apparatus does not operate in the child station state.