A wireless communication device configured to operate selectively in one of a plurality of statuses comprising a master-station status for serving as a master station of a wireless network and a slave-station status for serving as a slave station of the wireless network, the wireless communication device comprising:
- a processor;
- and
- a memory storing computer-readable instructions therein, the computer-readable instructions, when executed by the processor, instructing the wireless communication device to:
- perform a first process for establishing a first-type connection with a first device in response to satisfaction of a first condition, the first process comprising:
- performing a first response process comprising:
- receiving from the first device a search signal, and
- transmitting to the first device a response signal in response to the search signal;
- performing a determining process in response to performance of the first response process, the determining process comprising:
- assigning one of the master-station status and the slave-station status to the wireless communication device;
- and
- establishing the first-type connection with the first device, in which the wireless communication device is configured to operate as one of the master station and the slave station in accordance with the one of the master-station status and the slave-station status assigned to the wireless communication device in the determining process;
- perform a second process for establishing a second-type connection with a second device in response to satisfaction of a second condition, the second process comprising:
- performing a detecting process of detecting the second device;
- and
- establishing the second-type connection with the second device in response to performance of the detecting process,
- wherein one of a first action and a second action is performed in response to one of the following:
- the first condition is satisfied while the detecting process is being performed, and
- the second condition is satisfied while the first response process is being performed,
- wherein the first action includes performing the first response process of the first process without performing the detecting process, and
- wherein the second action includes performing the detecting process of the second process without performing the first response process.