Patent ID: 11061487

Abstract:
An electronic device including a housing including a first inner space and a hole leading to the first inner space, a first wireless communication circuit positioned inside the housing, a stylus pen insertable into the first inner space through the hole, the stylus pen including an elongated pen housing including a second inner space elongated between a first end and a second end, a pen tip disposed at the first end, a pushable first button disposed at the second end, and a second wireless communication circuit positioned inside the pen housing and configured to wirelessly transmit and/or receive a signal to/from the first wireless communication circuit, a processor positioned inside the housing and operatively connected with the first wireless communication circuit, and a memory positioned inside the housing and operatively connected with the processor, wherein the memory is configured to store instructions that, when executed, enable the processor to disregard a first signal transmitted by the second wireless communication circuit as the pushable first button is pushed while the stylus pen is in the housing, receive a second signal transmitted by the second wireless communication circuit as the pushable first button is pushed while the stylus pen is outside the housing, and perform a selected function in response to the received second signal.