Patent ID: 11874978
Assignee: SAMSUNG ELECTRONICS CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. An electronic device, comprising:
a panel configured to identify a position of a stylus pen;
a communication module configured to transmit and receive communication signals to and from the stylus pen; and
at least one processor configured to:
based on detection of the stylus pen using the panel, perform a first operation based on the position of the stylus pen identified using the panel;
based on non-detection of the stylus pen using the panel after the stylus pen is removed from an inside of the electronic device:
identify, from at least one communication signal received through the communication module from the stylus pen, information about the position of the stylus pen and information indicating whether a button of the stylus pen is pressed, and
perform a second operation based on a movement of the stylus pen while the button of the stylus pen is pressed; and

based on insertion of the stylus pen into the inside of the electronic device while a communication connection between the electronic device and the stylus pen is not established:
establish the communication connection between the electronic device and the stylus pen based on receipt of an advertisement signal broadcast from the stylus pen.