KR20230106473A - Electronic device and method for measuring position using the same - Google Patents

Electronic device and method for measuring position using the same Download PDF

Info

Publication number
KR20230106473A
KR20230106473A KR1020220020266A KR20220020266A KR20230106473A KR 20230106473 A KR20230106473 A KR 20230106473A KR 1020220020266 A KR1020220020266 A KR 1020220020266A KR 20220020266 A KR20220020266 A KR 20220020266A KR 20230106473 A KR20230106473 A KR 20230106473A
Authority
KR
South Korea
Prior art keywords
electronic device
message
external electronic
time
response
Prior art date
Application number
KR1020220020266A
Other languages
Korean (ko)
Inventor
김민석
김현철
윤세종
강문석
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2022/020305 priority Critical patent/WO2023132506A1/en
Priority to US18/149,429 priority patent/US20230213642A1/en
Publication of KR20230106473A publication Critical patent/KR20230106473A/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/06Position of source determined by co-ordinating a plurality of position lines defined by path-difference measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors
    • H04L7/0033Correction by delay
    • H04L7/0037Delay of clock signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Telephone Function (AREA)

Abstract

본 개시의 다양한 실시예들에 따르면, 전자 장치는, 통신 회로, 메모리, 및 상기 통신 회로 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하며, 상기 프로세서는, 상기 통신 회로를 통해, 제1 거리 측정 구간에서 거리 측정을 위한 제1 메시지를 전송하고, 상기 제1 메시지에 대한 응답으로, 제1 외부 전자 장치가 전송하는 제1 응답 시간을 포함하는 제2 메시지를 상기 통신 회로를 통해 수신하고, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치가 전송하는 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지를 상기 통신 회로를 통해 수신하고, 및 상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치가 전송하는 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지를 상기 통신 회로를 통해 수신하도록 설정되고, 상기 제1 응답 시간은, 상기 제1 메시지를 상기 제1 외부 전자 장치가 수신한 수신 시간과 상기 제2 메시지의 전송 시간의 차이이고, 상기 제2 응답 시간은, 상기 제1 메시지를 상기 제2 외부 전자 장치가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고, 상기 제3 응답 시간은 상기 제2 메시지를 상기 제2 외부 전자 장치가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고, 상기 제4 응답 시간은 상기 제1 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 상기 제5 응답 시간은 상기 제2 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 및 상기 제6 응답 시간은 상기 제3 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이일 수 있다.
본 문서에 개시된 다양한 실시예들 이외의 다른 다양한 실시예가 가능할 수 있다.
According to various embodiments of the present disclosure, an electronic device includes a communication circuit, a memory, and a processor operatively connected to the communication circuit and the memory, wherein the processor, through the communication circuit, measures a first distance. transmits a first message for distance measurement in an interval, and receives a second message including a first response time transmitted by a first external electronic device through the communication circuit in response to the first message; In response to the first message, a third message including a second response time and a third response time transmitted by a second external electronic device is received through the communication circuit, and in response to the first message, a fourth message including a fourth response time, a fifth response time, and a sixth response time transmitted by a third external electronic device is received through the communication circuit; A difference between a reception time at which the first external electronic device receives a message and a transmission time of the second message, and the second response time is a time period at which the first message is received by the second external electronic device and a time at which the second external electronic device receives the second message. 3 is a difference in transmission time of the message, the third response time is a difference between a time when the second external electronic device receives the second message and a transmission time of the third message, and the fourth response time is the The fifth response time is a difference between a time when the third external electronic device receives the first message and a transmission time of the fourth message, and the fifth response time is the time when the third external electronic device receives the second message and the fourth response time. The sixth response time may be a difference between a time when the third message is received by the third external electronic device and a transmission time of the fourth message.
Various embodiments other than the various embodiments disclosed herein may be possible.

Figure P1020220020266
Figure P1020220020266

Description

전자 장치 및 이를 이용한 위치 측정 방법 {ELECTRONIC DEVICE AND METHOD FOR MEASURING POSITION USING THE SAME}Electronic device and position measurement method using the same {ELECTRONIC DEVICE AND METHOD FOR MEASURING POSITION USING THE SAME}

본 개시의 다양한 실시예들은 전자 장치 및 이를 이용한 위치 측정 방법에 관한 것이다.Various embodiments of the present disclosure relate to an electronic device and a location measurement method using the same.

무선 통신 기술의 발전에 따라 전자 장치는 일상 생활에 보편적으로 사용되면서 사용자의 요구 수준이 높아지고 있다. 사용자의 요구 수준을 충족시키기 위해 다양한 방식의 무선 통신 기술이 사용될 수 있다. 예컨대, 무선 통신 기술은 초광대역(UWB: ultra wide band) 통신, Wi-Fi(wireless fidelity) 통신, LTE(long term evolution) 통신, 5G 통신(또는 NR(new radio) 통신), 또는 블루투스(Bluetooth) 통신 중 적어도 하나를 포함할 수 있다. 특히, 전자 장치는 초광대역(UWB) 통신을 이용하여 적어도 하나의 외부 전자 장치의 위치(또는 거리, 각도)를 측정할 수 있다. 예컨대, 전자 장치는 거리 측정을 위한 메시지를 브로드캐스트 할 수 있으며, 이를 수신한 적어도 하나의 외부 전자 장치로부터 응답 메시지를 수신할 수 있다. 전자 장치는 거리 측정을 위한 메시지 및 응답 메시지에 기반하여 적어도 하나의 외부 전자 장치의 위치(또는 거리, 각도)를 측정할 수 있다.With the development of wireless communication technology, electronic devices are commonly used in daily life, and user demands are increasing. Various types of wireless communication technologies may be used to meet user requirements. For example, wireless communication technologies include ultra wide band (UWB) communication, wireless fidelity (Wi-Fi) communication, long term evolution (LTE) communication, 5G communication (or new radio (NR) communication), or Bluetooth ) communication. In particular, the electronic device may measure the position (or distance or angle) of at least one external electronic device using ultra-wideband (UWB) communication. For example, the electronic device may broadcast a message for distance measurement and may receive a response message from at least one external electronic device that has received the broadcast message. The electronic device may measure the location (or distance or angle) of at least one external electronic device based on the distance measurement message and the response message.

전자 장치는 전자 장치의 위치를 측정하기 위해, 외부 전자 장치들로부터 위치 측정을 위한 메시지를 수신할 수 있다. 하지만 전자 장치와 적어도 하나의 외부 전자 장치 사이에 장애물이 존재함에 따른 NLoS(non-line of sight) 상황에서, 메시지를 수신하는 링크 품질(link quality)이 좋지 않다면, 전자 장치는 외부 전자 장치들과의 도래시간차(TDoA, time difference of arrival)를 부정확하게 산출할 수 있다. 이에 따라, 오차 성능을 나타내는 DoP(dilution of precision)가 나빠질 수 있으며, 전자 장치의 위치 또한 부정확하게 측정될 수 있다.The electronic device may receive a location measurement message from external electronic devices in order to measure the location of the electronic device. However, in a non-line of sight (NLoS) situation due to an obstacle between the electronic device and at least one external electronic device, if the link quality for receiving the message is poor, the electronic device may communicate with the external electronic device. can inaccurately calculate the time difference of arrival (TDoA). Accordingly, dilution of precision (DoP) representing error performance may deteriorate, and the position of the electronic device may also be inaccurately measured.

본 개시의 다양한 실시예들에 따른 전자 장치는 복수의 외부 전자 장치들 각각으로부터 시간 정보를 포함하는 메시지를 수신할 수 있다. 전자 장치는 수신된 복수의 외부 전자 장치들 각각으로부터 수신되는 시간 정보를 포함하는 메시지에 기반하여, 전자 장치와 복수의 외부 전자 장치들 간의 클럭 오차를 보상하고, 보상된 클럭 오차에 기반하여 전자 장치와 복수의 외부 전자 장치들 간의 도래시간차를 산출할 수 있다.An electronic device according to various embodiments of the present disclosure may receive a message including time information from each of a plurality of external electronic devices. The electronic device compensates for a clock error between the electronic device and the plurality of external electronic devices based on a message including time information received from each of the plurality of external electronic devices, and based on the compensated clock error, the electronic device It is possible to calculate the arrival time difference between the time of arrival and the plurality of external electronic devices.

본 개시의 다양한 실시예들에 따른 전자 장치는, 통신 회로, 메모리, 및 상기 통신 회로 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하며, 상기 프로세서는, 상기 통신 회로를 통해, 제1 거리 측정 구간에서 거리 측정을 위한 제1 메시지를 전송하고, 상기 제1 메시지에 대한 응답으로, 제1 외부 전자 장치가 전송하는 제1 응답 시간을 포함하는 제2 메시지를 상기 통신 회로를 통해 수신하고, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치가 전송하는 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지를 상기 통신 회로를 통해 수신하고, 및 상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치가 전송하는 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지를 상기 통신 회로를 통해 수신하도록 설정되고, 상기 제1 응답 시간은, 상기 제1 메시지를 상기 제1 외부 전자 장치가 수신한 수신 시간과 상기 제2 메시지의 전송 시간의 차이이고, 상기 제2 응답 시간은, 상기 제1 메시지를 상기 제2 외부 전자 장치가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고, 상기 제3 응답 시간은 상기 제2 메시지를 상기 제2 외부 전자 장치가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고, 상기 제4 응답 시간은 상기 제1 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 상기 제5 응답 시간은 상기 제2 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 및 상기 제6 응답 시간은 상기 제3 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이일 수 있다.An electronic device according to various embodiments of the present disclosure includes a communication circuit, a memory, and a processor operatively connected to the communication circuit and the memory, wherein the processor, through the communication circuit, first distance measurement section transmits a first message for distance measurement, and in response to the first message, receives a second message including a first response time transmitted by a first external electronic device through the communication circuit; In response to the first message, a third message including a second response time and a third response time transmitted by a second external electronic device is received through the communication circuit, and in response to the first message, 3 a fourth message including a fourth response time, a fifth response time, and a sixth response time transmitted by an external electronic device is received through the communication circuit, the first response time being the first message is a difference between a reception time received by the first external electronic device and a transmission time of the second message, and the second response time is a time when the first message is received by the second external electronic device and the third The third response time is a difference between a time when the second external electronic device receives the second message and a transmission time of the third message, and the fourth response time is the first response time. The fifth response time is a difference between a time when the third external electronic device receives the message and a transmission time of the fourth message, and the fifth response time is the time when the third external electronic device receives the second message and the fourth message The sixth response time may be a difference between a time when the third message is received by the third external electronic device and a transmission time of the fourth message.

본 개시의 다양한 실시예들에 따른 전자 장치는, 통신 회로, 메모리, 및 상기 통신 회로 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하며, 상기 프로세서는, 상기 통신 회로를 통해, 제1 외부 전자 장치가 전송하는 거리 측정을 위한 제1 메시지가 수신되면, 상기 제1 메시지의 수신 시간을 상기 메모리에 저장하고, 상기 통신 회로를 통해, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치로부터 제1 응답 시간을 포함하는 제2 메시지가 수신되면, 상기 제2 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하고, 상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치로부터 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지가 수신되면, 상기 제3 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하고, 및 상기 제1 메시지에 대한 응답으로, 제4 외부 전자 장치로부터 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지가 수신되면, 상기 제4 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하도록 설정될 수 있다.An electronic device according to various embodiments of the present disclosure includes a communication circuit, a memory, and a processor operatively connected to the communication circuit and the memory, wherein the processor, via the communication circuit, a first external electronic device. When a first message for distance measurement transmitted by is received, the reception time of the first message is stored in the memory, and through the communication circuit, in response to the first message, a first message from a second external electronic device is received. When a second message including 1 response time is received, a reception time and a transmission time of the second message are stored in the memory, and in response to the first message, a second response time and a second response time are received from a third external electronic device. When a third message including a third response time is received, a reception time and a transmission time of the third message are stored in the memory, and a fourth response is received from a fourth external electronic device in response to the first message. When a fourth message including a time, a fifth response time, and a sixth response time is received, the reception time and the transmission time of the fourth message may be stored in the memory.

본 개시의 다양한 실시예들에 따른 전자 장치의 위치 측정 방법은, 통신 회로를 통해, 제1 거리 측정 구간에서 거리 측정을 위한 제1 메시지를 전송하는 동작, 상기 제1 메시지에 대한 응답으로, 제1 외부 전자 장치가 전송하는 제1 응답 시간을 포함하는 제2 메시지를 상기 통신 회로를 통해 수신하는 동작, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치가 전송하는 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지를 상기 통신 회로를 통해 수신하는 동작, 및 상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치가 전송하는 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지를 상기 통신 회로를 통해 수신하는 동작을 포함하고, 상기 제1 응답 시간은, 상기 제1 메시지를 상기 제1 외부 전자 장치가 수신한 수신 시간과 상기 제2 메시지의 전송 시간의 차이이고, 상기 제2 응답 시간은, 상기 제1 메시지를 상기 제2 외부 전자 장치가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고, 상기 제3 응답 시간은 상기 제2 메시지를 상기 제2 외부 전자 장치가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고, 상기 제4 응답 시간은 상기 제1 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 상기 제5 응답 시간은 상기 제2 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 및 상기 제6 응답 시간은 상기 제3 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이일 수 있다. A method for measuring a location of an electronic device according to various embodiments of the present disclosure includes an operation of transmitting a first message for distance measurement in a first distance measurement section through a communication circuit, and in response to the first message, 1 receiving a second message including a first response time transmitted by an external electronic device through the communication circuit, and in response to the first message, a second response time transmitted by a second external electronic device and a second message transmitted by a second external electronic device. 3 An operation of receiving a third message including a response time through the communication circuit, and a fourth response time transmitted by a third external electronic device in response to the first message, a fifth response time, and a sixth response time. and receiving a fourth message including a response time through the communication circuit, wherein the first response time is a ratio between a reception time at which the first external electronic device received the first message and the second message. The second response time is a difference between a time at which the second external electronic device receives the first message and a transmission time of the third message, and the third response time is the difference between a time at which the second external electronic device receives the first message is the difference between the time at which the second external electronic device receives the third message and the transmission time of the third message, and the fourth response time is the time between the time at which the third external electronic device receives the first message and the fourth message. The fifth response time is a difference between a time at which the third external electronic device receives the second message and a transmission time of the fourth message, and the sixth response time is the difference between a time at which the third external electronic device receives the second message and a transmission time of the fourth message. may be a difference between a time when the third external electronic device receives and a transmission time of the fourth message.

본 개시의 다양한 실시예들에 따른 전자 장치의 위치 측정 방법은, 통신 회로를 통해, 제1 외부 전자 장치가 전송하는 거리 측정을 위한 제1 메시지가 수신되면, 상기 제1 메시지의 수신 시간을 메모리에 저장하는 동작, 상기 통신 회로를 통해, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치로부터 제1 응답 시간을 포함하는 제2 메시지가 수신되면, 상기 제2 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하는 동작, 상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치로부터 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지가 수신되면, 상기 제3 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하는 동작, 및 상기 제1 메시지에 대한 응답으로, 제4 외부 전자 장치로부터 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지가 수신되면, 상기 제4 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하는 동작을 포함할 수 있다.A method for measuring a position of an electronic device according to various embodiments of the present disclosure, when a first message for distance measurement transmitted by a first external electronic device is received through a communication circuit, stores a reception time of the first message in memory. When a second message including a first response time is received from a second external electronic device in response to the first message through the communication circuit, a reception time and a transmission time of the second message are received. In response to the first message, when a third message including a second response time and a third response time is received from a third external electronic device, the reception time of the third message and When a fourth message including a fourth response time, a fifth response time, and a sixth response time is received from a fourth external electronic device in response to the operation of storing the transmission time in the memory and the first message , and storing the reception time and transmission time of the fourth message in the memory.

본 개시의 다양한 실시예들에 따른 위치 측정 시스템은, 전자 장치, 및 N개의 외부 전자 장치들을 포함하며, 상기 N개의 외부 전자 장치들 중 제1 외부 전자 장치는, 제1 거리 측정 구간에서 거리 측정을 위한 제1 메시지를 전송하고, 상기 N개의 외부 전자 장치들 중 제2 내지 제N 외부 전자 장치는, 상기 제1 메시지에 대한 응답으로, 제2 내지 제N 메시지를 전송하고, 및 상기 전자 장치는, 상기 제1 메시지, 상기 제2 내지 제N 메시지를 수신하고, 상기 수신된 제1 메시지의 수신 시간, 상기 제2 내지 제N 메시지 각각에 포함된 시간 정보에 기반하여, 상기 N개의 외부 전자 장치들과의 도래시간차를 산출하고, 및 상기 산출된 도래시간차에 기반하여 상기 전자 장치의 위치를 측정하고, 상기 제2 메시지에 포함된 시간 정보는, 상기 제2 외부 전자 장치가 상기 제1 메시지를 수신한 시간, 상기 제2 메시지를 전송한 시간, 및/또는 상기 제2 외부 전자 장치가 상기 제1 메시지를 수신한 시간과 상기 제2 메시지를 전송한 시간 차에 대한 제1 응답 시간을 포함하고, 및 상기 제N 메시지에 포함된 시간 정보는, 상기 제N 외부 전자 장치가 상기 제1 메시지를 수신한 시간, 상기 제N 메시지를 전송한 시간, 상기 제1 메시지를 수신한 시간과 상기 제N 메시지를 전송한 시간 차에 대한 제2 응답 시간, 상기 제N 외부 전자 장치가 상기 제2 메시지를 수신한 시간, 상기 제2 메시지를 수신한 시간과 상기 제N 메시지를 전송한 시간 차에 대한 제3 응답 시간, 제N-1 외부 전자 장치가 전송하는 제N-1 메시지를 상기 제N 외부 전자 장치가 수신한 시간, 및/또는 상기 제N-1 메시지를 수신한 시간과 상기 제N 메시지를 전송한 시간 차에 대한 제M 응답 시간을 포함할 수 있다.A position measurement system according to various embodiments of the present disclosure includes an electronic device and N external electronic devices, wherein a first external electronic device among the N external electronic devices measures a distance in a first distance measuring section. transmits a first message for the first message, and second to Nth external electronic devices among the N external electronic devices transmit second to Nth messages in response to the first message, and the electronic device receives the first message and the second to Nth messages, and based on the reception time of the received first message and the time information included in each of the second to Nth messages, the N external electronic Calculate arrival time differences with devices, measure the location of the electronic device based on the calculated arrival time differences, and use the time information included in the second message to send the second external electronic device to the first message including the first response time for the time difference between the time at which the first message was received, the time at which the second message was transmitted, and/or the time at which the second external electronic device received the first message and the time at which the second message was transmitted and the time information included in the Nth message includes the time at which the Nth external electronic device received the first message, the time at which the Nth message was transmitted, the time at which the first message was received, and the time at which the Nth external electronic device received the first message. A second response time for the time difference between sending the N message, the time at which the N th external electronic device received the second message, and the time difference between the time at which the second message was received and the N th message was transmitted The third response time, the time at which the N-th external electronic device receives the N-1th message transmitted by the N-1th external electronic device, and/or the time at which the N-1th message is received and the Nth message It may include the Mth response time for the time difference between transmitting .

본 개시의 다양한 실시예들에 따른 전자 장치는, 복수의 외부 전자 장치들 각각으로부터 수신되는 시간 정보를 포함하는 메시지에 기반하여, 전자 장치와 복수의 외부 전자 장치들 간 클럭 오차를 보상하고 도래시간차를 산출할 수 있다. 전자 장치는 복수의 전자 장치들과의 도래시간차를 산출 가능함에 따라, 메시 네트워크(mesh network) 형태로 전자 장치의 위치를 측정할 수 있다. 이에 따라, 전자 장치는 적어도 하나의 외부 전자 장치 사이에 장애물이 존재하는 NLoS(non-line of sight) 상황 또는 링크 품질(link quality)이 좋지 않은 상황에서도 전자 장치의 위치를 정확하게 측정할 수 있다.An electronic device according to various embodiments of the present disclosure compensates for a clock error between the electronic device and a plurality of external electronic devices based on a message including time information received from each of the plurality of external electronic devices and arrives at a time difference. can be calculated. As the electronic device can calculate a time difference between arrivals with a plurality of electronic devices, the position of the electronic device can be measured in the form of a mesh network. Accordingly, the electronic device can accurately measure the position of the electronic device even in a non-line of sight (NLoS) situation in which an obstacle exists between at least one external electronic device or in a poor link quality situation.

도 1은, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는, 다양한 실시예들에 따른, 시스템 구성의 예를 설명하기 위해 도시하는 도면이다.
도 3은, 다양한 실시예들에 따른, 외부 전자 장치를 나타내는 블록도이다.
도 4a는, 다양한 실시예들에 따른, 제1 외부 전자 장치의 동작을 설명하기 위한 흐름도이다.
도 4b는, 다양한 실시예들에 따른, 제1 외부 전자 장치의 동작을 설명하기 위한 흐름도이다.
도 5a는, 다양한 실시예들에 따른, 외부 전자 장치의 동작을 설명하기 위한 흐름도이다.
도 5b는, 다양한 실시예들에 따른, 외부 전자 장치의 동작을 설명하기 위한 흐름도이다.
도 6a는, 다양한 실시예들에 따른, 전자 장치의 동작을 설명하기 위한 흐름도이다.
도 6b는, 다양한 실시예들에 따른, 전자 장치의 동작을 설명하기 위한 흐름도이다.
도 7은, 다양한 실시예들에 따른, 전자 장치와 복수의 외부 전자 장치들 간 신호 흐름을 도시한 도면이다.
도 8은, 다양한 실시예들에 따른, 전자 장치와 복수의 외부 전자 장치들 간 신호 흐름을 도시한 도면이다.
도 9는, 다양한 실시예들에 따른, 전자 장치와 복수의 외부 전자 장치들 간 신호 흐름을 도시한 도면이다.
도 10은, 다양한 실시예들에 따른, 전자 장치와 복수의 외부 전자 장치들 간 도래시간차를 산출하는 방법을 설명하기 위한 도면이다.
도 11은, 다양한 실시예들에 따른, 전자 장치와 복수의 외부 전자 장치들 간의 도래시간차를 산출하는 방법을 설명하기 위한 도면이다.
도 12는, 다양한 실시예들에 따른, 전자 장치와 복수의 외부 전자 장치들 간의 도래시간차를 산출하는 방법을 설명하기 위한 도면이다.
도 13은, 다양한 실시예들에 따른, 전자 장치와 복수의 외부 전자 장치들 간 신호 흐름을 도시한 도면이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments.
2 is a diagram illustrating an example of a system configuration according to various embodiments.
3 is a block diagram illustrating an external electronic device according to various embodiments.
4A is a flowchart illustrating an operation of a first external electronic device according to various embodiments.
4B is a flowchart illustrating an operation of a first external electronic device according to various embodiments.
5A is a flowchart illustrating an operation of an external electronic device according to various embodiments.
5B is a flowchart illustrating an operation of an external electronic device according to various embodiments.
6A is a flowchart illustrating an operation of an electronic device according to various embodiments.
6B is a flowchart illustrating an operation of an electronic device according to various embodiments.
7 is a diagram illustrating a signal flow between an electronic device and a plurality of external electronic devices according to various embodiments.
8 is a diagram illustrating a signal flow between an electronic device and a plurality of external electronic devices according to various embodiments.
9 is a diagram illustrating a signal flow between an electronic device and a plurality of external electronic devices according to various embodiments.
10 is a diagram for explaining a method of calculating a time difference of arrival between an electronic device and a plurality of external electronic devices, according to various embodiments.
11 is a diagram for explaining a method of calculating a difference in time of arrival between an electronic device and a plurality of external electronic devices, according to various embodiments.
12 is a diagram for explaining a method of calculating an arrival time difference between an electronic device and a plurality of external electronic devices, according to various embodiments.
13 is a diagram illustrating a signal flow between an electronic device and a plurality of external electronic devices according to various embodiments.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다.1 is a block diagram of an electronic device 101 within a network environment 100, according to various embodiments.

도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.Referring to FIG. 1 , in a network environment 100, an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It may communicate with at least one of the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included. In some embodiments, in the electronic device 101, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added. In some embodiments, some of these components (eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, the program 140) to cause at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or calculations. According to one embodiment, as at least part of data processing or operation, processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 . According to one embodiment, the processor 120 includes a main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor). For example, when the electronic device 101 includes the main processor 121 and the auxiliary processor 123, the auxiliary processor 123 may use less power than the main processor 121 or be set to be specialized for a designated function. can The secondary processor 123 may be implemented separately from or as part of the main processor 121 .

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.The secondary processor 123 may, for example, take the place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, running an application). ) state, together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to one embodiment, the auxiliary processor 123 (eg, an image signal processor or a communication processor) may be implemented as part of other functionally related components (eg, the camera module 180 or the communication module 190). there is. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. AI models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself where the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning or reinforcement learning, but in the above example Not limited. The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the foregoing, but is not limited to the foregoing examples. The artificial intelligence model may include, in addition or alternatively, software structures in addition to hardware structures.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101 . The data may include, for example, input data or output data for software (eg, program 140) and commands related thereto. The memory 130 may include volatile memory 132 or non-volatile memory 134 .

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142 , middleware 144 , or an application 146 .

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.The input module 150 may receive a command or data to be used by a component (eg, the processor 120) of the electronic device 101 from the outside of the electronic device 101 (eg, a user). The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output sound signals to the outside of the electronic device 101 . The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. A receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 may visually provide information to the outside of the electronic device 101 (eg, a user). The display module 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device. According to an embodiment, the display module 160 may include a touch sensor configured to detect a touch or a pressure sensor configured to measure the intensity of force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert sound into an electrical signal or vice versa. According to an embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a bio sensor, It may include a temperature sensor, humidity sensor, or light sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device 101 to an external electronic device (eg, the electronic device 102). According to one embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 may be physically connected to an external electronic device (eg, the electronic device 102). According to one embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert electrical signals into mechanical stimuli (eg, vibration or motion) or electrical stimuli that a user may perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101 . According to one embodiment, the power management module 188 may be implemented as at least part of a power management integrated circuit (PMIC), for example.

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one embodiment, the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제1 네트워크(198) 또는 제2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). Establishment and communication through the established communication channel may be supported. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 190 may be a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, a : a local area network (LAN) communication module or a power line communication module). Among these communication modules, a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, a legacy communication module). It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a telecommunications network such as a computer network (eg, a LAN or a WAN). These various types of communication modules may be integrated as one component (eg, a single chip) or implemented as a plurality of separate components (eg, multiple chips). The wireless communication module 192 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199. The electronic device 101 may be identified or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일 실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, NR access technology (new radio access technology). NR access technologies include high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and access of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low latency (URLLC)). -latency communications)) can be supported. The wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 192 uses various technologies for securing performance in a high frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. Technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna may be supported. The wireless communication module 192 may support various requirements defined for the electronic device 101, an external electronic device (eg, the electronic device 104), or a network system (eg, the second network 199). According to one embodiment, the wireless communication module 192 may be used to realize peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency (for realizing URLLC). Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) may be supported.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB(printed circuit board)) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제1 네트워크(198) 또는 제2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.The antenna module 197 may transmit or receive signals or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (eg, a printed circuit board (PCB)). According to one embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is selected from the plurality of antennas by the communication module 190, for example. can be chosen A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module 197 in addition to the radiator.

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일 실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first surface (eg, a bottom surface) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, array antennas) disposed on or adjacent to a second surface (eg, a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( e.g. commands or data) can be exchanged with each other.

일 실시예에 따르면, 명령 또는 데이터는 제2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104) 간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일 실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.According to an embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or part of operations executed in the electronic device 101 may be executed in one or more external electronic devices among the external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead of executing the function or service by itself. Alternatively or additionally, one or more external electronic devices may be requested to perform the function or at least part of the service. One or more external electronic devices receiving the request may execute at least a part of the requested function or service or an additional function or service related to the request, and deliver the execution result to the electronic device 101 . The electronic device 101 may provide the result as at least part of a response to the request as it is or additionally processed. To this end, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an internet of things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199 . The electronic device 101 may be applied to intelligent services (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be devices of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. An electronic device according to an embodiment of the present document is not limited to the aforementioned devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제1", "제2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제1) 구성요소가 다른(예: 제2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of this document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, like reference numbers may be used for like or related elements. The singular form of a noun corresponding to an item may include one item or a plurality of items, unless the relevant context clearly dictates otherwise. In this document, "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C", and "A Each of the phrases such as "at least one of , B, or C" may include any one of the items listed together in that phrase, or all possible combinations thereof. Terms such as "first", "second", or "first" or "secondary" may simply be used to distinguish that component from other corresponding components, and may refer to that component in other respects (eg, importance or order) is not limited. A (eg, first) component is said to be "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively." When mentioned, it means that the certain component may be connected to the other component directly (eg by wire), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logical blocks, parts, or circuits. can be used as A module may be an integrally constructed component or a minimal unit of components or a portion thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of this document provide one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101). It may be implemented as software (eg, the program 140) including them. For example, a processor (eg, the processor 120 ) of a device (eg, the electronic device 101 ) may call at least one command among one or more instructions stored from a storage medium and execute it. This enables the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-temporary' only means that the storage medium is a tangible device and does not contain a signal (e.g. electromagnetic wave), and this term refers to the case where data is stored semi-permanently in the storage medium. It does not discriminate when it is temporarily stored.

일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be provided by being included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. A computer program product is distributed in the form of a device-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) online, directly between smart phones. In the case of online distribution, at least part of the computer program product may be temporarily stored or temporarily created in a device-readable storage medium such as a manufacturer's server, an application store server, or a relay server's memory.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a single object or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. there is. According to various embodiments, one or more components or operations among the aforementioned corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by a corresponding component of the plurality of components prior to the integration. . According to various embodiments, the actions performed by a module, program, or other component are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the actions are executed in a different order, or omitted. or one or more other actions may be added.

도 2는, 다양한 실시예들에 따른, 시스템 구성의 예를 설명하기 위해 도시하는 도면(200)이다.2 is a diagram 200 illustrating an example of a system configuration according to various embodiments.

도 2를 참조하면, 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)는 클러스터(cluster)를 구성할 수 있다. Referring to FIG. 2 , a first external electronic device 220 , a second external electronic device 230 , a third external electronic device 240 , and/or a fourth external electronic device 250 form a cluster. can be configured.

다양한 실시예들에서, 제1 외부 전자 장치(220)는 개시자(initiator)로, 제1 메시지(예: 폴(poll) 메시지)를 전송함으로써 위치 측정을 시작하는 장치일 수 있다. 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250)는 응답자(responder)로 제1 외부 전자 장치(예: 개시자)로부터 수신되는 제1 메시지(예: 폴 메시지)에 응답하여 제2 메시지(예: 응답 메시지)를 전송하는 장치일 수 있다. 전자 장치(210)는 클러스터 내 진입하는 경우, 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 제4 외부 전자 장치(250) 간 전송 또는 수신되는 메시지들을 수신하여, 자신의 위치(예: 전자 장치(210)의 위치)를 측정하는 장치일 수 있다.In various embodiments, the first external electronic device 220 may be an initiator and may be a device that starts location measurement by transmitting a first message (eg, a poll message). The second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250 are responders, and receive a first message received from the first external electronic device (eg, initiator). It may be a device that transmits a second message (eg, a response message) in response to (eg, a poll message). When the electronic device 210 enters the cluster, transmission between the first external electronic device 220, the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250 or It may be a device that receives received messages and measures its own location (eg, the location of the electronic device 210).

일 실시예에서, 제1 외부 전자 장치(220)는 지정된 통신을 통해 거리 측정을 위한 제1 메시지(예: 폴 메시지)를 브로드캐스트 할 수 있다. 지정된 통신은 UWB(ultra wide band) 통신을 포함할 수 있다. UWB 통신은 제1 외부 전자 장치(220)와 다른 적어도 하나의 외부 전자 장치 간의 TWR(two way ranging) 방식으로 제1 외부 전자 장치(220)와 다른 적어도 하나의 외부 전자 장치 간의 거리(또는 위치)를 측정하기 위한 통신을 포함할 수 있다. In an embodiment, the first external electronic device 220 may broadcast a first message (eg, a poll message) for distance measurement through designated communication. Designated communication may include ultra wide band (UWB) communication. UWB communication is a two way ranging (TWR) method between the first external electronic device 220 and at least one other external electronic device, and a distance (or position) between the first external electronic device 220 and at least one other external electronic device is used. may include communication to measure

예컨대, TWR 방식은 SS-TWR(single side TWR) 방식 또는 DS-TWR(double side TWR) 방식을 포함할 수 있다. SS-TWR 방식은 제1 외부 전자 장치(220)가 제1 메시지(예: 폴 메시지)를 다른 외부 전자 장치(예: 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250))에 전송하면, 다른 외부 전자 장치(예: 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250))는 제2 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)로 전송하는 방식일 수 있다. 전자 장치(210)는 외부 전자 장치들 간 송수신하는 제1 메시지 및 제2 메시지를 수신하고, 이에 기반하여, 전자 장치(210)와 다른 외부 전자 장치(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250))와의 거리를 측정(또는 계산)할 수 있다. 폴 메시지는 패킷 형태로 전송될 수 있다. SS-TWR에서, 제1 외부 전자 장치(220)는 제1 메시지(예: 폴 메시지)를 보낸 시간과 다른 외부 전자 장치로부터 제2 메시지(예: 응답 메시지)를 수신하는 시간의 차이에 기반하여 외부 전자 장치와의 거리를 측정(또는 계산)할 수 있다. For example, the TWR method may include a single side TWR (SS-TWR) method or a double side TWR (DS-TWR) method. In the SS-TWR scheme, a first external electronic device 220 sends a first message (eg, a poll message) to other external electronic devices (eg, the second external electronic device 230, the third external electronic device 240, and When transmitted to/or the fourth external electronic device 250, other external electronic devices (eg, the second external electronic device 230, the third external electronic device 240, and/or the fourth external electronic device 250) )) may be a method of transmitting a second message (eg, a response message) to the first external electronic device 220 . The electronic device 210 receives a first message and a second message transmitted and received between external electronic devices, and based on this, the electronic device 210 and other external electronic devices (eg, the first external electronic device 220, A distance to the second external electronic device 230 , the third external electronic device 240 , and/or the fourth external electronic device 250 may be measured (or calculated). The poll message may be transmitted in the form of a packet. In SS-TWR, the first external electronic device 220 is based on the difference between the time it sends a first message (eg, a poll message) and the time it receives a second message (eg, a response message) from another external electronic device. A distance to an external electronic device may be measured (or calculated).

예컨대, DS-TWR 방식은 제1 외부 전자 장치(220)에서 제1 메시지(예: 폴 메시지)를 전송하면, 다른 외부 전자 장치(예: 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250))가 제2 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)로 전송할 수 있다. 제1 외부 전자 장치(220)는 제2 메시지에 대한 응답으로, 제1 메시지를 전송한 시간과 다른 외부 전자 장치로부터 수신한 제2 메시지의 수신 시간의 차이에 기반하여 산출한 응답 시간을 포함하는 제3 메시지(예: 파이널 메시지(final message))를 다른 외부 전자 장치에 전송할 수 있다. 전자 장치(210)는 외부 전자 장치들 간 송수신하는 제1 메시지, 제2 메시지, 제3 메시지를 수신하고, 이에 기반하여, 전자 장치(210)와 다른 외부 전자 장치(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250))와의 거리를 측정할 수 있다.For example, in the DS-TWR method, when the first external electronic device 220 transmits a first message (eg, a poll message), other external electronic devices (eg, the second external electronic device 230, the third external electronic device) (240) and/or the fourth external electronic device 250) may transmit a second message (eg, a response message) to the first external electronic device 220. In response to the second message, the first external electronic device 220 includes a response time calculated based on a difference between a time when the first message was transmitted and a reception time of the second message received from another external electronic device. A third message (eg, final message) may be transmitted to another external electronic device. The electronic device 210 receives a first message, a second message, and a third message transmitted and received between external electronic devices, and based thereon, the electronic device 210 and another external electronic device (eg, the first external electronic device). 220, the second external electronic device 230, the third external electronic device 240, and/or the fourth external electronic device 250) may be measured.

다양한 실시예들에서, 메시 네크워크에 있는 전자 장치(210), 적어도 하나의 외부 전자 장치(220, 230, 240, 및/또는 250)는 제1 메시지(예: 폴 메시지), 제2 메시지(예: 응답 메시지), 제3 메시지(예: 파이널 메시지)를 전송하는 시점(또는 순서)은 미리 설정될 수 있다. 예컨대, 제1 거리 측정 구간(예: 제1 레인징 라운드)는 복수의 레인징 슬롯들(미도시)로 구성될 수 있다. 각 레인징 슬롯(미도시)은 하나의 레인징 프레임 전송을 위한 기간을 나타낼 수 있다. 예컨대, 레인징 라운드는 제1 외부 전자 장치(220)가 제1 메시지(예: 폴 메시지)를 전송하는 시점인 제1 슬롯(예: 제1 구간), 제1 메시지를 수신한 제2 외부 전자 장치(230)가 제2 메시지(예: 응답 메시지)를 전송하는 시점인 제2 슬롯(예: 제2 구간), 제1 메시지를 수신한 제3 외부 전자 장치(240)가 제3 메시지(예: 응답 메시지)를 전송하는 시점인 제3 슬롯(예: 제3 구간), 제1 메시지를 수신한 제4 외부 전자 장치(250)가 제4 메시지(예: 응답 메시지)를 전송하는 시점인 제4 슬롯(예: 제4 구간)을 포함할 수 있다. 이에 한정하는 것은 아니며, 레인징 라운드는 제1 외부 전자 장치(220)가 슬립(sleep) 상태에 진입하는 제5 슬롯(예: 제5 구간)(예: 아이들(idle) 구간)을 더 포함할 수 있다.In various embodiments, the electronic device 210 in the mesh network and at least one external electronic device 220, 230, 240, and/or 250 may send a first message (eg, a poll message) and a second message (eg, a poll message). : response message) and the timing (or order) of transmitting the third message (eg, final message) may be set in advance. For example, the first distance measurement interval (eg, the first ranging round) may include a plurality of ranging slots (not shown). Each ranging slot (not shown) may represent a period for transmitting one ranging frame. For example, the ranging round includes a first slot (eg, a first period) at which the first external electronic device 220 transmits a first message (eg, a poll message), and a second external electronic device receiving the first message. In a second slot (eg, a second interval) at which the device 230 transmits a second message (eg, a response message), the third external electronic device 240 receiving the first message transmits a third message (eg, a response message). : Response message) at the third slot (eg, the third interval), and at the time when the fourth external electronic device 250 that has received the first message transmits the fourth message (eg, the response message) It may include 4 slots (eg, the fourth period). It is not limited thereto, and the ranging round may further include a fifth slot (eg, a fifth period) (eg, an idle period) in which the first external electronic device 220 enters a sleep state. can

다양한 실시예들에서 제2 외부 전자 장치(230)가 제2 슬롯에서 제2 메시지(예: 응답 메시지)를 전송하고, 제3 외부 전자 장치(240)가 제3 슬롯에서 제3 메시지(예: 응답 메시지)를 전송하고, 제4 외부 전자 장치(250)가 제4 슬롯에서 제4 메시지(예: 응답 메시지)를 전송하는 것으로 설명하였으나, 이에 한정하는 것은 아니다. 예컨대, 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250)가 메시지(예: 응답 메시지)를 전송하는 시점의 순서는 랜덤하게 설정될 수 있다.In various embodiments, the second external electronic device 230 transmits a second message (eg, a response message) in a second slot, and the third external electronic device 240 transmits a third message (eg, a response message) in a third slot. response message) and the fourth external electronic device 250 transmits the fourth message (eg, response message) in the fourth slot, but is not limited thereto. For example, the order of time points at which the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250 transmit messages (eg, response messages) may be randomly set. .

일 실시예에서, 다른 적어도 하나의 외부 전자 장치로부터 응답 메시지를 수신하기 위해, 클러스터 내 위치하는 적어도 하나의 외부 전자 장치는 거리 측정 구간 동안 통신 회로 예컨대, UWB 모듈을 활성화(또는 온)시킬 수 있다. 적어도 하나의 외부 전자 장치는 UWB 모듈을 활성화(또는 온)함으로써, 다른 적어도 하나의 외부 전자 장치와 송수신하는 메시지를 수신할 수 있다. 또한, 적어도 하나의 외부 전자 장치는 UWB 모듈을 활성화(또는 온)함으로써, 다른 적어도 두 개의 전자 장치들이 브로드캐스팅하는 메시지를 수신하거나, 또는 다른 적어도 두 개의 외부 전자 장치들이 유니캐스팅 방식으로 송수신하는 메시지를 스니핑(snipping)하여 수신할 수 있다.In one embodiment, in order to receive a response message from at least one other external electronic device, at least one external electronic device located in the cluster may activate (or turn on) a communication circuit, for example, a UWB module during a distance measurement section. . At least one external electronic device may activate (or turn on) the UWB module to receive a message transmitted/received with at least one other external electronic device. Also, by activating (or turning on) the UWB module, at least one external electronic device receives a message broadcasted by at least two other electronic devices, or a message transmitted and received by at least two other external electronic devices in a unicasting manner. It can be received by sniffing.

일 실시예에서, 전자 장치(210)는 거리 측정 구간 동안 통신 회로 예컨대, UWB 모듈을 활성화(또는 온)시킬 수 있으며, 이에 따라, 복수의 외부 전자 장치들이 브로드캐스팅하는 메시지를 수신하거나, 또는 유니캐스팅 방식으로 복수의 외부 전자 장치 간에 송수신하는 메시지를 스니핑(snipping)으로 수신하여, 전자 장치(210)의 위치를 측정하는 데 이용할 수 있다.In one embodiment, the electronic device 210 may activate (or turn on) a communication circuit, for example, a UWB module, during the distance measurement section, and thus receive a message broadcast by a plurality of external electronic devices, or a UWB module. A message transmitted and received between a plurality of external electronic devices in a casting method may be received through sniffing and used to measure the location of the electronic device 210 .

도 3은, 다양한 실시예들에 따른, 외부 전자 장치를 도시한 블록도(300)이다.3 is a block diagram 300 illustrating an external electronic device, according to various embodiments.

다양한 실시예들에 따른 도 3에 도시된 외부 전자 장치는 전술한 도 2의 제4 외부 전자 장치(250)일 수 있다. 이에 한정하는 것은 아니며, 도 3에 도시된 외부 전자 장치는 전술한 도 2의 제2 외부 전자 장치(230) 또는 제3 외부 전자 장치(240)일 수 있다.The external electronic device shown in FIG. 3 according to various embodiments may be the aforementioned fourth external electronic device 250 of FIG. 2 . The present invention is not limited thereto, and the external electronic device shown in FIG. 3 may be the second external electronic device 230 or the third external electronic device 240 of FIG. 2 described above.

도 3을 참조하면, 제4 외부 전자 장치(250)는 무선 통신 회로(310)(예: 도 1의 통신 모듈(190)), 메모리(320)(예: 도 1의 메모리(130)), 및/또는 프로세서(330)(예: 도 1의 프로세서(120))를 포함할 수 있다.Referring to FIG. 3, the fourth external electronic device 250 includes a wireless communication circuit 310 (eg, the communication module 190 of FIG. 1), a memory 320 (eg, the memory 130 of FIG. 1), and/or processor 330 (eg, processor 120 of FIG. 1 ).

다양한 실시예들에서, 통신 회로(310)(예: 도 1의 통신 모듈(190))는 적어도 하나의 전자 장치(예: 도 2의 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240))와의 연결을 지원할 수 있다. 통신 회로(310)는 근거리 통신 회로를 포함할 수 있으며, 근거리 통신 회로는 블루투스(Bluetooth), 저전력 블루투스(Bluetooth low energy, BLE), UWB(ultra wide band), 또는 와이파이(Wi-Fi) 중 적어도 하나를 포함할 수 있다.In various embodiments, the communication circuit 310 (eg, the communication module 190 of FIG. 1 ) includes at least one electronic device (eg, the electronic device 210 of FIG. 2 , the first external electronic device 220 , A connection with the second external electronic device 230 and/or the third external electronic device 240 may be supported. The communication circuit 310 may include a short-range communication circuit, wherein the short-range communication circuit is at least one of Bluetooth, Bluetooth low energy (BLE), ultra wide band (UWB), or Wi-Fi. may contain one.

일 실시예에서, 제4 외부 전자 장치(250)는 BLE(Bluetooth low energy)와 같은 저전력 통신 모듈을 이용하여 UWB 통신의 활성화를 제어할 수 있다. 이에 한정하는 것은 아니며, 제4 외부 전자 장치(250)는 Wi-Fi, UWB 인-밴드 디스커버리 스킴(in-band discovery scheme), 또는 아웃-오브-밴드(out-of-band)를 이용하여 UWB 통신의 활성화를 제어할 수 있다.In one embodiment, the fourth external electronic device 250 may control activation of UWB communication using a low power communication module such as Bluetooth low energy (BLE). It is not limited thereto, and the fourth external electronic device 250 uses Wi-Fi, a UWB in-band discovery scheme, or an out-of-band to perform UWB Activation of communication can be controlled.

다양한 실시예들에서, 메모리(320)(예: 도 1의 메모리(130))는 외부 전자 장치의 프로세서(330)의 처리 및 제어를 위한 프로그램(예: 도 1의 프로그램(140)), 운영 체제(operating system, OS)(예: 도 1의 운영 체제(142)), 다양한 어플리케이션, 및/또는 입/출력 데이터를 저장하는 기능을 수행하며, 제4 외부 전자 장치(250)의 전반적인 동작을 제어하는 프로그램을 저장할 수 있다. 메모리(320)는 제4 외부 전자 장치(250)에서 본 개시의 다양한 실시예들과 관련된 기능 처리 시 필요한 다양한 설정 정보를 저장할 수 있다.In various embodiments, the memory 320 (eg, the memory 130 of FIG. 1 ) is a program (eg, the program 140 of FIG. 1 ) for processing and control of the processor 330 of the external electronic device, operation It performs a function of storing an operating system (OS) (eg, the operating system 142 of FIG. 1 ), various applications, and/or input/output data, and controls the overall operation of the fourth external electronic device 250. The program to control can be saved. The memory 320 may store various setting information necessary for the fourth external electronic device 250 to process functions related to various embodiments of the present disclosure.

일 실시예에서, 메모리(320)는 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)) 간 송수신한 메시지들의 시간 정보를 저장할 수 있다. 시간 정보는, 각 외부 전자 장치가 다른 외부 전자 장치에서 전송되는 메시지를 수신한 수신 시간, 및/또는 각 외부 전자 장치가 메시지를 전송한 전송 시간, 및/또는 응답 시간을 포함할 수 있다.In one embodiment, the memory 320 may be external electronic devices (eg, the first external electronic device 220 , the second external electronic device 230 , the third external electronic device 240 , and/or the fourth external electronic device 220 ). Time information of messages transmitted and received between the electronic devices 250 may be stored. The time information may include a reception time at which each external electronic device receives a message transmitted from another external electronic device, a transmission time at which each external electronic device transmits a message, and/or a response time.

다양한 실시예들에서, 프로세서(330)(예: 도 1의 프로세서(120))는 예를 들어, 마이크로 컨트롤러 유닛(micro controller unit, MCU)을 포함할 수 있고, 운영 체제(OS) 또는 임베디드 소프트웨어 프로그램을 구동하여 프로세서(330)에 연결된 다수의 하드웨어 구성요소들을 제어할 수 있다. 프로세서(330)는, 예를 들어, 메모리(320)에 저장된 인스트럭션들(예: 도 1의 프로그램(140))에 따라 다수의 하드웨어 구성요소들을 제어할 수 있다.In various embodiments, processor 330 (eg, processor 120 of FIG. 1 ) may include, for example, a micro controller unit (MCU), operating system (OS) or embedded software A plurality of hardware components connected to the processor 330 may be controlled by driving the program. The processor 330 may control a number of hardware components according to, for example, instructions stored in the memory 320 (eg, the program 140 of FIG. 1 ).

다양한 실시예들에서, 프로세서(330)는 제1 외부 전자 장치(220)로부터 거리 측정(range measurement)을 위한 제1 메시지(예: 폴 메시지)가 수신되면, 제1 메시지의 수신 시간을 메모리(320)에 저장할 수 있다. 프로세서(330)는 제1 메시지에 대한 응답으로, 제2 외부 전자 장치(230)가 전송하는 제1 응답 시간을 포함하는 제2 메시지(예: 응답 메시지)가 수신되면, 제2 메시지의 수신 시간을 메모리(320)에 저장할 수 있다. 예컨대, 제1 응답 시간은, 제1 외부 전자 장치(220)로부터 전송되는 제1 메시지가 제2 외부 전자 장치(230)에 수신된 시간과 제2 외부 전자 장치(230)가 전송하는 제2 메시지의 전송 시간에 기반하여 산출될 수 있다. 프로세서(330)는 제1 메시지에 대한 응답으로, 제3 외부 전자 장치(240)가 전송하는 제2 및 제3 응답 시간을 포함하는 제3 메시지(예: 응답 메시지)가 수신되면, 제3 메시지의 수신 시간을 메모리(320)에 저장할 수 있다. 예컨대, 제2 응답 시간은, 제1 외부 전자 장치(220)로부터 전송되는 제1 메시지가 제3 외부 전자 장치(240)에 수신된 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지의 전송 시간에 기반하여 산출될 수 있다. 제3 응답 시간은, 제2 외부 전자 장치(230)로부터 전송되는 제2 메시지가 제3 외부 전자 장치(240)에 수신된 시간과 제3 외부 전자 장치(240)가 전송할 제3 메시지의 전송 시간에 기반하여 산출될 수 있다.In various embodiments, when a first message (eg, a poll message) for range measurement is received from the first external electronic device 220, the processor 330 sets the reception time of the first message to a memory ( 320). When a second message (eg, a response message) including the first response time transmitted by the second external electronic device 230 is received in response to the first message, the processor 330 determines the reception time of the second message. Can be stored in the memory 320. For example, the first response time is the time when the first message transmitted from the first external electronic device 220 is received by the second external electronic device 230 and the second message transmitted by the second external electronic device 230 It can be calculated based on the transmission time of When a third message (eg, a response message) including second and third response times transmitted by the third external electronic device 240 is received in response to the first message, the processor 330 receives the third message. The reception time of can be stored in the memory 320. For example, the second response time is the time when the first message transmitted from the first external electronic device 220 is received by the third external electronic device 240 and the third external electronic device 240 in response to the first message. ) may be calculated based on the transmission time of the third message to be transmitted. The third response time is the time when the second message transmitted from the second external electronic device 230 is received by the third external electronic device 240 and the transmission time of the third message to be transmitted by the third external electronic device 240. can be calculated based on

일 실시예에서, 프로세서(330)는 제4, 제5, 및 제6 응답 시간과 제1 메시지에 대한 응답으로 전송할 제4 메시지의 전송 시간을 포함하는 제4 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 예컨대, 제4 응답 시간은, 제4 외부 전자 장치(250)에 의해, 제1 외부 전자 장치(220)로부터 전송되는 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 전송할 제4 메시지(예: 응답 메시지)의 전송 시간에 기반하여 산출될 수 있다. 제5 응답 시간은, 제4 외부 전자 장치(250)에 의해, 제2 외부 전자 장치(230)로부터 수신되는 제2 메시지의 수신 시간과 제4 메시지의 전송 시간에 기반하여 산출될 수 있다. 제6 응답 시간은, 제4 외부 전자 장치(250)에 의해, 제3 외부 전자 장치(240)로부터 수신되는 제3 메시지의 수신 시간과 제4 메시지의 전송 시간에 기반하여 산출될 수 있다.In one embodiment, the processor 330 sends a fourth message (eg, a response message) including fourth, fifth, and sixth response times and a transmission time of a fourth message to be transmitted in response to the first message. 1 can be transmitted to the external electronic device 220. For example, the fourth response time may be the reception time of the first message transmitted from the first external electronic device 220 by the fourth external electronic device 250 and the fourth message to be transmitted in response to the first message (eg : It can be calculated based on the transmission time of the response message). The fifth response time may be calculated by the fourth external electronic device 250 based on the reception time of the second message received from the second external electronic device 230 and the transmission time of the fourth message. The sixth response time may be calculated by the fourth external electronic device 250 based on the reception time of the third message received from the third external electronic device 240 and the transmission time of the fourth message.

일 실시예에서, 프로세서(330)는 제1 외부 전자 장치(220)로부터 전송되는 전송 시간을 포함하는 제5 메시지가 수신되면, 제5 메시지의 수신 시간을 메모리(320)에 저장할 수 있다. 제5 메시지는 파이널 메시지(final message)일 수 있다. 제5 메시지는, 제1 외부 전자 장치(220)가 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간에 기반하여 산출된 제7 응답 시간, 제1 외부 전자 장치(220)가 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간에 기반하여 산출된 제8 응답 시간, 및 제1 외부 전자 장치(220)가 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간에 기반하여 산출된 제9 응답 시간을 더 포함할 수 있다.In one embodiment, when the fifth message including the transmission time transmitted from the first external electronic device 220 is received, the processor 330 may store the reception time of the fifth message in the memory 320 . The fifth message may be a final message. The fifth message corresponds to the reception time of the second message received by the first external electronic device 220 from the second external electronic device 230 and the transmission time of the fifth message transmitted by the first external electronic device 220. The seventh response time calculated based on the received time of the third message received by the first external electronic device 220 from the third external electronic device 240 and the fifth message transmitted by the first external electronic device 220 The eighth response time calculated based on the transmission time of and the reception time of the fourth message received by the first external electronic device 220 from the fourth external electronic device 250 and the first external electronic device 220 It may further include a ninth response time calculated based on the transmission time of the fifth message to be transmitted.

일 실시예에서, 프로세서(330)는 제5 메시지에 대한 응답으로, 제2 외부 전자 장치(230)가 전송하는 전송 시간을 포함하는 제6 메시지(예: 응답 메시지)가 수신되면, 제6 메시지의 수신 시간을 메모리(320)에 저장할 수 있다. 제6 메시지는, 제1 외부 전자 장치(220)가 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간에 기반하여 산출된 제10 응답 시간, 제2 외부 전자 장치(230)가 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간에 기반하여 산출된 제11 응답 시간, 및 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간에 기반하여 산출된 제12 응답 시간을 더 포함할 수 있다.In one embodiment, the processor 330 receives a sixth message (eg, a response message) including a transmission time transmitted by the second external electronic device 230 as a response to the fifth message, the sixth message The reception time of can be stored in the memory 320. The sixth message corresponds to the reception time of the third message received by the first external electronic device 220 from the third external electronic device 240 and the transmission time of the sixth message transmitted by the second external electronic device 230. The tenth response time calculated based on the received time of the fourth message received by the second external electronic device 230 from the fourth external electronic device 250 and the sixth message transmitted by the second external electronic device 230 The eleventh response time calculated based on the transmission time of and the reception time of the fifth message received by the second external electronic device 230 from the first external electronic device 220 and the second external electronic device 230 A twelfth response time calculated based on the transmission time of the sixth message to be transmitted may be further included.

일 실시예에서, 프로세서(330)는 제5 메시지에 대한 응답으로, 제3 외부 전자 장치(240)가 전송하는 전송 시간을 포함하는 제 7 메시지(예: 응답 메시지)가 수신되면, 제7 메시지의 수신 시간을 메모리(320)에 저장할 수 있다. 제7 메시지는, 제3 외부 전자 장치(240)가 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간에 기반하여 산출된 제13 응답 시간, 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간에 기반하여 산출된 제14 응답 시간, 및 제3 외부 전자 장치(240)가 제2 외부 전자 장치(230)로부터 수신한 제6 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간에 기반하여 산출된 제15 응답 시간을 더 포함할 수 있다.In one embodiment, the processor 330 receives a seventh message (eg, a response message) including a transmission time transmitted by the third external electronic device 240 as a response to the fifth message, the seventh message The reception time of can be stored in the memory 320. The seventh message corresponds to the reception time of the fourth message received by the third external electronic device 240 from the fourth external electronic device 250 and the transmission time of the seventh message transmitted by the third external electronic device 240. The thirteenth response time calculated based on the received time of the fifth message received by the third external electronic device 240 from the first external electronic device 220 and the seventh message transmitted by the third external electronic device 240 The fourteenth response time calculated based on the transmission time of and the reception time of the sixth message received by the third external electronic device 240 from the second external electronic device 230 and the third external electronic device 240 A fifteenth response time calculated based on the transmission time of the seventh message to be transmitted may be further included.

일 실시예에서, 프로세서(330)는 제5 메시지에 대한 응답으로, 전송 시간을 포함하는 제8 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 제8 메시지는, 제4 외부 전자 장치(450)가 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제4 외부 전자 장치(450)가 전송하는 제8 메시지의 전송 시간에 기반하여 산출된 제16 응답 시간, 제4 외부 전자 장치(450)가 제2 외부 전자 장치(230)로부터 수신한 제6 메시지의 수신 시간과 제4 외부 전자 장치(450)가 전송하는 제8 메시지의 전송 시간에 기반하여 산출된 제17 응답 시간, 및 제4 외부 전자 장치(450)가 제3 외부 전자 장치(240)로부터 수신한 제7 메시지의 수신 시간과 제4 외부 전자 장치(450)가 전송하는 제8 메시지의 전송 시간에 기반하여 산출된 제18 응답 시간을 더 포함할 수 있다.In an embodiment, the processor 330 may transmit an eighth message (eg, a response message) including a transmission time to the first external electronic device 220 as a response to the fifth message. The eighth message corresponds to the reception time of the fifth message received by the fourth external electronic device 450 from the first external electronic device 220 and the transmission time of the eighth message transmitted by the fourth external electronic device 450. The sixteenth response time calculated based on the received time of the sixth message received by the fourth external electronic device 450 from the second external electronic device 230 and the eighth message transmitted by the fourth external electronic device 450 The seventeenth response time calculated based on the transmission time of and the reception time of the seventh message received by the fourth external electronic device 450 from the third external electronic device 240 and the fourth external electronic device 450 An eighteenth response time calculated based on the transmission time of the eighth message to be transmitted may be further included.

다양한 실시예들에서, 미도시 되었으나, 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는, 제4 외부 전자 장치(250)와 동일하게, 통신 회로, 메모리, 및/또는 프로세서를 포함할 수 있다.In various embodiments, although not shown, the electronic device 210, the first external electronic device 220, the second external electronic device 230, and/or the third external electronic device 240 may include a fourth external electronic device. Like the electronic device 250, it may include a communication circuit, a memory, and/or a processor.

다양한 실시예들에 따른 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)가 제4 외부 전자 장치(250)와 동일하게, 통신 회로, 메모리, 및/또는 프로세서를 포함하는 경우, 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)의 동작은 전술한 제4 외부 전자 장치(250)의 통신 회로(310), 메모리(320), 및/또는 프로세서(330)의 동작과 유사할 수 있다.The first external electronic device 220 , the second external electronic device 230 , and/or the third external electronic device 240 according to various embodiments are the same as the fourth external electronic device 250 , and the communication circuit , memory, and/or processor, the operation of the second external electronic device 230 and/or the third external electronic device 240 is performed by the communication circuit 310 of the aforementioned fourth external electronic device 250. ), memory 320, and/or processor 330.

다양한 실시예들에서, 전자 장치(210)의 통신 회로는 복수의 외부 전자 장치들(예: 도 2의 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)) 간 송수신되는 메시지들을 수신하도록 지원할 수 있다.In various embodiments, the communication circuit of the electronic device 210 includes a plurality of external electronic devices (eg, the first external electronic device 220 of FIG. 2 , the second external electronic device 230 , and the third external electronic device). 240 and/or the fourth external electronic device 250 may support reception of messages transmitted and received.

다양한 실시예들에서, 전자 장치(210)의 메모리는 복수의 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)) 간 송수신한 메시지들의 시간 정보를 저장할 수 있다. 시간 정보는, 각 외부 전자 장치가 다른 외부 전자 장치에서 전송되는 메시지를 수신한 수신 시간, 및/또는 각 외부 전자 장치가 메시지를 전송한 전송 시간, 및/또는 응답 시간을 포함할 수 있다.In various embodiments, the memory of the electronic device 210 may include a plurality of external electronic devices (eg, the first external electronic device 220, the second external electronic device 230, the third external electronic device 240, and/or time information of messages transmitted and received between the fourth external electronic device 250 may be stored. The time information may include a reception time at which each external electronic device receives a message transmitted from another external electronic device, a transmission time at which each external electronic device transmits a message, and/or a response time.

다양한 실시예들에서, 전자 장치(210)의 프로세서는 제1 외부 전자 장치(220)가 전송하는 거리 측정을 위한 제1 메시지(예: 폴 메시지)가 수신되면, 제1 메시지의 수신 시간을 메모리에 저장할 수 있다. 전자 장치(210)의 프로세서는 제1 메시지에 대한 응답으로, 제2 외부 전자 장치(230)가 전송하는 제1 응답 시간을 포함하는 제2 메시지가 수신되면, 제1 응답 시간, 제2 메시지의 수신 시간, 및 제2 메시지의 전송 시간을 메모리에 저장할 수 있다. 전자 장치(210)의 프로세서는 제1 메시지에 대한 응답으로, 제3 외부 전자 장치(240)가 전송하는 제2 및 제3 응답 시간을 포함하는 제3 메시지가 수신되면, 제2 및 제3 응답 시간, 제3 메시지의 수신 시간, 및 제3 메시지의 전송 시간을 메모리에 저장할 수 있다. 전자 장치(210)의 프로세서는 제1 메시지에 대한 응답으로, 제4 외부 전자 장치(250)가 전송하는 제4, 제5, 및 제6 응답 시간을 포함하는 제4 메시지가 수신되면, 제4, 제5, 및 제6 응답 시간, 제4 메시지의 수신 시간, 및 제4 메시지의 전송 시간을 메모리에 저장할 수 있다 전자 장치(210)의 프로세서는 제1 외부 전자 장치(220)로부터 제5 메시지(예: 파이널 메시지(final message)가 수신되면, 제5 메시지의 수신 시간을 메모리에 저장할 수 있다. 전자 장치(210)의 프로세서는 제5 메시지에 대한 응답으로, 제2 외부 전자 장치(230)가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 제6 메시지의 수신 시간 및 제6 메시지의 전송 시간을 메모리에 저장할 수 있다. 전자 장치(210)의 프로세서는 제5 메시지에 대한 응답으로, 제3 외부 전자 장치(240)가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 제7 메시지의 수신 시간 및 제7 메시지의 전송 시간을 메모리에 저장할 수 있다. 전자 장치(210)의 프로세서는 제5 메시지에 대한 응답으로, 제4 외부 전자 장치(250)가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 제8 메시지의 수신 시간 및 제8 메시지의 전송 시간을 저장할 수 있다. 전자 장치(210)의 프로세서는 메모리에 저장된 제1 내지 제4 메시지들의 수신 시간 및 전송 시간과 제5 내지 제8 메시지들의 수신 시간 및 전송 시간에 기반하여, 복수의 외부 전자 장치들과의 클럭 오차(clock drift)를 보상할 수 있다. 전자 장치(210)의 프로세서는 보상된 클럭 오차에 기반하여, 복수의 외부 전자 장치들과의 도래시간차(TDoA, time difference of arrival)를 산출하고, 이에 기반하여, 전자 장치(210)의 위치를 측정할 수 있다. In various embodiments, when a first message (eg, a poll message) for distance measurement transmitted by the first external electronic device 220 is received, the processor of the electronic device 210 stores the reception time of the first message in memory. can be stored in When the processor of the electronic device 210 receives a second message including the first response time transmitted by the second external electronic device 230 as a response to the first message, the first response time, the second message The reception time and the transmission time of the second message may be stored in the memory. When a third message including second and third response times transmitted by the third external electronic device 240 is received as a response to the first message, the processor of the electronic device 210 receives the second and third responses. The time, the reception time of the third message, and the transmission time of the third message may be stored in the memory. When the processor of the electronic device 210 receives a fourth message including fourth, fifth, and sixth response times transmitted by the fourth external electronic device 250 in response to the first message, the fourth external electronic device 250 transmits a fourth message. , 5th, and 6th response times, a reception time of the fourth message, and a transmission time of the fourth message may be stored in a memory. The processor of the electronic device 210 receives the fifth message from the first external electronic device 220. (Example: When a final message is received, the reception time of the fifth message may be stored in a memory. In response to the fifth message, the processor of the electronic device 210 sends the second external electronic device 230 When the sixth message including the transmission time transmitted by is received, the reception time of the sixth message and the transmission time of the sixth message may be stored in the memory The processor of the electronic device 210 responds to the fifth message. , When the seventh message including the transmission time transmitted by the third external electronic device 240 is received, the reception time of the seventh message and the transmission time of the seventh message may be stored in the memory. When an eighth message including a transmission time transmitted by the fourth external electronic device 250 is received as a response to the fifth message, the processor may store the reception time of the eighth message and the transmission time of the eighth message. The processor of the electronic device 210 clocks with a plurality of external electronic devices based on the reception and transmission times of the first to fourth messages and the reception and transmission times of the fifth to eighth messages stored in the memory. A processor of the electronic device 210 calculates a time difference of arrival (TDoA) with a plurality of external electronic devices based on the compensated clock drift, and thereby Based on this, the position of the electronic device 210 can be measured.

다양한 실시예들에 따른 전자 장치(예: 제1 외부 전자 장치(220))는, 통신 회로(310), 메모리(320), 및 상기 통신 회로(310) 및 상기 메모리(320)와 작동적으로 연결된 프로세서(330)를 포함하며, 상기 프로세서(330)는, 상기 통신 회로(310)를 통해, 제1 거리 측정 구간에서 거리 측정을 위한 제1 메시지를 전송하고, 상기 제1 메시지에 대한 응답으로, 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 제1 응답 시간을 포함하는 제2 메시지를 상기 통신 회로(310)를 통해 수신하고, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지를 상기 통신 회로(310)를 통해 수신하고, 및 상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지를 상기 통신 회로(310)를 통해 수신하도록 설정되고, 상기 제1 응답 시간은, 상기 제1 메시지를 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 수신한 수신 시간과 상기 제2 메시지의 전송 시간의 차이이고, 상기 제2 응답 시간은, 상기 제1 메시지를 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고, 상기 제3 응답 시간은 상기 제2 메시지를 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고, 상기 제4 응답 시간은 상기 제1 메시지를 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 상기 제5 응답 시간은 상기 제2 메시지를 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 및 상기 제6 응답 시간은 상기 제3 메시지를 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이일 수 있다.An electronic device (eg, the first external electronic device 220) according to various embodiments may operate with the communication circuit 310, the memory 320, and the communication circuit 310 and the memory 320. It includes a connected processor 330, and the processor 330, through the communication circuit 310, transmits a first message for distance measurement in a first distance measurement section, and in response to the first message , A second message including a first response time transmitted by a first external electronic device (eg, the second external electronic device 230) is received through the communication circuit 310, and a response to the first message is received. Receive a third message including a second response time and a third response time transmitted by a second external electronic device (eg, the third external electronic device 240) through the communication circuit 310, and A fourth message including a fourth response time, a fifth response time, and a sixth response time transmitted by a third external electronic device (eg, the fourth external electronic device 250) in response to the first message. is set to receive through the communication circuit 310, and the first response time is a reception time at which the first message is received by the first external electronic device (eg, the second external electronic device 230) and It is a difference in transmission time of the second message, and the second response time is a time when the second external electronic device (eg, the third external electronic device 240) receives the first message and the third message The third response time is a difference between a time when the second message is received by the second external electronic device (eg, the third external electronic device 240) and a transmission time of the third message. The fourth response time is a difference between a time when the third external electronic device (eg, the fourth external electronic device 250) receives the first message and a transmission time of the fourth message, and the fifth The response time is a difference between a time when the third external electronic device (eg, the fourth external electronic device 250) receives the second message and a transmission time of the fourth message, and the sixth response time is the It may be a difference between a time when the third message is received by the third external electronic device (eg, the fourth external electronic device 250) and a transmission time of the fourth message.

다양한 실시예들에서, 상기 프로세서(330)는, 상기 통신 회로(310)를 통해, 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간을 포함하는 제5 메시지를 상기 통신 회로를 통해 전송하고, 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간을 저장하고, 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 상기 제7 메시지의 수신 시간을 저장하고, 및 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 상기 제8 메시지의 수신 시간을 저장하도록 설정될 수 있다.In various embodiments, the processor 330 transmits, through the communication circuit 310, a fifth message including a seventh response time, an eighth response time, and a ninth response time through the communication circuit. and, in response to the fifth message, a sixth message including a transmission time transmitted by the first external electronic device (eg, the second external electronic device 230) through the communication circuit 310 When received, the reception time of the sixth message is stored, and in response to the fifth message, the second external electronic device (eg, the third external electronic device 240) is transmitted through the communication circuit 310 When a seventh message including a transmission time transmitted by is received, the reception time of the seventh message is stored, and in response to the fifth message, through the communication circuit 310, the third external electronic When an eighth message including a transmission time transmitted by a device (eg, the fourth external electronic device 250) is received, the reception time of the eighth message may be stored.

다양한 실시예들에서, 상기 제7 응답 시간은, 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))로부터 수신한 상기 제2 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이이고, 상기 제8 응답 시간은, 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이이고, 및 상기 제9 응답 시간은, 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이일 수 있다.In various embodiments, the seventh response time is a ratio between a reception time of the second message received from the first external electronic device (eg, the second external electronic device 230) and a transmission time of the fifth message. difference, and the eighth response time is a difference between a reception time of the third message received from the second external electronic device (eg, the third external electronic device 240) and a transmission time of the fifth message, The ninth response time may be a difference between a reception time of the fourth message received from the third external electronic device (eg, the fourth external electronic device 250) and a transmission time of the fifth message.

다양한 실시예들에서, 상기 제6 메시지는, 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))에 의해 산출된 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))에 의해 산출된 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))에 의해 산출된 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 상기 전자 장치(예: 제1 외부 전자 장치(220))로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함할 수 있다.In various embodiments, the sixth message is the first external electronic device (eg, the second external electronic device 230) calculated by the first external electronic device (eg, the second external electronic device 230). )) the reception time of the third message received from the second external electronic device (eg, the third external electronic device 240) and the first external electronic device (eg, the second external electronic device 230) 10th response time for the transmission time difference of the sixth message transmitted by the first external electronic device (eg, the second external electronic device 230) calculated by the first external electronic device (eg, the second external electronic device 230). 2 The reception time of the fourth message received by the external electronic device 230 from the third external electronic device (eg, the fourth external electronic device 250) and the first external electronic device (eg, the second external electronic device 250). An eleventh response time for a transmission time difference of the sixth message transmitted by the electronic device 230, and the first response time calculated by the first external electronic device (eg, the second external electronic device 230). The reception time of the fifth message received by the external electronic device (eg, the second external electronic device 230) from the electronic device (eg, the first external electronic device 220) and the first external electronic device (eg, the first external electronic device 220) : A twelfth response time for a difference in transmission time of the sixth message transmitted by the second external electronic device 230 may be included.

다양한 실시예들에서, 상기 제7 메시지는, 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))에 의해 산출된 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))에 의해 산출된 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 상기 전자 장치(예: 제1 외부 전자 장치(220))로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))에 의해 산출된 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함할 수 있다.In various embodiments, the seventh message is the second external electronic device (eg, the third external electronic device 240) calculated by the second external electronic device (eg, the third external electronic device 240). )) the reception time of the fourth message received from the third external electronic device (eg, the fourth external electronic device 250) and the second external electronic device (eg, the third external electronic device 240) A thirteenth response time for a transmission time difference of the seventh message transmitted by the second external electronic device (eg, the third external electronic device 240) calculated by the second external electronic device (eg, the third external electronic device 240). 3 The reception time of the fifth message received by the external electronic device 240 from the electronic device (eg, the first external electronic device 220) and the second external electronic device (eg, the third external electronic device (eg, the third external electronic device) 240))) and the second external electronic device calculated by the second external electronic device (eg, the third external electronic device 240) (eg, the third external electronic device 240) receives the sixth message received from the first external electronic device (eg, the second external electronic device 230) and the second external electronic device (eg, the second external electronic device 230) : may include a fifteenth response time for a transmission time difference of the seventh message transmitted by the third external electronic device 240).

다양한 실시예들에서, 상기 제8 메시지는, 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))에 의해 산출된 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 상기 전자 장치(예: 제1 외부 전자 장치(220))로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))에 의해 산출된 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))에 의해 산출된 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))로부터 수신한 상기 제7 메시지의 수신 시간과 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함할 수 있다.In various embodiments, the eighth message is the third external electronic device (eg, the fourth external electronic device 250) calculated by the third external electronic device (eg, the fourth external electronic device 250). )) the reception time of the fifth message received from the electronic device (eg, the first external electronic device 220) and the transmission time of the third external electronic device (eg, the fourth external electronic device 250) The sixteenth response time for the transmission time difference of the eighth message, the third external electronic device (eg, the fourth external electronic device 250) calculated by the third external electronic device (eg, the fourth external electronic device 250) The reception time of the sixth message received by the device 250 from the first external electronic device (eg, the second external electronic device 230) and the third external electronic device (eg, the fourth external electronic device (eg, the fourth external electronic device) 250))) and the third external electronic device calculated by the third external electronic device (eg, the fourth external electronic device 250). (eg, the fourth external electronic device 250) receives the seventh message received from the second external electronic device (eg, the third external electronic device 240) and the third external electronic device (eg, the third external electronic device 240) : may include an eighteenth response time for a transmission time difference of the eighth message transmitted by the fourth external electronic device 250).

다양한 실시예들에서, 상기 프로세서(330)는, 상기 제2 메시지의 수신 시간, 상기 제3 메시지의 수신 시간, 및 상기 제4 메시지의 수신 시간을 상기 메모리(320)에 저장하도록 설정될 수 있다.In various embodiments, the processor 330 may be configured to store the reception time of the second message, the reception time of the third message, and the reception time of the fourth message in the memory 320. .

다양한 실시예들에서, 상기 프로세서(330)는, 상기 통신 회로(310)를 통해, 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 전송 시간을 포함하는 제5 메시지가 수신되면, 상기 제5 메시지의 수신 시간을 상기 메모리(320)에 저장하고, 상기 통신 회로(310)를 통해, 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간을 상기 메모리(320)에 저장하고, 및 상기 통신 회로(310)를 통해, 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 제7 메시지의 수신 시간을 상기 메모리(320)에 저장하도록 설정될 수 있다.In various embodiments, the processor 330 may, through the communication circuit 310, transmit a transmission time from the first external electronic device (eg, the second external electronic device 230) to a fifth transmission time. When a message is received, the reception time of the fifth message is stored in the memory 320, and the second external electronic device (eg, the third external electronic device 240) via the communication circuit 310 When a sixth message including a transmission time is received, the reception time of the sixth message is stored in the memory 320, and through the communication circuit 310, the third external electronic device (eg: When a seventh message including a transmission time transmitted by the fourth external electronic device 250 is received, the reception time of the seventh message may be stored in the memory 320 .

다양한 실시예들에 따른 전자 장치(210)는, 통신 회로(310), 메모리(320), 및 상기 통신 회로(310) 및 상기 메모리(320)와 작동적으로 연결된 프로세서(330)를 포함하며, 상기 프로세서(330)는, 상기 통신 회로(310)를 통해, 제1 외부 전자 장치(220)가 전송하는 거리 측정을 위한 제1 메시지가 수신되면, 상기 제1 메시지의 수신 시간을 상기 메모리(320)에 저장하고, 상기 통신 회로(310)를 통해, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치(230)로부터 제1 응답 시간을 포함하는 제2 메시지가 수신되면, 상기 제1 응답 시간, 상기 제2 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하고, 상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치(240)로부터 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지가 수신되면, 상기 제2 응답 시간, 상기 제3 응답 시간, 상기 제3 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하고, 및 상기 제1 메시지에 대한 응답으로, 제4 외부 전자 장치(250)로부터 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지가 수신되면, 상기 제4 응답 시간, 상기 제5 응답 시간, 상기 제6 응답 시간, 상기 제4 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장할 수 있다.An electronic device 210 according to various embodiments includes a communication circuit 310, a memory 320, and a processor 330 operatively connected to the communication circuit 310 and the memory 320, When the first message for distance measurement transmitted by the first external electronic device 220 is received through the communication circuit 310, the processor 330 sets the reception time of the first message to the memory 320. ), and when a second message including a first response time is received from the second external electronic device 230 as a response to the first message through the communication circuit 310, the first response time, reception time and transmission time of the second message are stored in the memory 320, and in response to the first message, a second response time and a third response time are received from the third external electronic device 240. When a third message including the received message is received, the second response time, the third response time, the reception time and the transmission time of the third message are stored in the memory 320, and in response to the first message , When a fourth message including a fourth response time, a fifth response time, and a sixth response time is received from the fourth external electronic device 250, the fourth response time, the fifth response time, and the sixth response time are received. The response time, reception time and transmission time of the fourth message may be stored in the memory 320 .

다양한 실시예들에서, 상기 프로세서(330)는, 상기 제1 응답 시간, 상기 제2 응답 시간, 상기 제3 응답 시간, 상기 제4 응답 시간, 상기 제5 응답 시간, 및 상기 제6 응답 시간에 기반하여, 상기 제1 외부 전자 장치(220), 상기 제2 외부 전자 장치(230), 상기 제3 외부 전자 장치(240), 및 상기 제4 외부 전자 장치(250)와 상기 전자 장치(210)와의 도래시간차를 산출하고, 및 상기 산출된 도래시간차에 기반하여, 상기 전자 장치(210)의 위치를 측정하도록 설정될 수 있다.In various embodiments, the processor 330 determines the first response time, the second response time, the third response time, the fourth response time, the fifth response time, and the sixth response time. based on the first external electronic device 220, the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250 and the electronic device 210 It may be set to calculate a difference in time of arrival from and to measure the position of the electronic device 210 based on the calculated difference in time of arrival.

다양한 실시예들에서, 상기 프로세서(330)는, 상기 제1 메시지의 수신 시간, 상기 제2 메시지의 수신 시간 및 전송 시간, 상기 제3 메시지의 수신 시간 및 전송 시간, 및 상기 제4 메시지의 수신 시간 및 전송 시간과 상기 제5 메시지의 수신 시간, 상기 제6 메시지의 수신 시간 및 전송 시간, 상기 제7 메시지의 수신 시간 및 전송 시간, 및 상기 제8 메시지의 수신 시간 및 전송 시간에 기반하여, 상기 전자 장치(210)와 상기 제1 외부 전자 장치(220), 상기 제2 외부 전자 장치(230), 상기 제3 외부 전자 장치(240), 및 상기 제4 외부 전자 장치(250) 간의 클럭 오차(clock drift)를 보상하고, 상기 보상된 클럭 오차에 기반하여, 상기 전자 장치(210)와 상기 제1 외부 전자 장치(220), 상기 제2 외부 전자 장치(230), 상기 제3 외부 전자 장치(240), 및 상기 제4 외부 전자 장치(250) 간의 도래시간차(TDoA, time difference of arrival)를 산출하고, 및 상기 산출된 도래시간차에 기반하여, 복수의 외부 전자 장치들의 위치에 기반한 상기 전자 장치(210)의 위치를 측정하도록 설정될 수 있다.In various embodiments, the processor 330 may determine the reception time of the first message, the reception time and transmission time of the second message, the reception time and transmission time of the third message, and the reception of the fourth message. Based on the time and transmission time and the reception time of the fifth message, the reception time and transmission time of the sixth message, the reception time and transmission time of the seventh message, and the reception time and transmission time of the eighth message, Clock errors between the electronic device 210 and the first external electronic device 220, the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250 (clock drift) is compensated for, and based on the compensated clock error, the electronic device 210, the first external electronic device 220, the second external electronic device 230, and the third external electronic device 240, and calculating a time difference of arrival (TDoA) between the fourth external electronic device 250, and based on the calculated time difference of arrival, the electronic device based on the locations of a plurality of external electronic devices 250. Device 210 may be configured to measure a position.

다양한 실시예들에서, 상기 프로세서(330)는, 상기 통신 회로(310)를 통해, 상기 제1 외부 전자 장치(220)가 전송하는 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간을 포함하는 상기 제5 메시지를 수신되면, 상기 제5 메시지의 수신 시간을 상기 메모리(320)에 저장하고, 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제2 외부 전자 장치(230)가 전송하는 전송 시간을 포함하는 상기 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하고, 및 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제3 외부 전자 장치(240)가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 상기 제7 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하고, 및 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제4 외부 전자 장치(250)가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 상기 제8 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하고, 상기 제7 응답 시간은, 상기 제1 외부 전자 장치(220)가 상기 제2 외부 전자 장치(230)로부터 수신한 상기 제2 메시지의 수신 시간과 상기 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간의 차이이고, 상기 제8 응답 시간은, 상기 제1 외부 전자 장치(220)가 상기 제3 외부 전자 장치(240)로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제1 외부 전자 장치(220)가 전송하는 상기 제5 메시지의 전송 시간의 차이이고, 및 상기 제9 응답 시간은, 상기 제1 외부 전자 장치(220)가 상기 제4 외부 전자 장치(250)로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제1 외부 전자 장치(220)가 전송하는 상기 제5 메시지의 전송 시간의 차이일 수 있다.In various embodiments, the processor 330 determines the seventh response time, the eighth response time, and the ninth response time transmitted by the first external electronic device 220 through the communication circuit 310. When the fifth message including the fifth message is received, the reception time of the fifth message is stored in the memory 320, and in response to the fifth message, the second external electronic electronic circuit 310 through the communication circuit 310 When the sixth message including the transmission time transmitted by the device 230 is received, the reception time and the transmission time of the sixth message are stored in the memory 320, and in response to the fifth message, When a seventh message including a transmission time transmitted by the third external electronic device 240 is received through the communication circuit 310, the reception time and transmission time of the seventh message are stored in the memory 320. stored, and when an eighth message including a transmission time transmitted by the fourth external electronic device 250 is received through the communication circuit 310 in response to the fifth message, the eighth message A reception time and a transmission time of are stored in the memory 320, and the seventh response time is the value of the second message received by the first external electronic device 220 from the second external electronic device 230. It is the difference between the reception time and the transmission time of the fifth message transmitted by the first external electronic device 220, and the eighth response time is the difference between the first external electronic device 220 and the third external electronic device 240. is a difference between a reception time of the third message received from ) and a transmission time of the fifth message transmitted by the first external electronic device 220, and the ninth response time is the first external electronic device ( 220) may be a difference between a reception time of the fourth message received from the fourth external electronic device 250 and a transmission time of the fifth message transmitted by the first external electronic device 220.

다양한 실시예들에서, 상기 제6 메시지는, 상기 제2 외부 전자 장치(230)에 의해 산출된 상기 제2 외부 전자 장치(230)가 상기 제3 외부 전자 장치(240)로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제2 외부 전자 장치(230)가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 상기 제2 외부 전자 장치(230)에 의해 산출된 상기 제2 외부 전자 장치(230)가 상기 제4 외부 전자 장치(250)로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제2 외부 전자 장치(230)가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 상기 제2 외부 전자 장치(230)에 의해 산출된 상기 제2 외부 전자 장치(230)가 상기 제1 외부 전자 장치(220)로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제2 외부 전자 장치(230)가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함할 수 있다.In various embodiments, the sixth message is the third message calculated by the second external electronic device 230 and received by the second external electronic device 230 from the third external electronic device 240. A tenth response time for a difference between a message reception time and a transmission time of the sixth message transmitted by the second external electronic device 230, the second external electronic device calculated by the second external electronic device 230 An eleventh response to a difference between the reception time of the fourth message received by the device 230 from the fourth external electronic device 250 and the transmission time of the sixth message transmitted by the second external electronic device 230 time, and the reception time of the fifth message received by the second external electronic device 230 from the first external electronic device 220 calculated by the second external electronic device 230 and the second external electronic device 230 . A twelfth response time for a difference in transmission time of the sixth message transmitted by the electronic device 230 may be included.

다양한 실시예들에서, 상기 제7 메시지는, 상기 제3 외부 전자 장치(240)에 의해 산출된 상기 제3 외부 전자 장치(240)가 상기 제4 외부 전자 장치(250)로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제3 외부 전자 장치(240)가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 상기 제3 외부 전자 장치(240)에 의해 산출된 상기 제3 외부 전자 장치(240)가 상기 제1 외부 전자 장치(220)로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제3 외부 전자 장치(240)가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 상기 제3 외부 전자 장치(240)에 의해 산출된 상기 제3 외부 전자 장치(240)가 상기 제2 외부 전자 장치(230)로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제3 외부 전자 장치(240)가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함할 수 있다.In various embodiments, the seventh message is the fourth message calculated by the third external electronic device 240 and received by the third external electronic device 240 from the fourth external electronic device 250. A thirteenth response time for a difference between a message reception time and a transmission time of the seventh message transmitted by the third external electronic device 240, the third external electronic device calculated by the third external electronic device 240 A fourteenth response to a difference between the reception time of the fifth message received by the device 240 from the first external electronic device 220 and the transmission time of the seventh message transmitted by the third external electronic device 240 time, and the reception time of the sixth message received by the third external electronic device 240 from the second external electronic device 230 calculated by the third external electronic device 240 and the third external electronic device 240 . A fifteenth response time for the transmission time difference of the seventh message transmitted by the electronic device 240 may be included.

다양한 실시예들에서, 상기 제8 메시지는, 상기 제4 외부 전자 장치(250)에 의해 산출된 상기 제4 외부 전자 장치(250)가 상기 제1 외부 전자 장치(220)로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제4 외부 전자 장치(250)가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 상기 제4 외부 전자 장치(250)에 의해 산출된 상기 제4 외부 전자 장치(250)가 상기 제2 외부 전자 장치(230)로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제4 외부 전자 장치(250)가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 상기 제4 외부 전자 장치(250)에 의해 산출된 상기 제4 외부 전자 장치(250)가 상기 제3 외부 전자 장치(240)로부터 수신한 상기 제7 메시지의 수신 시간과 상기 제4 외부 전자 장치(250)가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함할 수 있다.In various embodiments, the eighth message is the fifth message calculated by the fourth external electronic device 250 and received by the fourth external electronic device 250 from the first external electronic device 220. A sixteenth response time for a difference between a message reception time and a transmission time of the eighth message transmitted by the fourth external electronic device 250, the fourth external electronic device calculated by the fourth external electronic device 250 A seventeenth response to a difference between the reception time of the sixth message received by the device 250 from the second external electronic device 230 and the transmission time of the eighth message transmitted by the fourth external electronic device 250 time, and the reception time of the seventh message received by the fourth external electronic device 250 from the third external electronic device 240 calculated by the fourth external electronic device 250 and the fourth external electronic device 250 . An eighteenth response time for a transmission time difference of the eighth message transmitted by the electronic device 250 may be included.

도 4a는, 다양한 실시예들에 따른, 제1 외부 전자 장치(220)의 동작을 설명하기 위한 흐름도(400)이다.4A is a flowchart 400 for describing an operation of a first external electronic device 220 according to various embodiments.

다양한 실시예들에 따른 도 4a는, SS-TWR 방식에서, 전자 장치(210), 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)) 간 메시지를 송수신하는 동작을 설명하기 위한 도면이다.4A according to various embodiments, in the SS-TWR scheme, an electronic device 210, external electronic devices (eg, a first external electronic device 220, a second external electronic device 230, a third external electronic device) It is a diagram for explaining an operation of transmitting and receiving a message between the electronic device 240 and/or the fourth external electronic device 250.

다양한 실시예들에서, 제1 외부 전자 장치(220)는 개시자(initiator)로, 제1 메시지(예: 폴(poll) 메시지)를 전송함으로써 위치 측정을 시작하는 장치일 수 있다.In various embodiments, the first external electronic device 220 may be an initiator and may be a device that starts location measurement by transmitting a first message (eg, a poll message).

다양한 실시예들에서, 제1 외부 전자 장치(220)는 거리 측정 구간(예: 레인징 라운드(ranging round)) 동안 통신 회로 예컨대, UWB 모듈을 활성화(또는 온)시킬 수 있다. UWB 모듈을 활성화(또는 온)함으로써, 제1 외부 전자 장치(220)는 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250)로부터 메시지(예: 응답 메시지)를 수신할 수 있다.In various embodiments, the first external electronic device 220 may activate (or turn on) a communication circuit, eg, a UWB module, during a distance measurement period (eg, a ranging round). By activating (or on) the UWB module, the first external electronic device 220 receives messages (eg, messages from the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250). : response message) can be received.

다양한 실시예들에서, 후술하는 405동작 내지 420동작, 및 도 4b의 455동작 내지 470동작은, 제1 거리 측정 구간(예: 제1 레인징 라운드)에서 수행될 수 있다.In various embodiments, operations 405 to 420 described below and operations 455 to 470 of FIG. 4B may be performed in a first distance measurement section (eg, a first ranging round).

도 4a를 참조하면, 제1 외부 전자 장치(220)는 405동작에서, 거리 측정을 위한 제1 메시지를 전송할 수 있다. 예컨대, 제1 메시지는 폴 메시지(poll message)를 포함할 수 있다.Referring to FIG. 4A , in operation 405, the first external electronic device 220 may transmit a first message for distance measurement. For example, the first message may include a poll message.

다양한 실시예들에서, 제1 메시지(예: 폴 메시지)의 형식은 하기 <표 1>과 같을 수 있다.In various embodiments, the format of the first message (eg, poll message) may be as shown in Table 1 below.

Message ControlMessage Control Round IndexRound Index Block IndexBlock Index TX TimestampTX Timestamp Responder DT-Anchor Management ListResponder DT-Anchor Management List Inter-Cluster SynchronizationInter-Cluster Synchronization Anchor LocationAnchor Location Active Ranging Round InformationActive Ranging Round Information

일 실시예에서, 제1 외부 전자 장치(220)는 410동작에서, 제1 메시지에 대한 응답으로, 제2 외부 전자 장치(230)로부터 제1 응답 시간을 포함하는 제2 메시지를 수신하면, 제2 메시지의 수신 시간을 저장할 수 있다. 예컨대, 제1 응답 시간은, 제2 외부 전자 장치(230)에 의해 산출된 제1 외부 전자 장치(220)가 전송한 제1 메시지를 제2 외부 전자 장치(230)가 수신한 수신 시간과 제1 메시지에 대한 응답으로 제2 외부 전자 장치(230)가 전송할 제2 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다.In an embodiment, when the first external electronic device 220 receives a second message including a first response time from the second external electronic device 230 in response to the first message in operation 410, the first external electronic device 220 receives the second message including the first response time. 2 Receive time of message can be stored. For example, the first response time is a reception time calculated by the second external electronic device 230 and a reception time at which the second external electronic device 230 receives the first message transmitted by the first external electronic device 220. It may be a difference in transmission time of a second message (eg, a response message) to be transmitted by the second external electronic device 230 in response to the first message.

일 실시예에서, 제1 외부 전자 장치(220)는 415동작에서, 제1 메시지에 대한 응답으로, 제3 외부 전자 장치(240)로부터 제2 및 제3 응답 시간을 포함하는 제3 메시지를 수신하면, 제3 메시지의 수신 시간을 저장할 수 있다. 예컨대, 제2 응답 시간은 제3 외부 전자 장치(240)에 의해 산출된 제1 외부 전자 장치(220)가 전송한 제1 메시지를 제3 외부 전자 장치(240)가 수신한 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제3 응답 시간은 제3 외부 전자 장치(240)에 의해 산출된 제2 외부 전자 장치(230)로부터 제2 메시지를 제3 외부 전자 장치(240)가 수신한 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간 차이일 수 있다.In an embodiment, in operation 415, the first external electronic device 220 receives a third message including second and third response times from the third external electronic device 240 in response to the first message. If so, the reception time of the third message can be stored. For example, the second response time is the time when the third external electronic device 240 receives the first message transmitted by the first external electronic device 220 calculated by the third external electronic device 240 and the first message It may be a difference in transmission time of a third message (eg, a response message) to be transmitted by the third external electronic device 240 in response to . The third response time is the time when the third external electronic device 240 receives the second message from the second external electronic device 230 calculated by the third external electronic device 240 and the response to the first message. This may be a transmission time difference of a third message (eg, a response message) to be transmitted by the third external electronic device 240 .

일 실시예에서, 제1 외부 전자 장치(220)는 420동작에서, 제1 메시지에 대한 응답으로, 제4 외부 전자 장치(250)로부터 제4, 제5, 및 제6 응답 시간을 포함하는 제4 메시지를 수신하면, 제4 메시지의 수신 시간을 저장할 수 있다. 예컨대, 제4 응답 시간은 제4 외부 전자 장치(250)에 의해 산출된 제1 외부 전자 장치(220)가 전송한 제1 메시지를 제4 외부 전자 장치(250)가 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제5 응답 시간은 제4 외부 전자 장치(250)에 의해 산출된 제2 외부 전자 장치(230)가 전송하는 제2 메시지를 제4 외부 전자 장치(250)가 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제6 응답 시간은 제4 외부 전자 장치(250)에 의해 산출된 제3 외부 전자 장치(240)가 전송하는 제3 메시지를 제4 외부 전자 장치(250)가 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다.In one embodiment, the first external electronic device 220, in operation 420, responds to the first message, from the fourth external electronic device 250, including fourth, fifth, and sixth response times. When the 4th message is received, the reception time of the 4th message may be stored. For example, the fourth response time is the time at which the fourth external electronic device 250 receives the first message transmitted by the first external electronic device 220 calculated by the fourth external electronic device 250 and the first message It may be a difference in transmission time of a fourth message (eg, a response message) to be transmitted by the fourth external electronic device 250 in response to . The fifth response time corresponds to the time when the fourth external electronic device 250 receives the second message transmitted by the second external electronic device 230 calculated by the fourth external electronic device 250 and the first message. It may be a difference in transmission time of a fourth message (eg, a response message) to be transmitted by the fourth external electronic device 250 as a response. The sixth response time corresponds to the time at which the fourth external electronic device 250 receives the third message transmitted by the third external electronic device 240 calculated by the fourth external electronic device 250 and the first message. It may be a difference in transmission time of a fourth message (eg, a response message) to be transmitted by the fourth external electronic device 250 as a response.

다양한 실시예들에서, 제2 메시지, 제3 메시지, 및 제4 메시지(예: 응답 메시지)의 형식은 하기 <표 2>와 같을 수 있다.In various embodiments, formats of the second message, the third message, and the fourth message (eg, response message) may be as shown in Table 2 below.

Message ControlMessage Control Round IndexRound Index Block IndexBlock Index TX TimestampTX Timestamp CFOCFO Responder Reply TimeResponder Reply Time Responder ToF ResultResponder ToF Result Anchor LocationAnchor Location Active Ranging Round InformationActive Ranging Round Information

다양한 실시예들에서, 제2 외부 전자 장치(230)가 전송하는 제2 메시지에 포함된 제1 응답 시간은, 상기 <표 2>에 따른 제2 메시지의 “Responder Reply Time” 파라미터에 포함되어, 전송될 수 있다. 다른 예를 들어, 제3 외부 전자 장치(240)가 전송하는 제3 메시지에 포함된 제2 응답 시간 및 제3 응답 시간은, 상기 <표 2>에 따른 제2 메시지의 “Responder Reply Time” 파라미터에 포함되어, 전송될 수 있다. 또 다른 예를 들어, 제4 외부 전자 장치(250)가 전송하는 제4 메시지에 포함된 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간은, 상기 <표 2>에 따른 제2 메시지의 “Responder Reply Time” 파라미터에 포함되어 전송될 수 있다.In various embodiments, the first response time included in the second message transmitted by the second external electronic device 230 is included in the “Responder Reply Time” parameter of the second message according to <Table 2>, can be transmitted As another example, the second response time and the third response time included in the third message transmitted by the third external electronic device 240 are the “Responder Reply Time” parameter of the second message according to <Table 2>. included in and can be transmitted. As another example, the fourth response time, the fifth response time, and the sixth response time included in the fourth message transmitted by the fourth external electronic device 250 are the second message according to <Table 2>. It can be transmitted by being included in the “Responder Reply Time” parameter of

다양한 실시예들에 따른 도 4a에 도시된 410동작, 415동작, 및 420동작의 순서는 하나의 실시예로, 이에 한정하는 것은 아니다.The sequence of operations 410, 415, and 420 shown in FIG. 4A according to various embodiments is an example, but is not limited thereto.

도 4b는, 다양한 실시예들에 따른, 제1 외부 전자 장치(220)의 동작을 설명하기 위한 흐름도(450)이다.4B is a flowchart 450 for describing an operation of the first external electronic device 220 according to various embodiments.

다양한 실시예들에 따른 도 4b는, 전술한 도 4a의 추가적인 동작일 수 있다. 예컨대, 전술한 도 4a에 추가적으로 도 4b의 455동작 또는 455동작 내지 470동작이 수행되는 경우, DS-TWR 방식으로 동작할 수 있다.FIG. 4B according to various embodiments may be an additional operation of FIG. 4A described above. For example, when operation 455 or operations 455 to 470 of FIG. 4B are performed in addition to the aforementioned FIG. 4A, the DS-TWR method may be used.

도 4b를 참조하면, 제1 외부 전자 장치(220)는 455동작에서, 제7, 제8, 및 제9 응답 시간을 포함하는 제5 메시지를 전송할 수 있다. 제5 메시지는 파이널 메시지(final message)일 수 있다. Referring to FIG. 4B , in operation 455, the first external electronic device 220 may transmit a fifth message including seventh, eighth, and ninth response times. The fifth message may be a final message.

다양한 실시예들에서, 제5 메시지(예: 파이널 메시지)의 형식은 하기 <표 3>과 같을 수 있다.In various embodiments, the format of the fifth message (eg, final message) may be as shown in Table 3 below.

Message ControlMessage Control Round IndexRound Index Block IndexBlock Index TX TimestampTX Timestamp Reply Time ListReply Time List

일 실시예에서, 제1 외부 전자 장치(220)는 제5 메시지(예: 파이널 메시지)를 전송할 수 있다. 예컨대, 제7 응답 시간은 제1 외부 전자 장치(220)에 의해 산출된 제1 외부 전자 장치(220)가 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간의 차이일 수 있다. 제8 응답 시간은 제1 외부 전자 장치(220)에 의해 산출된 제1 외부 전자 장치(220)가 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간의 차이일 수 있다. 제9 응답 시간은 제1 외부 전자 장치(220)에 의해 산출된 제1 외부 전자 장치(220)가 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간의 차이일 수 있다.In an embodiment, the first external electronic device 220 may transmit a fifth message (eg, a final message). For example, the seventh response time is the reception time of the second message received by the first external electronic device 220 from the second external electronic device 230 calculated by the first external electronic device 220 and the first external electronic device 220 . It may be a difference in transmission time of the fifth message transmitted by the device 220. The eighth response time is the reception time of the third message received by the first external electronic device 220 from the third external electronic device 240 calculated by the first external electronic device 220 and the first external electronic device ( 220) may be a difference in transmission time of the fifth message transmitted. The ninth response time is the reception time of the fourth message received by the first external electronic device 220 from the fourth external electronic device 250 calculated by the first external electronic device 220 and the first external electronic device ( 220) may be a difference in transmission time of the fifth message transmitted.

일 실시예에서, 제1 외부 전자 장치(220)는 제5 메시지(예: 파이널 메시지)를 전송할 수 있다. 예컨대, 제7 응답 시간은 제1 외부 전자 장치(220)에 의해 산출된 제1 외부 전자 장치(220)가 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간의 차이일 수 있다. 제8 응답 시간은 제1 외부 전자 장치(220)에 의해 산출된 제1 외부 전자 장치(220)가 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간의 차이일 수 있다. 제9 응답 시간은 제1 외부 전자 장치(220)에 의해 산출된 제1 외부 전자 장치(220)가 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간의 차이일 수 있다.In an embodiment, the first external electronic device 220 may transmit a fifth message (eg, a final message). For example, the seventh response time is the reception time of the second message received by the first external electronic device 220 from the second external electronic device 230 calculated by the first external electronic device 220 and the first external electronic device 220 . It may be a difference in transmission time of the fifth message transmitted by the device 220. The eighth response time is the reception time of the third message received by the first external electronic device 220 from the third external electronic device 240 calculated by the first external electronic device 220 and the first external electronic device ( 220) may be a difference in transmission time of the fifth message transmitted. The ninth response time is the reception time of the fourth message received by the first external electronic device 220 from the fourth external electronic device 250 calculated by the first external electronic device 220 and the first external electronic device ( 220) may be a difference in transmission time of the fifth message transmitted.

다양한 실시예들에서, 제1 외부 전자 장치(220)가 전송하는 제5 메시지에 포함된 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간은, 상기 <표 3>에 따른 제5 메시지의 “Reply Time List” 파라미터에 포함되어, 전송될 수 있다. In various embodiments, the seventh response time, the eighth response time, and the ninth response time included in the fifth message transmitted by the first external electronic device 220 are the fifth message according to Table 3 above. It can be included in the “Reply Time List” parameter of and transmitted.

일 실시예에서, 제1 외부 전자 장치(220)는 460동작에서, 제5 메시지에 대한 응답으로, 제2 외부 전자 장치(230)가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 제6 메시지의 수신 시간을 저장할 수 있다. 제6 메시지의 전송 시간은, 전술한 <표 2>에 따른 제 6 메시지의 “TX Timestamp” 파라미터에 추가되어 수신될 수 있다. 이에 한정하는 것은 아니며, 제6 메시지는, 제2 외부 전자 장치(230)에 의해 산출된 제2 외부 전자 장치(230)가 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 제2 외부 전자 장치(230)에 의해 산출된 제2 외부 전자 장치(230)가 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 제2 외부 전자 장치(230)에 의해 산출된 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함할 수 있다.In one embodiment, in operation 460, the first external electronic device 220 receives a sixth message including a transmission time transmitted by the second external electronic device 230 in response to the fifth message, 6 You can save the reception time of the message. The transmission time of the sixth message may be received by being added to the “TX Timestamp” parameter of the sixth message according to <Table 2> described above. The present invention is not limited thereto, and the sixth message includes the reception time of the third message received by the second external electronic device 230 from the third external electronic device 240 calculated by the second external electronic device 230 and The second external electronic device 230 calculates the tenth response time for the transmission time difference of the sixth message transmitted by the second external electronic device 230, and the second external electronic device 230 calculates the fourth external electronic device 230 An eleventh response time for a difference between the reception time of the fourth message received from the device 250 and the transmission time of the sixth message transmitted by the second external electronic device 230, and by the second external electronic device 230 A difference between the calculated reception time of the fifth message received by the second external electronic device 230 from the first external electronic device 220 and the transmission time of the sixth message transmitted by the second external electronic device 230 12 response times.

일 실시예에서, 제1 외부 전자 장치(220)는 465동작에서, 제5 메시지에 대한 응답으로, 제3 외부 전자 장치(240)가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 제7 메시지의 수신 시간을 저장할 수 있다. 제7 메시지의 전송 시간은, 전술한 <표 2>에 따른 제 7 메시지의 “TX Timestamp” 파라미터에 추가되어 수신될 수 있다. 이에 한정하는 것은 아니며, 제7 메시지는, 제3 외부 전자 장치(240)에 의해 산출된 제3 외부 전자 장치(240)가 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 제3 외부 전자 장치(240)에 의해 산출된 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 제3 외부 전자 장치(240)에 의해 산출된 제3 외부 전자 장치(240)가 제2 외부 전자 장치(230)로부터 수신한 제6 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함할 수 있다.In an embodiment, in operation 465, the first external electronic device 220 receives a seventh message including a transmission time transmitted by the third external electronic device 240 as a response to the fifth message, 7 You can save the reception time of the message. The transmission time of the seventh message may be received by being added to the “TX Timestamp” parameter of the seventh message according to <Table 2> described above. The present is not limited thereto, and the seventh message is the reception time of the fourth message received by the third external electronic device 240 from the fourth external electronic device 250 calculated by the third external electronic device 240 and The thirteenth response time for the transmission time difference of the seventh message transmitted by the third external electronic device 240, the third external electronic device 240 calculated by the third external electronic device 240 is the first external electronic device A fourteenth response time for a difference between the reception time of the fifth message received from the device 220 and the transmission time of the seventh message transmitted by the third external electronic device 240, and by the third external electronic device 240 A difference between the calculated reception time of the sixth message received by the third external electronic device 240 from the second external electronic device 230 and the transmission time of the seventh message transmitted by the third external electronic device 240 15 response times.

일 실시예에서, 제1 외부 전자 장치(220)는 470동작에서, 제8 메시지에 대한 응답으로, 제4 외부 전자 장치(250)가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 제8 메시지의 수신 시간을 저장할 수 있다. 제8 메시지의 전송 시간은, 전술한 <표 2>에 따른 제 8 메시지의 “TX Timestamp” 파라미터에 추가되어 수신될 수 있다. 이에 한정하는 것은 아니며, 제8 메시지는, 제4 외부 전자 장치(250)에 의해 산출된 제4 외부 전자 장치(250)가 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제4 외부 전자 장치(250)가 전송하는 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 제4 외부 전자 장치(250)에 의해 산출된 제4 외부 전자 장치(250)가 제2 외부 전자 장치(230)로부터 수신한 제6 메시지의 수신 시간과 제4 외부 전자 장치(250)가 전송하는 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 제4 외부 전자 장치(250)에 의해 산출된 제4 외부 전자 장치(250)가 제3 외부 전자 장치(240)로부터 수신한 제7 메시지의 수신 시간과 제4 외부 전자 장치(250)가 전송하는 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함할 수 있다.In an embodiment, in operation 470, the first external electronic device 220 receives an eighth message including a transmission time transmitted by the fourth external electronic device 250 in response to the eighth message, 8 You can save the reception time of the message. The transmission time of the eighth message may be received by being added to the “TX Timestamp” parameter of the eighth message according to <Table 2> described above. The present is not limited thereto, and the eighth message includes the reception time of the fifth message received by the fourth external electronic device 250 from the first external electronic device 220 calculated by the fourth external electronic device 250 and The 16th response time for the transmission time difference of the 8th message transmitted by the 4th external electronic device 250, the 4th external electronic device 250 calculated by the 4th external electronic device 250 is the second external electronic device A seventeenth response time for a difference between the reception time of the sixth message received from the device 230 and the transmission time of the eighth message transmitted by the fourth external electronic device 250, and by the fourth external electronic device 250 A difference between the calculated reception time of the seventh message received by the fourth external electronic device 250 from the third external electronic device 240 and the transmission time of the eighth message transmitted by the fourth external electronic device 250 18 response time.

다양한 실시예들에서, 도 4b의 제1 외부 전자 장치(220)가 제5 메시지(예: 파이널 메시지)를 전송하는 455동작은 생략될 수 있다. 이 경우, 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250) 각각은 전송 시간만을 포함한 제6 메시지, 제7 메시지, 및 제8 메시지(예: 응답 시간을 포함하지 않은 제6 메시지, 제7 메시지, 및 제8 메시지)를 전송할 수 있다.In various embodiments, operation 455 in which the first external electronic device 220 of FIG. 4B transmits the fifth message (eg, final message) may be omitted. In this case, each of the second external electronic device 230 , the third external electronic device 240 , and the fourth external electronic device 250 includes the sixth message, the seventh message, and the eighth message including only the transmission time (eg : The 6th message, the 7th message, and the 8th message not including the response time) may be transmitted.

다양한 실시예들에 따른 전자 장치(예: 제1 외부 전자 장치(220))의 위치 측정 방법은, 통신 회로(예: 도 3의 통신 회로(310))를 통해, 제1 거리 측정 구간에서 거리 측정을 위한 제1 메시지를 전송하는 동작, 상기 제1 메시지에 대한 응답으로, 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 제1 응답 시간을 포함하는 제2 메시지를 상기 통신 회로(310)를 통해 수신하는 동작, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지를 상기 통신 회로(310)를 통해 수신하는 동작, 및 상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지를 상기 통신 회로(310)를 통해 수신하는 동작을 포함하고, 상기 제1 응답 시간은, 상기 제1 메시지를 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 수신한 수신 시간과 상기 제2 메시지의 전송 시간의 차이이고, 상기 제2 응답 시간은, 상기 제1 메시지를 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고, 상기 제3 응답 시간은 상기 제2 메시지를 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고, 상기 제4 응답 시간은 상기 제1 메시지를 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 상기 제5 응답 시간은 상기 제2 메시지를 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 및 상기 제6 응답 시간은 상기 제3 메시지를 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이일 수 있다.A method for measuring a position of an electronic device (eg, the first external electronic device 220) according to various embodiments includes a distance in a first distance measuring section through a communication circuit (eg, the communication circuit 310 of FIG. 3 ). An operation of transmitting a first message for measurement, and a second message including a first response time transmitted by a first external electronic device (eg, the second external electronic device 230) in response to the first message is received through the communication circuit 310, a second response time and a third response transmitted by a second external electronic device (eg, the third external electronic device 240) in response to the first message. Receiving a third message including time through the communication circuit 310, and transmitting by a third external electronic device (eg, the fourth external electronic device 250) in response to the first message and receiving a fourth message including a fourth response time, a fifth response time, and a sixth response time through the communication circuit 310, wherein the first response time corresponds to the first message. A difference between a reception time received by a first external electronic device (eg, the second external electronic device 230) and a transmission time of the second message, and the second response time is the difference between the first message and the second external electronic device 230 . A difference between a time received by the electronic device (eg, the third external electronic device 240) and a transmission time of the third message, and the third response time is the difference between the time the second message is received by the second external electronic device (eg, the external electronic device 240). The third external electronic device 240 is a difference between a time at which the third message is received and a time at which the third message is sent, and the fourth response time is the time when the first message is sent to the third external electronic device (eg, the fourth external electronic device). 250) is a difference between a time at which the fourth message is received and a time at which the fourth message is transmitted, and the fifth response time is the time when the third external electronic device (eg, the fourth external electronic device 250) transmits the second message. The sixth response time is the difference between the reception time and the transmission time of the fourth message, and the sixth response time is the time and the time at which the third external electronic device (eg, the fourth external electronic device 250) receives the third message. It may be a difference in transmission time of the fourth message.

다양한 실시예들에 따른 전자 장치(예: 제1 외부 전자 장치(220))의 위치 측정 방법은, 상기 통신 회로(310)를 통해, 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간을 포함하는 제5 메시지를 상기 통신 회로(310)를 통해 전송하는 동작, 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간을 상기 메모리(예: 도 3의 메모리(320))에 저장하는 동작, 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 상기 제7 메시지의 수신 시간을 상기 메모리(320)에 저장하는 동작, 및 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 상기 제8 메시지의 수신 시간을 상기 메모리(320)에 저장하는 동작을 포함할 수 있다.A method for measuring a position of an electronic device (eg, the first external electronic device 220) according to various embodiments includes a seventh response time, an eighth response time, and a ninth response time through the communication circuit 310. An operation of transmitting a fifth message including a through the communication circuit 310, and in response to the fifth message, through the communication circuit 310, the first external electronic device (eg, a second external electronic device). When a sixth message including a transmission time transmitted by the device 230 is received, storing the reception time of the sixth message in the memory (eg, the memory 320 of FIG. 3), the fifth message In response to, when a seventh message including a transmission time transmitted by the second external electronic device (eg, the third external electronic device 240) is received through the communication circuit 310, the seventh message The operation of storing the reception time of the message in the memory 320 and, in response to the fifth message, through the communication circuit 310, the third external electronic device (eg, the fourth external electronic device 250 )) is received, an operation of storing the reception time of the eighth message in the memory 320 may be included.

다양한 실시예들에서, 상기 제7 응답 시간은, 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))로부터 수신한 상기 제2 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이이고, 상기 제8 응답 시간은, 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이이고, 및 상기 제9 응답 시간은, 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이일 수 있다.In various embodiments, the seventh response time is a ratio between a reception time of the second message received from the first external electronic device (eg, the second external electronic device 230) and a transmission time of the fifth message. difference, and the eighth response time is a difference between a reception time of the third message received from the second external electronic device (eg, the third external electronic device 240) and a transmission time of the fifth message, The ninth response time may be a difference between a reception time of the fourth message received from the third external electronic device (eg, the fourth external electronic device 250) and a transmission time of the fifth message.

다양한 실시예들에서, 상기 제6 메시지는, 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))에 의해 산출된 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))에 의해 산출된 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))에 의해 산출된 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 상기 전자 장치(예: 제1 외부 전자 장치(220))로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함할 수 있다.In various embodiments, the sixth message is the first external electronic device (eg, the second external electronic device 230) calculated by the first external electronic device (eg, the second external electronic device 230). )) the reception time of the third message received from the second external electronic device (eg, the third external electronic device 240) and the first external electronic device (eg, the second external electronic device 230) 10th response time for the transmission time difference of the sixth message transmitted by the first external electronic device (eg, the second external electronic device 230) calculated by the first external electronic device (eg, the second external electronic device 230). 2 The reception time of the fourth message received by the external electronic device 230 from the third external electronic device (eg, the fourth external electronic device 250) and the first external electronic device (eg, the second external electronic device 250). An eleventh response time for a transmission time difference of the sixth message transmitted by the electronic device 230, and the first response time calculated by the first external electronic device (eg, the second external electronic device 230). The reception time of the fifth message received by the external electronic device (eg, the second external electronic device 230) from the electronic device (eg, the first external electronic device 220) and the first external electronic device (eg, the first external electronic device 220) : A twelfth response time for a difference in transmission time of the sixth message transmitted by the second external electronic device 230 may be included.

다양한 실시예들에서, 상기 제7 메시지는, 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))에 의해 산출된 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))에 의해 산출된 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 상기 전자 장치(예: 제1 외부 전자 장치(220))로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))에 의해 산출된 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함할 수 있다.In various embodiments, the seventh message is the second external electronic device (eg, the third external electronic device 240) calculated by the second external electronic device (eg, the third external electronic device 240). )) the reception time of the fourth message received from the third external electronic device (eg, the fourth external electronic device 250) and the second external electronic device (eg, the third external electronic device 240) A thirteenth response time for a transmission time difference of the seventh message transmitted by the second external electronic device (eg, the third external electronic device 240) calculated by the second external electronic device (eg, the third external electronic device 240). 3 The reception time of the fifth message received by the external electronic device 240 from the electronic device (eg, the first external electronic device 220) and the second external electronic device (eg, the third external electronic device (eg, the third external electronic device) 240))) and the second external electronic device calculated by the second external electronic device (eg, the third external electronic device 240) (eg, the third external electronic device 240) receives the sixth message received from the first external electronic device (eg, the second external electronic device 230) and the second external electronic device (eg, the second external electronic device 230) : may include a fifteenth response time for a transmission time difference of the seventh message transmitted by the third external electronic device 240).

다양한 실시예들에서, 상기 제8 메시지는, 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))에 의해 산출된 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 상기 전자 장치(예: 제1 외부 전자 장치(220))로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))에 의해 산출된 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))에 의해 산출된 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))로부터 수신한 상기 제7 메시지의 수신 시간과 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함할 수 있다.In various embodiments, the eighth message is the third external electronic device (eg, the fourth external electronic device 250) calculated by the third external electronic device (eg, the fourth external electronic device 250). )) the reception time of the fifth message received from the electronic device (eg, the first external electronic device 220) and the transmission time of the third external electronic device (eg, the fourth external electronic device 250) The sixteenth response time for the transmission time difference of the eighth message, the third external electronic device (eg, the fourth external electronic device 250) calculated by the third external electronic device (eg, the fourth external electronic device 250) The reception time of the sixth message received by the device 250 from the first external electronic device (eg, the second external electronic device 230) and the third external electronic device (eg, the fourth external electronic device (eg, the fourth external electronic device) 250))) and the third external electronic device calculated by the third external electronic device (eg, the fourth external electronic device 250). (eg, the fourth external electronic device 250) receives the seventh message received from the second external electronic device (eg, the third external electronic device 240) and the third external electronic device (eg, the third external electronic device 240) : may include an eighteenth response time for a transmission time difference of the eighth message transmitted by the fourth external electronic device 250).

다양한 실시예들에 따른 전자 장치(예: 제1 외부 전자 장치(220))의 위치 측정 방법은, 상기 제2 메시지의 수신 시간, 상기 제3 메시지의 수신 시간, 및 상기 제4 메시지의 수신 시간을 상기 메모리(320)에 저장하는 동작을 더 포함할 수 있다.A method for measuring a location of an electronic device (eg, the first external electronic device 220) according to various embodiments includes a reception time of the second message, a reception time of the third message, and a reception time of the fourth message. An operation of storing in the memory 320 may be further included.

다양한 실시예들에 따른 전자 장치(예: 제1 외부 전자 장치(220))의 위치 측정 방법은, 상기 통신 회로(310)를 통해, 상기 제1 외부 전자 장치(예: 제2 외부 전자 장치(230))가 전송하는 전송 시간을 포함하는 제5 메시지가 수신되면, 상기 제5 메시지의 수신 시간을 저장하는 동작, 상기 통신 회로(310)를 통해, 상기 제2 외부 전자 장치(예: 제3 외부 전자 장치(240))가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간을 저장하는 동작, 및 상기 통신 회로(310)를 통해, 상기 제3 외부 전자 장치(예: 제4 외부 전자 장치(250))가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 제7 메시지의 수신 시간을 저장하는 동작을 더 포함할 수 있다.A method for measuring a position of an electronic device (eg, a first external electronic device 220) according to various embodiments includes the first external electronic device (eg, a second external electronic device (eg, a second external electronic device)) through the communication circuit 310. 230)) is received, storing the reception time of the fifth message, through the communication circuit 310, the second external electronic device (eg, the third message). When a sixth message including a transmission time transmitted by the external electronic device 240 is received, an operation of storing the reception time of the sixth message and the third external electronic device through the communication circuit 310 When a seventh message including a transmission time transmitted by (eg, the fourth external electronic device 250) is received, an operation of storing the reception time of the seventh message may be further included.

다양한 실시예들에 따른 도 4b에 도시된 460동작, 465동작, 및 470동작의 순서는 하나의 실시예로, 이에 한정하는 것은 아니다.The sequence of operations 460, 465, and 470 shown in FIG. 4B according to various embodiments is an example, but is not limited thereto.

도 5a는, 다양한 실시예들에 따른, 외부 전자 장치의 동작을 설명하기 위한 흐름도(500)이다.5A is a flowchart 500 for describing an operation of an external electronic device according to various embodiments.

다양한 실시예들에서, 도 5a의 동작을 수행하는 외부 전자 장치는, 제2 외부 전자 장치(230), 제3 외부 장치(240), 또는 제4 외부 전자 장치(250)일 수 있다. 일 실시예에서, 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 또는 제4 외부 전자 장치(250)는 응답자(responder)로 제1 외부 전자 장치(예: 개시자)로부터 수신되는 제1 메시지(예: 폴 메시지)에 응답하여 제2 메시지(예: 응답 메시지)를 전송하는 장치일 수 있다.In various embodiments, the external electronic device performing the operation of FIG. 5A may be the second external electronic device 230 , the third external device 240 , or the fourth external electronic device 250 . In one embodiment, the second external electronic device 230, the third external electronic device 240, or the fourth external electronic device 250 is a responder from a first external electronic device (eg, an initiator). It may be a device that transmits a second message (eg, a response message) in response to a received first message (eg, a poll message).

다양한 실시예들에 따른 후술하는 도 5a의 동작은, 전술한 제2 외부 전자 장치(230), 제3 외부 장치(240), 또는 제4 외부 전자 장치(250) 중 제4 외부 전자 장치(250)에서 수행하는 것으로 가정하여 설명하도록 한다.The operation of FIG. 5A , which will be described later, according to various embodiments, is performed by the fourth external electronic device 250 among the aforementioned second external electronic device 230 , third external device 240 , or fourth external electronic device 250 . ) is assumed to be performed and explained.

도 5a를 참조하면, 제4 외부 전자 장치(250)는 505동작에서, 제1 외부 전자 장치(220)로부터 거리 측정(range measurement)을 위한 제1 메시지가 수신되면, 제1 메시지의 수신 시간을 저장할 수 있다. 예컨대, 제1 외부 전자 장치(220)는 거리 측정 구간(예: 레인징 라운드(ranging round))에서 거리 측정을 위한 제1 메시지를 전송(예: 브로드캐스팅)할 수 있다. 일 실시예에서, 제4 외부 전자 장치(250)는 510동작에서, 제1 메시지에 대한 응답으로, 제2 외부 전자 장치(230)가 전송하는 제1 응답 시간을 포함하는 제2 메시지(예: 응답 메시지)가 수신되면, 제2 메시지의 수신 시간을 저장할 수 있다. 예컨대, 제2 메시지는 제2 외부 전자 장치(230)에 의해 브로드캐스팅 방식으로 전송되거나, 또는 유니캐스팅 방식으로 전송될 수 있다. 일 실시예에서, 제2 메시지에 포함된 제1 응답 시간은, 제2 외부 전자 장치(230)에 의해 산출되는 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)로부터 전송되는 제1 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 제2 외부 전자 장치(230)가 전송할 제2 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제2 메시지는 자신(예: 제2 외부 전자 장치(230))의 주소 정보 및/또는 제2 메시지의 전송 시간을 더 포함할 수 있다. 이에 한정하는 것은 아니며, 제2 외부 전자 장치(230)가 다른 외부 전자 장치(예: 제1 외부 전자 장치(220), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250))로부터 응답 시간을 수신한 경우, 제2 메시지는 다른 외부 전자 장치로부터 수신한 응답 시간을 더 포함할 수 있다.Referring to FIG. 5A , in operation 505, the fourth external electronic device 250, when receiving the first message for range measurement from the first external electronic device 220, determines the reception time of the first message. can be saved For example, the first external electronic device 220 may transmit (eg, broadcast) a first message for distance measurement in a distance measurement section (eg, a ranging round). In an embodiment, in operation 510, the fourth external electronic device 250 sends a second message including a first response time transmitted by the second external electronic device 230 in response to the first message (eg: response message) is received, the reception time of the second message may be stored. For example, the second message may be transmitted by the second external electronic device 230 in a broadcasting method or in a unicasting method. In one embodiment, the first response time included in the second message is the second external electronic device 230 calculated by the second external electronic device 230 is transmitted from the first external electronic device 220. It may be a difference between the time when the first message is received and the transmission time of the second message (eg, a response message) to be transmitted by the second external electronic device 230 in response to the first message. The second message may further include address information of itself (eg, the second external electronic device 230) and/or transmission time of the second message. The present invention is not limited thereto, and the second external electronic device 230 may be other external electronic devices (eg, the first external electronic device 220, the third external electronic device 240, and/or the fourth external electronic device 250). )), the second message may further include a response time received from another external electronic device.

일 실시예에서, 제4 외부 전자 장치(250)는 515동작에서, 제1 메시지에 대한 응답으로, 제3 외부 전자 장치(240)가 전송하는 제2 및 제3 응답 시간을 포함하는 제3 메시지가 수신되면, 제3 메시지의 수신 시간을 저장할 수 있다. 예컨대, 제3 메시지는 제3 외부 전자 장치(240)에 의해 브로드캐스팅 방식으로 전송되거나, 또는 유니캐스팅 방식으로 전송될 수 있다. 일 실시예에서, 제3 메시지에 포함된 제2 응답 시간은, 제3 외부 전자 장치(240)에 의해 산출되는 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)로부터 전송되는 제1 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제3 메시지에 포함된 제3 응답 시간은, 제3 외부 전자 장치(240)에 의해 산출되는 제3 외부 전자 장치(240)가 제2 외부 전자 장치(230)로부터 수신되는 제2 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제3 메시지는 자신(예: 제3 외부 전자 장치(240))의 주소 정보 및/또는 제3 메시지의 전송 시간을 더 포함할 수 있다. 이에 한정하는 것은 아니며, 제3 외부 전자 장치(240)가 다른 외부 전자 장치(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제4 외부 전자 장치(250))로부터 응답 시간을 수신한 경우, 제3 메시지는 다른 외부 전자 장치로부터 수신한 응답 시간을 더 포함할 수 있다.In an embodiment, in operation 515, the fourth external electronic device 250 sends a third message including second and third response times transmitted by the third external electronic device 240 in response to the first message. When is received, the reception time of the third message may be stored. For example, the third message may be transmitted by the third external electronic device 240 in a broadcasting method or in a unicasting method. In one embodiment, the second response time included in the third message is the second response time when the third external electronic device 240 calculated by the third external electronic device 240 is transmitted from the first external electronic device 220. It may be a difference between a time when the first message is received and a transmission time of a third message (eg, a response message) to be transmitted by the third external electronic device 240 in response to the first message. The third response time included in the third message is the reception time of the second message calculated by the third external electronic device 240 and received by the third external electronic device 240 from the second external electronic device 230. and a transmission time of a third message (eg, a response message) to be transmitted by the third external electronic device 240 in response to the first message. The third message may further include address information of itself (eg, the third external electronic device 240) and/or transmission time of the third message. It is not limited thereto, and the third external electronic device 240 may be other external electronic devices (eg, the first external electronic device 220, the second external electronic device 230, and/or the fourth external electronic device 250). )), the third message may further include a response time received from another external electronic device.

일 실시예에서, 제4 외부 전자 장치(250)는 520동작에서, 제4, 제5, 및 제6 응답 시간과 제1 메시지에 대한 응답으로 전송할 제4 메시지의 전송 시간을 포함하는 제4 메시지를 전송할 수 있다. 예컨대, 제4 외부 전자 장치(250)는 브로드캐스팅 방식 또는 브로드캐스팅 방식으로 제4 메시지를 전송할 수 있다. 일 실시예에서, 제4 메시지에 포함된 제4 응답 시간은, 제4 외부 전자 장치(250)에 의해 산출되는 제4 외부 전자 장치(250)가 제1 외부 전자 장치(220)로부터 전송되는 제1 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제4 메시지에 포함된 제5 응답 시간은, 제4 외부 전자 장치(250)에 의해 산출되는 제4 외부 전자 장치(250)가 제2 외부 전자 장치(230)로부터 수신되는 제2 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제4 메시지에 포함된 제6 응답 시간은, 제4 외부 전자 장치(250)에 의해 산출되는 제4 외부 전자 장치(250)가 제3 외부 전자 장치(240)로부터 수신되는 제3 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송하는 제4 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제4 메시지는 자신(예: 제4 외부 전자 장치(250))의 주소 정보 및/또는 제4 메시지의 전송 시간을 더 포함할 수 있다. 이에 한정하는 것은 아니며, 제4 외부 전자 장치(250)가 다른 외부 전자 장치(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240))로부터 응답 시간을 수신한 경우, 제4 메시지는 다른 외부 전자 장치로부터 수신한 응답 시간을 더 포함할 수 있다.In an embodiment, in operation 520, the fourth external electronic device 250 sends a fourth message including fourth, fifth, and sixth response times and a transmission time of a fourth message to be transmitted in response to the first message. can transmit. For example, the fourth external electronic device 250 may transmit the fourth message in a broadcasting method or a broadcasting method. In one embodiment, the fourth response time included in the fourth message is the first external electronic device 250 calculated by the fourth external electronic device 250 transmitted from the first external electronic device 220. It may be a difference between the time when message 1 is received and the transmission time of a fourth message (eg, a response message) to be transmitted by the fourth external electronic device 250 in response to the first message. The fifth response time included in the fourth message is when the fourth external electronic device 250 calculated by the fourth external electronic device 250 receives the second message received from the second external electronic device 230. It may be a difference between the time and the transmission time of a fourth message (eg, a response message) to be transmitted by the fourth external electronic device 250 in response to the first message. The sixth response time included in the fourth message is determined when the fourth external electronic device 250 calculated by the fourth external electronic device 250 receives the third message received from the third external electronic device 240. It may be a difference between the time and the transmission time of the fourth message (eg, response message) transmitted by the fourth external electronic device 250 in response to the first message. The fourth message may further include address information of itself (eg, the fourth external electronic device 250) and/or transmission time of the fourth message. It is not limited thereto, and the fourth external electronic device 250 may be other external electronic devices (eg, the first external electronic device 220, the second external electronic device 230, and/or the third external electronic device 240). )), the fourth message may further include a response time received from another external electronic device.

다양한 실시예들에서, 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250)는 거리 측정 구간(예: 레인징 라운드(ranging round)) 동안 통신 회로 예컨대, UWB 모듈을 활성화(또는 온)시킬 수 있다. UWB 모듈을 활성화(또는 온)함으로써, 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250) 각각은 제1 외부 전자 장치(220)와 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250) 각각 간 송수신하는 메시지(예: 폴 메시지, 응답 메시지)를 수신할 수 있다.In various embodiments, the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250 communicate during a distance measurement section (eg, a ranging round). A circuit may be activated (or turned on), for example, a UWB module. By activating (or turning on) the UWB module, the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250, respectively, are connected to the first external electronic device 220 and the second external electronic device 220. Messages transmitted and received between the external electronic device 230 , the third external electronic device 240 , and the fourth external electronic device 250 (eg, a poll message or a response message) may be received.

다양한 실시예들에 따른 도 5a에서, 제4 외부 전자 장치(250)가 제2 외부 전자 장치(230)로부터 전송되는 제2 메시지를 수신한 후, 제3 외부 전자 장치(240)로부터 전송되는 제3 메시지를 수신하는 설명하였으나, 이에 한정하는 것은 아니다. 예컨대, 제4 외부 전자 장치(250)는 제3 외부 전자 장치(240)가 전송하는 제3 메시지를 수신한 후, 제2 외부 전자 장치(230)가 전송하는 제2 메시지를 수신할 수 있다.In FIG. 5A according to various embodiments, after the fourth external electronic device 250 receives the second message transmitted from the second external electronic device 230, the third external electronic device 240 transmits the second message. Although it has been described that receiving 3 messages is not limited thereto. For example, the fourth external electronic device 250 may receive a third message transmitted by the third external electronic device 240 and then receive a second message transmitted by the second external electronic device 230 .

도 5b는, 다양한 실시예들에 따른, 외부 전자 장치의 동작을 설명하기 위한 흐름도(550)이다.5B is a flowchart 550 for describing an operation of an external electronic device according to various embodiments.

다양한 실시예들에 따른 도 5b는, 전술한 도 5a의 추가적인 동작일 수 있다.FIG. 5B according to various embodiments may be an additional operation of FIG. 5A described above.

도 5b를 참조하면, 제4 외부 전자 장치(250)는 555동작에서, 제1 외부 전자 장치(220)로부터 전송되는 전송 시간을 포함하는 제5 메시지가 수신되면, 제5 메시지의 수신 시간을 저장할 수 있다. 제5 메시지는 파이널 메시지(final message)일 수 있다.Referring to FIG. 5B , in operation 555, the fourth external electronic device 250 stores the reception time of the fifth message when a fifth message including the transmission time transmitted from the first external electronic device 220 is received. can The fifth message may be a final message.

다양한 실시예들에서, 제5 메시지는, 제5 메시지의 전송 시간을 포함하는 것으로 설명하였으나, 이에 한정하는 것은 아니며, 제5 메시지는, 제1 외부 전자 장치(220)가 제2 외부 전자 장치(230)로부터 전송되는 제2 메시지를 수신한 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간에 기반하여 산출된 제7 응답 시간, 제1 외부 전자 장치(220)가 제3 외부 전자 장치(240)로부터 전송되는 제3 메시지를 수신한 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간에 기반하여 산출된 제8 응답 시간, 및 제1 외부 전자 장치(220)가 제4 외부 전자 장치(250)로부터 전송되는 제4 메시지를 수신한 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간에 기반하여 산출된 제9 응답 시간을 포함할 수 있다.In various embodiments, the fifth message has been described as including a transmission time of the fifth message, but is not limited thereto. 230) and the seventh response time calculated based on the transmission time of the fifth message transmitted by the first external electronic device 220 and the time when the first external electronic device 220 transmits the 3 An eighth response time calculated based on the time when the third message transmitted from the external electronic device 240 is received and the transmission time of the fifth message transmitted by the first external electronic device 220, and the first external electronic device 220 A ninth response time calculated based on the time when the device 220 receives the fourth message transmitted from the fourth external electronic device 250 and the transmission time of the fifth message transmitted by the first external electronic device 220 can include

일 실시예에서, 제4 외부 전자 장치(450)는 560동작에서, 제5 메시지에 대한 응답으로, 제2 외부 전자 장치(230)가 전송하는 전송 시간을 포함하는 제6 메시지(예: 응답 메시지)가 수신되면, 제6 메시지의 수신 시간을 저장할 수 있다. 예컨대, 제6 메시지는 제2 외부 전자 장치(230)에 의해 브로드캐스팅 방식으로 전송되거나, 또는 유니캐스팅 방식으로 전송될 수 있다.In an embodiment, in operation 560, the fourth external electronic device 450 sends a sixth message (eg, a response message) including a transmission time transmitted by the second external electronic device 230 in response to the fifth message. ) is received, the reception time of the sixth message may be stored. For example, the sixth message may be transmitted by the second external electronic device 230 in a broadcasting method or in a unicasting method.

다양한 실시예들에서, 제6 메시지는, 제6 메시지의 전송 시간을 포함하는 것으로 설명하였으나, 이에 한정하는 것은 아니며, 제6 메시지는, 제1 외부 전자 장치(220)가 제3 외부 전자 장치(240)로부터 전송되는 제3 메시지를 수신한 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간에 기반하여 산출된 제10 응답 시간, 제2 외부 전자 장치(230)가 제4 외부 전자 장치(250)로부터 전송되는 제4 메시지를 수신한 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간에 기반하여 산출된 제11 응답 시간, 및 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)로부터 전송되는 제5 메시지를 수신한 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간에 기반하여 산출된 제12 응답 시간을 포함할 수 있다.In various embodiments, the sixth message has been described as including a transmission time of the sixth message, but is not limited thereto. 240) and the 10th response time calculated based on the transmission time of the sixth message transmitted by the second external electronic device 230 and the time when the second external electronic device 230 transmits the 4 An eleventh response time calculated based on the time at which the fourth message transmitted from the external electronic device 250 is received and the transmission time of the sixth message transmitted by the second external electronic device 230, and the second external electronic device A twelfth response time calculated based on the time when the device 230 receives the fifth message transmitted from the first external electronic device 220 and the transmission time of the sixth message transmitted by the second external electronic device 230 can include

일 실시예에서, 제4 외부 전자 장치(450)는 565동작에서, 제5 메시지에 대한 응답으로, 제3 외부 전자 장치(240)가 전송하는 전송 시간을 포함하는 제 7 메시지(예: 응답 메시지)가 수신되면, 제7 메시지의 수신 시간을 저장할 수 있다. 예컨대, 제7 메시지는 제3 외부 전자 장치(240)에 의해 브로드캐스팅 방식으로 전송되거나, 또는 유니캐스팅 방식으로 전송될 수 있다.In an embodiment, in operation 565, the fourth external electronic device 450 sends a seventh message including a transmission time transmitted by the third external electronic device 240 (eg, a response message) in response to the fifth message. ) is received, the reception time of the seventh message may be stored. For example, the seventh message may be transmitted by the third external electronic device 240 in a broadcasting method or in a unicasting method.

다양한 실시예들에서, 제7 메시지는, 제7 메시지의 전송 시간을 포함하는 것으로 설명하였으나, 이에 한정하는 것은 아니며, 제7 메시지는, 제3 외부 전자 장치(240)가 제4 외부 전자 장치(250)로부터 전송되는 제4 메시지를 수신한 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간에 기반하여 산출된 제13 응답 시간, 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)로부터 전송되는 제5 메시지를 수신한 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간에 기반하여 산출된 제14 응답 시간, 및 제3 외부 전자 장치(240)가 제2 외부 전자 장치(230)로부터 전송되는 제6 메시지를 수신한 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간에 기반하여 산출된 제15 응답 시간을 포함할 수 있다.In various embodiments, the seventh message has been described as including a transmission time of the seventh message, but is not limited thereto. 250) and the thirteenth response time calculated based on the transmission time of the seventh message transmitted by the third external electronic device 240 and the time when the third external electronic device 240 transmits the 14th response time calculated based on the time at which the fifth message transmitted from the external electronic device 220 is received and the transmission time of the seventh message transmitted by the third external electronic device 240, and the third external electronic device A fifteenth response time calculated based on the time when the device 240 receives the sixth message transmitted from the second external electronic device 230 and the transmission time of the seventh message transmitted by the third external electronic device 240 can include

일 실시예에서, 제4 외부 전자 장치(450)는 570동작에서, 제5 메시지에 대한 응답으로, 전송 시간을 포함하는 제8 메시지(예: 응답 메시지)를 전송할 수 있다. 예컨대, 제4 외부 전자 장치(250)는 브로드캐스팅 방식 또는 브로드캐스팅 방식으로 제8 메시지를 전송할 수 있다.In an embodiment, in operation 570, the fourth external electronic device 450 may transmit an eighth message including a transmission time (eg, a response message) as a response to the fifth message. For example, the fourth external electronic device 250 may transmit the eighth message in a broadcasting method or a broadcasting method.

다양한 실시예들에서, 제8 메시지는, 제8 메시지의 전송 시간을 포함하는 것으로 설명하였으나, 이에 한정하는 것은 아니며, 제8 메시지는, 제4 외부 전자 장치(450)가 제1 외부 전자 장치(220)로부터 전송되는 제5 메시지를 수신한 시간과 제4 외부 전자 장치(450)가 전송하는 제8 메시지의 전송 시간에 기반하여 산출된 제16 응답 시간, 제4 외부 전자 장치(450)가 제2 외부 전자 장치(230)로부터 전송되는 제6 메시지를 수신한 시간과 제4 외부 전자 장치(450)가 전송하는 제8 메시지의 전송 시간에 기반하여 산출된 제17 응답 시간, 및 제4 외부 전자 장치(450)가 제3 외부 전자 장치(240)로부터 전송되는 제7 메시지를 수신한 시간과 제4 외부 전자 장치(450)가 전송하는 제8 메시지의 전송 시간에 기반하여 산출된 제18 응답 시간을 포함할 수 있다.In various embodiments, the eighth message has been described as including the transmission time of the eighth message, but is not limited thereto, and the eighth message is that the fourth external electronic device 450 is the first external electronic device ( 220) and the sixteenth response time calculated based on the transmission time of the eighth message transmitted by the fourth external electronic device 450 and the time when the fourth external electronic device 450 transmits the 2 A seventeenth response time calculated based on the time at which the sixth message transmitted from the external electronic device 230 is received and the transmission time of the eighth message transmitted by the fourth external electronic device 450, and the fourth external electronic device An eighteenth response time calculated based on the time when the device 450 receives the seventh message transmitted from the third external electronic device 240 and the transmission time of the eighth message transmitted by the fourth external electronic device 450 can include

다양한 실시예들에서, 제1 외부 전자 장치(220)가 제5 메시지(예: 파이널 메시지)를 전송하는 동작(예: 도 4b의 455동작)은 생략될 수 있으며, 이에 따라, 제1 외부 전자 장치(220)로부터 제5 메시지를 수신하는 555동작 또한 생략될 수 있다. 이 경우, 제4 외부 전자 장치(250)는 제1 외부 전자 장치(210), 제2 외부 전자 장치(230), 및 제3 외부 전자 장치(240) 각각으로부터 응답 시간을 제외한 전송 시간만을 포함한 제5 메시지, 제6 메시지, 및 제7 메시지를 수신할 수 있다. In various embodiments, the operation of transmitting the fifth message (eg, final message) by the first external electronic device 220 (eg, operation 455 of FIG. 4B ) may be omitted, and thus, the first external electronic device 220 may be omitted. Operation 555 of receiving the fifth message from device 220 may also be omitted. In this case, the fourth external electronic device 250 includes only the transmission time excluding the response time from each of the first external electronic device 210, the second external electronic device 230, and the third external electronic device 240. A 5th message, a 6th message, and a 7th message can be received.

도 6a은, 다양한 실시예들에 따른, 전자 장치(210)의 동작을 설명하기 위한 흐름도(600)이다.6A is a flowchart 600 for describing the operation of the electronic device 210 according to various embodiments.

다양한 실시예들에서, 전자 장치(210)는 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250) 간 전송 또는 수신하는 메시지들을 수신하여, 전자 장치(210)의 위치를 측정하는 장치일 수 있다.In various embodiments, the electronic device 210 may include a first external electronic device 220 , a second external electronic device 230 , a third external electronic device 240 , and/or a fourth external electronic device 250 . It may be a device that measures the location of the electronic device 210 by receiving messages transmitted or received between them.

다양한 실시예들에서, 전자 장치(210)는 거리 측정 구간(예: 레인징 라운드(ranging round)) 동안 통신 회로 예컨대, UWB 모듈을 활성화(또는 온)시킬 수 있다. UWB 모듈을 활성화(또는 온)함으로써, 전자 장치(210)는 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250) 간 전송 또는 수신하는 시간 정보를 포함하는 메시지(예: 폴 메시지, 응답 메시지)를 수신할 수 있다.In various embodiments, the electronic device 210 may activate (or turn on) a communication circuit, for example, a UWB module, during a distance measurement period (eg, a ranging round). By activating (or turning on) the UWB module, the electronic device 210 includes the first external electronic device 220, the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device ( 250) may receive a message (eg, a poll message or a response message) including transmission or reception time information.

다양한 실시예들에 따른 도 6a는, SS-TWR 방식으로 위치를 측정하는 방법을 설명하기 위한 도면이다. 6A according to various embodiments is a diagram for explaining a method of measuring a location using an SS-TWR method.

도 6a를 참조하면, 전자 장치(210)는 605동작에서, 제1 외부 전자 장치(220)가 전송하는 거리 측정을 위한 제1 메시지(예: 폴 메시지)가 수신되면, 제1 메시지의 수신 시간을 저장할 수 있다.Referring to FIG. 6A , in operation 605, the electronic device 210 receives a first message for distance measurement (eg, a poll message) transmitted by the first external electronic device 220, the reception time of the first message. can be saved.

일 실시예에서, 전자 장치(210)는 610동작에서, 제1 메시지에 대한 응답으로, 제2 외부 전자 장치(230)가 전송하는 제1 응답 시간을 포함하는 제2 메시지가 수신되면, 제1 응답 시간, 제2 메시지의 수신 시간 및 전송 시간을 저장할 수 있다. 제1 응답 시간은, 제2 외부 전자 장치(230)에 의해, 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)로부터 전송되는 제1 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 2 외부 전자 장치(230)가 전송할 제2 메시지(예: 응답 메시지)의 전송 시간에 기반하여 산출된 시간일 수 있다.In an embodiment, in operation 610, when the electronic device 210 receives a second message including a first response time transmitted by the second external electronic device 230 in response to the first message, the electronic device 210 sends a first message. Response time, reception time and transmission time of the second message may be stored. The first response time is the time at which the second external electronic device 230 receives the first message transmitted from the first external electronic device 220 by the second external electronic device 230 and the first message It may be a time calculated based on a transmission time of a second message (eg, a response message) to be transmitted by the 2 external electronic devices 230 as a response.

일 실시예에서, 전자 장치(210)는 615동작에서, 제1 메시지에 대한 응답으로, 제3 외부 전자 장치(240)가 전송하는 제2 및 제3 응답 시간을 포함하는 제3 메시지가 수신되면, 제2 및 제3 응답 시간, 제3 메시지의 수신 시간 및 전송 시간을 저장할 수 있다. 제2 응답 시간은, 제3 외부 전자 장치(240)에 의해, 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)로부터 전송되는 제1 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간에 기반하여 산출된 시간일 수 있다. 제3 메시지에 포함된 제3 응답 시간은, 제3 외부 전자 장치(240)에 의해, 제3 외부 전자 장치(240)가 제2 외부 전자 장치(230)로부터 전송되는 제2 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간에 기반하여 산출된 시간일 수 있다.In an embodiment, in operation 615, the electronic device 210 receives a third message including second and third response times transmitted from the third external electronic device 240 in response to the first message. , the second and third response times, and the reception time and transmission time of the third message may be stored. The second response time is the time when the third external electronic device 240 receives the first message transmitted from the first external electronic device 220 by the third external electronic device 240 and the first message. It may be a time calculated based on a transmission time of a third message (eg, a response message) to be transmitted by the third external electronic device 240 as a response. The third response time included in the third message is the time when the third external electronic device 240 receives the second message transmitted from the second external electronic device 230 by the third external electronic device 240. and a transmission time of a third message (eg, a response message) to be transmitted by the third external electronic device 240 in response to the first message.

일 실시예에서, 전자 장치(210)는 620동작에서, 제1 메시지에 대한 응답으로, 제4 외부 전자 장치(250)가 전송하는 제4, 제5, 및 제6 응답 시간을 포함하는 제4 메시지가 수신되면, 제4, 제5, 및 제6 응답 시간, 제4 메시지의 수신 시간 및 전송 시간을 저장할 수 있다. 제4 응답 시간은, 제4 외부 전자 장치(250)에 의해, 제4 외부 전자 장치(250)가 제1 외부 전자 장치(220)로부터 전송되는 제1 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간에 기반하여 산출된 시간일 수 있다. 제4 메시지에 포함된 제5 응답 시간은, 제4 외부 전자 장치(250)에 의해, 제4 외부 전자 장치(250)가 제3 외부 전자 장치(230)로부터 전송되는 제3 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간에 기반하여 산출된 시간일 수 있다. 제4 메시지에 포함된 제6 응답 시간은, 제4 외부 전자 장치(250)에 의해, 제4 외부 전자 장치(250)가 제3 외부 전자 장치(240)로부터 전송되는 제2 메시지를 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간에 기반하여 산출된 시간일 수 있다.In an embodiment, the electronic device 210, in operation 620, responds to the first message by sending a fourth, fifth, and sixth response time transmitted by the fourth external electronic device 250. When a message is received, fourth, fifth, and sixth response times, reception time and transmission time of the fourth message may be stored. The fourth response time is the time at which the fourth external electronic device 250 receives the first message transmitted from the first external electronic device 220 by the fourth external electronic device 250 and the first message. It may be a time calculated based on a transmission time of a fourth message (eg, a response message) to be transmitted by the fourth external electronic device 250 as a response. The fifth response time included in the fourth message is the time at which the fourth external electronic device 250 receives the third message transmitted from the third external electronic device 230 by the fourth external electronic device 250. and a transmission time of a fourth message (eg, a response message) to be transmitted by the fourth external electronic device 250 in response to the first message. The sixth response time included in the fourth message is the time at which the fourth external electronic device 250 receives the second message transmitted from the third external electronic device 240 by the fourth external electronic device 250. and a transmission time of a fourth message (eg, a response message) to be transmitted by the fourth external electronic device 250 in response to the first message.

일 실시예에서, 전자 장치(210)는 625동작에서, 전자 장치(210)와 복수의 외부 전자 장치들 간의 도래시간차를 산출할 수 있다. 예컨대, 전자 장치(210)와 제1 외부 전자 장치(220) 간 거리 및 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제1 외부 전자 장치(220), 및 제2 외부 전자 장치(230) 간의 도래시간차를 산출할 수 있다. 다른 예를 들어, 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리 및 전자 장치(210)와 제3 외부 전자 장치(240) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제2 외부 전자 장치(230), 및 제3 외부 전자 장치(240) 간의 도래시간차를 산출할 수 있다. 또 다른 예를 들어, 전자 장치(210)와 제3 외부 전자 장치(240) 간 거리 및 전자 장치(210)와 제4 외부 전자 장치(250) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250) 간의 도래시간차를 산출할 수 있다.In an embodiment, in operation 625, the electronic device 210 may calculate an arrival time difference between the electronic device 210 and a plurality of external electronic devices. For example, the difference between the distance between the electronic device 210 and the first external electronic device 220 and the distance between the electronic device 210 and the second external electronic device 230 is calculated as the speed of light (constant) (eg, c). The difference in arrival time between the electronic device 210 , the first external electronic device 220 , and the second external electronic device 230 may be calculated by the divided value. For another example, the difference between the distance between the electronic device 210 and the second external electronic device 230 and the distance between the electronic device 210 and the third external electronic device 240 is the speed of light (constant) (eg: With the value divided by c), the arrival time difference between the electronic device 210, the second external electronic device 230, and the third external electronic device 240 may be calculated. For another example, the difference between the distance between the electronic device 210 and the third external electronic device 240 and the distance between the electronic device 210 and the fourth external electronic device 250 is the speed of light (constant) (eg : The arrival time difference between the electronic device 210, the third external electronic device 240, and the fourth external electronic device 250 may be calculated by dividing by c).

일 실시예에서, 전자 장치(210)는 630동작에서, 산출된 도래시간차에 기반하여, 전자 장치(210)의 위치를 측정할 수 있다.In an embodiment, in operation 630, the electronic device 210 may measure the position of the electronic device 210 based on the calculated arrival time difference.

종래, 전자 장치(210)와 제1 외부 전자 장치(220) 간 거리 및 전자 장치(210)와 다른 하나의 외부 전자 장치(예: 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 또는 제4 외부 전자 장치(250)) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값을 계산하였다면, 본 개시에 따른 다양한 실시예들에서, 전자 장치(210)와 제1 외부 전자 장치(220)가 아닌 다른 하나의 외부 전자 장치 간 거리(예: 제2 외부 전자 장치(230)) 및 전자 장치(210)와 또 다른 하나의 외부 전자 장치(예: 제3 외부 전자 장치(240)) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값을 계산할 수 있음에 따라, 전자 장치(210)의 측위 성능을 향상시킬 수 있다.Conventionally, the distance between the electronic device 210 and the first external electronic device 220 and one external electronic device other than the electronic device 210 (eg, the second external electronic device 230, the third external electronic device 240 ), or if a value obtained by dividing the difference in distance between the fourth external electronic devices 250 by the speed of light (constant) (eg c) is calculated, in various embodiments according to the present disclosure, the electronic device 210 a distance between the first external electronic device 220 and another external electronic device (eg, the second external electronic device 230) and the electronic device 210 and another external electronic device (eg, the third external electronic device 220). As a value obtained by dividing the difference in distance between the external electronic devices 240 by the speed of light (constant) (eg, c) can be calculated, the positioning performance of the electronic device 210 can be improved.

도 6b는, 다양한 실시예들에 따른, 전자 장치(210)의 동작을 설명하기 위한 흐름도(650)이다.6B is a flowchart 650 for describing the operation of the electronic device 210 according to various embodiments.

다양한 실시예들에 따른 도 6b는, 전술한 도 6a의 620동작 이후에 추가적인 동작일 수 있다. 예컨대, 전술한 도 6a의 620동작 이후에 추가적으로 도 6b의 동작을 수행하는 경우, DS-TWR 방식으로 동작할 수 있다.6B according to various embodiments may be an additional operation after operation 620 of FIG. 6A described above. For example, when the operation of FIG. 6B is additionally performed after operation 620 of FIG. 6A described above, the DS-TWR method may be used.

일 실시예에서, 전자 장치(210)는 655동작에서, 제1 외부 전자 장치(220)로부터 제5 메시지(예: 파이널 메시지(final message)가 수신되면, 제5 메시지의 수신 시간을 저장할 수 있다. 다양한 실시예들에서, 제5 메시지는, 제1 외부 전자 장치(220)가 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간 차이에 대한 산출된 제7 응답 시간, 제1 외부 전자 장치(220)가 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간 차이에 대한 제8 응답 시간, 및 제1 외부 전자 장치(220)가 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간 차이에 대한 제9 응답 시간을 포함할 수 있다. 전자 장치(210)는 제5 메시지의 수신 시간뿐만 아니라, 제5 메시지에 포함된 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간을 저장할 수 있다.In an embodiment, in operation 655, when a fifth message (eg, a final message) is received from the first external electronic device 220, the electronic device 210 may store a reception time of the fifth message. In various embodiments, the fifth message may include the reception time of the second message received by the first external electronic device 220 from the second external electronic device 230 and the transmission time of the first external electronic device 220. The seventh response time calculated for the transmission time difference of the fifth message, the reception time of the third message received by the first external electronic device 220 from the third external electronic device 240, and the first external electronic device 220 The eighth response time for the transmission time difference of the fifth message transmitted by ), and the reception time of the fourth message received by the first external electronic device 220 from the fourth external electronic device 250 and the first external electronic device 220 It may include a ninth response time for a transmission time difference of a fifth message transmitted by the device 220. The electronic device 210 may include a seventh response included in the fifth message as well as a reception time of the fifth message. time, an eighth response time, and a ninth response time may be stored.

일 실시예에서, 전자 장치(210)는 660동작에서, 제5 메시지에 대한 응답으로, 제2 외부 전자 장치(230)가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 제6 메시지의 수신 시간 및 전송 시간을 저장할 수 있다. 다양한 실시예들에서, 제6 메시지는, 제2 외부 전자 장치(230)가 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 제2 외부 전자 장치(230)가 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함할 수 있다. 전자 장치(210)는 제6 메시지의 수신 시간 및 전송 시간뿐만 아니라, 제6 메시지에 포함된 제10 응답 시간, 제11 응답 시간, 및 제12 응답 시간을 저장할 수 있다.In an embodiment, in operation 660, when the electronic device 210 receives a sixth message including a transmission time transmitted by the second external electronic device 230 in response to the fifth message, the sixth message Receive time and transmit time can be stored. In various embodiments, the sixth message may be the reception time of the third message received by the second external electronic device 230 from the third external electronic device 240 and the second message transmitted by the second external electronic device 230. 6 The 10th response time for the difference in transmission time of the message, the reception time of the fourth message received by the second external electronic device 230 from the fourth external electronic device 250 and the transmission time of the second external electronic device 230 The eleventh response time for the transmission time difference of the sixth message to the second external electronic device 230 and the reception time of the fifth message received by the second external electronic device 230 from the first external electronic device 220 and the second external electronic device 230 ) may include a twelfth response time for the transmission time difference of the sixth message transmitted. The electronic device 210 may store not only the reception time and transmission time of the sixth message, but also the tenth response time, the eleventh response time, and the twelfth response time included in the sixth message.

일 실시예에서, 전자 장치(210)는 665동작에서, 제5 메시지에 대한 응답으로, 제3 외부 전자 장치(240)가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 제7 메시지의 수신 시간 및 전송 시간을 저장할 수 있다. 다양한 실시예들에서, 제7 메시지는, 제3 외부 전자 장치(240)가 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 제3 외부 전자 장치(240)가 제2 외부 전자 장치(230)로부터 수신한 제6 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함할 수 있다. 전자 장치(210)는 제7 메시지의 수신 시간 및 전송 시간뿐만 아니라, 제7 메시지에 포함된 제13 응답 시간, 제14 응답 시간, 및 제15 응답 시간을 저장할 수 있다.In an embodiment, the electronic device 210, in operation 665, when receiving a seventh message including a transmission time transmitted by the third external electronic device 240 in response to the fifth message, transmits the seventh message. Receive time and transmit time can be stored. In various embodiments, the seventh message may be the reception time of the fourth message received by the third external electronic device 240 from the fourth external electronic device 250 and the second message transmitted by the third external electronic device 240. 7 The thirteenth response time for the difference in transmission time of the message, the reception time of the fifth message received by the third external electronic device 240 from the first external electronic device 220 and the transmission time of the third external electronic device 240 The 14th response time for the transmission time difference of the 7th message to the third external electronic device 240 and the reception time of the 6th message received by the 3rd external electronic device 240 from the 2nd external electronic device 230 and the 3rd external electronic device 240 ) may include a 15th response time for the transmission time difference of the 7th message transmitted. The electronic device 210 may store not only the reception time and transmission time of the seventh message, but also the 13th response time, the 14th response time, and the 15th response time included in the seventh message.

일 실시예에서, 전자 장치(210)는 670동작에서, 제5 메시지에 대한 응답으로, 제4 외부 전자 장치(250)가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 제8 메시지의 수신 시간 및 전송 시간을 저장할 수 있다. 다양한 실시예들에서, 제8 메시지는, 제4 외부 전자 장치(250)가 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제4 외부 전자 장치(250)가 전송하는 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 제4 외부 전자 장치(250)가 제2 외부 전자 장치(230)로부터 수신한 제6 메시지의 수신 시간과 제4 외부 전자 장치(250)가 전송하는 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 제4 외부 전자 장치(250)가 제3 외부 전자 장치(240)로부터 수신한 제7 메시지의 수신 시간과 제4 외부 전자 장치(250)가 전송하는 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함할 수 있다. 전자 장치(210)는 제8 메시지의 수신 시간 및 전송 시간뿐만 아니라, 제8 메시지에 포함된 제16 응답 시간, 제17 응답 시간, 및 제18 응답 시간을 저장할 수 있다.In an embodiment, when the electronic device 210 receives an eighth message including a transmission time transmitted by the fourth external electronic device 250 in response to the fifth message in operation 670, the eighth message Receive time and transmit time can be stored. In various embodiments, the eighth message may be the reception time of the fifth message received by the fourth external electronic device 250 from the first external electronic device 220 and the second message transmitted by the fourth external electronic device 250. 8 The sixteenth response time for the difference in transmission time of the message, the reception time of the sixth message received by the fourth external electronic device 250 from the second external electronic device 230 and the transmission time of the fourth external electronic device 250 a seventeenth response time for a difference in transmission time of the eighth message to be received from the fourth external electronic device 250 and a reception time of the seventh message received by the fourth external electronic device 250 from the third external electronic device 240 and the fourth external electronic device 250 ) may include an 18th response time for the transmission time difference of the 8th message transmitted. The electronic device 210 may store not only the reception time and transmission time of the eighth message, but also the sixteenth response time, the seventeenth response time, and the eighteenth response time included in the eighth message.

일 실시예에서, 전자 장치(210)는 675동작에서, 전자 장치(210)와 복수의 외부 전자 장치들 간의 클럭 오차(clock drift)를 보상할 수 있다. 예컨대, 전자 장치(210)는 전술한 도 6a의 605동작 내지 620동작에서 저장한 메시지들의 수신 시간 및 전송 시간과 655동작 내지 670동작에서 저장한 메시지들의 수신 시간 및 전송 시간에 기반하여, 전자 장치(210)와 복수의 외부 전자 장치들 간의 클럭 오차(clock drift)를 보상할 수 있다. 예컨대, 전자 장치(210)는 각 외부 전자 장치로부터 수신한 두 번의 응답 메시지 예컨대, 제1 외부 전자 장치(220)로부터 수신한 제1 메시지의 수신 시간과 제5 메시지의 수신 시간, 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간 및 전송 시간과 제6 메시지의 수신 시간 및 전송 시간, 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간 및 전송 시간과 제7 메시지의 수신 시간 및 전송 시간, 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간 및 전송 시간과 제8 메시지의 수신 시간 및 전송 시간에 기반하여, 전자 장치(210)와 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및 제4 외부 전자 장치(250) 간의 클럭 오차를 보상할 수 있다.In one embodiment, the electronic device 210 may compensate for clock drift between the electronic device 210 and a plurality of external electronic devices in operation 675 . For example, the electronic device 210 based on the reception time and transmission time of the messages stored in operations 605 to 620 of FIG. 6A and the reception time and transmission time of the messages stored in operations 655 to 670, the electronic device 210 A clock drift between the 210 and a plurality of external electronic devices may be compensated for. For example, the electronic device 210 includes two response messages received from each external electronic device, for example, a reception time of a first message received from the first external electronic device 220 and a reception time of a fifth message, a reception time of a second external electronic device The reception time and transmission time of the second message received from the device 230, the reception time and transmission time of the sixth message, the reception time and transmission time of the third message received from the third external electronic device 240, and the seventh message Based on the reception time and transmission time of the message, the reception time and transmission time of the fourth message received from the fourth external electronic device 250, and the reception time and transmission time of the eighth message, the electronic device 210 and the first A clock error between the external electronic device 220 , the second external electronic device 230 , and the fourth external electronic device 250 may be compensated for.

일 실시예에서, 전자 장치(210)는 680동작에서, 보상된 클럭 오차에 기반하여, 전자 장치(210)와 복수의 외부 전자 장치들 간의 도래시간차(TDoA, time difference of arrival)를 산출할 수 있다. In an embodiment, in operation 680, the electronic device 210 may calculate a time difference of arrival (TDoA) between the electronic device 210 and a plurality of external electronic devices based on the compensated clock error. there is.

예컨대, 전자 장치(210)는 각 외부 전자 장치로부터 두 번째로 수신한 메시지에 포함된 응답 시간에 기반하여, 전자 장치(210)와 복수의 외부 전자 장치들 간의 도래시간차를 산출할 수 있다. 예컨대, 전자 장치(210)는 제1 외부 전자 장치(220)로부터 수신한 제5 메시지에 포함된 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간, 제2 외부 전자 장치(230)로부터 수신한 제6 메시지에 포함된 제10 응답 시간, 제11 응답 시간, 및 제12 응답 시간, 제3 외부 전자 장치(240)로부터 수신한 제7 메시지에 포함된 제13 응답 시간, 제14 응답 시간, 및 제15 응답 시간, 제4 외부 전자 장치(250)로부터 수신한 제8 메시지에 포함된 제16 응답 시간, 제17 응답 시간, 및 제18 응답 시간에 기반하여, 전자 장치(210)와 복수의 외부 전자 장치들 간의 도래시간차(TDoA, time difference of arrival)를 산출할 수 있다.For example, the electronic device 210 may calculate an arrival time difference between the electronic device 210 and the plurality of external electronic devices based on a response time included in a second message received from each external electronic device. For example, the electronic device 210 determines the seventh response time, the eighth response time, and the ninth response time included in the fifth message received from the first external electronic device 220, from the second external electronic device 230. The 10th response time, the 11th response time, and the 12th response time included in the received sixth message, and the 13th response time and 14th response time included in the seventh message received from the third external electronic device 240 , And based on the 15th response time, the 16th response time, the 17th response time, and the 18th response time included in the eighth message received from the fourth external electronic device 250, the electronic device 210 and the plurality of A time difference of arrival (TDoA) between external electronic devices may be calculated.

보다 상세하게, 전자 장치(210)는 제1 외부 전자 장치(220)로부터 수신한 제5 메시지에 포함된 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간과 제2 외부 전자 장치(230)로부터 수신한 제6 메시지에 포함된 제10 응답 시간, 제11 응답 시간, 및 제12 응답 시간에 기반하여, 전자 장치(210)와 제1 외부 전자 장치(220) 간 거리와 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리를 산출할 수 있다. 전자 장치(210)는 전자 장치(210)와 제1 외부 전자 장치(220) 간 거리와 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제1 외부 전자 장치(220), 및 제2 외부 전자 장치(230) 간의 도래시간차를 산출할 수 있다. 전자 장치(210)는 제1 외부 전자 장치(220)로부터 수신한 제5 메시지에 포함된 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간과 제3 외부 전자 장치(240)로부터 수신한 제7 메시지에 포함된 제13 응답 시간, 제14 응답 시간, 및 제15 응답 시간에 기반하여, 전자 장치(210)와 제1 외부 전자 장치(220) 간 거리와 전자 장치(210)와 제3 외부 전자 장치(240) 간 거리를 산출할 수 있다. 전자 장치(210)는 전자 장치(210)와 제1 외부 전자 장치(220) 간 거리와 전자 장치(210)와 제3 외부 전자 장치(240) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제1 외부 전자 장치(220), 및 제3 외부 전자 장치(240) 간의 도래시간차를 산출할 수 있다. 전자 장치(210)는 제1 외부 전자 장치(220)로부터 수신한 제5 메시지에 포함된 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간과 제4 외부 전자 장치(250)로부터 수신한 제8 메시지에 포함된 제16 응답 시간, 제17 응답 시간, 및 제18 응답 시간에 기반하여, 전자 장치(210)와 제1 외부 전자 장치(220) 간 거리와 전자 장치(210)와 제4 외부 전자 장치(250) 간 거리를 산출할 수 있다. 전자 장치(210)는 전자 장치(210)와 제1 외부 전자 장치(220) 간 거리와 전자 장치(210)와 제4 외부 전자 장치(250) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제1 외부 전자 장치(220), 및 제4 외부 전자 장치(250) 간의 도래시간차를 산출할 수 있다.More specifically, the electronic device 210 determines the seventh response time, the eighth response time, and the ninth response time included in the fifth message received from the first external electronic device 220 and the second external electronic device 230. Based on the 10th response time, the 11th response time, and the 12th response time included in the 6th message received from ), the distance between the electronic device 210 and the first external electronic device 220 and the electronic device 210 ) and the second external electronic device 230 may be calculated. The electronic device 210 calculates the difference between the distance between the electronic device 210 and the first external electronic device 220 and the distance between the electronic device 210 and the second external electronic device 230 as the speed of light (constant) (eg : The arrival time difference between the electronic device 210, the first external electronic device 220, and the second external electronic device 230 may be calculated by dividing by c). The electronic device 210 determines the seventh response time, the eighth response time, and the ninth response time included in the fifth message received from the first external electronic device 220 and the information received from the third external electronic device 240. Based on the 13th response time, the 14th response time, and the 15th response time included in the seventh message, the distance between the electronic device 210 and the first external electronic device 220 and the distance between the electronic device 210 and the third A distance between the external electronic devices 240 may be calculated. The electronic device 210 calculates the difference between the distance between the electronic device 210 and the first external electronic device 220 and the distance between the electronic device 210 and the third external electronic device 240 as the speed of light (constant) (eg : The difference in arrival time between the electronic device 210, the first external electronic device 220, and the third external electronic device 240 may be calculated by dividing by c). The electronic device 210 determines the seventh response time, the eighth response time, and the ninth response time included in the fifth message received from the first external electronic device 220 and the information received from the fourth external electronic device 250. Based on the sixteenth response time, the seventeenth response time, and the eighteenth response time included in the eighth message, the distance between the electronic device 210 and the first external electronic device 220 and the distance between the electronic device 210 and the fourth A distance between the external electronic devices 250 may be calculated. The electronic device 210 calculates the difference between the distance between the electronic device 210 and the first external electronic device 220 and the distance between the electronic device 210 and the fourth external electronic device 250 as the speed of light (constant) (eg : The arrival time difference between the electronic device 210, the first external electronic device 220, and the fourth external electronic device 250 may be calculated by dividing by c).

일 실시예에서, 전자 장치(210)는 제2 외부 전자 장치(230)로부터 수신한 제6 메시지에 포함된 제10 응답 시간, 제11 응답 시간, 및 제12 응답 시간과 제3 외부 전자 장치(240)로부터 수신한 제7 메시지에 포함된 제13 응답 시간, 제14 응답 시간, 및 제15 응답 시간에 기반하여, 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리와 전자 장치(210)와 제3 외부 전자 장치(240) 간 거리를 산출할 수 있다. 전자 장치(210)는 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리와 전자 장치(210)와 제3 외부 전자 장치(240) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제2 외부 전자 장치(230), 및 제3 외부 전자 장치(240) 간의 도래시간차를 산출할 수 있다. 전자 장치(210)는 제2 외부 전자 장치(230)로부터 수신한 제6 메시지에 포함된 제10 응답 시간, 제11 응답 시간, 및 제12 응답 시간과 제4 외부 전자 장치(250)로부터 수신한 제8 메시지에 포함된 제16 응답 시간, 제17 응답 시간, 및 제18 응답 시간에 기반하여, 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리와 전자 장치(210)와 제4 외부 전자 장치(250) 간 거리를 산출할 수 있다. 전자 장치(210)는 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리와 전자 장치(210)와 제4 외부 전자 장치(250) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제2 외부 전자 장치(230), 및 제4 외부 전자 장치(250) 간의 도래시간차를 산출할 수 있다.In an embodiment, the electronic device 210 may combine the tenth response time, the eleventh response time, and the twelfth response time included in the sixth message received from the second external electronic device 230 and the third external electronic device ( Based on the thirteenth response time, the fourteenth response time, and the fifteenth response time included in the seventh message received from 240), the distance between the electronic device 210 and the second external electronic device 230 and the electronic device ( 210) and the third external electronic device 240 may be calculated. The electronic device 210 calculates the difference between the distance between the electronic device 210 and the second external electronic device 230 and the distance between the electronic device 210 and the third external electronic device 240 as the speed of light (constant) (eg : A time difference between the electronic device 210, the second external electronic device 230, and the third external electronic device 240 may be calculated by dividing by c). The electronic device 210 determines the 10th response time, the 11th response time, and the 12th response time included in the sixth message received from the second external electronic device 230 and the received message from the fourth external electronic device 250. Based on the sixteenth response time, the seventeenth response time, and the eighteenth response time included in the eighth message, the distance between the electronic device 210 and the second external electronic device 230 and the distance between the electronic device 210 and the fourth A distance between the external electronic devices 250 may be calculated. The electronic device 210 calculates the difference between the distance between the electronic device 210 and the second external electronic device 230 and the distance between the electronic device 210 and the fourth external electronic device 250 as the speed of light (constant) (eg : The arrival time difference between the electronic device 210, the second external electronic device 230, and the fourth external electronic device 250 may be calculated by dividing by c).

일 실시예에서, 전자 장치(210)는 제3 외부 전자 장치(240)로부터 수신한 제7 메시지에 포함된 제13 응답 시간, 제14 응답 시간, 및 제15 응답 시간과 제4 외부 전자 장치(250)로부터 수신한 제8 메시지에 포함된 제16 응답 시간, 제17 응답 시간, 및 제18 응답 시간에 기반하여, 전자 장치(210)와 제3 외부 전자 장치(240) 간 거리와 전자 장치(210)와 제4 외부 전자 장치(250) 간 거리를 산출할 수 있다. 전자 장치(210)는 전자 장치(210)와 제3 외부 전자 장치(240) 간 거리와 전자 장치(210)와 제4 외부 전자 장치(250) 간 거리의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250) 간의 도래시간차를 산출할 수 있다.In an embodiment, the electronic device 210 may use the thirteenth response time, the fourteenth response time, and the fifteenth response time included in the seventh message received from the third external electronic device 240 and the fourth external electronic device ( Based on the sixteenth response time, the seventeenth response time, and the eighteenth response time included in the eighth message received from 250), the distance between the electronic device 210 and the third external electronic device 240 and the electronic device ( 210) and the fourth external electronic device 250 may be calculated. The electronic device 210 calculates the difference between the distance between the electronic device 210 and the third external electronic device 240 and the distance between the electronic device 210 and the fourth external electronic device 250 as the speed of light (constant) (eg : The arrival time difference between the electronic device 210, the third external electronic device 240, and the fourth external electronic device 250 may be calculated by dividing by c).

일 실시예에서, 전자 장치(210)는 685동작에서, 산출된 도래시간차에 기반하여, 복수의 외부 전자 장치들의 위치에 기반한 전자 장치(210)의 위치를 측정할 수 있다.In an embodiment, in operation 685, the electronic device 210 may measure the location of the electronic device 210 based on the locations of a plurality of external electronic devices based on the calculated arrival time difference.

전술한 도 6a 및 도 6b의 실시예들에 따라 메시지들에 포함된 시간 정보(예: 제1 내지 제6 응답 시간, 각 외부 전자 장치가 다른 외부 전자 장치에서 전송되는 메시지를 수신한 수신 시간, 및/또는 각 외부 전자 장치가 메시지를 전송한 전송 시간)에 기반하여, 메시 네트워크 형태로 전자 장치(210)와 복수의 전자 장치들 간의 도래시간차를 산출함으로써 전자 장치(210)의 위치를 정확하게 측정할 수 있다. 이에 따라, 전자 장치(210)와 적어도 하나의 외부 전자 장치(예: 제1 외부 전자 장치(220)) 사이에 장애물이 존재하는 NLoS(non-line of sight) 상황에 있거나, 또는 링크 품질(link quality)이 좋지 상황에서도 정확한 전자 장치(210)의 위치 측정이 가능할 수 있다.Time information included in messages according to the embodiments of FIGS. 6A and 6B (eg, first to sixth response times, reception time when each external electronic device receives a message transmitted from another external electronic device, and/or the transmission time at which each external electronic device transmits a message) to accurately measure the position of the electronic device 210 by calculating the difference in time of arrival between the electronic device 210 and a plurality of electronic devices in the form of a mesh network. can do. Accordingly, in a non-line of sight (NLoS) situation in which an obstacle exists between the electronic device 210 and at least one external electronic device (eg, the first external electronic device 220), or link quality (link quality) Accurate location measurement of the electronic device 210 may be possible even in a situation where quality is poor.

다양한 실시예들에 따른 전자 장치(210)의 위치 측정 방법은, 통신 회로(예: 도 3의 통신 회로(310))를 통해, 제1 외부 전자 장치(220)가 전송하는 거리 측정을 위한 제1 메시지가 수신되면, 상기 제1 메시지의 수신 시간을 메모리(예: 도 3의 메모리(320))에 저장하는 동작, 상기 통신 회로(310)를 통해, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치(230)로부터 제1 응답 시간을 포함하는 제2 메시지가 수신되면, 상기 제1 응답 시간, 상기 제2 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하는 동작, 상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치(240)로부터 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지가 수신되면, 상기 제2 응답 시간, 상기 제3 응답 시간, 상기 제3 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하는 동작, 및 상기 제1 메시지에 대한 응답으로, 제4 외부 전자 장치(250)로부터 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지가 수신되면, 상기 제4 응답 시간, 상기 제5 응답 시간, 및 상기 제6 응답 시간, 상기 제4 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하는 동작을 포함할 수 있다.A method for measuring a position of an electronic device 210 according to various embodiments includes a method for measuring a distance transmitted by a first external electronic device 220 through a communication circuit (eg, the communication circuit 310 of FIG. 3 ). When one message is received, an operation of storing the reception time of the first message in a memory (eg, the memory 320 of FIG. 3), through the communication circuit 310, in response to the first message, 2 When a second message including the first response time is received from the external electronic device 230, storing the first response time, the reception time and the transmission time of the second message in the memory 320, In response to the first message, when a third message including a second response time and a third response time is received from the third external electronic device 240, the second response time, the third response time, and the third response time. 3 An operation of storing the reception time and transmission time of the message in the memory 320, and in response to the first message, a fourth response time, a fifth response time, and a fourth response time from the fourth external electronic device 250. When a fourth message including 6 response times is received, the fourth response time, the fifth response time, the sixth response time, and the reception time and transmission time of the fourth message are stored in the memory 320. action may be included.

다양한 실시예들에 따른 전자 장치(210)의 위치 측정 방법은, 상기 제1 응답 시간, 상기 제2 응답 시간, 상기 제3 응답 시간, 상기 제4 응답 시간, 상기 제5 응답 시간, 및 상기 제6 응답 시간에 기반하여, 상기 제1 외부 전자 장치(220), 상기 제2 외부 전자 장치(230), 상기 제3 외부 전자 장치(240), 및 상기 제4 외부 전자 장치(250)와 상기 전자 장치(210)와의 도래시간차를 산출하는 동작, 및 상기 산출된 도래시간차에 기반하여, 상기 전자 장치(210)의 위치를 측정하는 동작을 더 포함할 수 있다.The method for measuring the location of the electronic device 210 according to various embodiments includes the first response time, the second response time, the third response time, the fourth response time, the fifth response time, and the first response time. 6 Based on the response time, the first external electronic device 220, the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250 and the electronic device An operation of calculating a difference in time of arrival with the device 210 and an operation of measuring a position of the electronic device 210 based on the calculated difference in time of arrival may be further included.

다양한 실시예들에 따른 전자 장치(210)의 위치 측정 방법은, 상기 제1 메시지의 수신 시간, 상기 제2 메시지의 수신 시간 및 전송 시간, 상기 제3 메시지의 수신 시간 및 전송 시간, 상기 제4 메시지의 수신 시간 및 전송 시간과 상기 제5 메시지의 수신 시간, 상기 제6 메시지의 수신 시간 및 전송 시간, 상기 제7 메시지의 수신 시간 및 전송 시간, 및 상기 제8 메시지의 수신 시간 및 전송 시간에 기반하여, 상기 전자 장치(210)와 상기 제1 외부 전자 장치(220), 상기 제2 외부 전자 장치(230), 상기 제3 외부 전자 장치(240), 및 상기 제4 외부 전자 장치(250) 간의 클럭 오차(clock drift)를 보상하는 동작, 상기 보상된 클럭 오차에 기반하여, 상기 전자 장치(210)와 상기 제1 외부 전자 장치(220), 상기 제2 외부 전자 장치(230), 상기 제3 외부 전자 장치(240), 및 상기 제4 외부 전자 장치(250) 간의 도래시간차(TDoA, time difference of arrival)를 산출하는 동작, 및 상기 산출된 도래시간차에 기반하여, 복수의 외부 전자 장치들의 위치에 기반한 상기 전자 장치(210)의 위치를 측정하는 동작을 더 포함할 수 있다.The location measurement method of the electronic device 210 according to various embodiments includes the reception time of the first message, the reception time and transmission time of the second message, the reception time and transmission time of the third message, and the fourth message. The reception time and transmission time of the message and the reception time of the fifth message, the reception time and transmission time of the sixth message, the reception time and transmission time of the seventh message, and the reception time and transmission time of the eighth message based on the electronic device 210, the first external electronic device 220, the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250 An operation of compensating for a clock drift between the electronic device 210, the first external electronic device 220, the second external electronic device 230, and the first external electronic device 230 based on the compensated clock drift. 3 An operation of calculating a time difference of arrival (TDoA) between the external electronic device 240 and the fourth external electronic device 250, and a plurality of external electronic devices based on the calculated time difference of arrival. An operation of measuring the position of the electronic device 210 based on the position may be further included.

다양한 실시예들에 따른 전자 장치(210)의 위치 측정 방법은, 상기 통신 회로(310)를 통해, 상기 제1 외부 전자 장치(220)가 전송하는 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간을 포함하는 상기 제5 메시지를 수신되면, 상기 제5 메시지의 수신 시간을 상기 메모리(320)에 저장하는 동작, 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제2 외부 전자 장치(230)가 전송하는 전송 시간을 포함하는 상기 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하는 동작, 및 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제3 외부 전자 장치(240)가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 상기 제7 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하는 동작, 및 상기 제5 메시지에 대한 응답으로, 상기 통신 회로(310)를 통해, 상기 제4 외부 전자 장치(250)가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 상기 제8 메시지의 수신 시간 및 전송 시간을 상기 메모리(320)에 저장하는 동작을 포함하고, 상기 제7 응답 시간은, 상기 제1 외부 전자 장치(220)가 상기 제2 외부 전자 장치(230)로부터 수신한 상기 제2 메시지의 수신 시간과 상기 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간의 차이이고, 상기 제8 응답 시간은, 상기 제1 외부 전자 장치(220)가 상기 제3 외부 전자 장치(240)로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제1 외부 전자 장치(220)가 전송하는 상기 제5 메시지의 전송 시간의 차이이고, 및 상기 제9 응답 시간은, 상기 제1 외부 전자 장치(220)가 상기 제4 외부 전자 장치(250)로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제1 외부 전자 장치(220)가 전송하는 상기 제5 메시지의 전송 시간의 차이일 수 있다.A method for measuring a position of an electronic device 210 according to various embodiments includes a seventh response time transmitted by the first external electronic device 220 through the communication circuit 310, an eighth response time, and a second response time. 9 When the fifth message including the response time is received, storing the reception time of the fifth message in the memory 320, in response to the fifth message, through the communication circuit 310, When the sixth message including the transmission time transmitted by the second external electronic device 230 is received, storing the reception time and transmission time of the sixth message in the memory 320; In response to the message, when a seventh message including the transmission time transmitted by the third external electronic device 240 is received through the communication circuit 310, the reception time and transmission time of the seventh message are received. An eighth message including an operation of storing in the memory 320 and a transmission time transmitted by the fourth external electronic device 250 through the communication circuit 310 in response to the fifth message If received, storing a reception time and a transmission time of the eighth message in the memory 320, and the seventh response time is determined by the first external electronic device 220 controlling the second external electronic device. It is a difference between a reception time of the second message received from 230 and a transmission time of a fifth message transmitted by the first external electronic device 220, and the eighth response time is the first external electronic device ( 220) is a difference between a reception time of the third message received from the third external electronic device 240 and a transmission time of the fifth message transmitted by the first external electronic device 220, and the 9 The response time is the reception time of the fourth message received by the first external electronic device 220 from the fourth external electronic device 250 and the fifth message transmitted by the first external electronic device 220. It may be the difference in the transmission time of

다양한 실시예들에서, 상기 제6 메시지는, 상기 제2 외부 전자 장치(230)에 의해 산출된 상기 제2 외부 전자 장치(230)가 상기 제3 외부 전자 장치(240)로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제2 외부 전자 장치(230)가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 상기 제2 외부 전자 장치(230)에 의해 산출된 상기 제2 외부 전자 장치(230)가 상기 제4 외부 전자 장치(250)로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제2 외부 전자 장치(230)가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 상기 제2 외부 전자 장치(230)에 의해 산출된 상기 제2 외부 전자 장치(230)가 상기 제1 외부 전자 장치(220)로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제2 외부 전자 장치(230)가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함할 수 있다.In various embodiments, the sixth message is the third message calculated by the second external electronic device 230 and received by the second external electronic device 230 from the third external electronic device 240. A tenth response time for a difference between a message reception time and a transmission time of the sixth message transmitted by the second external electronic device 230, the second external electronic device calculated by the second external electronic device 230 An eleventh response to a difference between the reception time of the fourth message received by the device 230 from the fourth external electronic device 250 and the transmission time of the sixth message transmitted by the second external electronic device 230 time, and the reception time of the fifth message received by the second external electronic device 230 from the first external electronic device 220 calculated by the second external electronic device 230 and the second external electronic device 230 . A twelfth response time for a difference in transmission time of the sixth message transmitted by the electronic device 230 may be included.

다양한 실시예들에서, 상기 제7 메시지는, 상기 제3 외부 전자 장치(240)에 의해 산출된 상기 제3 외부 전자 장치(240)가 상기 제4 외부 전자 장치(250)로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제3 외부 전자 장치(240)가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 상기 제3 외부 전자 장치(240)에 의해 산출된 상기 제3 외부 전자 장치(240)가 상기 제1 외부 전자 장치(220)로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제3 외부 전자 장치(240)가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 상기 제3 외부 전자 장치(240)에 의해 산출된 상기 제3 외부 전자 장치(240)가 상기 제2 외부 전자 장치(230)로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제3 외부 전자 장치(240)가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함할 수 있다.In various embodiments, the seventh message is the fourth message calculated by the third external electronic device 240 and received by the third external electronic device 240 from the fourth external electronic device 250. A thirteenth response time for a difference between a message reception time and a transmission time of the seventh message transmitted by the third external electronic device 240, the third external electronic device calculated by the third external electronic device 240 A fourteenth response to a difference between the reception time of the fifth message received by the device 240 from the first external electronic device 220 and the transmission time of the seventh message transmitted by the third external electronic device 240 time, and the reception time of the sixth message received by the third external electronic device 240 from the second external electronic device 230 calculated by the third external electronic device 240 and the third external electronic device 240 . A fifteenth response time for the transmission time difference of the seventh message transmitted by the electronic device 240 may be included.

다양한 실시예들에서, 상기 제8 메시지는, 상기 제4 외부 전자 장치(250)에 의해 산출된 상기 제4 외부 전자 장치(250)가 상기 제1 외부 전자 장치(220)로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제4 외부 전자 장치(250)가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 상기 제4 외부 전자 장치(250)에 의해 산출된 상기 제4 외부 전자 장치(250)가 상기 제2 외부 전자 장치(230)로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제4 외부 전자 장치(250)가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 상기 제4 외부 전자 장치(250)에 의해 산출된 상기 제4 외부 전자 장치(250)가 상기 제3 외부 전자 장치(240)로부터 수신한 상기 제7 메시지의 수신 시간과 상기 제4 외부 전자 장치(250)가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함할 수 있다.In various embodiments, the eighth message is the fifth message calculated by the fourth external electronic device 250 and received by the fourth external electronic device 250 from the first external electronic device 220. A sixteenth response time for a difference between a message reception time and a transmission time of the eighth message transmitted by the fourth external electronic device 250, the fourth external electronic device calculated by the fourth external electronic device 250 A seventeenth response to a difference between the reception time of the sixth message received by the device 250 from the second external electronic device 230 and the transmission time of the eighth message transmitted by the fourth external electronic device 250 time, and the reception time of the seventh message received by the fourth external electronic device 250 from the third external electronic device 240 calculated by the fourth external electronic device 250 and the fourth external electronic device 250 . An eighteenth response time for a transmission time difference of the eighth message transmitted by the electronic device 250 may be included.

도 7은, 다양한 실시예들에 따른, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 신호 흐름을 도시한 도면(700)이다.7 is a diagram 700 illustrating a signal flow between an electronic device 210 and a plurality of external electronic devices 220, 230, 240, and 250 according to various embodiments.

다양한 실시예들에 따른 도 7은, SS-TWR 방식에서, 전자 장치(210), 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)) 간 메시지를 송수신하는 동작을 설명하기 위한 도면이다.7 according to various embodiments, in the SS-TWR scheme, an electronic device 210, external electronic devices (eg, a first external electronic device 220, a second external electronic device 230, a third external electronic device) It is a diagram for explaining an operation of transmitting and receiving a message between the electronic device 240 and/or the fourth external electronic device 250.

도 7을 참조하면, 제1 외부 전자 장치(220)는 거리 측정(range measurement)을 위한 제1 메시지를 전송할 수 있다. 예컨대, 제1 외부 전자 장치(220)는 거리 측정 구간(예: 레인징 라운드)에서 거리 측정을 위한 제1 메시지를 전송할 수 있다. 예컨대, 제1 메시지는 폴 메시지(poll message)를 포함할 수 있다.Referring to FIG. 7 , the first external electronic device 220 may transmit a first message for range measurement. For example, the first external electronic device 220 may transmit a first message for distance measurement in a distance measurement section (eg, ranging round). For example, the first message may include a poll message.

일 실시예에서, 제2 외부 전자 장치(230)는 제1 메시지에 대한 응답으로, 제2 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)는 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)에 전송하는 제2 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제2 외부 전자 장치(230)는 제1 메시지에 대한 응답으로, 제2 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)는 제2 외부 전자 장치(230)가 브로드캐스팅하는 제2 메시지를 수신할 수 있다.In an embodiment, the second external electronic device 230 may transmit a second message (eg, a response message) to the first external electronic device 220 in response to the first message. In this case, the electronic device 210, the third external electronic device 240, and/or the fourth external electronic device 250 located on the same network may cause the second external electronic device 230 to be the first external electronic device ( 220) may sniff and receive the second message. For another example, the second external electronic device 230 may broadcast a second message (eg, a response message) in response to the first message. In this case, the electronic device 210, the first external electronic device 220, the third external electronic device 240, and/or the fourth external electronic device 250 are broadcasted by the second external electronic device 230. A second message may be received.

일 실시예에서, 제2 외부 전자 장치(230)는 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제2 외부 전자 장치(230)가 전송할 제2 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제1 응답 시간을 산출할 수 있다. 제2 외부 전자 장치(230)는 산출된 제1 응답 시간을 포함하는 제2 메시지를 전송할 수 있다.In an embodiment, the second external electronic device 230 determines the reception time of the first message transmitted by the first external electronic device 220 and the second external electronic device 230 to transmit in response to the first message. A first response time for a difference in transmission time of two messages (eg, a response message) may be calculated. The second external electronic device 230 may transmit a second message including the calculated first response time.

일 실시예에서, 제2 외부 전자 장치(230)가 전송하는 제2 메시지에 포함된 제1 응답 시간은, 상기 <표 2>에 따른 제2 메시지의 “Responder Reply Time” 파라미터에 포함되어, 전송될 수 있다. In one embodiment, the first response time included in the second message transmitted by the second external electronic device 230 is included in the “Responder Reply Time” parameter of the second message according to <Table 2> and transmitted. It can be.

일 실시예에서, 제3 외부 전자 장치(240)는 제1 메시지에 대한 응답으로, 제3 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제4 외부 전자 장치(250)는 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)에 전송하는 제3 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제3 외부 전자 장치(240)는 제1 메시지에 대한 응답으로, 제3 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제4 외부 전자 장치(250)는 제3 외부 전자 장치(240)가 브로드캐스팅하는 제3 메시지를 수신할 수 있다.In an embodiment, the third external electronic device 240 may transmit a third message (eg, a response message) to the first external electronic device 220 in response to the first message. In this case, the third external electronic device 240 is the first external electronic device ( 220) may sniff and receive the third message. For another example, the third external electronic device 240 may broadcast a third message (eg, a response message) in response to the first message. In this case, the electronic device 210 , the first external electronic device 220 , the second external electronic device 230 , and/or the fourth external electronic device 250 are broadcast by the third external electronic device 240 . It is possible to receive a third message that says.

일 실시예에서, 제3 외부 전자 장치(240)는 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제2 응답 시간을 산출할 수 있다. 또한, 제3 외부 전자 장치(240)는 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제3 응답 시간을 산출할 수 있다. 제3 외부 전자 장치(240)는 산출된 제2 응답 시간과 제3 응답 시간을 포함하는 제3 메시지를 전송할 수 있다.In an embodiment, the third external electronic device 240 determines the reception time of the first message transmitted by the first external electronic device 220 and the message transmitted by the third external electronic device 240 in response to the first message. A second response time for a difference in transmission time of 3 messages (eg, a response message) may be calculated. In addition, the third external electronic device 240 determines the reception time of the second message received from the second external electronic device 230 and the third message to be transmitted by the third external electronic device 240 in response to the first message ( Example: a third response time for a difference in transmission time of a response message) may be calculated. The third external electronic device 240 may transmit a third message including the calculated second response time and the third response time.

일 실시예에서, 제3 외부 전자 장치(240)가 전송하는 제3 메시지에 포함된 제2 응답 시간 및 제3 응답 시간은, 상기 <표 2>에 따른 제3 메시지의 “Responder Reply Time” 파라미터에 포함되어, 전송될 수 있다. In one embodiment, the second response time and the third response time included in the third message transmitted by the third external electronic device 240 are the “Responder Reply Time” parameter of the third message according to <Table 2> above. included in and can be transmitted.

일 실시예에서, 제4 외부 전자 장치(250)는 제1 메시지에 대한 응답으로, 제4 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는 제4 외부 전자 장치(250)가 제1 외부 전자 장치(220)에 전송하는 제4 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제4 외부 전자 장치(250)는 제1 메시지에 대한 응답으로, 제4 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는 제4 외부 전자 장치(250)가 브로드캐스팅하는 제4 메시지를 수신할 수 있다.In an embodiment, the fourth external electronic device 250 may transmit a fourth message (eg, a response message) to the first external electronic device 220 in response to the first message. In this case, the electronic device 210, the second external electronic device 230, and/or the third external electronic device 240 located on the same network may cause the fourth external electronic device 250 to be the first external electronic device ( 220) may sniff and receive the fourth message. For another example, the fourth external electronic device 250 may broadcast a fourth message (eg, a response message) in response to the first message. In this case, the electronic device 210 , the first external electronic device 220 , the second external electronic device 230 , and/or the third external electronic device 240 cause the fourth external electronic device 250 to broadcast It is possible to receive a fourth message that says.

일 실시예에서, 제4 외부 전자 장치(250)는 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제4 응답 시간을 산출할 수 있다. 또한, 제4 외부 전자 장치(250)는 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제5 응답 시간을 산출할 수 있다. 또한, 제4 외부 전자 장치(250)는 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제6 응답 시간을 산출할 수 있다. 제4 외부 전자 장치(250)는 산출된 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지를 전송할 수 있다.In an embodiment, the fourth external electronic device 250 determines the reception time of the first message transmitted by the first external electronic device 220 and the message sent by the fourth external electronic device 250 in response to the first message. A fourth response time for a difference in transmission time of 4 messages (eg, a response message) may be calculated. In addition, the fourth external electronic device 250 determines the reception time of the second message received from the second external electronic device 230 and the fourth message to be transmitted by the fourth external electronic device 250 in response to the first message ( Example: A fifth response time for a difference in transmission time of a response message) may be calculated. In addition, the fourth external electronic device 250 determines the reception time of the third message received from the third external electronic device 240 and the fourth message to be transmitted by the fourth external electronic device 250 in response to the first message ( Example: A sixth response time for a difference in transmission time of a response message) may be calculated. The fourth external electronic device 250 may transmit a fourth message including the calculated fourth response time, fifth response time, and sixth response time.

일 실시예에서, 제4 외부 전자 장치(250)가 전송하는 제4 메시지에 포함된 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간은, 상기 <표 2>에 따른 제4 메시지의 “Responder Reply Time” 파라미터에 포함되어, 전송될 수 있다. In one embodiment, the fourth response time, the fifth response time, and the sixth response time included in the fourth message transmitted by the fourth external electronic device 250 are the values of the fourth message according to Table 2 above. It can be included in the “Responder Reply Time” parameter and transmitted.

다양한 실시예들에서, 전자 장치(210)는 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250)로부터 수신한 응답 시간을 포함하는 메시지들에 기반하여, 네트워크(mesh network) 형태로 전자 장치(210)와 복수의 전자 장치들 간의 도래시간차를 산출함으로써 전자 장치(210)의 위치를 정확하게 측정할 수 있다. In various embodiments, the electronic device 210 may include external electronic devices (eg, a first external electronic device 220 , a second external electronic device 230 , a third external electronic device 240 , and a fourth external electronic device 220 ). Based on the messages including the response time received from the electronic device 250, the arrival time difference between the electronic device 210 and a plurality of electronic devices is calculated in the form of a mesh network to determine the location of the electronic device 210. can be accurately measured.

도 8은, 다양한 실시예들에 따른, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 신호 흐름을 도시한 도면(800)이다.8 is a diagram 800 illustrating a signal flow between an electronic device 210 and a plurality of external electronic devices 220, 230, 240, and 250 according to various embodiments.

다양한 실시예들에서, 후술하는 제1 메시지 내지 제8 메시지의 송수신 동작은, 제1 거리 측정 구간(예: 제1 레인징 라운드)에서 수행될 수 있다.In various embodiments, transmission and reception operations of the first to eighth messages described below may be performed in a first distance measurement interval (eg, a first ranging round).

다양한 실시예들에 따른 도 8은, DS-TWR 방식에서, 전자 장치(210), 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)) 간 메시지를 송수신하는 동작을 설명하기 위한 도면이다.8 according to various embodiments, in the DS-TWR scheme, an electronic device 210, external electronic devices (eg, a first external electronic device 220, a second external electronic device 230, a third external electronic device) It is a diagram for explaining an operation of transmitting and receiving a message between the electronic device 240 and/or the fourth external electronic device 250.

다양한 실시예들에 따른 도 8은 전술한 도 7의 추가적인 동작일 수 있다. 예컨대, 도 8은 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 클럭 오차를 보상하기 위해, 전술한 도 7에 추가적인 동작 예컨대, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250)은 제5 메시지 내지 제8 메시지를 송수신하는 동작을 수행할 수 있다.FIG. 8 according to various embodiments may be an additional operation of FIG. 7 described above. For example, FIG. 8 shows an additional operation to the above-described FIG. 7 , for example, the electronic device 210 and the plurality of external electronic devices 220, 230, 240, and 250. The external electronic devices 220, 230, 240, and 250 of may perform an operation of transmitting and receiving the fifth message to the eighth message.

다양한 실시예들에 따른 도 8의 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 제1 메시지 내지 제4 메시지를 송수신하는 동작은, 전술한 도 7의 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 제1 메시지 내지 제4 메시지를 송수신하는 동작과 동일하므로, 이에 대한 상세한 설명은 도7의 설명으로 대신할 수 있다.An operation of transmitting and receiving the first message to the fourth message between the electronic device 210 of FIG. 8 and the plurality of external electronic devices 220, 230, 240, and 250 according to various embodiments is performed by the electronic device 210 of FIG. Since the operation of transmitting and receiving the first to fourth messages between the device 210 and the plurality of external electronic devices 220, 230, 240, and 250 is the same, the detailed description thereof can be replaced with the description of FIG. 7. .

도 8을 참조하면, 제1 외부 전자 장치(220)는 거리 측정 구간(예: 레인징 라운드)에서 거리 측정(range measurement)을 위한 제1 메시지(예: 폴 메시지)를 전송(예: 브로드캐스팅)할 수 있다. 제1 외부 전자 장치(220)가 브로드캐스팅하는 제1 메시지는 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는 제4 외부 전자 장치(250)가 수신할 수 있다.Referring to FIG. 8 , the first external electronic device 220 transmits (eg, broadcasts) a first message (eg, poll message) for range measurement in a distance measurement section (eg, ranging round). )can do. The first message broadcast by the first external electronic device 220 is transmitted to the electronic device 210, the second external electronic device 230, and/or the third external electronic device 240 located on the same network as the fourth message. The external electronic device 250 may receive it.

일 실시예에서, 제2 외부 전자 장치(230)는 제1 메시지에 대한 응답으로, 제2 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)는 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)에 전송하는 제2 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제2 외부 전자 장치(230)는 제1 메시지에 대한 응답으로, 제2 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)는 제2 외부 전자 장치(230)가 브로드캐스팅하는 제2 메시지를 수신할 수 있다.In an embodiment, the second external electronic device 230 may transmit a second message (eg, a response message) to the first external electronic device 220 in response to the first message. In this case, the electronic device 210, the third external electronic device 240, and/or the fourth external electronic device 250 located on the same network may cause the second external electronic device 230 to be the first external electronic device ( 220) may sniff and receive the second message. For another example, the second external electronic device 230 may broadcast a second message (eg, a response message) in response to the first message. In this case, the electronic device 210, the first external electronic device 220, the third external electronic device 240, and/or the fourth external electronic device 250 are broadcasted by the second external electronic device 230. A second message may be received.

일 실시예에서, 제2 외부 전자 장치(230)는 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제2 외부 전자 장치(230)가 전송할 제2 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제1 응답 시간을 포함하는 제2 메시지를 전송할 수 있다.In an embodiment, the second external electronic device 230 determines the reception time of the first message transmitted by the first external electronic device 220 and the second external electronic device 230 to transmit in response to the first message. A second message including a first response time for a transmission time difference between two messages (eg, a response message) may be transmitted.

일 실시예에서, 제2 외부 전자 장치(230)가 전송하는 제2 메시지에 포함된 제1 응답 시간은, 상기 <표 2>에 따른 제2 메시지의 “Responder Reply Time” 파라미터에 포함되어, 전송될 수 있다. In one embodiment, the first response time included in the second message transmitted by the second external electronic device 230 is included in the “Responder Reply Time” parameter of the second message according to <Table 2> and transmitted. It can be.

일 실시예에서, 제3 외부 전자 장치(240)는 제1 메시지에 대한 응답으로, 제3 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제4 외부 전자 장치(250)는 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)에 전송하는 제3 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제3 외부 전자 장치(240)는 제1 메시지에 대한 응답으로, 제3 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제4 외부 전자 장치(250)는 제3 외부 전자 장치(240)가 브로드캐스팅하는 제3 메시지를 수신할 수 있다.In an embodiment, the third external electronic device 240 may transmit a third message (eg, a response message) to the first external electronic device 220 in response to the first message. In this case, the third external electronic device 240 is the first external electronic device ( 220) may sniff and receive the third message. For another example, the third external electronic device 240 may broadcast a third message (eg, a response message) in response to the first message. In this case, the electronic device 210 , the first external electronic device 220 , the second external electronic device 230 , and/or the fourth external electronic device 250 are broadcast by the third external electronic device 240 . It is possible to receive a third message that says.

일 실시예에서, 제3 외부 전자 장치(240)는 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제2 응답 시간과 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제3 응답 시간을 포함하는 제3 메시지를 전송할 수 있다.In an embodiment, the third external electronic device 240 determines the reception time of the first message transmitted by the first external electronic device 220 and the message transmitted by the third external electronic device 240 in response to the first message. 3 The second response time for the difference in transmission time of the message (eg, response message), the reception time of the second message received from the second external electronic device 230, and the response to the first message, the third external electronic device ( 240) may transmit a third message including a third response time for a transmission time difference of a third message (eg, a response message) to be transmitted.

일 실시예에서, 제3 외부 전자 장치(240)가 전송하는 제3 메시지에 포함된 제2 응답 시간 및 제3 응답 시간은, 상기 <표 2>에 따른 제3 메시지의 “Responder Reply Time” 파라미터에 포함되어, 전송될 수 있다. In one embodiment, the second response time and the third response time included in the third message transmitted by the third external electronic device 240 are the “Responder Reply Time” parameter of the third message according to <Table 2> above. included in and can be transmitted.

일 실시예에서, 제4 외부 전자 장치(250)는 제1 메시지에 대한 응답으로, 제4 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는 제4 외부 전자 장치(250)가 제1 외부 전자 장치(220)에 전송하는 제4 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제4 외부 전자 장치(250)는 제1 메시지에 대한 응답으로, 제4 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는 제4 외부 전자 장치(250)가 브로드캐스팅하는 제4 메시지를 수신할 수 있다. In an embodiment, the fourth external electronic device 250 may transmit a fourth message (eg, a response message) to the first external electronic device 220 in response to the first message. In this case, the electronic device 210, the second external electronic device 230, and/or the third external electronic device 240 located on the same network may cause the fourth external electronic device 250 to be the first external electronic device ( 220) may sniff and receive the fourth message. For another example, the fourth external electronic device 250 may broadcast a fourth message (eg, a response message) in response to the first message. In this case, the electronic device 210 , the first external electronic device 220 , the second external electronic device 230 , and/or the third external electronic device 240 cause the fourth external electronic device 250 to broadcast It is possible to receive a fourth message that says.

일 실시예에서, 제4 외부 전자 장치(250)는 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제4 응답 시간, 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제5 응답 시간, 및 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제6 응답 시간을 포함하는 제4 메시지를 전송할 수 있다.In an embodiment, the fourth external electronic device 250 determines the reception time of the first message transmitted by the first external electronic device 220 and the message sent by the fourth external electronic device 250 in response to the first message. The fourth response time for the difference in transmission time of 4 messages (eg, response message), the reception time of the second message received from the second external electronic device 230 and the response to the first message, the fourth external electronic device ( 250) in response to the first message and the reception time of the third message received from the third external electronic device 240 and the fifth response time for the difference in transmission time of the fourth message (eg, response message) to be transmitted. The fourth external electronic device 250 may transmit a fourth message including a sixth response time for a transmission time difference of a fourth message (eg, a response message) to be transmitted.

일 실시예에서, 제4 외부 전자 장치(250)가 전송하는 제4 메시지에 포함된 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간은, 상기 <표 2>에 따른 제4 메시지의 “Responder Reply Time” 파라미터에 포함되어, 전송될 수 있다.In one embodiment, the fourth response time, the fifth response time, and the sixth response time included in the fourth message transmitted by the fourth external electronic device 250 are the values of the fourth message according to Table 2 above. It can be included in the “Responder Reply Time” parameter and transmitted.

일 실시예에서, 제1 외부 전자 장치(220)는 제5 메시지를 전자 장치(210), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250)에 전송할 수 있다. 예컨대, 제1 외부 전자 장치(220)는 제5 메시지를 유니캐스트 방식으로 각 전자 장치(예: 전자 장치(210), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250))에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 각 전자 장치(예: 전자 장치(210), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250))는 제1 외부 전자 장치(220)가 다른 전자 장치로 전송하는 제2 메시지를 스니핑하여 수신할 수 있다. 또는, 제1 외부 전자 장치(220)는 제5 메시지를 브로드캐스팅할 수 있다. 이 경우, 제1 외부 전자 장치(220)가 브로드캐스팅하는 제5 메시지는 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는 제4 외부 전자 장치(250)가 수신할 수 있다. 제5 메시지는 파이널 메시지(final message)일 수 있다.In an embodiment, the first external electronic device 220 sends the fifth message to the electronic device 210, the second external electronic device 230, the third external electronic device 240, and the fourth external electronic device 250. ) can be transmitted. For example, the first external electronic device 220 unicasts the fifth message to each electronic device (eg, the electronic device 210, the second external electronic device 230, the third external electronic device 240, and It can be transmitted to the fourth external electronic device 250). In this case, each electronic device located on the same network (eg, the electronic device 210, the second external electronic device 230, the third external electronic device 240, and/or the fourth external electronic device 250) may sniff and receive the second message transmitted from the first external electronic device 220 to another electronic device. Alternatively, the first external electronic device 220 may broadcast a fifth message. In this case, the fifth message broadcast by the first external electronic device 220 is sent to the electronic device 210, the second external electronic device 230, and/or the third external electronic device 240 located on the same network. may be received by the fourth external electronic device 250. The fifth message may be a final message.

다양한 실시예들에서, 제5 메시지(예: 파이널 메시지)는, 제5 메시지를 전송하는 전송 시간(예: TX timestamp)을 포함할 수 있다. 제5 메시지의 전송 시간은, 전술한 <표 1>에 따른 제 5 메시지의 “TX Timestamp” 파라미터에 추가되어 전송될 수 있다. 이에 한정하는 것은 아니며, 제5 메시지는, 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간 차이에 대한 산출된 제7 응답 시간, 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간 차이에 대한 제8 응답 시간, 및 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제1 외부 전자 장치(220)가 전송하는 제5 메시지의 전송 시간 차이에 대한 제9 응답 시간을 포함할 수 있다. 일 실시예에서, 제1 외부 전자 장치(220)가 전송하는 제5 메시지에 포함된 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간은, 상기 <표 3>에 따른 제5 메시지의 “Reply Time List” 파라미터에 포함되어, 전송될 수 있다. In various embodiments, the fifth message (eg, final message) may include a transmission time (eg, TX timestamp) for transmitting the fifth message. The transmission time of the fifth message may be transmitted after being added to the “TX Timestamp” parameter of the fifth message according to <Table 1> described above. The calculation of the difference between the reception time of the second message received from the second external electronic device 230 and the transmission time of the fifth message transmitted by the first external electronic device 220 is not limited thereto, and the fifth message is calculated. an eighth response time for a difference between the reception time of the third message received from the third external electronic device 240 and the transmission time of the fifth message transmitted by the first external electronic device 220, and A ninth response time for a difference between the reception time of the fourth message received from the fourth external electronic device 250 and the transmission time of the fifth message transmitted by the first external electronic device 220 may be included. In one embodiment, the seventh response time, the eighth response time, and the ninth response time included in the fifth message transmitted by the first external electronic device 220 are the values of the fifth message according to Table 3 above. It can be included in the “Reply Time List” parameter and transmitted.

일 실시예에서, 제2 외부 전자 장치(230)는 제5 메시지에 대한 응답으로, 제6 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)는 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)에 전송하는 제6 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제2 외부 전자 장치(230)는 제1 메시지에 대한 응답으로, 제6 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)는 제2 외부 전자 장치(230)가 브로드캐스팅하는 제6 메시지를 수신할 수 있다.In an embodiment, the second external electronic device 230 may transmit a sixth message (eg, a response message) to the first external electronic device 220 in response to the fifth message. In this case, the electronic device 210, the third external electronic device 240, and/or the fourth external electronic device 250 located on the same network may cause the second external electronic device 230 to be the first external electronic device ( 220) may sniff and receive the sixth message. For another example, the second external electronic device 230 may broadcast a sixth message (eg, a response message) in response to the first message. In this case, the electronic device 210, the first external electronic device 220, the third external electronic device 240, and/or the fourth external electronic device 250 are broadcasted by the second external electronic device 230. A sixth message may be received.

다양한 실시예들에서, 제6 메시지는, 제6 메시지를 전송하는 전송 시간을 포함할 수 있다. 제6 메시지의 전송 시간은, 전술한 <표 2>에 따른 제 6 메시지의 “TX Timestamp” 파라미터에 추가되어 전송될 수 있다. 이에 한정하는 것은 아니며, 제6 메시지는, 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제2 외부 전자 장치(230)가 전송하는 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함할 수 있다.In various embodiments, the sixth message may include a transmission time for transmitting the sixth message. The transmission time of the sixth message may be transmitted after being added to the “TX Timestamp” parameter of the sixth message according to <Table 2> described above. The present invention is not limited thereto, and the sixth message is a time difference between the reception time of the third message received from the third external electronic device 240 and the transmission time of the sixth message transmitted by the second external electronic device 230. 10 response time, an 11th response time for a difference between the reception time of the fourth message received from the fourth external electronic device 250 and the transmission time of the sixth message transmitted by the second external electronic device 230, and the first A twelfth response time for a difference between the reception time of the fifth message received from the external electronic device 220 and the transmission time of the sixth message transmitted by the second external electronic device 230 may be included.

일 실시예에서, 제3 외부 전자 장치(240)는 제5 메시지에 대한 응답으로, 제7 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제4 외부 전자 장치(250)는 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)에 전송하는 제7 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제3 외부 전자 장치(240)는 제1 메시지에 대한 응답으로, 제7 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제4 외부 전자 장치(250)는 제3 외부 전자 장치(240)가 브로드캐스팅하는 제7 메시지를 수신할 수 있다.In an embodiment, the third external electronic device 240 may transmit a seventh message (eg, a response message) to the first external electronic device 220 in response to the fifth message. In this case, the third external electronic device 240 is the first external electronic device ( 220) can be received by sniffing the seventh message. For another example, the third external electronic device 240 may broadcast a seventh message (eg, a response message) as a response to the first message. In this case, the electronic device 210 , the first external electronic device 220 , the second external electronic device 230 , and/or the fourth external electronic device 250 are broadcast by the third external electronic device 240 . It is possible to receive a seventh message that says.

다양한 실시예들에서, 제7 메시지는, 제7 메시지를 전송하는 전송 시간을 포함할 수 있다. 제7 메시지의 전송 시간은, 전술한 <표 2>에 따른 제 7 메시지의 “TX Timestamp” 파라미터에 추가되어 전송될 수 있다. 이에 한정하는 것은 아니며, 제7 메시지는, 제4 외부 전자 장치(250)로부터 수신한 제4 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 제2 외부 전자 장치(230)로부터 수신한 제6 메시지의 수신 시간과 제3 외부 전자 장치(240)가 전송하는 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함할 수 있다.In various embodiments, the seventh message may include a transmission time for transmitting the seventh message. The transmission time of the seventh message may be transmitted after being added to the “TX Timestamp” parameter of the seventh message according to <Table 2> described above. The present invention is not limited thereto, and the seventh message is a time difference between the reception time of the fourth message received from the fourth external electronic device 250 and the transmission time of the seventh message transmitted by the third external electronic device 240. 13 response time, a 14th response time for a difference between the reception time of the fifth message received from the first external electronic device 220 and the transmission time of the seventh message transmitted by the third external electronic device 240, and the second A fifteenth response time for a difference between the reception time of the sixth message received from the external electronic device 230 and the transmission time of the seventh message transmitted by the third external electronic device 240 may be included.

일 실시예에서, 제4 외부 전자 장치(250)는 제5 메시지에 대한 응답으로, 제8 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는 제4 외부 전자 장치(250)가 제1 외부 전자 장치(220)에 전송하는 제8 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제4 외부 전자 장치(250)는 제1 메시지에 대한 응답으로, 제8 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는 제4 외부 전자 장치(250)가 브로드캐스팅하는 제8 메시지를 수신할 수 있다.In an embodiment, the fourth external electronic device 250 may transmit an eighth message (eg, a response message) to the first external electronic device 220 in response to the fifth message. In this case, the electronic device 210, the second external electronic device 230, and/or the third external electronic device 240 located on the same network may cause the fourth external electronic device 250 to be the first external electronic device ( 220) can be received by sniffing the eighth message. For another example, the fourth external electronic device 250 may broadcast an eighth message (eg, a response message) in response to the first message. In this case, the electronic device 210 , the first external electronic device 220 , the second external electronic device 230 , and/or the third external electronic device 240 cause the fourth external electronic device 250 to broadcast It is possible to receive an eighth message that says.

다양한 실시예들에서, 제8 메시지는, 제8 메시지를 전송하는 전송 시간을 포함할 수 있다. 제8 메시지의 전송 시간은, 전술한 <표 2>에 따른 제 8 메시지의 “TX Timestamp” 파라미터에 추가되어 수신될 수 있다. 이에 한정하는 것은 아니며, 제8 메시지는, 제1 외부 전자 장치(220)로부터 수신한 제5 메시지의 수신 시간과 제4 외부 전자 장치(250)가 전송하는 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 제2 외부 전자 장치(230)로부터 수신한 제6 메시지의 수신 시간과 제4 외부 전자 장치(250)가 전송하는 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 제3 외부 전자 장치(240)로부터 수신한 제7 메시지의 수신 시간과 제4 외부 전자 장치(250)가 전송하는 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함할 수 있다.In various embodiments, the eighth message may include a transmission time for transmitting the eighth message. The transmission time of the eighth message may be received by being added to the “TX Timestamp” parameter of the eighth message according to <Table 2> described above. The present invention is not limited thereto, and the eighth message is a time difference between the reception time of the fifth message received from the first external electronic device 220 and the transmission time of the eighth message transmitted by the fourth external electronic device 250. 16 response time, a 17th response time for a difference between the reception time of the sixth message received from the second external electronic device 230 and the transmission time of the eighth message transmitted by the fourth external electronic device 250, and the third An eighteenth response time for a difference between the reception time of the seventh message received from the external electronic device 240 and the transmission time of the eighth message transmitted by the fourth external electronic device 250 may be included.

다양한 실시예들에서, 제5 메시지에 대한 응답으로, 제4 외부 전자 장치(250)가 제8 메시지(예: 응답 메시지)를 전송하는 동작은 생략될 수 있다. 예컨대, 전자 장치(210)는 제2 메시지에 포함된 제1 응답 메시지, 제3 메시지에 포함된 제2 응답 시간 및 제3 응답 시간, 제4 메시지에 포함된 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 이용하여 전자 장치(210)와 외부 전자 장치들(220, 230, 240, 250) 간 도래시간차를 산출할 수 있기 때문에, 제8 메시지를 전송하는 동작은 생략될 수 있다. 다른 예를 들어, 제5 메시지에 포함된 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간, 제6 메시지에 포함된 제10 응답 시간, 제11 응답 시간, 및 제12 응답 시간, 제7 메시지에 포함된 제13응답 시간, 제14응답 시간, 및 제15 응답 시간을 이용하여 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 클럭 오차를 보상할 수 있기 때문에, 제8 메시지를 전송하는 동작은 생략될 수 있다.In various embodiments, an operation of the fourth external electronic device 250 transmitting an eighth message (eg, a response message) in response to the fifth message may be omitted. For example, the electronic device 210 includes a first response message included in the second message, a second response time and a third response time included in the third message, a fourth response time included in the fourth message, and a fifth response time included in the fourth message. Since the arrival time difference between the electronic device 210 and the external electronic devices 220, 230, 240, and 250 can be calculated using , and the sixth response time, the operation of transmitting the eighth message can be omitted. . For another example, the seventh response time, the eighth response time, and the ninth response time included in the fifth message, the tenth response time, the eleventh response time, and the twelfth response time included in the sixth message, A clock error between the electronic device 210 and the plurality of external electronic devices 220, 230, 240, and 250 may be compensated for using the 13th response time, the 14th response time, and the 15th response time included in the message 7. Therefore, the operation of transmitting the eighth message may be omitted.

다양한 실시예들에서, 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250) 간 전송 또는 수신하는 메시지들(예: 제1 메시지 내지 제8 메시지)은 패킷 형태로 전송 또는 수신될 수 있다. 하지만 이에 한정하는 것은 아니다.In various embodiments, a message transmitted or received between the first external electronic device 220, the second external electronic device 230, the third external electronic device 240, and/or the fourth external electronic device 250 (eg, the first message to the eighth message) may be transmitted or received in a packet form. However, it is not limited thereto.

다양한 실시예들에서, 제1 외부 전자 장치(220)가 제5 메시지(예: 파이널 메시지)를 전송하는 동작은 생략될 수 있다. 이 경우, 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250) 각각은 전송 시간만을 포함한 제6 메시지, 제7 메시지, 및 제8 메시지(예: 응답 시간을 포함하지 않은 제6 메시지, 제7 메시지, 및 제8 메시지)를 전송할 수 있다.In various embodiments, an operation of transmitting the fifth message (eg, final message) by the first external electronic device 220 may be omitted. In this case, each of the second external electronic device 230 , the third external electronic device 240 , and the fourth external electronic device 250 includes the sixth message, the seventh message, and the eighth message including only the transmission time (eg : The 6th message, the 7th message, and the 8th message not including the response time) may be transmitted.

다양한 실시예들에 따른 도 8에서, 도 7에 추가적으로 제5 메시지 내지 제8 메시지를 송수신하는 동작을 수행함으로써, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 클럭 오차를 보상할 수 있으며, 보상된 클럭 오차에 기반하여 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 도래시간차를 산출함으로써 보다 정확한 전자 장치(210)의 위치를 측정할 수 있다.In FIG. 8 according to various embodiments, the electronic device 210 and the plurality of external electronic devices 220, 230, 240, and 250 transmit and receive additional fifth to eighth messages to and from FIG. 7 . The electronic device 210 is more accurate by calculating the time difference between the electronic device 210 and the plurality of external electronic devices 220, 230, 240, and 250 based on the compensated clock error. position can be measured.

도 9는, 다양한 실시예들에 따른, 전자 장치와 복수의 외부 전자 장치들 간 신호 흐름을 도시한 도면(900)이다.9 is a diagram 900 illustrating a signal flow between an electronic device and a plurality of external electronic devices according to various embodiments.

다양한 실시예들에 따른 도 9는 전술한 도 7의 추가적인 동작일 수 있다. 예컨대, 도 9는 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 클럭 오차를 보상하기 위해, 전술한 도 7에 추가적인 동작 예컨대, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250)은 제5 메시지 내지 제7 메시지를 송수신하는 동작을 수행할 수 있다.FIG. 9 according to various embodiments may be an additional operation of FIG. 7 described above. For example, FIG. 9 shows an additional operation to the above-described FIG. 7 , for example, the electronic device 210 and the plurality of external electronic devices 220, 230, 240, and 250. The external electronic devices 220, 230, 240, and 250 of may perform an operation of transmitting and receiving the fifth message to the seventh message.

다양한 실시예들에 따른 도 9는, 전술한 도 8과 비교하여, 제1 외부 전자 장치(220)가 제5 메시지(예: 파이널 메시지)를 전송하는 동작이 생략된 실시예일 수 있다.9 according to various embodiments may be an embodiment in which an operation of transmitting a fifth message (eg, a final message) by the first external electronic device 220 is omitted compared to FIG. 8 described above.

다양한 실시예들에 따른 도 9의 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 제1 메시지 내지 제4 메시지를 송수신하는 동작은, 전술한 도 7의 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 제1 메시지 내지 제4 메시지를 송수신하는 동작과 동일하므로, 이에 대한 상세한 설명은 도 7의 설명으로 대신할 수 있다.An operation of transmitting and receiving the first message to the fourth message between the electronic device 210 of FIG. 9 and the plurality of external electronic devices 220, 230, 240, and 250 according to various embodiments is performed by the electronic device 210 of FIG. 7 described above. Since the operation of transmitting and receiving the first message to the fourth message between the device 210 and the plurality of external electronic devices 220, 230, 240, and 250 is the same, the detailed description thereof may be replaced with the description of FIG. 7 .

도 9를 참조하면, 제1 외부 전자 장치(220)는 거리 측정(range measurement)을 위한 제1 메시지를 전송(예: 브로드캐스팅)할 수 있다. 예컨대, 제1 메시지는 폴 메시지(poll message)를 포함할 수 있다.Referring to FIG. 9 , the first external electronic device 220 may transmit (eg, broadcast) a first message for range measurement. For example, the first message may include a poll message.

일 실시예에서, 제2 외부 전자 장치(230)는 제1 메시지에 대한 응답으로, 제1 응답 시간을 포함하는 제2 메시지(예: 응답 메시지)를 전송할 수 있다. 예컨대, 제1 응답 시간은 제2 외부 전자 장치(230)에 의해 산출된 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제2 외부 전자 장치(230)가 전송할 제2 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제2 외부 전자 장치(230)가 전송하는 제2 메시지는 동일한 네트워크에 위치하는 전자 장치(210), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)에도 수신(예: 브로드캐스팅되는 제2 메시지를 수신하거나, 또는 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)에 전송하는 제2 메시지를 스니핑하여 수신)될 수 있다.In an embodiment, the second external electronic device 230 may transmit a second message (eg, a response message) including a first response time as a response to the first message. For example, the first response time is the reception time of the first message transmitted by the first external electronic device 220 calculated by the second external electronic device 230 and the second external electronic device in response to the first message ( 230) may be a difference in transmission time of the second message (eg, response message) to be transmitted. The second message transmitted by the second external electronic device 230 is also received by the electronic device 210, the third external electronic device 240, and/or the fourth external electronic device 250 located on the same network (eg : It may be received by receiving the broadcast second message or by sniffing the second message transmitted from the second external electronic device 230 to the first external electronic device 220).

일 실시예에서, 제3 외부 전자 장치(240)는 제1 메시지에 대한 응답으로, 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지(예: 응답 메시지)를 전송할 수 있다. 예컨대, 제2 응답 시간은 제3 외부 전자 장치(240)에 의해 산출된 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제3 응답 시간은 제3 외부 전자 장치(240)에 의해 산출된 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)가 전송할 제3 메시지(예: 응답 메시지)의 전송 시간의 차이에 대한 시간일 수 있다. 제3 외부 전자 장치(240)가 전송하는 제3 메시지는 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제4 외부 전자 장치(250)에도 수신(예: 브로드캐스팅되는 제3 메시지를 수신하거나, 또는 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)에 전송하는 제3 메시지를 스니핑하여 수신)될 수 있다.In an embodiment, the third external electronic device 240 may transmit a third message (eg, a response message) including a second response time and a third response time as a response to the first message. For example, the second response time is the reception time of the first message transmitted by the first external electronic device 220 calculated by the third external electronic device 240 and the third external electronic device in response to the first message ( 240) may be a difference in transmission time of a third message (eg, a response message) to be transmitted. The third response time is the reception time of the second message received from the second external electronic device 230 calculated by the third external electronic device 240 and the third external electronic device 240 in response to the first message. may be a time for a difference in transmission time of a third message (eg, a response message) to be transmitted. The third message transmitted by the third external electronic device 240 is also received by the electronic device 210, the second external electronic device 230, and/or the fourth external electronic device 250 located on the same network (eg : It may be received by receiving a broadcasted third message or by sniffing a third message transmitted from the third external electronic device 240 to the first external electronic device 220).

일 실시예에서, 제4 외부 전자 장치(250)는 제1 메시지에 대한 응답으로, 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지(예: 응답 메시지)를 전송할 수 있다. 예컨대, 제4 응답 시간은 제4 외부 전자 장치(250)에 의해 산출된 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제5 응답 시간은 제4 외부 전자 장치(250)에 의해 산출된 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제6 응답 시간은 제4 외부 전자 장치(250)에 의해 산출된 제3 외부 전자 장치(240)로부터 수신한 제3 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제4 메시지(예: 응답 메시지)의 전송 시간의 차이일 수 있다. 제4 외부 전자 장치(250)가 전송하는 제4 메시지는 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)에도 수신(예: 브로드캐스팅되는 제4 메시지를 수신하거나, 또는 제4 외부 전자 장치(250)가 제1 외부 전자 장치(220)에 전송하는 제4 메시지를 스니핑하여 수신)될 수 있다.In an embodiment, the fourth external electronic device 250 sends a fourth message (eg, a response message) including a fourth response time, a fifth response time, and a sixth response time as a response to the first message. can transmit For example, the fourth response time is the reception time of the first message transmitted by the first external electronic device 220 calculated by the fourth external electronic device 250 and the fourth external electronic device in response to the first message ( 250) may be a difference in transmission time of a fourth message (eg, a response message) to be transmitted. The fifth response time is the reception time of the second message received from the second external electronic device 230 calculated by the fourth external electronic device 250 and the fourth external electronic device 250 in response to the first message. may be a difference in transmission time of a fourth message (eg, a response message) to be transmitted. The sixth response time is the reception time of the third message received from the third external electronic device 240 calculated by the fourth external electronic device 250 and the fourth external electronic device 250 in response to the first message. may be a difference in transmission time of a fourth message (eg, a response message) to be transmitted. The fourth message transmitted by the fourth external electronic device 250 is also received by the electronic device 210, the second external electronic device 230, and/or the third external electronic device 240 located on the same network (eg : It may be received by receiving the broadcasted fourth message or by sniffing the fourth message transmitted from the fourth external electronic device 250 to the first external electronic device 220).

일 실시예에서, 제2 외부 전자 장치(230)는 제5 메시지를 전송할 수 있다. 예컨대, 제5 메시지는 유니캐스트 방식으로 제1 외부 전자 장치(220)에 전송될 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)는 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)에 전송하는 제5 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제5 메시지는 브로드캐스팅 방식으로 전송될 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250)는 제2 외부 전자 장치(230)가 브로드캐스팅하는 제5 메시지를 수신할 수 있다.In one embodiment, the second external electronic device 230 may transmit a fifth message. For example, the fifth message may be transmitted to the first external electronic device 220 in a unicast manner. In this case, the electronic device 210, the third external electronic device 240, and/or the fourth external electronic device 250 located on the same network may cause the second external electronic device 230 to be the first external electronic device ( 220) may be received by sniffing the fifth message. For another example, the fifth message may be transmitted in a broadcasting manner. In this case, the electronic device 210, the first external electronic device 220, the third external electronic device 240, and/or the fourth external electronic device 250 are broadcasted by the second external electronic device 230. It is possible to receive a fifth message that says.

일 실시예에서, 제5 메시지는, 제5 메시지를 전송하는 전송 시간(예: TX timestamp)을 포함할 수 있다. 제5 메시지의 전송 시간은, 전술한 <표 2>에 따른 제 5 메시지의 “TX Timestamp” 파라미터에 추가되어 전송될 수 있다.In one embodiment, the fifth message may include a transmission time (eg, TX timestamp) for transmitting the fifth message. The transmission time of the fifth message may be transmitted after being added to the “TX Timestamp” parameter of the fifth message according to <Table 2> described above.

일 실시예에서, 제3 외부 전자 장치(240)는 제6 메시지를 전송할 수 있다. 예컨대, 제6 메시지는 유니캐스트 방식으로 제1 외부 전자 장치(220)에 전송될 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제4 외부 전자 장치(250)는 제3 외부 전자 장치(240)가 제1 외부 전자 장치(220)에 전송하는 제6 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제6 메시지는 브로드캐스팅 방식으로 전송될 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제4 외부 전자 장치(250)는 제3 외부 전자 장치(240)가 브로드캐스팅하는 제6 메시지를 수신할 수 있다.In one embodiment, the third external electronic device 240 may transmit a sixth message. For example, the sixth message may be transmitted to the first external electronic device 220 in a unicast manner. In this case, the third external electronic device 240 is the first external electronic device ( 220) may sniff and receive the sixth message. For another example, the sixth message may be transmitted in a broadcasting manner. In this case, the electronic device 210 , the first external electronic device 220 , the second external electronic device 230 , and/or the fourth external electronic device 250 are broadcast by the third external electronic device 240 . A sixth message may be received.

일 실시예에서, 제6 메시지는, 제6 메시지를 전송하는 전송 시간을 포함할 수 있다. 제6 메시지의 전송 시간은, 전술한 <표 2>에 따른 제 6 메시지의 “TX Timestamp” 파라미터에 추가되어 전송될 수 있다.In one embodiment, the sixth message may include a transmission time for transmitting the sixth message. The transmission time of the sixth message may be transmitted after being added to the “TX Timestamp” parameter of the sixth message according to <Table 2> described above.

일 실시예에서, 제4 외부 전자 장치(250)는 제7 메시지를 전송할 수 있다. 예컨대, 제7 메시지는 유니캐스트 방식으로 제1 외부 전자 장치(220)에 전송될 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는 제4 외부 전자 장치(250)가 제1 외부 전자 장치(220)에 전송하는 제7 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제7 메시지는 브로드캐스팅 방식으로 전송될 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및/또는 제3 외부 전자 장치(240)는 제4 외부 전자 장치(250)가 브로드캐스팅하는 제7 메시지를 수신할 수 있다.In one embodiment, the fourth external electronic device 250 may transmit a seventh message. For example, the seventh message may be transmitted to the first external electronic device 220 in a unicast manner. In this case, the electronic device 210, the second external electronic device 230, and/or the third external electronic device 240 located on the same network may cause the fourth external electronic device 250 to be the first external electronic device ( 220) can be received by sniffing the seventh message. For another example, the seventh message may be transmitted in a broadcasting manner. In this case, the electronic device 210 , the first external electronic device 220 , the second external electronic device 230 , and/or the third external electronic device 240 cause the fourth external electronic device 250 to broadcast It is possible to receive a seventh message that says.

일 실시예에서, 제7 메시지는, 제7 메시지를 전송하는 전송 시간을 포함할 수 있다 제7 메시지의 전송 시간은, 전술한 <표 2>에 따른 제 7 메시지의 “TX Timestamp” 파라미터에 추가되어 전송될 수 있다.In one embodiment, the seventh message may include a transmission time for transmitting the seventh message. The transmission time of the seventh message is added to the “TX Timestamp” parameter of the seventh message according to <Table 2> described above. and can be transmitted.

다양한 실시예들에 따른 전술한 제5 메시지, 제6 메시지, 및 제7 메시지에 포함된 전송 시간(또는 응답 시간)은, 전자 장치(210)가 복수의 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및/또는 제4 외부 전자 장치(250))과의 클럭 오차(clock drift)를 보상하기 위해 사용될 수 있다.The transmission time (or response time) included in the aforementioned fifth message, sixth message, and seventh message according to various embodiments is determined by the electronic device 210 being connected to a plurality of external electronic devices (eg, the first external electronic device). It may be used to compensate for clock drift with the electronic device 220, the second external electronic device 230, the third external electronic device 240, and/or the fourth external electronic device 250. there is.

다양한 실시예들에 따른 도 9에서, 제1 외부 전자 장치(220)가 전송하는 제1 메시지를 수신한 제2 외부 전자 장치(230)는 두 번의 응답 메시지(예: 제1 거리 측정 구간에서 전송하는 제2 메시지 및 제5 메시지)를 전송할 수 있다. 또한, 제1 외부 전자 장치(220)가 전송하는 제1 메시지를 수신한 제3 외부 전자 장치(240)는 두 번의 응답 메시지(예: 제1 거리 측정 구간에서 전송하는 제3 메시지 및 제6 메시지)를 전송할 수 있다. 또한, 제1 외부 전자 장치(220)가 전송하는 제1 메시지를 수신한 제4 외부 전자 장치(250)는 두 번의 응답 메시지(예: 제1 거리 측정 구간에서 전송하는 제4 메시지 및 제7 메시지)를 전송할 수 있다. 전자 장치(210)는 각 외부 전자 장치로부터 두 번의 응답 메시지에 포함된 응답 시간에 기반하여, 전자 장치(210)와 복수의 외부 전자 장치들 간의 클럭 오차(clock drift)를 보상한 후, 전자 장치(210)와 복수의 외부 전자 장치들 간의 도래시간차(TDoA)를 산출할 수 있다. In FIG. 9 according to various embodiments, upon receiving the first message transmitted by the first external electronic device 220, the second external electronic device 230 sends two response messages (eg, transmitted in the first distance measurement section). The second message and the fifth message) may be transmitted. Also, upon receiving the first message transmitted by the first external electronic device 220, the third external electronic device 240 sends two response messages (eg, a third message and a sixth message transmitted in the first distance measurement section). ) can be transmitted. Also, upon receiving the first message transmitted by the first external electronic device 220, the fourth external electronic device 250 sends two response messages (eg, a fourth message and a seventh message transmitted in the first distance measurement section). ) can be transmitted. The electronic device 210 compensates for clock drift between the electronic device 210 and a plurality of external electronic devices based on the response time included in the two response messages from each external electronic device, and then the electronic device 210 A time difference of arrival (TDoA) between 210 and a plurality of external electronic devices may be calculated.

다양한 실시예들에 따른 전술한 클럭 오차를 보상하기 위한 값 및 도래시간차를 산출하는 방법과 관련하여, 후술하는 도 10 및 도 11에서 보다 상세히 설명될 것이다.A method for calculating a value for compensating for the above-described clock error and a time difference of arrival according to various embodiments will be described in more detail with reference to FIGS. 10 and 11 to be described later.

도 10은, 다양한 실시예들에 따른, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 250) 간 도래시간차를 산출하는 방법을 설명하기 위한 도면(1000)이다.10 is a diagram 1000 for explaining a method of calculating a difference in arrival time between an electronic device 210 and a plurality of external electronic devices 220, 230, 240, and 250 according to various embodiments.

도 10을 참조하면, 전자 장치(210)는 동일한 네트워크에 위치하는 외부 전자 장치들의 페어의 개수에 기반하여, 도래시간차(TDoA, time difference of arrival)를 산출할 수 있다. 예컨대, 외부 전자 장치의 개수가 4개일 수 있으며, 외부 전자 장치들의 페어는 6개일 수 있다. 예컨대, 제1 외부 전자 장치(220)와 제2 외부 전자 장치(230)를 포함하는 제1 페어, 제1 외부 전자 장치(220)와 제3 외부 전자 장치(240)를 포함하는 제2 페어, 제1 외부 전자 장치(220)와 제4 외부 전자 장치(250)를 포함하는 제3 페어, 제2 외부 전자 장치(230)와 제3 외부 전자 장치(240)를 포함하는 제4 페어, 제2 외부 전자 장치(230)와 제4 외부 전자 장치(250)를 포함하는 제5 페어, 제3 외부 전자 장치(240)와 제4 외부 전자 장치(250)를 포함하는 제6 페어를 포함할 수 있다.Referring to FIG. 10 , the electronic device 210 may calculate a time difference of arrival (TDoA) based on the number of pairs of external electronic devices located on the same network. For example, the number of external electronic devices may be four, and the number of pairs of external electronic devices may be six. For example, a first pair including the first external electronic device 220 and the second external electronic device 230, a second pair including the first external electronic device 220 and the third external electronic device 240, A third pair including the first external electronic device 220 and the fourth external electronic device 250, a fourth pair including the second external electronic device 230 and the third external electronic device 240, the second A fifth pair including the external electronic device 230 and the fourth external electronic device 250 and a sixth pair including the third external electronic device 240 and the fourth external electronic device 250 may be included. .

일 실시예에서, 제1 페어에 포함된 제1 외부 전자 장치(220)와 제2 외부 전자 장치(230) 간의 거리(1005)는 제1 외부 전자 장치(220)가 전송하는 제1 메시지를 제2 외부 전자 장치(230)가 수신한 시간과 제1 메시지에 대한 응답으로 제2 외부 전자 장치(230)에서 전송되는 제2 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제1 응답 시간(예: 도 7, 도 8, 및 도 9의 제1 응답 시간)에 기반하여 산출될 수 있다.In one embodiment, the distance 1005 between the first external electronic device 220 and the second external electronic device 230 included in the first pair is the first message transmitted by the first external electronic device 220. 2 A first response time for a difference between a time received by the external electronic device 230 and a transmission time of a second message (eg, a response message) transmitted from the second external electronic device 230 in response to the first message ( Example: the first response time of FIGS. 7, 8, and 9).

일 실시예에서, 제2 페어에 포함된 제1 외부 전자 장치(220)와 제3 외부 전자 장치(240) 간의 거리(1020)는 제1 외부 전자 장치(220)가 전송하는 제1 메시지를 제3 외부 전자 장치(240)가 수신한 시간과 제1 메시지에 대한 응답으로 제3 외부 전자 장치(240)에서 전송되는 제3 메시지의 전송 시간 차이에 대한 제2 응답 시간(예: 도 7, 도 8, 및 도 9의 제2 응답 시간)에 기반하여 산출될 수 있다.In one embodiment, the distance 1020 between the first external electronic device 220 and the third external electronic device 240 included in the second pair is the first message transmitted by the first external electronic device 220. 3 A second response time for a difference between the time received by the external electronic device 240 and the transmission time of the third message transmitted from the third external electronic device 240 in response to the first message (eg, FIG. 8, and the second response time of FIG. 9).

일 실시예에서, 제3 페어에 포함된 제1 외부 전자 장치(220)와 제4 외부 전자 장치(250) 간의 거리(1010)는 제1 외부 전자 장치(220)가 전송하는 제1 메시지를 제4 외부 전자 장치(250)가 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)에서 전송되는 제4 메시지의 전송 시간 차이에 대한 제4 응답 시간(예: 도 7, 도 8, 및 도 9의 제4 응답 시간)에 기반하여 산출될 수 있다.In one embodiment, the distance 1010 between the first external electronic device 220 and the fourth external electronic device 250 included in the third pair is the first message transmitted by the first external electronic device 220. 4 A fourth response time for a difference between the time received by the external electronic device 250 and the transmission time of the fourth message transmitted from the fourth external electronic device 250 in response to the first message (eg, FIG. 7, FIG. 8, and the fourth response time of FIG. 9).

일 실시예에서, 제4 페어에 포함된 제2 외부 전자 장치(230)와 제3 외부 전자 장치(240) 간의 거리(1030)는 제2 외부 전자 장치(230)가 전송하는 제2 메시지를 제3 외부 전자 장치(240)가 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)에서 전송되는 제4 메시지의 전송 시간 차이에 대한 제3 응답 시간(예: 도 7, 도 8, 및 도 9의 제3 응답 시간)에 기반하여 산출될 수 있다.In one embodiment, the distance 1030 between the second external electronic device 230 and the third external electronic device 240 included in the fourth pair is the distance between the second external electronic device 230 and the second message transmitted. 3 A third response time for a difference between the time received by the external electronic device 240 and the transmission time of the fourth message transmitted from the fourth external electronic device 250 in response to the first message (eg, FIG. 8, and the third response time of FIG. 9).

일 실시예에서, 제5 페어에 포함된 제2 외부 전자 장치(230)와 제4 외부 전자 장치(250) 간의 거리(1015)는 제2 외부 전자 장치(230)가 전송하는 제2 메시지를 제4 외부 전자 장치(250)가 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)에서 전송되는 제4 메시지의 전송 시간 차이에 대한 제5 응답 시간(예: 도 7, 도 8, 및 도 9의 제5 응답 시간)에 기반하여 산출될 수 있다.In one embodiment, the distance 1015 between the second external electronic device 230 and the fourth external electronic device 250 included in the fifth pair is the distance between the second external electronic device 230 and the second message transmitted. 4 A fifth response time for a difference between the time received by the external electronic device 250 and the transmission time of the fourth message transmitted from the fourth external electronic device 250 in response to the first message (eg, FIG. 7, FIG. 8, and the fifth response time of FIG. 9).

일 실시예에서, 제6 페어에 포함된 제3 외부 전자 장치(240)와 제4 외부 전자 장치(250) 간의 거리(1025)는 제3 외부 전자 장치(240)가 전송하는 제3 메시지를 제4 외부 전자 장치(250)가 수신한 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)에서 전송되는 제4 메시지의 전송 시간 차이에 대한 제6 응답 시간(예: 도 7, 도 8, 및 도 9의 제6 응답 시간)에 기반하여 산출될 수 있다.In one embodiment, the distance 1025 between the third external electronic device 240 and the fourth external electronic device 250 included in the sixth pair is the third external electronic device 240 transmits the third message. 4 A sixth response time for a difference between the time received by the external electronic device 250 and the transmission time of the fourth message transmitted from the fourth external electronic device 250 in response to the first message (eg, FIG. 8, and the sixth response time of FIG. 9).

다양한 실시예들에서, 전자 장치(210)는 전술한 복수의 외부 전자 장치들 간 송수신한 메시지들에 포함된 시간 정보(예: 제1 내지 제6 응답 시간, 각 외부 전자 장치가 다른 외부 전자 장치에서 전송되는 메시지를 수신한 시간, 및/또는 각 외부 전자 장치가 메시지를 전송하는 전송 시간)와 외부 전자 장치들 간 거리(1005, 1010, 1015, 1020, 1025, 1030)에 기반하여, 전자 장치(210)와 제1 외부 전자 장치(220)와의 거리(1035), 전자 장치(210)와 제2 외부 전자 장치(230)와의 거리(1040), 전자 장치(210)와 제3 외부 전자 장치(240)와의 거리(1045), 및/또는 전자 장치(210)와 제4 외부 전자 장치(250)와의 거리(1050)를 산출할 수 있다.In various embodiments, the electronic device 210 may use time information included in messages transmitted and received between the plurality of external electronic devices described above (eg, first to sixth response times, each external electronic device may be different from another external electronic device). Based on the time at which the message transmitted from and/or the transmission time at which each external electronic device transmits the message) and the distance between the external electronic devices (1005, 1010, 1015, 1020, 1025, 1030), the electronic device A distance 1035 between the electronic device 210 and the first external electronic device 220, a distance 1040 between the electronic device 210 and the second external electronic device 230, and a distance 1040 between the electronic device 210 and the third external electronic device ( A distance 1045 to 240 and/or a distance 1050 between the electronic device 210 and the fourth external electronic device 250 may be calculated.

다양한 실시예들에서, 도 8 및 도 9에서 살펴본 바와 같이, 전자 장치(210)는 복수의 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250)) 각각이 전송 또는 수신되는 응답 시간을 포함하는 메시지들을 이용하여, 전자 장치(210)와 복수의 전자 장치들 간의 도래시간차(TDoA)를 산출할 수 있다. 예컨대, 전자 장치(210)와 제1 외부 전자 장치(220) 간 거리(1035) 및 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리(1040)의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제1 외부 전자 장치(220), 및 제2 외부 전자 장치(230) 간의 도래시간차를 산출할 수 있다. 다른 예를 들어, 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리(1040) 및 전자 장치(210)와 제3 외부 전자 장치(240) 간 거리(1045)의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제2 외부 전자 장치(230), 및 제3 외부 전자 장치(240) 간의 도래시간차를 산출할 수 있다. 또 다른 예를 들어, 전자 장치(210)와 제3 외부 전자 장치(240) 간 거리(1045) 및 전자 장치(210)와 제4 외부 전자 장치(250) 간 거리(1050)의 차를 빛의 속도(상수)(예: c)로 나눈 값으로, 전자 장치(210), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250) 간의 도래시간차를 산출할 수 있다.In various embodiments, as described in FIGS. 8 and 9 , the electronic device 210 includes a plurality of external electronic devices (eg, a first external electronic device 220, a second external electronic device 230, 3 The time difference between the electronic device 210 and the plurality of electronic devices (TDoA) is determined by using messages including response times transmitted or received by each of the external electronic device 240 and the fourth external electronic device 250. ) can be calculated. For example, the difference between the distance 1035 between the electronic device 210 and the first external electronic device 220 and the distance 1040 between the electronic device 210 and the second external electronic device 230 is the speed of light (constant). The time difference between the arrival times between the electronic device 210 , the first external electronic device 220 , and the second external electronic device 230 may be calculated by dividing by (eg, c). For another example, the difference between the distance 1040 between the electronic device 210 and the second external electronic device 230 and the distance 1045 between the electronic device 210 and the third external electronic device 240 is the speed of light. The arrival time difference between the electronic device 210 , the second external electronic device 230 , and the third external electronic device 240 may be calculated as a value divided by (constant) (eg, c). As another example, the difference between the distance 1045 between the electronic device 210 and the third external electronic device 240 and the distance 1050 between the electronic device 210 and the fourth external electronic device 250 is calculated as The arrival time difference between the electronic device 210 , the third external electronic device 240 , and the fourth external electronic device 250 may be calculated as a value divided by a speed (constant) (eg, c).

다양한 실시예들에 따른 전자 장치(210)와 복수의 전자 장치들 간의 도래시간차를 도 10에 도시된 메시 네트워크 형태로 산출 가능함에 따라, 전자 장치(210)의 위치를 정확하게 측정할 수 있다. 이에 따라, 제1 외부 전자 장치(220)와 전자 장치(210)가 NLoS(non-line of sight) 상황에 있거나, 또는 링크 품질(link quality)이 좋지 상황에서도 정확한 전자 장치(210)의 위치 측정이 가능할 수 있다.As the arrival time difference between the electronic device 210 and a plurality of electronic devices according to various embodiments can be calculated in the form of a mesh network shown in FIG. 10 , the location of the electronic device 210 can be accurately measured. Accordingly, even when the first external electronic device 220 and the electronic device 210 are in a non-line of sight (NLoS) situation or the link quality is poor, the position of the electronic device 210 is accurately measured. this could be possible

도 11은, 다양한 실시예들에 따른, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 및 250) 간의 클럭 오차를 보상하기 위한 값 및 도래시간차를 산출하는 방법을 설명하기 위한 도면(1100)이다.11 illustrates a method of calculating a value for compensating for a clock error between an electronic device 210 and a plurality of external electronic devices 220, 230, 240, and 250 and a time difference between arrivals according to various embodiments. It is a drawing 1100 for doing.

다양한 실시예들에 따른 도 11은 SS-TWR 방식에서 도래시간차를 산출하는 방법을 설명하기 위한 도면이다.11 according to various embodiments is a diagram for explaining a method of calculating a time difference of arrival in the SS-TWR scheme.

도 11을 참조하면, 제1 외부 전자 장치(220)는 거리 측정 구간에서 거리 측정을 위한 제1 메시지(예: 폴 메시지)를 전송할 수 있다. 제1 외부 전자 장치(220)가 전송하는 제1 메시지를 수신한 제2 외부 전자 장치(230)는 제1 메시지에 대한 응답으로, 응답 시간을 포함하는 제2 메시지(예: 응답 메시지)를 브로드캐스팅 방식으로 전송하거나, 또는 유니캐스팅 방식으로 제1 외부 전자 장치(220)에 전송할 수 있다. 제1 메시지 및 응답 시간을 포함하는 제2 메시지는 동일한 네트워크에 위치하는 전자 장치(210)에도 수신될 수 있다.Referring to FIG. 11 , the first external electronic device 220 may transmit a first message (eg, a poll message) for distance measurement in a distance measurement section. Upon receiving the first message transmitted by the first external electronic device 220, the second external electronic device 230 broadcasts a second message (eg, a response message) including a response time as a response to the first message. It may be transmitted to the first external electronic device 220 using a casting method or a unicasting method. The second message including the first “message” and “response time” may also be received by the electronic device 210 located on the same network.

다양한 실시예들에서, 전자 장치(210)는 하기 <수학식 1>에 기반하여, 전자 장치(210), 제1 외부 전자 장치(220), 및 제2 외부 전자 장치(230) 간 도래시간차(TDoA)를 산출할 수 있다.In various embodiments, the electronic device 210 calculates an arrival time difference between the electronic device 210, the first external electronic device 220, and the second external electronic device 230 based on Equation 1 below ( TDoA) can be calculated.

Figure pat00001
Figure pat00001

예컨대, <수학식 1>에서, "d0"은 전자 장치(210)와 제1 외부 전자 장치(220) 간 거리를 의미할 수 있으며, "d1"는 전자 장치(210)와 제2 외부 전자 장치(230) 간 거리를 의미할 수 있다. "l1"은 제1 외부 전자 장치(220)와 제2 외부 전자 장치(230) 간 거리를 의미하고, "c"는 빛의 속도(상수)를 의미할 수 있다. "α"(1135)는 전자 장치(210)가 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 전자 장치(210)가 제1 외부 전자 장치(220)로부터 수신한 제1 메시지의 수신 시간의 차를 의미할 수 있다. "β"(1140)는 응답 시간으로, 제2 외부 전자 장치(230)가 전송하는 제2 메시지의 전송 시간과 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간의 차를 의미할 수 있다.For example, in <Equation 1>, “d 0 ” may mean a distance between the electronic device 210 and the first external electronic device 220, and “d 1 ” may mean a distance between the electronic device 210 and the second external electronic device 220. It may mean a distance between the electronic devices 230 . “l 1 ” may mean a distance between the first external electronic device 220 and the second external electronic device 230, and “c” may mean the speed (constant) of light. "α" 1135 is the reception time of the second message received by the electronic device 210 from the second external electronic device 230 and the first message received by the electronic device 210 from the first external electronic device 220. It may mean a difference in reception time of a message. "β" 1140 is a response time, which means the difference between the transmission time of the second message transmitted by the second external electronic device 230 and the reception time of the first message transmitted by the first external electronic device 220. can do.

다양한 실시예들에서, 전자 장치(210)는 "

Figure pat00002
"(1115)와 "
Figure pat00003
"(1105)의 차에 기반하여, 전자 장치(210), 제1 외부 전자 장치(220), 및 제2 외부 전자 장치(230) 간 도래시간차(TDoA)를 산출할 수 있다. 또는, 전자 장치(210)는 "α"(1135)와 "β"(1140)의 차 값을 산출하고, 산출된 차 값과 "
Figure pat00004
"(1110)의 차 값으로, 전자 장치(210), 제1 외부 전자 장치(220), 및 제2 외부 전자 장치(230) 간 도래시간차(TDoA)를 산출할 수 있다.In various embodiments, the electronic device 210 "
Figure pat00002
"(1115) and "
Figure pat00003
Based on the difference of "(1105), a time difference of arrival (TDoA) between the electronic device 210, the first external electronic device 220, and the second external electronic device 230 may be calculated. Or, the electronic device (210) calculates the difference value between "α" (1135) and "β" (1140), and the calculated difference value and "
Figure pat00004
A time difference of arrival (TDoA) between the electronic device 210, the first external electronic device 220, and the second external electronic device 230 may be calculated with the difference value of "(1110).

다양한 실시예들에서, 전자 장치(210)는 하기 <수학식2>에 기반하여, 클럭 오차를 보상하기 위한 값(ε)을 산출할 수 있다. 예컨대, 전자 장치(210)가 제2 외부 전자 장치(230)와의 클럭 오차를 보상하기 위한 값을 산출하는 것으로 가정하여 설명하면, 제2 외부 전자 장치(230)가 첫 번째로 전송한 제2 메시지(예: 제1 거리 측정 구간에서 첫 번째로 전송한 제2 메시지(예: A2-1))의 전송 시간(예: TXA2-1)과 전자 장치(210)가 제2 메시지(예: A2-1)를 수신한 시간(예: RXA2-1) 및 제2 외부 전자 장치(230)가 두 번째로 전송한 제5 메시지(예: 제1 거리 측정 구간에서 두 번째로 전송한 제5 메시지(예: A2-2))의 전송 시간(예: TXA2-2)과 전자 장치(210)가 제6 메시지(예: A2-2)를 수신한 시간(예: RXA2-2)에 기반하여 클럭 오차를 보상하기 위한 값(ε)을 산출할 수 있다. In various embodiments, the electronic device 210 may calculate a value ε for compensating for the clock error based on Equation 2 below. For example, assuming that the electronic device 210 calculates a value for compensating for a clock error with the second external electronic device 230, the second message first transmitted by the second external electronic device 230 The transmission time (eg, TX A2-1) of the second message (eg, A2-1 ) transmitted first in the first distance measurement interval and the electronic device 210 determines the second message (eg, A2-1) -1) is received (eg, RX A2-1 ) and the fifth message transmitted second from the second external electronic device 230 (eg, fifth message transmitted second in the first distance measurement section) (eg A2-2)) based on the transmission time (eg TX A2-2 ) and the time at which the electronic device 210 receives the sixth message (eg A2-2) (eg RX A2-2 ) Thus, a value ε for compensating for the clock error can be calculated.

Figure pat00005
Figure pat00005

일 실시예에서, 전자 장치(210)는 전술한 <수학식 1>에 <수학식 2>를 이용하여 산출된 클럭 오차를 보상하기 위한 값(ε)을 적용하여, 하기 <수학식 3>과 같이 도래시간차(TDoA)를 산출할 수 있다.In an embodiment, the electronic device 210 applies a value ε for compensating for a clock error calculated using <Equation 2> to <Equation 1>, and obtains the following equation 3 Similarly, the time difference of arrival (TDoA) can be calculated.

Figure pat00006
Figure pat00006

다양한 실시예들에서, 제2 외부 전자 장치(230) 내지 제4 외부 전자 장치(250)에서 두 번째로 전송(예: 제1 거리 측정 구간에서 두 번째로 전송)되는 응답 메시지(예: 제6 메시지 내지 제8 메시지)가 생략되는 경우, 전자 장치(210)는 다음 레인징 블록(ranging block)의 프레임을 이용한 하기 <수학식 4>에 기반하여 클럭 오차를 보상하기 위한 값(ε)을 산출할 수 있다. 전자 장치(210)는 전술한 <수학식 1>에 하기 <수학식 4>를 이용하여 산출된 클럭 오차를 보상하기 위한 값(ε)을 적용하여, <수학식 3>과 같이 도래시간차를 산출할 수 있다. 예컨대, 전자 장치(210)가 제2 외부 전자 장치(230)와의 클럭 오차를 보상하기 위한 값을 산출하는 것으로 가정하여 설명하면, 제2 외부 전자 장치(230)가 제n 레인징 블록에서 전송한 제2 메시지(예: A2)의 전송 시간(예: TXA2,n), 전자 장치(210)가 제n 레인징 블록에서 수신한 제2 메시지(예: A2)의 수신 시간(예: RXA2,n), 제2 외부 전자 장치(230)가 제n+1 레인징 블록에서 전송한 제2 메시지(예: A2)의 전송 시간(예: TXA2,n+1), 전자 장치(210)가 제n+1 레인징 블록에서 수신한 제2 메시지(예: A2)의 수신 시간(예: RXA2,n+1)에 기반하여 클럭 오차를 보상하기 위한 값(ε)을 산출할 수 있다.In various embodiments, a response message (eg, a sixth transmission) secondly transmitted (eg, secondly transmitted in the first distance measurement section) from the second external electronic device 230 to the fourth external electronic device 250 message to the eighth message) are omitted, the electronic device 210 calculates a value ε for compensating for the clock error based on Equation 4 below using a frame of the next ranging block. can do. The electronic device 210 is the following in <Equation 1> By applying a value ε for compensating for the clock error calculated using <Equation 4>, the arrival time difference can be calculated as shown in <Equation 3>. For example, assuming that the electronic device 210 calculates a value for compensating for a clock error with the second external electronic device 230, the second external electronic device 230 transmits a value from the nth ranging block. Transmission time (eg, TX A2,n ) of the second message (eg, A2 ), reception time (eg, RX A2 ) of the second message (eg, A2 ) received by the electronic device 210 in the n th ranging block ,n ), transmission time (eg, TX A2,n+1 ) of the second message (eg, A2) transmitted from the n+1 th ranging block by the second external electronic device 230, and may calculate a value ε for compensating for a clock error based on the reception time (eg RX A2,n+1 ) of the second message (eg A2) received in the n+1 th ranging block. .

Figure pat00007
Figure pat00007

다양한 실시예들에 따른 제1 외부 전자 장치(220)가 기준 클럭인 경우, 전자 장치(210), 제1 외부 전자 장치(220), 및 제2 외부 전자 장치(230) 간 도래시간차(TDoA)는 하기 <수학식5>에 기반하여 산출될 수 있다. When the first external electronic device 220 according to various embodiments is a reference clock, a time difference (TDoA) between the electronic device 210, the first external electronic device 220, and the second external electronic device 230 Can be calculated based on the following <Equation 5>.

Figure pat00008
Figure pat00008

M: 제1 외부 전자 장치(220)에 대한 전자 장치(210)의 클럭 오차 비율, εA,1: 제2 외부 전자 장치(230)와 제1 외부 전자 장치(220)의 클럭 오차 비율, αM,1(1150): 제1 외부 전자 장치(220)가 전송하는 제1 메시지를 전자 장치(210)가 수신한 시간과 제2 외부 전자 장치(220)가 전송하는 제2 메시지를 전자 장치(210)가 수신한 시간의 차이, βR,1(1120): 제1 외부 전자 장치(220)가 전송하는 제2 메시지의 전송 시간의 차이, l11: 제1 외부 전자 장치(220)와 제2 외부 전자 장치(230) 간 거리, c: 빛의 속도(상수))M : clock error ratio of the electronic device 210 to the first external electronic device 220, ε A,1 : clock error ratio between the second external electronic device 230 and the first external electronic device 220 , α M,1 (1150): The time when the electronic device 210 receives the first message transmitted by the first external electronic device 220 and the second message transmitted by the second external electronic device 220 Difference in time received by the device 210, β R,1 (1120): difference in transmission time of the second message transmitted by the first external electronic device 220, l 11 : first external electronic device 220 and the distance between the second external electronic device 230, c: speed of light (constant))

다양한 실시예들에 따른 제2 외부 전자 장치(220)가 기준 클럭인 경우, 전자 장치(210), 제1 외부 전자 장치(220), 및 제2 외부 전자 장치(230) 간 도래시간차(TDoA)는 하기 <수학식 6>에 기반하여 산출될 수 있다.When the second external electronic device 220 according to various embodiments is a reference clock, a time difference (TDoA) between the electronic device 210, the first external electronic device 220, and the second external electronic device 230 Can be calculated based on the following <Equation 6>.

Figure pat00009
Figure pat00009

M,R1: 제1 외부 전자 장치(220)에 대한 전자 장치(210)의 클럭 오차 비율, αM,1(1150): 제1 외부 전자 장치(220)가 전송하는 제1 메시지를 전자 장치(210)가 수신한 시간과 제2 외부 전자 장치(220)가 전송하는 제2 메시지를 전자 장치(210)가 수신한 시간의 차이, βR,1(1120): 제1 외부 전자 장치(220)가 전송하는 제2 메시지의 전송 시간의 차이, l1: 제1 외부 전자 장치(220)와 제2 외부 전자 장치(230) 간 거리, c: 빛의 속도(상수))M,R1 : clock error ratio of the electronic device 210 with respect to the first external electronic device 220, α M,1 (1150): the first message transmitted by the first external electronic device 220 The difference between the time the device 210 receives and the time the electronic device 210 receives the second message transmitted by the second external electronic device 220, β R,1 (1120): The first external electronic device ( 220), difference in transmission time of the second message, l 1: distance between the first external electronic device 220 and the second external electronic device 230, c: speed of light (constant))

도 12는, 다양한 실시예들에 따른, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, 240, 및 250) 간의 도래시간차를 산출하는 방법을 설명하기 위한 도면(1200)이다.12 is a diagram 1200 for explaining a method of calculating a difference in arrival time between an electronic device 210 and a plurality of external electronic devices 220, 230, 240, and 250, according to various embodiments.

다양한 실시예들에 따른 도 12는 DS-TWR 방식에서 도래시간차를 산출하는 방법을 설명하기 위한 도면이다.12 according to various embodiments is a diagram for explaining a method of calculating a time difference of arrival in the DS-TWR scheme.

도 12를 참조하면, 제1 외부 전자 장치(220)는 거리 측정 구간에서 거리 측정을 위한 제1 메시지(예: 폴 메시지)를 전송할 수 있다. 제1 외부 전자 장치(220)가 전송하는 제1 메시지를 수신한 제2 외부 전자 장치(230)는 제1 메시지에 대한 응답으로, 응답 시간을 포함하는 제2 메시지(예: 응답 메시지)를 전송(예: 브로드캐스팅 방식으로 전송하거나, 또는 유니캐스팅 방식으로 제1 외부 전자 장치(220)에 전송)할 수 있다. 제1 외부 전자 장치(220)는 제2 메시지에 대한 응답으로 제3 메시지(예: 파이널 메시지)를 전송(예: 브로드캐스팅 방식으로 전송하거나, 또는 유니캐스팅 방식으로 제2 외부 전자 장치(230)에 전송)할 수 있다.제1 메시지, 응답 시간을 포함하는 제2 메시지, 및 제3 메시지는 동일한 네트워크에 위치하는 전자 장치(210)에도 수신될 수 있다Referring to FIG. 12 , the first external electronic device 220 may transmit a first message (eg, a poll message) for distance measurement in a distance measurement section. Upon receiving the first message transmitted by the first external electronic device 220, the second external electronic device 230 transmits a second message (eg, a response message) including a response time as a response to the first message. (For example, it may be transmitted to the first external electronic device 220 in a broadcasting method or in a unicasting method). The first external electronic device 220 transmits a third message (eg, a final message) in response to the second message (eg, broadcasting or unicasting to the second external electronic device 230). The first message, the second message including the response time, and the third message can also be received by the electronic device 210 located in the same network.

일 실시예에서,DS-TWR 방식에서, 전자 장치(210)는 하기 <수학식 7>에 <수학식8>, <수학식 9> 또는 <수학식 10>을 이용하여 산출된 클럭 오차 비율(예: εM, εA,1)을 적용하여, 전자 장치(210), 제1 외부 전자 장치(220), 및 제2 외부 전자 장치(230) 간의 도래시간차(TDoA)를 산출할 수 있다. 예컨대, 전자 장치(210)는 제2 외부 전자 장치(230)가 전송하는 제2 메시지(예: 응답 메시지)에 포함된 응답 시간(예: βR,1(1255))을 획득할 수 있다. 전자 장치(210)는 제1 외부 전자 장치(220)가 전송하는 제3 메시지(예: 파이널 메시지)에서 γ(1257)을 획득할 수 있다.In one embodiment, in the DS-TWR method, the electronic device 210 calculates the clock error ratio ( For example: ε M, ε A,1 ) may be applied to calculate the time difference of arrival (TDoA) between the electronic device 210, the first external electronic device 220, and the second external electronic device 230. For example, the electronic device 210 may obtain a response time (eg, β R,1 1255) included in a second message (eg, a response message) transmitted by the second external electronic device 230 . The electronic device 210 may obtain γ 1257 from a third message (eg, a final message) transmitted by the first external electronic device 220 .

Figure pat00010
Figure pat00010

Figure pat00011
Figure pat00011

다양한 실시예에 따른 <수학식 8>에서, "εM"은 제1 외부 전자 장치(220)에 대한 전자 장치(210)의 클럭 오차 비율을 의미할 수 있다. “τ(1251)+γ(1257)”는 제3 메시지(예: 파이널 메시지)의 전송 시간과 제1 메시지(예: 폴 메시지)의 전송 시간의 차를 의미할 수 있다. "α(M,1)(1253)+δ(M,1)(1259)"는 제3 메시지(예: 파이널 메시지)의 수신 시간과 제1 메시지(예: 폴 메시지)의 수신 시간의 차를 의미할 수 있다.In <Equation 8> according to various embodiments, "ε M " may mean a clock error ratio of the electronic device 210 to the first external electronic device 220 . “τ(1251)+γ(1257)” may mean a difference between a transmission time of the third message (eg, final message) and a transmission time of the first message (eg, poll message). "α (M, 1) (1253) + δ (M, 1) (1259)" is the difference between the reception time of the third message (eg final message) and the first message (eg poll message) can mean

Figure pat00012
Figure pat00012

Figure pat00013
Figure pat00013

다양한 실시예들에 따른 <수학식 9> 및 <수학식10>에서, "ε(A,1)"는 제2 외부 전자 장치(230)와 제1 외부 전자 장치(220)의 클럭 오차 비율을 의미할 수 있다. <수학식 9>에서, "Tx(poll,k)"는 k번째 레인징 블록에서 제1 외부 전자 장치(220)가 전송하는 제1 메시지(예: 폴 메시지)의 전송 시간을 의미할 수 있고, "Rx(poll,k)"는 k번째 레인징 블록에서 제2 외부 전자 장치(230)에 의해 측정된 제1 외부 전자 장치(220)가 전송하는 제1 메시지(예: 폴 메시지)를 제2 외부 전자 장치(230)가 수신한 수신 시간을 의미할 수 있다. <수학식 10>에서, "Tx(final,k)"는 k번째 레인징 블록에서 제1 외부 전자 장치(220)가 전송하는 제3 메시지(예: 파이널 메시지)의 전송 시간을 의미할 수 있고, "Rx(final,k)"는 k번째 레인징 블록에서 제2 외부 전자 장치(230)에 의해 측정된 제1 외부 전자 장치(220)가 전송하는 제3 메시지(예: 파이널 메시지)를 제2 외부 전자 장치(230)가 수신한 수신 시간을 의미할 수 있다. In <Equation 9> and <Equation 10> according to various embodiments, "ε (A, 1) " represents the clock error ratio between the second external electronic device 230 and the first external electronic device 220. can mean In <Equation 9>, “Tx (poll,k) ” may mean the transmission time of the first message (eg, poll message) transmitted by the first external electronic device 220 in the k-th ranging block. , “Rx (poll,k) ” refers to a first message (eg, poll message) transmitted by the first external electronic device 220 measured by the second external electronic device 230 in the k-th ranging block. 2 may mean the reception time received by the external electronic device 230. In Equation 10, “Tx (final,k) ” may mean the transmission time of the third message (eg, final message) transmitted by the first external electronic device 220 in the k-th ranging block. , "Rx (final,k) " is a third message (eg, final message) transmitted by the first external electronic device 220 measured by the second external electronic device 230 in the k-th ranging block. 2 may mean the reception time received by the external electronic device 230.

다양한 실시예들에서, 레인징 블록에서 전자 장치(210) 및 제2 외부 전자 장치(230)는 "εM" 및 "εA"를 업데이트 하여 런타임 및 대역 내에서 클럭 오차를 보상할 수 있다.In various embodiments, in the ranging block, the electronic device 210 and the second external electronic device 230 may update “ε M ” and “ε A ” to compensate for a clock error within a runtime and bandwidth.

다양한 실시예들에 따른 도 2 내지 도 12에서, 개시자(initiator)로 동작하는 제1 외부 전자 장치(220)와 응답자(responder)로 동작하는 3개의 외부 전자 장치 예컨대, 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250)로 설명하였으나, 이에 한정하는 것은 아니다. 예컨대, 응답자로 동작하는 외부 전자 장치는 3개를 초과하는 N개의 외부 전자 장치들을 포함할 수 있다. 이 경우, 제N 외부 전자 장치는 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 및 제3 외부 전자 장치(240), …, 및/또는 제N-1 외부 전자 장치로부터 수신한 메시지의 수신 시간을 이용한 응답 시간을 포함하는 응답 메시지를 전송할 수 있다.2 to 12 according to various embodiments, a first external electronic device 220 operating as an initiator and three external electronic devices operating as responders, for example, a second external electronic device ( 230), the third external electronic device 240, and the fourth external electronic device 250 have been described, but are not limited thereto. For example, an external electronic device operating as a responder may include more than three N external electronic devices. In this case, the Nth external electronic device includes the first external electronic device 220, the second external electronic device 230, and the third external electronic device 240, ... , and/or a response message including a response time using the reception time of the message received from the N−1th external electronic device.

도 13은, 다양한 실시예들에 따른, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, …, 1310) 간 신호 흐름을 도시한 도면(1300)이다.13 is a diagram 1300 illustrating a signal flow between an electronic device 210 and a plurality of external electronic devices 220, 230, ..., 1310 according to various embodiments.

다양한 실시예들에 따른 도 13은, SS-TWR 방식에서, 전자 장치(210), 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), …, 제N 외부 전자 장치(1310)) 간 메시지를 송수신하는 동작을 설명하기 위한 도면이다.13 according to various embodiments, in the SS-TWR method, an electronic device 210, external electronic devices (eg, a first external electronic device 220, a second external electronic device 230, ..., a second external electronic device) It is a diagram for explaining an operation of transmitting and receiving a message between N external electronic devices 1310.

도 13을 참조하면, 제1 외부 전자 장치(220)는 거리 측정 구간(예: 레인징 라운드)에서 거리 측정을 위한 제1 메시지(예: 폴 메시지)를 전송할 수 있다.Referring to FIG. 13 , the first external electronic device 220 may transmit a first message (eg, a poll message) for distance measurement in a distance measurement section (eg, ranging round).

일 실시예에서, 제2 외부 전자 장치(230)는 제1 메시지에 대한 응답으로, 제2 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), …, 제N 외부 전자 장치(1310)는 제2 외부 전자 장치(230)가 제1 외부 전자 장치(220)에 전송하는 제2 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제2 외부 전자 장치(230)는 제1 메시지에 대한 응답으로, 제2 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), …, 제N 외부 전자 장치(1310)는 제2 외부 전자 장치(230)가 브로드캐스팅하는 제2 메시지를 수신할 수 있다.In an embodiment, the second external electronic device 230 may transmit a second message (eg, a response message) to the first external electronic device 220 in response to the first message. In this case, the electronic device 210 located on the same network, ... , the Nth external electronic device 1310 may sniff and receive the second message transmitted from the second external electronic device 230 to the first external electronic device 220 . For another example, the second external electronic device 230 may broadcast a second message (eg, a response message) in response to the first message. In this case, the electronic device 210, the first external electronic device 220, ... , the Nth external electronic device 1310 may receive the second message broadcast by the second external electronic device 230 .

일 실시예에서, 제2 외부 전자 장치(230)는 시간 정보를 포함하는 제2 메시지를 전송할 수 있다. 예컨대, 제2 외부 전자 장치(230)는 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제2 외부 전자 장치(230)가 전송할 제2 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제1 응답 시간을 산출할 수 있다. 제2 메시지에 포함된 시간 정보는, 산출된 제1 응답 시간, 제1 외부 전자 장치(220)가 전송한 제1 메시지를 제2 외부 전자 장치(230)가 수신한 시간, 및/또는 제2 메시지를 전송한 시간을 포함할 수 있다.In one embodiment, the second external electronic device 230 may transmit a second message including time information. For example, the second external electronic device 230 determines the reception time of the first message transmitted by the first external electronic device 220 and the second message to be transmitted by the second external electronic device 230 in response to the first message ( Example: A first response time for a difference in transmission time of a response message) may be calculated. The time information included in the second message may include the calculated first response time, the time when the second external electronic device 230 received the first message transmitted by the first external electronic device 220, and/or the second external electronic device 230 receiving the first message. Can include the time the message was sent.

일 실시예에서, 제N 외부 전자 장치(1310)는 제1 메시지에 대한 응답으로, 제N 메시지(예: 응답 메시지)를 제1 외부 전자 장치(220)에 전송할 수 있다. 이 경우, 동일한 네트워크에 위치하는 전자 장치(210), 제2 외부 전자 장치(230), …, 제N-1 외부 전자 장치(미도시)는 제N 외부 전자 장치(1310)가 제1 외부 전자 장치(220)에 전송하는 제N 메시지를 스니핑하여 수신할 수 있다. 다른 예를 들어, 제N 외부 전자 장치(1310)는 제1 메시지에 대한 응답으로, 제N 메시지(예: 응답 메시지)를 브로드캐스팅할 수 있다. 이 경우, 전자 장치(210), 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), …, 제N-1 외부 전자 장치(미도시)는 제N 외부 전자 장치(1310)가 브로드캐스팅하는 제N 메시지를 수신할 수 있다.In an embodiment, the Nth external electronic device 1310 may transmit an Nth message (eg, a response message) to the first external electronic device 220 as a response to the first message. In this case, the electronic device 210, the second external electronic device 230, . . . located on the same network. , the N−1th external electronic device (not shown) may sniff and receive the Nth message transmitted from the Nth external electronic device 1310 to the first external electronic device 220 . For another example, the Nth external electronic device 1310 may broadcast an Nth message (eg, a response message) as a response to the first message. In this case, the electronic device 210, the first external electronic device 220, the second external electronic device 230, ... , the N−1 th external electronic device (not shown) may receive the N th message broadcasted by the N th external electronic device 1310 .

일 실시예에서, 제N 외부 전자 장치(1310)는 시간 정보를 포함하는 제N 메시지를 전송할 수 있다. 예컨대, 제N 외부 전자 장치(1310)는 제1 외부 전자 장치(220)가 전송한 제1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제N 외부 전자 장치(1310)가 전송할 제N 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제2 응답 시간을 산출할 수 있다. 또한, 제N 외부 전자 장치(1310)는 제2 외부 전자 장치(230)로부터 수신한 제2 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제N 외부 전자 장치(1310)가 전송할 제N 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제3 응답 시간을 산출할 수 있다. 또한, 제N 외부 전자 장치(1310)는 제N-1 외부 전자 장치(미도시)로부터 수신한 제N-1 메시지의 수신 시간과 제1 메시지에 대한 응답으로 제4 외부 전자 장치(250)가 전송할 제N 메시지(예: 응답 메시지)의 전송 시간 차이에 대한 제M 응답 시간을 산출할 수 있다. 제N 메시지에 포함된 시간 정보는 산출된 제2 응답 시간, 제3 응답 시간, 및 제M 응답 시간, 제N 외부 전자 장치(1310)가 제1 메시지를 수신한 시간, 제N 외부 전자 장치(1310)가 제2 메시지를 수신한 시간, 제N 외부 전자 장치(1310)가 제N-1 메시지를 수신한 시간, 및/또는 제N 메시지를 전송한 시간을 포함할 수 있다.In an embodiment, the Nth external electronic device 1310 may transmit an Nth message including time information. For example, the Nth external electronic device 1310 determines the reception time of the first message transmitted by the first external electronic device 220 and the Nth message to be transmitted by the Nth external electronic device 1310 in response to the first message ( Example: a second response time for a difference in transmission time of a response message) may be calculated. In addition, the Nth external electronic device 1310 includes the reception time of the second message received from the second external electronic device 230 and the Nth message to be transmitted by the Nth external electronic device 1310 in response to the first message ( Example: a third response time for a difference in transmission time of a response message) may be calculated. In addition, the Nth external electronic device 1310 responds to the reception time of the N−1 th message received from the N−1 th external electronic device (not shown) and the first message, so that the fourth external electronic device 250 An Mth response time for a transmission time difference of an Nth message (eg, a response message) to be transmitted may be calculated. The time information included in the Nth message includes the calculated second response time, the third response time, and the Mth response time, the time at which the Nth external electronic device 1310 received the first message, the Nth external electronic device ( 1310) may include the time at which the second message was received, the time at which the Nth external electronic device 1310 received the N−1th message, and/or the time at which the Nth message was transmitted.

다양한 실시예들에서, 전자 장치(210)는 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), …, 및 제N 외부 전자 장치(1310)로부터 수신한 응답 시간, 각 외부 전자 장치가 다른 외부 전자 장치로부터 메시지를 수신한 시간, 및/또는 각 외부 전자 장치 및 다른 외부 전자 장치가 메시지를 전송한 시간을 포함하는 메시지들에 기반하여, 전자 장치(210)와 복수의 전자 장치들 간의 도래시간차를 산출하고, 이에 기반하여 전자 장치(210)의 위치를 측정할 수 있다.In various embodiments, the electronic device 210 receives information from external electronic devices (eg, the first external electronic device 220, the second external electronic device 230, ..., and the Nth external electronic device 1310). Based on the messages including the response time, the time each external electronic device received a message from the other external electronic device, and/or the time each external electronic device and the other external electronic device sent the message, the electronic device ( 210) and the plurality of electronic devices, the arrival time difference may be calculated, and based on this, the location of the electronic device 210 may be measured.

다양한 실시예들에서, 미도시 되었으나, 전자 장치(210)는 클러스터(예: 도 2의 클러스터)를 관리하는 서버에 산출된 도래시간차를 전달할 수 있다. 전자 장치(210)는 서버로부터 수신되는 정보를 이용하여 전자 장치(210)의 위치를 결정할 수 있다.In various embodiments, although not shown, the electronic device 210 may transmit the calculated arrival time difference to a server managing a cluster (eg, the cluster of FIG. 2 ). The electronic device 210 may determine the location of the electronic device 210 using information received from the server.

다양한 실시예들에서, 제N 외부 전자 장치(1310)에 의해 시간 정보를 포함하는 제N 메시지가 전송된 후, 전술한 도 8의 동작이 수행될 수 있다. 예컨대, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, …, 1310) 간 클럭 오차를 보상하기 위해, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, …, 1310)은 제N+1 메시지(예: 파이널 메시지) 내지 제N+P 메시지를 송수신하는 동작을 수행할 수 있다. 이에 한정하는 것은 아니며, 제1 외부 전자 장치(220)가 제N+1 메시지(예: 파이널 메시지)를 전송하는 동작이 생략된 도 9의 동작이 수행될 수 있다.In various embodiments, after the Nth message including time information is transmitted by the Nth external electronic device 1310, the above-described operation of FIG. 8 may be performed. For example, in order to compensate for a clock error between the electronic device 210 and the plurality of external electronic devices 220, 230, ..., 1310, the electronic device 210 and the plurality of external electronic devices 220, 230, ..., 1310) may transmit and receive an N+1 th message (eg, a final message) to an N+P th message. The present invention is not limited thereto, and the operation of FIG. 9 in which the first external electronic device 220 transmits the N+1 th message (eg, final message) may be omitted.

다양한 실시예들에서, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, …, 1310) 간 제N+1 메시지(예: 파이널 메시지) 내지 제N+P 메시지를 송수신하는 동작을 수행함으로써, 전자 장치(210)는 복수의 외부 전자 장치들(220, 230, …, 1310)과의 클럭 오차를 보상할 수 있다. 전자 장치(210)는 보상된 클럭 오차에 기반하여, 전자 장치(210)와 복수의 외부 전자 장치들(220, 230, …, 1310) 간 도래시간차를 산출하고, 이에 기반하여 전자 장치(210)의 위치를 측정할 수 있다.In various embodiments, an operation of transmitting and receiving an N+1 th message (eg, a final message) to an N+P th message between the electronic device 210 and the plurality of external electronic devices 220, 230, ..., 1310 is performed. By doing so, the electronic device 210 may compensate for a clock error with the plurality of external electronic devices 220, 230, ..., 1310. The electronic device 210 calculates an arrival time difference between the electronic device 210 and the plurality of external electronic devices 220, 230, ..., 1310 based on the compensated clock error, and based on this, the electronic device 210 position can be measured.

다양한 실시예들에 따른 위치 측정 시스템은, 전자 장치(210), 및 N개의 외부 전자 장치들(220, 230, …, 1310)을 포함하며, 상기 N개의 외부 전자 장치들(220, 230, …, 1310) 중 제1 외부 전자 장치(220)는, 제1 거리 측정 구간에서 거리 측정을 위한 제1 메시지를 전송하고, 상기 N개의 외부 전자 장치들(220, 230, …, 1310) 중 제2 내지 제N 외부 전자 장치(230, …, 1310)는, 상기 제1 메시지에 대한 응답으로, 제2 내지 제N 메시지를 전송하고, 및 상기 전자 장치(210)는, 상기 제1 메시지, 상기 제2 내지 제N 메시지를 수신하고, 상기 수신된 제1 메시지의 수신 시간, 상기 제2 내지 제N 메시지 각각에 포함된 시간 정보에 기반하여, 상기 N개의 외부 전자 장치들(220, 230, …, 1310)과의 도래시간차를 산출하고, 및 상기 산출된 도래시간차에 기반하여 상기 전자 장치(210)의 위치를 측정하고, 상기 제2 메시지에 포함된 시간 정보는, 상기 제2 외부 전자 장치(230)가 상기 제1 메시지를 수신한 시간, 상기 제2 메시지를 전송한 시간, 및/또는 상기 제2 외부 전자 장치(230)가 상기 제1 메시지를 수신한 시간과 상기 제2 메시지를 전송한 시간 차에 대한 제1 응답 시간을 포함하고, 및 상기 제N 메시지에 포함된 시간 정보는, 상기 제N 외부 전자 장치(1310)가 상기 제1 메시지를 수신한 시간, 상기 제N 메시지를 전송한 시간, 상기 제1 메시지를 수신한 시간과 상기 제N 메시지를 전송한 시간 차에 대한 제2 응답 시간, 상기 제N 외부 전자 장치(1310)가 상기 제2 메시지를 수신한 시간, 상기 제2 메시지를 수신한 시간과 상기 제N 메시지를 전송한 시간 차에 대한 제3 응답 시간, 제N-1 외부 전자 장치가 전송하는 제N-1 메시지를 상기 제N 외부 전자 장치(1310)가 수신한 시간, 및/또는 상기 제N-1 메시지를 수신한 시간과 상기 제N 메시지를 전송한 시간 차에 대한 제M 응답 시간을 포함할 수 있다.A position measurement system according to various embodiments includes an electronic device 210 and N external electronic devices 220, 230, ..., 1310, and the N external electronic devices 220, 230, ... , 1310), the first external electronic device 220 transmits a first message for distance measurement in a first distance measurement section, and the second of the N external electronic devices 220, 230, ..., 1310 The to Nth external electronic devices 230, ..., 1310 transmit second to Nth messages in response to the first message, and the electronic device 210 transmits the first message and the first message. 2 to N th messages are received, and the N external electronic devices 220, 230, ..., based on a reception time of the first message and time information included in each of the second to N th messages 1310), and based on the calculated arrival time difference, the position of the electronic device 210 is measured, and the time information included in the second message is the second external electronic device 230 ) is the time at which the first message is received, the time at which the second message is transmitted, and/or the time at which the second external electronic device 230 receives the first message and the time at which the second message is transmitted A first response time to the difference is included, and the time information included in the Nth message includes a time at which the Nth external electronic device 1310 received the first message and a time at which the Nth message was transmitted. , a second response time for a difference between the time at which the first message is received and the time at which the Nth message is transmitted, the time at which the Nth external electronic device 1310 receives the second message, and the second message A third response time for the difference between the time at which the Nth message was received and the time at which the Nth message was transmitted, the time at which the Nth external electronic device 1310 received the Nth message transmitted by the Nth external electronic device, and/or the Mth response time for the difference between the time at which the N−1th message is received and the time at which the Nth message is transmitted.

다양한 실시예들에 따른 도 2 내지 도13의 시나리오는, 결제 서비스, 네비게이션 서비스, 또는 도어락 서비스에서 적용될 수 있다. 예컨대, 전자 장치(210)는 특정 장소(예: 쇼핑몰, 또는 출입구)에 진입하는 경우, BLE(Bluetooth low energy)와 같은 저전력 통신 모듈을 이용하여 UWB 통신을 활성화할 수 있다. 예컨대, 전자 장치(210)는 BLE, Wi-Fi, 아웃 오브 밴드를 통해 복수의 외부 전자 장치들과 통신되는 경우, UWB 통신을 활성화할 수 있다. 전자 장치(210)는 도 2 내지 도12의 실시예들에 기반하여 복수의 외부 전자 장치들(예: 제1 외부 전자 장치(220), 제2 외부 전자 장치(230), 제3 외부 전자 장치(240), 및 제4 외부 전자 장치(250))로부터 복수의 외부 전자 장치들 간 전송 또는 수신한 메시지의 수신 시간 또는 전송 시간을 포함하는 복수의 메시지들을 수신할 수 있다. 전자 장치(210)는 수신한 메시지들에 포함된 메시지의 수신 시간 또는 전송 시간에 기반하여, 전자 장치(210)의 위치를 측정할 수 있으며, 측정된 위치에 기반하여 특정 기능 예컨대, 결제 기능을 실행하거나, 네비게이션 기능, 또는 도어락을 오픈하는 기능을 실행할 수 있다.2 to 13 according to various embodiments may be applied to a payment service, a navigation service, or a door lock service. For example, when entering a specific place (eg, a shopping mall or entrance), the electronic device 210 may activate UWB communication using a low power communication module such as Bluetooth low energy (BLE). For example, the electronic device 210 may activate UWB communication when communicating with a plurality of external electronic devices through BLE, Wi-Fi, or out of band. Based on the embodiments of FIGS. 2 to 12 , the electronic device 210 includes a plurality of external electronic devices (eg, a first external electronic device 220 , a second external electronic device 230 , and a third external electronic device). A plurality of messages including reception times or transmission times of messages transmitted or received between a plurality of external electronic devices may be received from (240) and the fourth external electronic device (250). The electronic device 210 may measure the location of the electronic device 210 based on the reception time or transmission time of the message included in the received messages, and perform a specific function, such as a payment function, based on the measured location. or a navigation function or a function of opening a door lock may be executed.

본 명세서와 도면에 개시된 다양한 실시예들은 본 개시의 기술 내용을 쉽게 설명하고 본 개시의 이해를 돕기 위해 특정 예를 제시한 것일 뿐이며, 본 개시의 범위를 한정하고자 하는 것은 아니다. 따라서 본 개시의 범위는 여기에 개시된 실시예들 이외에도 본 개시의 기술적 사상을 바탕으로 도출되는 모든 변경 또는 변형된 형태가 본 개시의 범위에 포함되는 것으로 해석되어야 한다.The various embodiments disclosed in this specification and drawings are only presented as specific examples to easily explain the technical content of the present disclosure and help understanding of the present disclosure, and are not intended to limit the scope of the present disclosure. Therefore, the scope of the present disclosure should be construed as including all changes or modified forms derived based on the technical spirit of the present disclosure in addition to the embodiments disclosed herein.

210: 전자 장치 220: 제1 외부 전자 장치
230: 제2 외부 전자 장치 240: 제3 외부 전자 장치
250: 제4 외부 전자 장치
210: electronic device 220: first external electronic device
230: second external electronic device 240: third external electronic device
250: fourth external electronic device

Claims (27)

전자 장치에 있어서,
통신 회로;
메모리; 및
상기 통신 회로 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하며,
상기 프로세서는,
상기 통신 회로를 통해, 제1 거리 측정 구간에서 거리 측정을 위한 제1 메시지를 전송하고,
상기 제1 메시지에 대한 응답으로, 제1 외부 전자 장치가 전송하는 제1 응답 시간을 포함하는 제2 메시지를 상기 통신 회로를 통해 수신하고,
상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치가 전송하는 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지를 상기 통신 회로를 통해 수신하고, 및
상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치가 전송하는 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지를 상기 통신 회로를 통해 수신하도록 설정되고,
상기 제1 응답 시간은, 상기 제1 메시지를 상기 제1 외부 전자 장치가 수신한 수신 시간과 상기 제2 메시지의 전송 시간의 차이이고,
상기 제2 응답 시간은, 상기 제1 메시지를 상기 제2 외부 전자 장치가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고,
상기 제3 응답 시간은 상기 제2 메시지를 상기 제2 외부 전자 장치가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고,
상기 제4 응답 시간은 상기 제1 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고,
상기 제5 응답 시간은 상기 제2 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 및
상기 제6 응답 시간은 상기 제3 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이인 전자 장치.
In electronic devices,
communication circuit;
Memory; and
a processor operatively coupled with the communication circuitry and the memory;
the processor,
Transmitting a first message for distance measurement in a first distance measurement section through the communication circuit;
In response to the first message, receive a second message including a first response time transmitted by a first external electronic device through the communication circuit;
In response to the first message, receive a third message including a second response time and a third response time transmitted by a second external electronic device through the communication circuit, and
In response to the first message, a fourth message including a fourth response time, a fifth response time, and a sixth response time transmitted by a third external electronic device is received through the communication circuit;
The first response time is a difference between a reception time at which the first message is received by the first external electronic device and a transmission time of the second message,
The second response time is a difference between a time when the second external electronic device receives the first message and a transmission time of the third message,
The third response time is a difference between a time when the second external electronic device receives the second message and a transmission time of the third message,
The fourth response time is a difference between a time when the third external electronic device receives the first message and a transmission time of the fourth message,
The fifth response time is a difference between a time when the third external electronic device receives the second message and a transmission time of the fourth message, and
The sixth response time is a difference between a time when the third message is received by the third external electronic device and a transmission time of the fourth message.
제 1 항에 있어서,
상기 프로세서는,
상기 통신 회로를 통해, 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간을 포함하는 제5 메시지를 상기 통신 회로를 통해 전송하고,
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제1 외부 전자 장치가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간을 저장하고,
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제2 외부 전자 장치가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 상기 제7 메시지의 수신 시간을 저장하고, 및
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제3 외부 전자 장치가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 상기 제8 메시지의 수신 시간을 저장하도록 설정된 전자 장치.
According to claim 1,
the processor,
Transmitting, via the communication circuit, a fifth message including a seventh response time, an eighth response time, and a ninth response time through the communication circuit;
In response to the fifth message, when a sixth message including a transmission time transmitted by the first external electronic device is received through the communication circuit, a reception time of the sixth message is stored;
In response to the fifth message, when a seventh message including a transmission time transmitted by the second external electronic device is received through the communication circuit, a reception time of the seventh message is stored, and
The electronic device configured to store the reception time of the eighth message when an eighth message including a transmission time transmitted by the third external electronic device is received through the communication circuit in response to the fifth message.
제 2 항에 있어서,
상기 제7 응답 시간은, 상기 제1 외부 전자 장치로부터 수신한 상기 제2 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이이고,
상기 제8 응답 시간은, 상기 제2 외부 전자 장치로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이이고, 및
상기 제9 응답 시간은, 상기 제3 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이인 전자 장치.
According to claim 2,
The seventh response time is a difference between a reception time of the second message received from the first external electronic device and a transmission time of the fifth message,
The eighth response time is a difference between a reception time of the third message received from the second external electronic device and a transmission time of the fifth message, and
The ninth response time is a difference between a reception time of the fourth message received from the third external electronic device and a transmission time of the fifth message.
제 2 항에 있어서,
상기 제6 메시지는, 상기 제1 외부 전자 장치에 의해 산출된 상기 제1 외부 전자 장치가 상기 제2 외부 전자 장치로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 상기 제1 외부 전자 장치에 의해 산출된 상기 제1 외부 전자 장치가 상기 제3 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 상기 제1 외부 전자 장치에 의해 산출된 상기 제1 외부 전자 장치가 상기 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함하는 전자 장치.
According to claim 2,
The sixth message may include the reception time of the third message received by the first external electronic device from the second external electronic device calculated by the first external electronic device and the information transmitted by the first external electronic device. A tenth response time for a transmission time difference of the sixth message, a reception time of the fourth message received by the first external electronic device from the third external electronic device calculated by the first external electronic device, and the 1 an eleventh response time for a transmission time difference of the sixth message transmitted by an external electronic device, and the fifth message received by the first external electronic device from the electronic device calculated by the first external electronic device and a twelfth response time for a difference between a reception time of and a transmission time of the sixth message transmitted by the first external electronic device.
제 2 항에 있어서,
상기 제7 메시지는, 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 제3 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 제1 외부 전자 장치로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함하는 전자 장치.
According to claim 2,
The seventh message may include the reception time of the fourth message received by the second external electronic device from the third external electronic device calculated by the second external electronic device and the information transmitted by the second external electronic device. A thirteenth response time for a transmission time difference of a seventh message, a reception time of the fifth message received by the second external electronic device from the electronic device calculated by the second external electronic device, and the second external electronic device A fourteenth response time for a transmission time difference between the seventh message transmitted by the device and the sixth message received by the second external electronic device from the first external electronic device calculated by the second external electronic device and a fifteenth response time for a difference between a reception time of and a transmission time of the seventh message transmitted by the second external electronic device.
제 2 항에 있어서,
상기 제8 메시지는, 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 제1 외부 전자 장치로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 제2 외부 전자 장치로부터 수신한 상기 제7 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함하는 전자 장치.
According to claim 2,
The eighth message includes the reception time of the fifth message received by the third external electronic device from the electronic device calculated by the third external electronic device and the eighth message transmitted by the third external electronic device. A sixteenth response time for a transmission time difference of the third external electronic device, a reception time of the sixth message received by the third external electronic device from the first external electronic device calculated by the third external electronic device, and the third external electronic device. A seventeenth response time for a transmission time difference between the eighth message transmitted by the device and the seventh message received by the third external electronic device from the second external electronic device calculated by the third external electronic device and an eighteenth response time for a difference between a reception time of and a transmission time of the eighth message transmitted by the third external electronic device.
제 1 항에 있어서,
상기 프로세서는,
상기 제2 메시지의 수신 시간, 상기 제3 메시지의 수신 시간, 및 상기 제4 메시지의 수신 시간을 상기 메모리에 저장하도록 설정된 전자 장치.
According to claim 1,
the processor,
The electronic device configured to store the reception time of the second message, the reception time of the third message, and the reception time of the fourth message in the memory.
제 1 항에 있어서,
상기 프로세서는,
상기 통신 회로를 통해, 상기 제1 외부 전자 장치가 전송하는 전송 시간을 포함하는 제5 메시지가 수신되면, 상기 제5 메시지의 수신 시간을 상기 메모리에 저장하고,
상기 통신 회로를 통해, 상기 제2 외부 전자 장치가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간을 상기 메모리에 저장하고, 및
상기 통신 회로를 통해, 상기 제3 외부 전자 장치가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 제7 메시지의 수신 시간을 상기 메모리에 저장하도록 설정된 전자 장치.
According to claim 1,
the processor,
When a fifth message including a transmission time transmitted by the first external electronic device is received through the communication circuit, the reception time of the fifth message is stored in the memory;
When a sixth message including a transmission time transmitted by the second external electronic device is received through the communication circuit, the reception time of the sixth message is stored in the memory, and
The electronic device configured to store the reception time of the seventh message in the memory when a seventh message including a transmission time transmitted by the third external electronic device is received through the communication circuit.
전자 장치에 있어서,
통신 회로;
메모리; 및
상기 통신 회로 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하며,
상기 프로세서는,
상기 통신 회로를 통해, 제1 외부 전자 장치가 전송하는 거리 측정을 위한 제1 메시지가 수신되면, 상기 제1 메시지의 수신 시간을 상기 메모리에 저장하고,
상기 통신 회로를 통해, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치로부터 제1 응답 시간을 포함하는 제2 메시지가 수신되면, 상기 제1 응답 시간, 상기 제2 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하고,
상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치로부터 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지가 수신되면, 상기 제2 응답 시간, 상기 제3 응답 시간, 상기 제3 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하고, 및
상기 제1 메시지에 대한 응답으로, 제4 외부 전자 장치로부터 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지가 수신되면, 상기 제4 응답 시간, 상기 제5 응답 시간, 상기 제6 응답 시간, 상기 제4 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하는 전자 장치.
In electronic devices,
communication circuit;
Memory; and
a processor operatively coupled with the communication circuitry and the memory;
the processor,
When a first message for distance measurement transmitted by a first external electronic device is received through the communication circuit, a reception time of the first message is stored in the memory;
When a second message including a first response time is received from a second external electronic device in response to the first message through the communication circuit, the first response time, the reception time and transmission of the second message store the time in the memory;
In response to the first message, when a third message including a second response time and a third response time is received from a third external electronic device, the second response time, the third response time, and the third message Store the reception time and transmission time of in the memory, and
In response to the first message, when a fourth message including a fourth response time, a fifth response time, and a sixth response time is received from a fourth external electronic device, the fourth response time and the fifth response time are received. and storing the time, the sixth response time, and the reception time and transmission time of the fourth message in the memory.
제 9 항에 있어서,
상기 프로세서는,
상기 제1 응답 시간, 상기 제2 응답 시간, 상기 제3 응답 시간, 상기 제4 응답 시간, 상기 제5 응답 시간, 및 상기 제6 응답 시간에 기반하여, 상기 제1 외부 전자 장치, 상기 제2 외부 전자 장치, 상기 제3 외부 전자 장치, 및 상기 제4 외부 전자 장치와 상기 전자 장치와의 도래시간차를 산출하고, 및
상기 산출된 도래시간차에 기반하여, 상기 전자 장치의 위치를 측정하도록 설정된 전자 장치.
According to claim 9,
the processor,
The first external electronic device and the second response time are determined based on the first response time, the second response time, the third response time, the fourth response time, the fifth response time, and the sixth response time. calculating an arrival time difference between an external electronic device, the third external electronic device, and the fourth external electronic device and the electronic device; and
An electronic device configured to measure a position of the electronic device based on the calculated time difference of arrival.
제 10 항에 있어서,
상기 프로세서는,
상기 제1 메시지의 수신 시간, 상기 제2 메시지의 수신 시간 및 전송 시간, 상기 제3 메시지의 수신 시간 및 전송 시간, 및 상기 제4 메시지의 수신 시간 및 전송 시간과 상기 제5 메시지의 수신 시간, 상기 제6 메시지의 수신 시간 및 전송 시간, 상기 제7 메시지의 수신 시간 및 전송 시간, 및 상기 제8 메시지의 수신 시간 및 전송 시간에 기반하여, 상기 전자 장치와 상기 제1 외부 전자 장치, 상기 제2 외부 전자 장치, 상기 제3 외부 전자 장치, 및 상기 제4 외부 전자 장치 간의 클럭 오차(clock drift)를 보상하고,
상기 보상된 클럭 오차에 기반하여, 상기 전자 장치와 상기 제1 외부 전자 장치, 상기 제2 외부 전자 장치, 상기 제3 외부 전자 장치, 및 상기 제4 외부 전자 장치 간의 도래시간차(TDoA, time difference of arrival)를 산출하고, 및
상기 산출된 도래시간차에 기반하여, 복수의 외부 전자 장치들의 위치에 기반한 상기 전자 장치의 위치를 측정하도록 설정된 전자 장치.
According to claim 10,
the processor,
The reception time of the first message, the reception time and transmission time of the second message, the reception time and transmission time of the third message, and the reception time and transmission time of the fourth message and the reception time of the fifth message, The electronic device, the first external electronic device, and the first external electronic device, based on the reception time and transmission time of the sixth message, the reception time and transmission time of the seventh message, and the reception time and transmission time of the eighth message. Compensate for clock drift between 2 external electronic devices, the third external electronic device, and the fourth external electronic device;
Based on the compensated clock error, a time difference of arrival (TDoA) between the electronic device and the first external electronic device, the second external electronic device, the third external electronic device, and the fourth external electronic device. arrival), and
An electronic device configured to measure a position of the electronic device based on the positions of a plurality of external electronic devices based on the calculated time difference of arrival.
제 9 항에 있어서,
상기 프로세서는,
상기 통신 회로를 통해, 상기 제1 외부 전자 장치가 전송하는 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간을 포함하는 상기 제5 메시지를 수신되면, 상기 제5 메시지의 수신 시간을 상기 메모리에 저장하고,
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제2 외부 전자 장치가 전송하는 전송 시간을 포함하는 상기 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하고, 및
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제3 외부 전자 장치가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 상기 제7 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하고, 및
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제4 외부 전자 장치가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 상기 제8 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하고,
상기 제7 응답 시간은, 상기 제1 외부 전자 장치가 상기 제2 외부 전자 장치로부터 수신한 상기 제2 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 제5 메시지의 전송 시간의 차이이고,
상기 제8 응답 시간은, 상기 제1 외부 전자 장치가 상기 제3 외부 전자 장치로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 상기 제5 메시지의 전송 시간의 차이이고, 및
상기 제9 응답 시간은, 상기 제1 외부 전자 장치가 상기 제4 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 상기 제5 메시지의 전송 시간의 차이인 전자 장치.
According to claim 9,
the processor,
When the fifth message including the seventh response time, the eighth response time, and the ninth response time transmitted by the first external electronic device is received through the communication circuit, the reception time of the fifth message is set as store in memory,
In response to the fifth message, when the sixth message including the transmission time transmitted by the second external electronic device is received through the communication circuit, the reception time and transmission time of the sixth message are stored in the memory. stored in, and
In response to the fifth message, when a seventh message including a transmission time transmitted by the third external electronic device is received through the communication circuit, the reception time and transmission time of the seventh message are stored in the memory. save, and
In response to the fifth message, when an eighth message including a transmission time transmitted by the fourth external electronic device is received through the communication circuit, the reception time and transmission time of the eighth message are stored in the memory. save,
The seventh response time is a difference between a reception time of the second message received by the first external electronic device from the second external electronic device and a transmission time of a fifth message transmitted by the first external electronic device,
The eighth response time is a difference between a reception time of the third message received by the first external electronic device from the third external electronic device and a transmission time of the fifth message transmitted by the first external electronic device. , and
The ninth response time is a difference between a reception time of the fourth message received by the first external electronic device from the fourth external electronic device and a transmission time of the fifth message transmitted by the first external electronic device. electronic device.
제 12 항에 있어서,
상기 제6 메시지는, 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 제3 외부 전자 장치로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 제4 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 제1 외부 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함하고,
상기 제7 메시지는, 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 제4 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 제1 외부 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 제2 외부 전자 장치로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함하고, 및
상기 제8 메시지는, 상기 제4 외부 전자 장치에 의해 산출된 상기 제4 외부 전자 장치가 상기 제1 외부 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제4 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 상기 제4 외부 전자 장치에 의해 산출된 상기 제4 외부 전자 장치가 상기 제2 외부 전자 장치로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제4 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 상기 제4 외부 전자 장치에 의해 산출된 상기 제4 외부 전자 장치가 상기 제3 외부 전자 장치로부터 수신한 상기 제7 메시지의 수신 시간과 상기 제4 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함하는 전자 장치.
According to claim 12,
The sixth message may include the reception time of the third message received by the second external electronic device from the third external electronic device calculated by the second external electronic device and the information transmitted by the second external electronic device. A tenth response time for a transmission time difference of a sixth message, a reception time of the fourth message received by the second external electronic device from the fourth external electronic device calculated by the second external electronic device, and the 2 An eleventh response time for a transmission time difference of the sixth message transmitted by the external electronic device, and the second external electronic device calculated by the second external electronic device received from the first external electronic device. A twelfth response time for a difference between a reception time of a fifth message and a transmission time of the sixth message transmitted by the second external electronic device,
The seventh message may include the reception time of the fourth message received by the third external electronic device from the fourth external electronic device calculated by the third external electronic device and the information transmitted by the third external electronic device. A thirteenth response time for a transmission time difference of a seventh message, a reception time of the fifth message received by the third external electronic device from the first external electronic device calculated by the third external electronic device, and the 3 A fourteenth response time for a transmission time difference of the seventh message transmitted by the external electronic device, and the third external electronic device calculated by the third external electronic device received from the second external electronic device. a fifteenth response time for a difference between a reception time of a sixth message and a transmission time of the seventh message transmitted by the third external electronic device; and
The eighth message may include the reception time of the fifth message received by the fourth external electronic device from the first external electronic device calculated by the fourth external electronic device and the information transmitted by the fourth external electronic device. A sixteenth response time for a transmission time difference of an eighth message, a reception time of the sixth message received by the fourth external electronic device from the second external electronic device calculated by the fourth external electronic device, and the 4 A seventeenth response time for the transmission time difference of the eighth message transmitted by the external electronic device, and the response time calculated by the fourth external electronic device received from the third external electronic device by the fourth external electronic device. and an eighteenth response time for a difference between a reception time of a seventh message and a transmission time of the eighth message transmitted by the fourth external electronic device.
전자 장치의 위치 측정 방법에 있어서,
통신 회로를 통해, 제1 거리 측정 구간에서 거리 측정을 위한 제1 메시지를 전송하는 동작;
상기 제1 메시지에 대한 응답으로, 제1 외부 전자 장치가 전송하는 제1 응답 시간을 포함하는 제2 메시지를 상기 통신 회로를 통해 수신하는 동작;
상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치가 전송하는 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지를 상기 통신 회로를 통해 수신하는 동작; 및
상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치가 전송하는 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지를 상기 통신 회로를 통해 수신하는 동작을 포함하고,
상기 제1 응답 시간은, 상기 제1 메시지를 상기 제1 외부 전자 장치가 수신한 수신 시간과 상기 제2 메시지의 전송 시간의 차이이고,
상기 제2 응답 시간은, 상기 제1 메시지를 상기 제2 외부 전자 장치가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고,
상기 제3 응답 시간은 상기 제2 메시지를 상기 제2 외부 전자 장치가 수신한 시간과 상기 제3 메시지의 전송 시간의 차이이고,
상기 제4 응답 시간은 상기 제1 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고,
상기 제5 응답 시간은 상기 제2 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이이고, 및
상기 제6 응답 시간은 상기 제3 메시지를 상기 제3 외부 전자 장치가 수신한 시간과 상기 제4 메시지의 전송 시간의 차이인 방법.
A method for measuring the position of an electronic device,
transmitting a first message for distance measurement in a first distance measurement section through a communication circuit;
receiving a second message including a first response time transmitted from a first external electronic device through the communication circuit in response to the first message;
receiving a third message including a second response time and a third response time transmitted from a second external electronic device through the communication circuit in response to the first message; and
In response to the first message, receiving a fourth message including a fourth response time, a fifth response time, and a sixth response time transmitted by a third external electronic device through the communication circuit; ,
The first response time is a difference between a reception time at which the first message is received by the first external electronic device and a transmission time of the second message,
The second response time is a difference between a time when the second external electronic device receives the first message and a transmission time of the third message,
The third response time is a difference between a time when the second external electronic device receives the second message and a transmission time of the third message,
The fourth response time is a difference between a time when the third external electronic device receives the first message and a transmission time of the fourth message,
The fifth response time is a difference between a time when the third external electronic device receives the second message and a transmission time of the fourth message, and
The sixth response time is a difference between a time when the third message is received by the third external electronic device and a transmission time of the fourth message.
제 14 항에 있어서,
상기 통신 회로를 통해, 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간을 포함하는 제5 메시지를 상기 통신 회로를 통해 전송하는 동작;
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제1 외부 전자 장치가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간을 상기 메모리에 저장하는 동작;
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제2 외부 전자 장치가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 상기 제7 메시지의 수신 시간을 상기 메모리에 저장하는 동작; 및
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제3 외부 전자 장치가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 상기 제8 메시지의 수신 시간을 상기 메모리에 저장하는 동작을 포함하는 방법.
15. The method of claim 14,
transmitting a fifth message including a seventh response time, an eighth response time, and a ninth response time through the communication circuit;
Storing the reception time of the sixth message in the memory when a sixth message including a transmission time transmitted by the first external electronic device is received through the communication circuit in response to the fifth message. ;
Storing the reception time of the seventh message in the memory when a seventh message including a transmission time transmitted by the second external electronic device is received through the communication circuit in response to the fifth message. ; and
Storing the reception time of the eighth message in the memory when an eighth message including a transmission time transmitted by the third external electronic device is received through the communication circuit in response to the fifth message. How to include.
제 15 항에 있어서,
상기 제7 응답 시간은, 상기 제1 외부 전자 장치로부터 수신한 상기 제2 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이이고,
상기 제8 응답 시간은, 상기 제2 외부 전자 장치로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이이고, 및
상기 제9 응답 시간은, 상기 제3 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제5 메시지의 전송 시간의 차이인 방법.
According to claim 15,
The seventh response time is a difference between a reception time of the second message received from the first external electronic device and a transmission time of the fifth message,
The eighth response time is a difference between a reception time of the third message received from the second external electronic device and a transmission time of the fifth message, and
The ninth response time is a difference between a reception time of the fourth message received from the third external electronic device and a transmission time of the fifth message.
제 15 항에 있어서,
상기 제6 메시지는, 상기 제1 외부 전자 장치에 의해 산출된 상기 제1 외부 전자 장치가 상기 제2 외부 전자 장치로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 상기 제1 외부 전자 장치에 의해 산출된 상기 제1 외부 전자 장치가 상기 제3 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 상기 제1 외부 전자 장치에 의해 산출된 상기 제1 외부 전자 장치가 상기 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함하는 방법.
According to claim 15,
The sixth message may include the reception time of the third message received by the first external electronic device from the second external electronic device calculated by the first external electronic device and the information transmitted by the first external electronic device. A tenth response time for a transmission time difference of the sixth message, a reception time of the fourth message received by the first external electronic device from the third external electronic device calculated by the first external electronic device, and the 1 an eleventh response time for a transmission time difference of the sixth message transmitted by an external electronic device, and the fifth message received by the first external electronic device from the electronic device calculated by the first external electronic device and a twelfth response time for a difference between a reception time of and a transmission time of the sixth message transmitted by the first external electronic device.
제 15 항에 있어서,
상기 제7 메시지는, 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 제3 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 제1 외부 전자 장치로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함하는 방법.
According to claim 15,
The seventh message may include the reception time of the fourth message received by the second external electronic device from the third external electronic device calculated by the second external electronic device and the information transmitted by the second external electronic device. A thirteenth response time for a transmission time difference of a seventh message, a reception time of the fifth message received by the second external electronic device from the electronic device calculated by the second external electronic device, and the second external electronic device A fourteenth response time for a transmission time difference between the seventh message transmitted by the device and the sixth message received by the second external electronic device from the first external electronic device calculated by the second external electronic device and a fifteenth response time for a difference between a reception time of and a transmission time of the seventh message transmitted by the second external electronic device.
제 15 항에 있어서,
상기 제8 메시지는, 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 제1 외부 전자 장치로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 제2 외부 전자 장치로부터 수신한 상기 제7 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함하는 방법.
According to claim 15,
The eighth message includes the reception time of the fifth message received by the third external electronic device from the electronic device calculated by the third external electronic device and the eighth message transmitted by the third external electronic device. A sixteenth response time for a transmission time difference of the third external electronic device, a reception time of the sixth message received by the third external electronic device from the first external electronic device calculated by the third external electronic device, and the third external electronic device. A seventeenth response time for a transmission time difference between the eighth message transmitted by the device and the seventh message received by the third external electronic device from the second external electronic device calculated by the third external electronic device and an eighteenth response time for a difference between a reception time of and a transmission time of the eighth message transmitted by the third external electronic device.
제 14 항에 있어서,
상기 제2 메시지의 수신 시간, 상기 제3 메시지의 수신 시간, 및 상기 제4 메시지의 수신 시간을 상기 메모리에 저장하는 동작을 더 포함하는 방법.
15. The method of claim 14,
and storing the reception time of the second message, the reception time of the third message, and the reception time of the fourth message in the memory.
제 14 항에 있어서,
상기 통신 회로를 통해, 상기 제1 외부 전자 장치가 전송하는 전송 시간을 포함하는 제5 메시지가 수신되면, 상기 제5 메시지의 수신 시간을 저장하는 동작;
상기 통신 회로를 통해, 상기 제2 외부 전자 장치가 전송하는 전송 시간을 포함하는 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간을 저장하는 동작; 및
상기 통신 회로를 통해, 상기 제3 외부 전자 장치가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 제7 메시지의 수신 시간을 저장하는 동작을 더 포함하는 방법.
15. The method of claim 14,
storing a reception time of the fifth message when a fifth message including a transmission time transmitted by the first external electronic device is received through the communication circuit;
storing a reception time of the sixth message when a sixth message including a transmission time transmitted by the second external electronic device is received through the communication circuit; and
and storing a reception time of the seventh message when a seventh message including a transmission time transmitted by the third external electronic device is received through the communication circuit.
전자 장치의 위치 측정 방법에 있어서,
통신 회로를 통해, 제1 외부 전자 장치가 전송하는 거리 측정을 위한 제1 메시지가 수신되면, 상기 제1 메시지의 수신 시간을 메모리에 저장하는 동작;
상기 통신 회로를 통해, 상기 제1 메시지에 대한 응답으로, 제2 외부 전자 장치로부터 제1 응답 시간을 포함하는 제2 메시지가 수신되면, 상기 제1 응답 시간, 상기 제2 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하는 동작;
상기 제1 메시지에 대한 응답으로, 제3 외부 전자 장치로부터 제2 응답 시간 및 제3 응답 시간을 포함하는 제3 메시지가 수신되면, 상기 제2 응답 시간, 상기 제3 응답 시간, 상기 제3 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하는 동작; 및
상기 제1 메시지에 대한 응답으로, 제4 외부 전자 장치로부터 제4 응답 시간, 제5 응답 시간, 및 제6 응답 시간을 포함하는 제4 메시지가 수신되면, 상기 제4 응답 시간, 상기 제5 응답 시간, 및 상기 제6 응답 시간, 상기 제4 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하는 동작을 포함하는 방법.
A method for measuring the position of an electronic device,
storing a reception time of the first message in a memory when a first message for distance measurement transmitted by a first external electronic device is received through a communication circuit;
When a second message including a first response time is received from a second external electronic device in response to the first message through the communication circuit, the first response time, the reception time and transmission of the second message storing the time in the memory;
In response to the first message, when a third message including a second response time and a third response time is received from a third external electronic device, the second response time, the third response time, and the third message storing a reception time and a transmission time of ? in the memory; and
In response to the first message, when a fourth message including a fourth response time, a fifth response time, and a sixth response time is received from a fourth external electronic device, the fourth response time and the fifth response time are received. and storing the time, the sixth response time, and the reception time and transmission time of the fourth message in the memory.
제 22 항에 있어서,
상기 제1 응답 시간, 상기 제2 응답 시간, 상기 제3 응답 시간, 상기 제4 응답 시간, 상기 제5 응답 시간, 및 상기 제6 응답 시간에 기반하여, 상기 제1 외부 전자 장치, 상기 제2 외부 전자 장치, 상기 제3 외부 전자 장치, 및 상기 제4 외부 전자 장치와 상기 전자 장치와의 도래시간차를 산출하는 동작; 및
상기 산출된 도래시간차에 기반하여, 상기 전자 장치의 위치를 측정하는 동작을 더 포함하는 방법.
23. The method of claim 22,
The first external electronic device and the second response time are determined based on the first response time, the second response time, the third response time, the fourth response time, the fifth response time, and the sixth response time. calculating an arrival time difference between the external electronic device, the third external electronic device, and the fourth external electronic device and the electronic device; and
The method further comprises measuring a location of the electronic device based on the calculated time difference of arrival.
제 23 항에 있어서,
상기 제1 메시지의 수신 시간, 상기 제2 메시지의 수신 시간 및 전송 시간, 상기 제3 메시지의 수신 시간 및 전송 시간, 상기 제4 메시지의 수신 시간 및 전송 시간과 상기 제5 메시지의 수신 시간, 상기 제6 메시지의 수신 시간 및 전송 시간, 상기 제7 메시지의 수신 시간 및 전송 시간, 및 상기 제8 메시지의 수신 시간 및 전송 시간에 기반하여, 상기 전자 장치와 상기 제1 외부 전자 장치, 상기 제2 외부 전자 장치, 상기 제3 외부 전자 장치, 및 상기 제4 외부 전자 장치 간의 클럭 오차(clock drift)를 보상하는 동작;
상기 보상된 클럭 오차에 기반하여, 상기 전자 장치와 상기 제1 외부 전자 장치, 상기 제2 외부 전자 장치, 상기 제3 외부 전자 장치, 및 상기 제4 외부 전자 장치 간의 도래시간차(TDoA, time difference of arrival)를 산출하는 동작; 및
상기 산출된 도래시간차에 기반하여, 복수의 외부 전자 장치들의 위치에 기반한 상기 전자 장치의 위치를 측정하는 동작을 더 포함하는 방법.
24. The method of claim 23,
The reception time of the first message, the reception time and transmission time of the second message, the reception time and transmission time of the third message, the reception time and transmission time of the fourth message and the reception time of the fifth message, Based on the reception time and transmission time of the sixth message, the reception time and transmission time of the seventh message, and the reception time and transmission time of the eighth message, the electronic device, the first external electronic device, and the second compensating for a clock drift between the external electronic device, the third external electronic device, and the fourth external electronic device;
Based on the compensated clock error, a time difference of arrival (TDoA) between the electronic device and the first external electronic device, the second external electronic device, the third external electronic device, and the fourth external electronic device. the operation of calculating arrival; and
The method further comprising measuring a location of the electronic device based on the locations of a plurality of external electronic devices based on the calculated time difference of arrival.
제 22 항에 있어서,
상기 통신 회로를 통해, 상기 제1 외부 전자 장치가 전송하는 제7 응답 시간, 제8 응답 시간, 및 제9 응답 시간을 포함하는 상기 제5 메시지를 수신되면, 상기 제5 메시지의 수신 시간을 상기 메모리에 저장하는 동작;
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제2 외부 전자 장치가 전송하는 전송 시간을 포함하는 상기 제6 메시지가 수신되면, 상기 제6 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하는 동작; 및
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제3 외부 전자 장치가 전송하는 전송 시간을 포함하는 제7 메시지가 수신되면, 상기 제7 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하는 동작; 및
상기 제5 메시지에 대한 응답으로, 상기 통신 회로를 통해, 상기 제4 외부 전자 장치가 전송하는 전송 시간을 포함하는 제8 메시지가 수신되면, 상기 제8 메시지의 수신 시간 및 전송 시간을 상기 메모리에 저장하는 동작을 포함하고,
상기 제7 응답 시간은, 상기 제1 외부 전자 장치가 상기 제2 외부 전자 장치로부터 수신한 상기 제2 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 제5 메시지의 전송 시간의 차이이고,
상기 제8 응답 시간은, 상기 제1 외부 전자 장치가 상기 제3 외부 전자 장치로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 상기 제5 메시지의 전송 시간의 차이이고, 및
상기 제9 응답 시간은, 상기 제1 외부 전자 장치가 상기 제4 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제1 외부 전자 장치가 전송하는 상기 제5 메시지의 전송 시간의 차이인 방법.
23. The method of claim 22,
When the fifth message including the seventh response time, the eighth response time, and the ninth response time transmitted by the first external electronic device is received through the communication circuit, the reception time of the fifth message is set as store to memory;
In response to the fifth message, when the sixth message including the transmission time transmitted by the second external electronic device is received through the communication circuit, the reception time and transmission time of the sixth message are stored in the memory. the operation of saving to; and
In response to the fifth message, when a seventh message including a transmission time transmitted by the third external electronic device is received through the communication circuit, the reception time and transmission time of the seventh message are stored in the memory. the act of saving; and
In response to the fifth message, when an eighth message including a transmission time transmitted by the fourth external electronic device is received through the communication circuit, the reception time and transmission time of the eighth message are stored in the memory. Including the operation of saving,
The seventh response time is a difference between a reception time of the second message received by the first external electronic device from the second external electronic device and a transmission time of a fifth message transmitted by the first external electronic device,
The eighth response time is a difference between a reception time of the third message received by the first external electronic device from the third external electronic device and a transmission time of the fifth message transmitted by the first external electronic device. , and
The ninth response time is a difference between a reception time of the fourth message received by the first external electronic device from the fourth external electronic device and a transmission time of the fifth message transmitted by the first external electronic device. method.
제 25 항에 있어서,
상기 제6 메시지는, 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 제3 외부 전자 장치로부터 수신한 상기 제3 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제10 응답 시간, 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 제4 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제11 응답 시간, 및 상기 제2 외부 전자 장치에 의해 산출된 상기 제2 외부 전자 장치가 상기 제1 외부 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제2 외부 전자 장치가 전송하는 상기 제6 메시지의 전송 시간 차이에 대한 제12 응답 시간을 포함하고,
상기 제7 메시지는, 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 제4 외부 전자 장치로부터 수신한 상기 제4 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제13 응답 시간, 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 제1 외부 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제14 응답 시간, 및 상기 제3 외부 전자 장치에 의해 산출된 상기 제3 외부 전자 장치가 상기 제2 외부 전자 장치로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제3 외부 전자 장치가 전송하는 상기 제7 메시지의 전송 시간 차이에 대한 제15 응답 시간을 포함하고, 및
상기 제8 메시지는, 상기 제4 외부 전자 장치에 의해 산출된 상기 제4 외부 전자 장치가 상기 제1 외부 전자 장치로부터 수신한 상기 제5 메시지의 수신 시간과 상기 제4 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제16 응답 시간, 상기 제4 외부 전자 장치에 의해 산출된 상기 제4 외부 전자 장치가 상기 제2 외부 전자 장치로부터 수신한 상기 제6 메시지의 수신 시간과 상기 제4 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제17 응답 시간, 및 상기 제4 외부 전자 장치에 의해 산출된 상기 제4 외부 전자 장치가 상기 제3 외부 전자 장치로부터 수신한 상기 제7 메시지의 수신 시간과 상기 제4 외부 전자 장치가 전송하는 상기 제8 메시지의 전송 시간 차이에 대한 제18 응답 시간을 포함하는 방법.
26. The method of claim 25,
The sixth message may include the reception time of the third message received by the second external electronic device from the third external electronic device calculated by the second external electronic device and the information transmitted by the second external electronic device. A tenth response time for a transmission time difference of a sixth message, a reception time of the fourth message received by the second external electronic device from the fourth external electronic device calculated by the second external electronic device, and the 2 An eleventh response time for a transmission time difference of the sixth message transmitted by the external electronic device, and the second external electronic device calculated by the second external electronic device received from the first external electronic device. A twelfth response time for a difference between a reception time of a fifth message and a transmission time of the sixth message transmitted by the second external electronic device,
The seventh message may include the reception time of the fourth message received by the third external electronic device from the fourth external electronic device calculated by the third external electronic device and the information transmitted by the third external electronic device. A thirteenth response time for a transmission time difference of a seventh message, a reception time of the fifth message received by the third external electronic device from the first external electronic device calculated by the third external electronic device, and the 3 A fourteenth response time for a transmission time difference of the seventh message transmitted by the external electronic device, and the third external electronic device calculated by the third external electronic device received from the second external electronic device. a fifteenth response time for a difference between a reception time of a sixth message and a transmission time of the seventh message transmitted by the third external electronic device; and
The eighth message may include the reception time of the fifth message received by the fourth external electronic device from the first external electronic device calculated by the fourth external electronic device and the information transmitted by the fourth external electronic device. A sixteenth response time for a transmission time difference of an eighth message, a reception time of the sixth message received by the fourth external electronic device from the second external electronic device calculated by the fourth external electronic device, and the 4 A seventeenth response time for the transmission time difference of the eighth message transmitted by the external electronic device, and the response time calculated by the fourth external electronic device received from the third external electronic device by the fourth external electronic device. and an eighteenth response time for a difference between a reception time of a seventh message and a transmission time of the eighth message transmitted by the fourth external electronic device.
위치 측정 시스템에 있어서,
전자 장치; 및
N개의 외부 전자 장치들을 포함하며,
상기 N개의 외부 전자 장치들 중 제1 외부 전자 장치는, 제1 거리 측정 구간에서 거리 측정을 위한 제1 메시지를 전송하고,
상기 N개의 외부 전자 장치들 중 제2 내지 제N 외부 전자 장치는, 상기 제1 메시지에 대한 응답으로, 제2 내지 제N 메시지를 전송하고, 및
상기 전자 장치는, 상기 제1 메시지, 상기 제2 내지 제N 메시지를 수신하고, 상기 수신된 제1 메시지의 수신 시간, 상기 제2 내지 제N 메시지 각각에 포함된 시간 정보에 기반하여, 상기 N개의 외부 전자 장치들과의 도래시간차를 산출하고, 및 상기 산출된 도래시간차에 기반하여 상기 전자 장치의 위치를 측정하고,
상기 제2 메시지에 포함된 시간 정보는, 상기 제2 외부 전자 장치가 상기 제1 메시지를 수신한 시간, 상기 제2 메시지를 전송한 시간, 및/또는 상기 제2 외부 전자 장치가 상기 제1 메시지를 수신한 시간과 상기 제2 메시지를 전송한 시간 차에 대한 제1 응답 시간을 포함하고, 및
상기 제N 메시지에 포함된 시간 정보는, 상기 제N 외부 전자 장치가 상기 제1 메시지를 수신한 시간, 상기 제N 메시지를 전송한 시간, 상기 제1 메시지를 수신한 시간과 상기 제N 메시지를 전송한 시간 차에 대한 제2 응답 시간, 상기 제N 외부 전자 장치가 상기 제2 메시지를 수신한 시간, 상기 제2 메시지를 수신한 시간과 상기 제N 메시지를 전송한 시간 차에 대한 제3 응답 시간, 제N-1 외부 전자 장치가 전송하는 제N-1 메시지를 상기 제N 외부 전자 장치가 수신한 시간, 및/또는 상기 제N-1 메시지를 수신한 시간과 상기 제N 메시지를 전송한 시간 차에 대한 제M 응답 시간을 포함하는 시스템.
In the positioning system,
electronic devices; and
Including N external electronic devices,
A first external electronic device among the N external electronic devices transmits a first message for distance measurement in a first distance measurement section,
Second to Nth external electronic devices among the N external electronic devices transmit second to Nth messages in response to the first message, and
The electronic device receives the first message and the second to N th messages, and based on a reception time of the received first message and time information included in each of the second to N th messages, the N calculating a time difference of arrival with the number of external electronic devices, and measuring a location of the electronic device based on the calculated time difference of arrival;
The time information included in the second message may include a time at which the second external electronic device received the first message, a time at which the second message was transmitted, and/or a time when the second external electronic device received the first message. And a first response time for the difference between the time of receiving the message and the time of transmitting the second message, and
The time information included in the Nth message includes the time at which the Nth external electronic device received the first message, the time at which the Nth message was transmitted, the time at which the first message was received, and the Nth message. A second response time for the transmission time difference, a time at which the Nth external electronic device received the second message, and a third response for a time difference between the time at which the second message was received and the time at which the Nth message was transmitted time, the time at which the N-th external electronic device received the N-1 th message transmitted by the N-1 th external electronic device, and/or the time at which the N-1 th message was received and the N-th message transmitted A system that includes the control response time for the time difference.
KR1020220020266A 2022-01-06 2022-02-16 Electronic device and method for measuring position using the same KR20230106473A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/KR2022/020305 WO2023132506A1 (en) 2022-01-06 2022-12-14 Electronic device and position measurement method using same
US18/149,429 US20230213642A1 (en) 2022-01-06 2023-01-03 Electronic device and method for measuring position using the same

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20220002305 2022-01-06
KR1020220002305 2022-01-06

Publications (1)

Publication Number Publication Date
KR20230106473A true KR20230106473A (en) 2023-07-13

Family

ID=87160091

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220020266A KR20230106473A (en) 2022-01-06 2022-02-16 Electronic device and method for measuring position using the same

Country Status (1)

Country Link
KR (1) KR20230106473A (en)

Similar Documents

Publication Publication Date Title
EP4206718A1 (en) Positioning method using multiple devices and electronic device therefor
KR20220132360A (en) Electronic device for transmitting a data via a ultra wide band communication and method for the same
KR20230047870A (en) Method for measuring location using wireless communication and electronic device supportion the same
KR20230106473A (en) Electronic device and method for measuring position using the same
KR20220140203A (en) Method of ultra-wideband communication based on sharing of bluetooth communication quality and electronic device therefor
KR20220144658A (en) Method of ultra-wideband communication based on account information and electronic device therefor
KR20220147877A (en) Electronic device for transmitting and receiving data upon ultra wide band ranging and method thereof
US20230213642A1 (en) Electronic device and method for measuring position using the same
KR20220106531A (en) Electronic device for establishing communication connection with external electronic device and operating mehtod thereof
US20230384438A1 (en) Electronic device for determining location of external electronic device, and operation method of electronic device
US12019139B2 (en) Electronic device and method using UWB signal
US11923981B2 (en) Electronic device for transmitting packets via wireless communication connection and method of operating the same
KR20230119564A (en) Electronic device for time synchronization with external electronic device and operating method thereof
KR20230071327A (en) Method and electronic device for transmitting information for lost device
KR20230060426A (en) Electronic device for performing positioning and operating method thereof
US20240230884A1 (en) Positioning method using wireless communication, and electronic device for supporting same
KR20240109884A (en) Electronic device identifying location of target device and method of operation thereof
KR20240074614A (en) Electronic device, method, and non-transitory computer readable storage medium identifying priority of connection
KR20230075319A (en) Electronic device and method for determining location of user
KR20240034069A (en) Electronic device and method for transmitting signal for feedback
KR20240024723A (en) Electronic device for managing network comrpising plurality external electronic devices and method thereof
KR20230056963A (en) Electronic device for performing sa query in wlan system and operating method thereof
KR20240029476A (en) Electronic device for providing location-based service and operating method thereof
KR20220144119A (en) Electronic apparatus and mothod for controlling electronic devices
KR20230019608A (en) An electronic device performing uwb communication and operating method thereof