An electronic device comprising: a housing; a display exposed through a first portion of the housing; a conductive pattern (182, 430, 440) configured to: be positioned inside the housing, or form a part of the housing; a wireless communication circuit (170, 180) configured to: electrically connect with the conductive pattern, and support a short-range wireless communication protocol; at least one processor configured to electrically connect with the display and the wireless communication circuit; and a memory (130, 230) configured to: electrically connect with the at least one processor, and store instructions that allow the at least one processor to control the wireless communication circuit to: operate in a first mode in which first data is provided to a first type of external electronic device for a first time period using a first protocol, broadcast a detection signal, such as an impulse signal, in the first time period, receive a response signal indicative of the existence of a second type of external device in the first time period, detect the existence of the second type of external electronic device based on the received response signal at one or more selected points of time in the first time period, switch, from the first mode, to a second mode in which the second type of external electronic device is allowed to read second data for a second time period following the first time period using a second protocol different from the first protocol, when the existence of the second type of external electronic device is detected. a housing; a display exposed through a first portion of the housing; a conductive pattern (182, 430, 440) configured to: be positioned inside the housing, or form a part of the housing; be positioned inside the housing, or form a part of the housing; a wireless communication circuit (170, 180) configured to: electrically connect with the conductive pattern, and support a short-range wireless communication protocol; electrically connect with the conductive pattern, and support a short-range wireless communication protocol; at least one processor configured to electrically connect with the display and the wireless communication circuit; and a memory (130, 230) configured to: electrically connect with the at least one processor, and store instructions that allow the at least one processor to control the wireless communication circuit to: operate in a first mode in which first data is provided to a first type of external electronic device for a first time period using a first protocol, broadcast a detection signal, such as an impulse signal, in the first time period, receive a response signal indicative of the existence of a second type of external device in the first time period, detect the existence of the second type of external electronic device based on the received response signal at one or more selected points of time in the first time period, switch, from the first mode, to a second mode in which the second type of external electronic device is allowed to read second data for a second time period following the first time period using a second protocol different from the first protocol, when the existence of the second type of external electronic device is detected. electrically connect with the at least one processor, and store instructions that allow the at least one processor to control the wireless communication circuit to: operate in a first mode in which first data is provided to a first type of external electronic device for a first time period using a first protocol, broadcast a detection signal, such as an impulse signal, in the first time period, receive a response signal indicative of the existence of a second type of external device in the first time period, detect the existence of the second type of external electronic device based on the received response signal at one or more selected points of time in the first time period, switch, from the first mode, to a second mode in which the second type of external electronic device is allowed to read second data for a second time period following the first time period using a second protocol different from the first protocol, when the existence of the second type of external electronic device is detected. operate in a first mode in which first data is provided to a first type of external electronic device for a first time period using a first protocol, broadcast a detection signal, such as an impulse signal, in the first time period, receive a response signal indicative of the existence of a second type of external device in the first time period, detect the existence of the second type of external electronic device based on the received response signal at one or more selected points of time in the first time period, switch, from the first mode, to a second mode in which the second type of external electronic device is allowed to read second data for a second time period following the first time period using a second protocol different from the first protocol, when the existence of the second type of external electronic device is detected.