Patent ID: 11962096
Assignee: SAMSUNG ELECTRONICS CO., LTD.
Field: Telecommunications (Electrical engineering)
Classification: CPC H  G | IPC G  H

Claim 0:
1. An electronic device comprising:
a housing including a first edge, a second edge substantially parallel to the first edge, a third edge extending from one end of the first edge to one end of the second edge and longer than the first edge, and a fourth edge extending from the other end of the first edge to the other end of the second edge and longer than the first edge;
a first antenna and a second antenna disposed in the housing to be spaced apart by a first distance to the third edge, the first antenna and the second antenna being located at different distances from the first edge;
a communication circuit configured to be electrically connected to the first antenna and the second antenna;
at least one sensor disposed in the housing;
a processor configured to be electrically connected to the first antenna, the second antenna, the communication circuit, and the at least one sensor; and
a memory configured to be electrically connected to the processor,
wherein the memory stores instructions which, when executed, enable the processor to:
identify a posture of the electronic device using the at least one sensor,
determine, when the identified posture of the electronic device is in a landscape state, a location of at least one external electronic device based on at least one signal received from the at least one external electronic device, and
determine, when the identified posture of the electronic device is in a portrait state, a location of the external electronic device among the at least one external electronic device based on a signal received from the external electronic device located in a direction determined based on an arrangement of the first antenna and the second antenna.