A wireless communication method executed by a first wireless communication device and a second wireless communication device, the wireless communication method comprising:
- a first step;
- a second step;
- a third step;
- a fourth step;
- a fifth step;
- a sixth step;
- a seventh step;
- and an eighth step,
- wherein the first wireless communication device comprises:
- a first communicator configured to perform wireless communication with a third communicator of the second wireless communication device in accordance with a first communication protocol of a wireless communication protocol and operate as an access point in accordance with connection-setting information;
- and
- a second communicator configured to perform communication with a fourth communicator of the second wireless communication device in accordance with a second communication protocol different from the first communication protocol,
- wherein the second wireless communication device comprises:
- the third communicator configured to perform wireless communication with the first communicator in accordance with the first communication protocol and connect to the access point in accordance with the connection-setting information as a station;
- and
- the fourth communicator configured to perform communication with the second communicator in accordance with the second communication protocol,
- wherein one of the first wireless communication device and the second wireless communication device comprises:
- a memory configured to store setting-related information that is one of the connection-setting information and information used for generating the connection-setting information;
- and
- a first processor,
- wherein the memory is configured to store the setting-related information as first setting-related information,
- wherein, in a case in which the second wireless communication device comprises the memory and the first processor, the fourth communicator holds the first setting-related information in the first step and transmits the first setting-related information to the second communicator in the second step and the second communicator receives the first setting-related information in the third step,
- wherein, in a case in which the first wireless communication device comprises the memory and the first processor, the second communicator holds the first setting-related information in the first step and transmits the first setting-related information to the fourth communicator in the second step and the fourth communicator receives the first setting-related information in the third step,
- wherein, each time the first setting-related information is transmitted, the first processor generates the setting-related information different from the transmitted first setting-related information in the fourth step, the fourth communicator or the second communicator holds the setting-related information generated by the first processor as the first setting-related information as a replacement for the transmitted first setting-related information in the fifth step, and the memory stores the setting-related information generated by the first processor as second setting-related information in the sixth step,
- wherein, after the first setting-related information is transmitted, the first communicator and the third communicator connect to each other in accordance with the connection-setting information related to the transmitted first setting-related information in the seventh step, and
- wherein the memory stores the second setting-related information as the first setting-related information and stores the setting-related information generated by the first processor as the second setting-related information in the eighth step each time the first processor generates the setting-related information after the first communicator and the third communicator connect to each other.