KR101480331B1 - Time synchronization method and electronic device - Google Patents
Time synchronization method and electronic device Download PDFInfo
- Publication number
- KR101480331B1 KR101480331B1 KR20130150326A KR20130150326A KR101480331B1 KR 101480331 B1 KR101480331 B1 KR 101480331B1 KR 20130150326 A KR20130150326 A KR 20130150326A KR 20130150326 A KR20130150326 A KR 20130150326A KR 101480331 B1 KR101480331 B1 KR 101480331B1
- Authority
- KR
- South Korea
- Prior art keywords
- information
- time
- recording
- pcm data
- generated
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G7/00—Synchronisation
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G5/00—Setting, i.e. correcting or changing, the time-indication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2203/00—Aspects of automatic or semi-automatic exchanges
- H04M2203/30—Aspects of automatic or semi-automatic exchanges related to audio recordings in general
Abstract
Description
본 발명은 시간 동기화 방법 및 전자 기기에 관한 것으로, 보다 상세하게는 오디오 신호를 이용하여 기기 간 시간을 동기화하는 방법 및 그 시간 동기화를 수행하는 전자 기기에 관한 것이다.BACKGROUND OF THE
최근 멀티미디어 재생 및 녹화가 가능하고 인터넷 접속이 가능한 모바일 기기들이 늘어감에 따라 서로 다른 기기들간에 동기화된 시간을 사용해야 하는 경우가 늘어가고 있다. 예를 들어, 문자 메시지를 주고받는 경우, 보낸 사람의 시간과 받는 사람의 시간에 오차가 있다면 실제 보낸 시간보다 빨리 문자를 받은 것으로 착각하게 되는 경우가 발생할 수 있다. 반대로 한참 전에 문자를 보냈음에도 받은 사람은 늦게 받았다고 착각하게 되는 경우가 발생할 수 있다. 또한, 같은 장소에서 같은 사건을 두 사람이 각각 카메라 기기로 사진을 촬영했는데, 시스템의 오차로 인해 촬영된 사진의 기간이 기록될 수도 있다.Recently, as the number of mobile devices capable of multimedia playback and recording and internet access has increased, synchronized time has been increasingly required between different devices. For example, when a text message is sent or received, if there is an error in the time of the sender and the time of the receiver, it may occur that the character is mistakenly received earlier than the actual send time. Conversely, even if you have sent a text message a long time ago, it may happen that the recipient is mistaken for being late. Also, in the same place, two people taking the same event photographed the camera device, respectively, but the period of the photographed image may be recorded due to the error of the system.
시스템 시간을 동기화 위한 방법으로 기지국으로부터 시간을 얻어오거나 GPS 정보를 사용하는 방법이 있다. 관련된 선행문헌으로 공개특허 10-2013-0116392호가 있다.One way to synchronize system time is to get time from the base station or use GPS information. A related prior art document is disclosed in Japanese Patent Laid-Open No. 10-2013-0116392.
하지만, 종래 기술을 사용하는 경우, 네트워크의 시간 지연에 따른 오차와 GPS 정보의 오차로 인해, 시간 오차가 수십 밀리초에서 수 초에까지 이른다.However, in the case of using the conventional technology, the time error ranges from several tens of milliseconds to several seconds due to the error of the network due to the time delay and the error of the GPS information.
따라서 정밀한 시간 동기화를 수행하는 기술에 대한 연구가 필요한 실정이다.Therefore, it is necessary to study the technology for precise time synchronization.
본 발명의 목적은 오디오 신호를 이용하여 정밀하게 시간 동기화를 수행할 수 있는 시간 동기화 방법 및 그 시간 동기화를 수행하는 전자 기기를 제공하는 데 있다.SUMMARY OF THE INVENTION An object of the present invention is to provide a time synchronization method capable of performing time synchronization precisely using an audio signal and an electronic apparatus performing time synchronization.
상기 목적을 달성하기 위해 본 발명의 일실시예에 의하면, 참조 오디오 신호를 녹음하여 제1녹음 정보를 생성하는 단계-상기 제1녹음 정보는 제1시간 정보를 포함함-; 부 기기로부터 제2녹음 정보를 수신하는 단계-상기 제2녹음 정보는 상기 부 기기가 상기 참조 오디오 신호를 녹음하여 생성한 정보로 제2시간 정보를 포함함-; 상기 제1녹음 정보 및 상기 제2녹음 정보를 이용하여 상기 부 기기와의 시간차 정보를 산출하는 단계; 및 상기 산출된 시간차 정보를 상기 부 기기에 전송하는 단계를 포함하는 시간 동기화 방법이 제공된다.According to an embodiment of the present invention, there is provided a method for recording a reference audio signal, the method comprising: generating a first recording information by recording a reference audio signal, the first recording information including first time information; Receiving second recording information from the secondary device, the second recording information including second time information as information generated by the secondary device recording the reference audio signal; Calculating time difference information with the sub-device using the first recorded information and the second recorded information; And transmitting the calculated time difference information to the sub-device.
상기 목적을 달성하기 위해 본 발명의 일실시예에 의하면, 참조 오디오 신호를 녹음하여 녹음 정보를 생성하는 단계-상기 녹음 정보는 시간 정보를 포함함-; 상기 생성된 녹음 정보를 주 기기로 전송하는 단계; 상기 주 기기로부터 상기 주 기기와의 시간차 정보를 수신하는 단계; 및 상기 수신된 시간차 정보에 근거하여 시간을 보정하는 단계를 포함하는 시간 동기화 방법이 제공된다.According to an embodiment of the present invention, there is provided a method for recording a reference audio signal, the method comprising: generating recording information by recording a reference audio signal, the recording information including time information; Transmitting the generated recording information to a main device; Receiving time difference information from the main device with the main device; And correcting the time based on the received time difference information.
상기 목적을 달성하기 위해 본 발명의 일실시예에 의하면, 참조 오디오 신호를 녹음하여 제1녹음 정보를 생성하는 녹음부-상기 제1녹음 정보는 제1시간 정보를 포함함-; 부 기기로부터 제2녹음 정보를 수신하는 수신부-상기 제2녹음 정보는 상기 부 기기가 상기 참조 오디오 신호를 녹음하여 생성한 정보로 제2시간 정보를 포함함-; 상기 제1녹음 정보 및 상기 제2녹음 정보를 이용하여 상기 부 기기와의 시간차 정보를 산출하는 시간차 정보 산출부; 상기 산출된 시간차 정보를 상기 부 기기에 전송하는 전송부; 및 상기 녹음부, 상기 수신부, 상기 시간차 정보 산출부, 및 상기 전송부를 제어하는 제어부를 포함하는 전자 기기가 제공된다.In order to achieve the above object, according to an embodiment of the present invention, there is provided a recording unit for recording a reference audio signal to generate first recording information, the first recording information including first time information; A receiving unit for receiving second recorded information from a secondary device, the second recorded information including second time information as information generated by the secondary device recording the reference audio signal; A time difference information calculation unit for calculating time difference information with the sub-device using the first recorded information and the second recorded information; A transmission unit for transmitting the calculated time difference information to the sub-device; And a control unit for controlling the recording unit, the receiving unit, the time difference information calculating unit, and the transmitting unit.
상기 목적을 달성하기 위해 본 발명의 일실시예에 의하면, 참조 오디오 신호를 녹음하여 녹음 정보를 생성하는 녹음부-상기 녹음 정보는 시간 정보를 포함함-; 상기 생성된 녹음 정보를 주 기기로 전송하는 전송부; 상기 주 기기로부터 상기 주 기기와의 시간차 정보를 수신하는 수신부; 상기 수신된 시간차 정보에 근거하여 시간을 보정하는 시간 보정부; 및 상기 녹음부, 상기 전송부, 상기 수신부, 및 상기 시간 보정부를 제어하는 제어부를 포함하는 전자 기기가 제공된다.According to an embodiment of the present invention, there is provided a recording unit for recording a reference audio signal to generate recording information, the recording information including time information; A transmitting unit for transmitting the generated recording information to a main device; A receiving unit for receiving time difference information from the main device with the main device; A time corrector for correcting time based on the received time difference information; And a control unit for controlling the recording unit, the transmission unit, the reception unit, and the time correction unit.
본 발명의 일실시예에 의한 시간 동기화 방법 및 전자 기기는 오디오 신호를 이용하여 시간 동기화를 수행하기에 시간 동기화의 정밀도 수준이 크게 향상된다.The time synchronization method and the electronic device according to the embodiment of the present invention perform time synchronization using an audio signal, and the accuracy level of time synchronization is greatly improved.
또한, 본 발명의 일실시예에 의하면, 외부 시간 정보 서버를 이용할 수 없는 경우에도 기간 시간 동기화를 수행할 수 있다.In addition, according to an embodiment of the present invention, period time synchronization can be performed even when an external time information server is not available.
도 1은 본 발명의 일실시예와 관련된 시간 동기화 수행 전 다수의 기기들이 참조 오디오 신호를 녹음하기 위한 상태를 나타낸다.
도 2는 본 발명의 일실시예와 관련된 전자 기기의 블록도이다.
도 3은 본 발명의 일실시예와 관련된 시간 동기화 방법을 나타내는 흐름도이다.
도 4는 본 발명의 일실시예와 관련된 전자 기기가 참조 오디오 신호를 녹음하는 과정을 나타낸다.
도 5는 본 발명의 일실시예와 관련된 부 기기가 녹음 정보를 주 기기로 전송하는 과정을 나타낸다.
도 6은 본 발명의 일실시예와 관련된 주 기기가 시간차 정보를 산출하는 과정을 나타낸다.
도 7은 본 발명의 일실시예와 관련된 부 기기가 시간차 정보를 수신하는 과정을 나타낸다.
도 8은 본 발명의 일실시예와 관련된 부 기기가 시간차 정보를 이용하여 시간을 보정하는 과정을 나타낸다.FIG. 1 shows a state in which a plurality of devices record reference audio signals before time synchronization related to an embodiment of the present invention.
2 is a block diagram of an electronic apparatus according to an embodiment of the present invention.
3 is a flow chart illustrating a time synchronization method associated with an embodiment of the present invention.
FIG. 4 illustrates a process in which an electronic apparatus according to an embodiment of the present invention records reference audio signals.
FIG. 5 illustrates a process in which an auxiliary device related to an embodiment of the present invention transmits recording information to a main device.
FIG. 6 illustrates a process in which a main device related to an embodiment of the present invention calculates time difference information.
FIG. 7 illustrates a process in which an auxiliary device related to an embodiment of the present invention receives time difference information.
FIG. 8 shows a process in which an auxiliary device related to an embodiment of the present invention corrects time using time difference information.
이하, 본 발명의 일실시예와 관련된 시간 동기화 방법 및 전자 기기에 대해 도면을 참조하여 설명하도록 하겠다.Hereinafter, a time synchronization method and an electronic apparatus according to an embodiment of the present invention will be described with reference to the drawings.
본 명세서에서 사용되는 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "구성된다" 또는 "포함한다" 등의 용어는 명세서상에 기재된 여러 구성 요소들, 또는 여러 단계들을 반드시 모두 포함하는 것으로 해석되지 않아야 하며, 그 중 일부 구성 요소들 또는 일부 단계들은 포함되지 않을 수도 있고, 또는 추가적인 구성 요소 또는 단계들을 더 포함할 수 있는 것으로 해석되어야 한다.As used herein, the singular forms "a", "an" and "the" include plural referents unless the context clearly dictates otherwise. In this specification, the terms "comprising ", or" comprising ", etc. should not be construed as necessarily including the various elements or steps described in the specification, Or may be further comprised of additional components or steps.
본 명세서에서 전자 기기는 자신의 시스템 시간을 확인하거나 표시할 수 있는 기기로서, 이동 단말기가 그 일례가 될 수 있다. 상기 이동 단말기는 스마트 폰(smart phone), 노트북 컴퓨터(notebook computer), 디지털방송용 단말기, PDA(Personal Digital Assistants), PMP(Portable Multimedia Player), 네비게이션, 태블릿 PC, 웨어러블 기기(Wearable Device) 등을 포함할 수 있다.In this specification, an electronic device is an apparatus that can confirm or display its own system time, and a mobile terminal may be an example thereof. The mobile terminal includes a smart phone, a notebook computer, a digital broadcast terminal, a PDA (Personal Digital Assistants), a PMP (Portable Multimedia Player), a navigation device, a tablet PC, a wearable device can do.
도 1은 본 발명의 일실시예와 관련된 시간 동기화 수행 전 다수의 기기들이 참조 오디오 신호를 녹음하기 위한 상태를 나타낸다. 이하, 실시예에서는 3개의 전자 기기의 시간 동기화에 대해 설명하지만, 본 발명이 이에 한정되는 것은 아니다.FIG. 1 shows a state in which a plurality of devices record reference audio signals before time synchronization related to an embodiment of the present invention. Hereinafter, the time synchronization of three electronic devices will be described in the embodiment, but the present invention is not limited thereto.
도시된 바와 같이, 다수의 전자 기기들(A, B, C)이 동일 소리를 녹음하기 위해 일정 공간에 모여 있을 수 있다. 본 명세서에서는 시간 동기화의 기준이 되는 전자 기기를 "주 기기"라 하고, 상기 주 기기에 맞추어 시간 동기화(즉, 시간 보정)를 수행하는 전자 기기를 "부 기기"라 한다. 또한, 상기 다수의 기기들이 녹음하고자 하는 동일 소리를 "참조 오디오 신호"라 한다.As shown, a plurality of electronic devices A, B, and C may be gathered in a certain space to record the same sound. In this specification, an electronic device that is a reference for time synchronization is referred to as a "main device", and an electronic device that performs time synchronization (ie, time correction) in accordance with the main device is referred to as a "secondary device". Also, the same sound to be recorded by the plurality of devices is referred to as a "reference audio signal ".
우선 시간 동기화를 하기 위한 각 기기(A, B, C)들은 자신의 시스템 시간을 즉각 확인할 수 있고, 마이크를 이용하여 주변 소리를 녹음할 수 있다. 참조 오디오 신호를 녹음할 수 있도록 각 기기(A, B, C)들은 상기 참조 오디오 신호 발생지와 가까운 장소에 위치하고, 특정 정보를 서로 주고 받기 위한 통신 기능을 수행할 수 있다.First, each device (A, B, C) for time synchronization can check their system time instantly, and can record ambient sound using a microphone. In order to record a reference audio signal, each of the devices A, B, and C may be located near the reference audio signal source and may perform a communication function to transmit specific information to each other.
도 2는 본 발명의 일실시예와 관련된 전자 기기의 블록도이다.2 is a block diagram of an electronic apparatus according to an embodiment of the present invention.
도 2에 도시된 전자 기기는 주 기기뿐만 아니라 부 기기에도 적용될 수 있다. 상기 전자 기기(100)는 경우에 따라 주 기기로서 역할을 수행할 수도 있고, 부 기기로서 역할을 수행할 수도 있다.The electronic apparatus shown in Fig. 2 can be applied not only to the main apparatus but also to the sub apparatus. The
전자 기기(100)는 녹음부(110), 수신부(120), 시간차 정보 산출부(130), 전송부(140), 시간 정보부(150), 및 제어부(160)를 포함할 수 있다.The
녹음부(110)는 출력되는 참조 오디오 신호를 마이크(미도시)를 통해 녹음할 수 있다. 상기 참조 오디오 신호는 상기 전자 기기(100)에서 출력될 수도 있고, 외부 기기에서 출력될 수도 있다. 본 실시예에서는 외부 기기에서 참조 오디오 신호가 출력되는 경우에 대해서 설명하기로 한다.The
수신부(120)는 다양한 정보 또는 데이터를 수신할 수 있다. 예를 들어, 수신부(120)는 타 기기로부터 녹음된 녹음 정보를 수신할 수도 있고, 타 기기에서 산출된 시간차 정보를 수신할 수도 있다.The
시간차 정보 산출부(130)는 타 기기로부터 수신한 녹음 정보와 자신이 녹음한 녹음 정보의 비교를 통해 타 기기와의 시간차 정보를 산출할 수 있다. 시간차 정보를 산출하는 구체적인 설명은 후술하도록 하겠다.The time difference information calculating unit 130 may calculate the time difference information with other apparatuses by comparing the recorded information received from other apparatuses with the recorded information recorded by the apparatus itself. A detailed description of calculating the time difference information will be described later.
전송부(140)는 다양한 정보를 전송할 수 있다. 예를 들어, 전송부(140)는 자신의 녹음 정보를 타 기기로 전송할 수도 있고, 산출된 시간차 정보를 타 기기로 전송할 수 있다.The
시간 보정부(150)는 타 기기로부터 수신한 시간차 정보를 이용하여 자신의 시스템 시간을 보정함으로써, 시간 동기화를 수행할 수 있다.The
제어부(160)는 녹음부(110), 수신부(120), 시간차 정보 산출부(130), 전송부(140), 및 시간 보정부(150)를 전반적으로 제어할 수 있다.The
도 3은 본 발명의 일실시예와 관련된 시간 동기화 방법을 나타내는 흐름도이다. 3 is a flow chart illustrating a time synchronization method associated with an embodiment of the present invention.
주 기기 및 부 기기는 동일 소리(즉, 참조 오디오 신호)를 녹음할 수 있다(S310). The main apparatus and the sub apparatus can record the same sound (i.e., the reference audio signal) (S310).
도 4는 본 발명의 일실시예와 관련된 전자 기기가 참조 오디오 신호를 녹음하는 과정을 나타낸다.FIG. 4 illustrates a process in which an electronic apparatus according to an embodiment of the present invention records reference audio signals.
도시된 바와 같이, 주 기기(C) 및 부 기기(A, B)는 각자 마이크를 통해 참조 오디오 신호(예: 주변 소리)를 녹음할 수 있다. 이때 이후 처리의 정확도를 높이기 위해 참조 오디오 신호로 주변 소리가 아닌, 식별력이 높은 특정 소리를 이용할 수 있다. 상기 참조 오디오 신호의 재생은 동기화에 참여한 기기(주 기기 및 부 기기) 또는 동기화에 참여한 기기가 아닌 다른 외부 기기에서 재생될 수 있다. 각 기기는 녹음을 시작하는 시점과 동시에 자신의 시스템 시간을 측정하여 저장할 수 있다.As shown, the main unit C and the sub-units A and B can respectively record reference audio signals (e.g., ambient sounds) through a microphone. At this time, in order to increase the accuracy of the processing, a specific sound having high discrimination power can be used as a reference audio signal instead of surrounding sound. The reproduction of the reference audio signal may be reproduced by an external device other than the device (main device and sub device) participating in synchronization or the device participating in synchronization. Each device can measure and store its own system time at the same time as recording starts.
각 기기는 동일한 참조 오디오 신호를 녹음하여 녹음 정보를 생성할 수 있다. 상기 각 기기에서 생성된 녹음 정보는 PCM(Pulse code modulation) 방식으로 생성된 PCM 데이터를 포함하고, 해당 시간 정보를 포함할 수 있다. 또한, 각 기기에서 생성된 PCM 데이터는 동일한 샘플링 레이트(sampling rate)를 가진다. 상기 샘플링 레이트는 단위 시간(예: 1초) 당 샘플링 회수로서 샘플링 레이트가 클수록 데이터의 정밀도 및 시간 동기화의 정밀도가 높아진다. 디지털 오디오에서 주로 사용되는 샘플링 레이트는 44.1 kHz, 48 kHz, 88.2 kHz, 96 kHz, 192 kHz 등이 있다. 본 실시예에서는 정밀도를 높이기 위해 44.1 kHz 이상의 샘플링 레이트를 사용할 수 있다.Each device can record the same reference audio signal to generate recording information. The recording information generated by each of the devices includes PCM data generated by a PCM (Pulse Code Modulation) method and may include corresponding time information. In addition, the PCM data generated at each device has the same sampling rate. The sampling rate is the number of sampling times per unit time (e.g., 1 second), and the higher the sampling rate, the higher the accuracy of data and the more accurate the time synchronization. The sampling rates mainly used in digital audio are 44.1 kHz, 48 kHz, 88.2 kHz, 96 kHz and 192 kHz. In this embodiment, a sampling rate of 44.1 kHz or higher can be used to increase the accuracy.
또한, 상기 해당 시간 정보는 PCM 데이터가 생성된 시간 정보를 포함할 수 있다. PCM 데이터가 생성된 시간 정보를 통해 녹음이 시작된 시점이 확인될 수 있다.In addition, the corresponding time information may include time information in which the PCM data is generated. The time at which the recording is started can be confirmed through the time information in which the PCM data is generated.
각 기기에서 녹음이 완료되거가 일정 시간이 경과하면, 부 기기(A, B)는 자신의 녹음 정보를 주 기기로 전송한다(S320).When a predetermined time has elapsed after the recording of each device is completed, the sub-devices A and B transmit their recorded information to the main device (S320).
도 5는 본 발명의 일실시예와 관련된 부 기기가 녹음 정보를 주 기기로 전송하는 과정을 나타낸다.FIG. 5 illustrates a process in which an auxiliary device related to an embodiment of the present invention transmits recording information to a main device.
각 기기는 소리의 녹음을 중단하고 PCM(Pulse code modulation) 디지털 정보의 형태(즉, PCM 데이터)로 저장할 수 있다. 이 때 각 기기에서의 참조 오디오 신호의 녹음 지속시간은 주 기기에서 녹음된 정보와 부 기기에서 녹음된 정보의 비교의 용이를 위해 충분히 길게 녹음하는 것이 좋으나, 응용에 따라 적정한 녹음 시간을 사용할 수 있다.Each device can stop recording sound and store it in the form of PCM (pulse code modulation) digital information (ie, PCM data). In this case, the recording duration of the reference audio signal in each device is preferably long enough for easy comparison between the information recorded on the main device and the information recorded on the sub-device, but a proper recording time can be used depending on the application .
주 기기(C)의 시스템 시간에 동기화하고자 하는 부 기기들(A, B)은, 자신이 녹음한 녹음 정보(PCM 데이터와 자신의 시스템 시간을 포함함)를 주 기기(C)에 전송한다. 이 때 주 기기에 전송하는데 걸리는 네트워크 지연 시간은 동기화 수준에 영향을 미치지 않는다.The auxiliary devices A and B to be synchronized with the system time of the main device C transmit the recording information (including the PCM data and the own system time) recorded by the auxiliary devices A and B to the main device C. At this time, the network delay time to transmit to the main device does not affect the synchronization level.
주 기기(C)는 부 기기로부터 수신한 녹음 정보와 자신의 녹음 정보의 비교를 통해 부 기기와의 시간차 정보를 산출할 수 있다(S330).The main apparatus C can calculate the time difference information with the sub-apparatus through comparison of the recorded information received from the sub-apparatus and its own recorded information (S330).
도 6은 본 발명의 일실시예와 관련된 주 기기가 시간차 정보를 산출하는 과정을 나타낸다.FIG. 6 illustrates a process in which a main device related to an embodiment of the present invention calculates time difference information.
주 기기(C)는 부 기기들(A, B)로부터 수신한 PCM 데이터와 자신의 PCM 데이터를 각각 비교하여 주 기기(C)가 생성한 PCM 데이터와 동일한 시간대에 같은 소리가 재생될 수 있도록, 부 기기(A, B)의 PCM 데이터를 PCM 샘플 1개 단위로 정렬한다. 즉, 주 기기는(C) 자신의 PCM 데이터 패턴 및 PCM 데이터의 생성 시간과 부 기기(A, B) 각각의 PCM 데이터 패턴 및 PCM 데이터의 생성 시간의 비교를 통해 부 기기(A, B) 각각과의 시간차 정보를 산출할 수 있다.The main apparatus C compares the PCM data received from the auxiliary apparatuses A and B with the PCM data thereof so that the same sound can be reproduced in the same time zone as the PCM data generated by the main apparatus C, The PCM data of the secondary devices (A and B) are arranged in units of one PCM sample. That is, the main device (C) compares the generation time of its own PCM data pattern and PCM data with the generation time of the PCM data pattern and the PCM data of each of the auxiliary devices (A, B) Time difference information with respect to time.
정렬 과정에서 각 부 기기(A, B)의 PCM 데이터와 주 기기(C)의 PCM 데이터 간의 PCM 샘플 개수 차이(Delta_Number_of_Aligned_Samples)를 시간 단위의 샘플 차이 시간값(Delta_Time_of_Aligned_Samples)으로 변환한다.(Delta_Number_of_Aligned_Samples) between the PCM data of each sub-device (A, B) and the PCM data of the main device (C) in the alignment process into the sample difference time value (Delta_Time_of_Aligned_Samples) in units of time.
예를 들어, PCM Sampling Rate(Sampling_Rate_per_Second)가 48KHz(48000 samples per second)인 경우, 초당 48000개의 PCM 샘플로 녹음되므로, 1개의 PCM 샘플의 시간은 1/48000초, 또는 1/48밀리초가 된다. 즉, Delta_Time_of_Aligned_Samples = Delta_Number_of_Aligned_Sample/ Sampling_Rate_per_Second 가 된다.For example, if the PCM Sampling Rate (Sampling_Rate_per_Second) is 48KHz (48000 samples per second), then 48000 PCM samples per second are recorded, so the time for one PCM sample is 1/48000 seconds, or 1/48 milliseconds. That is, Delta_Time_of_Aligned_Samples = Delta_Number_of_Aligned_Sample / Sampling_Rate_per_Second.
주 기기(C)는 각 부 기기들(A, B)로부터 수신한 녹음 시작 시기에 기록한 시스템 시간(tA_recorded, tB_recorded)에서 정렬된 PCM 샘플 차이 시간(△tA_aligned_samples, △tB_aligned_samples)을 더하여, 정렬된 PCM 샘플에 해당하는 각 기기의 시스템 시간(tA_aligned, tB_aligned, tC_aligned)을 계산할 수 있다. 즉 tA_aligned = tA_recorded + △tA_aligned_samples와 같이 계산할 수 있다.The main device C adds the aligned PCM sample difference times (? TA_aligned_ samples,? TB_aligned_ samples) at the system time (tA_recorded, tB_recorded) recorded at the recording start timing received from each of the sub apparatuses (A, B) The system time (tA_aligned, tB_aligned, tC_aligned) of each device corresponding to the sample can be calculated. That is, tA_aligned = tA_recorded + tA_aligned_samples can be calculated.
주 기기(C)는 자신의 tC_aligned와 부 기기의 tA_aligned, tB_aligned간의 차이값(△tA, △tB)을 △tA = tC_aligned - tA_aligned, △tB = tC_aligned - tB_aligned와 같이 계산하여 자신과 각 부 기기(A, B)들 간의 시스템 시간의 차이를 보정하는 값(즉, 시간차 정보)으로 사용할 수 있다.The main device C computes the difference (ΔtA, ΔtB) between tC_aligned of its own tC_aligned and tA_aligned and tB_aligned of the secondary device as ΔtA = tC_aligned - tA_aligned, ΔtB = tC_aligned - tB_aligned, A, B) (that is, time difference information).
부 기기(A, B) 각각은 상기 주 기기(C)에서 산출된 시간차 정보를 상기 주 기기(C)로부터 수신할 수 있다(S340).Each of the auxiliary devices A and B can receive the time difference information calculated from the main device C from the main device C at step S340.
도 7은 본 발명의 일실시예와 관련된 부 기기가 시간차 정보를 수신하는 과정을 나타낸다.FIG. 7 illustrates a process in which an auxiliary device related to an embodiment of the present invention receives time difference information.
도시된 바와 같이, 주 기기(C)는 각 부 기기(A, B)들마다 계산된 보정값(즉, 시간차 정보) △tA와 △tB를 각 부 기기들(A, B)에게 전송한다. 이 때 부 기기(A, B)에 전송하는데 걸리는 네트워크 지연시간은 동기화 수준에 영향을 미치지 않는다As shown in the figure, the main device C transmits the calculated correction values (i.e., time difference information)? TA and? TB to each of the sub-devices A and B for each of the sub-devices A and B. At this time, the network delay time to transmit to the secondary devices (A and B) does not affect the synchronization level
부 기기(A, B) 각각은 수신한 보정값(즉, 시간차 정보) △tA와 △tB를 이용하여 자신의 시스템을 보정하여 주 기기와 동기화할 수 있다(S350). 예를 들어 부 기기 A는 자신의 시스템 시간(tA)에 보정값(△tA)을 더하여 보정된 시간(tA')을 획득할 수 있으며 이 보정된 시간은 주 기기의 시간(tC)과 동기화된 값이 된다.Each of the sub-devices A and B can synchronize their system with the main device using the received correction values (i.e., time difference information) DELTA tA and DELTA tB (S350). For example, the auxiliary device A can acquire a corrected time tA 'by adding a correction value? TA to its system time tA, which is synchronized with the time tC of the main device Lt; / RTI >
도 8은 본 발명의 일실시예와 관련된 부 기기가 시간차 정보를 이용하여 시간을 보정하는 과정을 나타낸다.FIG. 8 shows a process in which an auxiliary device related to an embodiment of the present invention corrects time using time difference information.
도시된 바와 같이, 각 부 기기(A, B)는 주 기기(C)로부터 수신한 보정값을 현재의 시스템 시간에 더하여 자신의 시스템 시간을 보정한다. 상기와 같은 보정을 통해, 부 기기(A, B)은 시스템 시간은 상기 주 기기(C)의 현재 시스템 시간(tC)에 동기화된다.As shown in the figure, each of the sub-devices A and B corrects its own system time by adding the correction value received from the main device C to the current system time. Through the above correction, the system time of the sub-devices A and B is synchronized with the current system time t C of the main device C.
전술한 바와 같이, 본 발명의 일실시예에 의한 시간 동기화 방법 및 그 시간 동기화를 수행하는 전자 기기는 오디오 신호를 이용하여 시간 동기화를 수행하기에 시간 동기화의 정밀도 수준이 크게 향상된다.As described above, the time synchronization method according to an embodiment of the present invention and the electronic apparatus performing the time synchronization perform a time synchronization using an audio signal, which greatly improves the accuracy level of time synchronization.
또한, 본 발명의 일실시예에 의하면, 외부 시간 정보 서버를 이용할 수 없는 경우에도 기간 시간 동기화를 수행할 수 있다.In addition, according to an embodiment of the present invention, period time synchronization can be performed even when an external time information server is not available.
상술한 시간 동기화 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터로 판독 가능한 기록 매체에 기록될 수 있다. 이때, 컴퓨터로 판독 가능한 기록매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 한편, 기록매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다.The above-described time synchronization method may be implemented in the form of a program command that can be executed through various computer means and recorded in a computer-readable recording medium. At this time, the computer-readable recording medium may include program commands, data files, data structures, and the like, alone or in combination. On the other hand, the program instructions recorded on the recording medium may be those specially designed and configured for the present invention or may be available to those skilled in the art of computer software.
컴퓨터로 판독 가능한 기록매체에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(Magnetic Media), CD-ROM, DVD와 같은 광기록 매체(Optical Media), 플롭티컬 디스크(Floptical Disk)와 같은 자기-광 매체(Magneto-Optical Media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. The computer-readable recording medium includes a magnetic recording medium such as a magnetic medium such as a hard disk, a floppy disk and a magnetic tape, an optical medium such as a CD-ROM and a DVD, a magnetic disk such as a floppy disk, A magneto-optical media, and a hardware device specifically configured to store and execute program instructions such as ROM, RAM, flash memory, and the like.
한편, 이러한 기록매체는 프로그램 명령, 데이터 구조 등을 지정하는 신호를 전송하는 반송파를 포함하는 광 또는 금속선, 도파관 등의 전송 매체일 수도 있다.The recording medium may be a transmission medium, such as a light or metal line, a wave guide, or the like, including a carrier wave for transmitting a signal designating a program command, a data structure, and the like.
또한, 프로그램 명령에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 상술한 하드웨어 장치는 본 발명의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.The program instructions also include machine language code, such as those generated by the compiler, as well as high-level language code that can be executed by a computer using an interpreter or the like. The hardware devices described above may be configured to operate as one or more software modules to perform the operations of the present invention, and vice versa.
상기와 같이 설명된 시간 동기화 방법 및 전자 기기는 상기 설명된 실시예들의 구성과 방법이 한정되게 적용될 수 있는 것이 아니라, 상기 실시예들은 다양한 변형이 이루어질 수 있도록 각 실시예들의 전부 또는 일부가 선택적으로 조합되어 구성될 수도 있다.The above-described time synchronization method and electronic device are not limited to the configuration and method of the embodiments described above, but the embodiments may be modified so that all or some of the embodiments are selectively And may be configured in combination.
100: 전자 기기
110: 녹음부
120: 수신부
130: 시간차 정보 산출부
140: 전송부
150: 시간 보정부
160: 제어부100: Electronic device
110:
120: Receiver
130: Time difference information calculation unit
140:
150: time correction unit
160:
Claims (18)
부 기기로부터 제2녹음 정보를 수신하는 단계-상기 제2녹음 정보는 상기 부 기기가 상기 참조 오디오 신호를 녹음하여 생성한 정보로 제2시간 정보를 포함함-;
상기 제1녹음 정보 및 상기 제2녹음 정보를 이용하여 상기 부 기기와의 시간차 정보를 산출하는 단계; 및
상기 산출된 시간차 정보를 상기 부 기기에 전송하는 단계를 포함하는 것을 특징으로 하는 시간 동기화 방법.Recording a reference audio signal to generate first recorded information, the first recorded information including first time information;
Receiving second recording information from the secondary device, the second recording information including second time information as information generated by the secondary device recording the reference audio signal;
Calculating time difference information with the sub-device using the first recorded information and the second recorded information; And
And transmitting the calculated time difference information to the sub-device.
상기 제1녹음 정보는 제1PCM(Pulse Code Modulation) 데이터를 포함-상기 PCM 데이터는 PCM 방식으로 생성된 데이터를 의미함-하고,
상기 제2녹음 정보는 제2PCM 데이터를 포함하는 것을 특징으로 하는 시간 동기화 방법.The method according to claim 1,
Wherein the first recording information includes first pulse code modulation (PCM) data, the PCM data representing data generated by a PCM method,
And the second recorded information includes second PCM data.
상기 제1PCM 데이터와 상기 제2PCM 데이터는 동일 샘플링 레이트(sample rate)를 가지고, 상기 샘플링 레이트는 44.1 kHz 이상인 것을 특징으로 시간 동기화 방법.3. The method of claim 2,
Wherein the first PCM data and the second PCM data have the same sample rate and the sampling rate is 44.1 kHz or more.
상기 제1시간 정보는 상기 제1PCM 데이터가 생성된 시간 정보를 포함하고,
상기 제2시간 정보는 상기 제2PCM 데이터가 생성된 시간 정보를 포함하는 것을 특징으로 시간 동기화 방법.3. The method of claim 2,
Wherein the first time information includes time information in which the first PCM data is generated,
And the second time information includes time information in which the second PCM data is generated.
상기 제1PCM 데이터의 패턴과 상기 제2PCM 데이터의 패턴을 비교하는 단계; 및
상기 제1PCM 데이터가 생성된 시간 정보와 상기 제2PCM 데이터가 생성된 시간 정보를 비교하는 단계를 포함하는 것을 특징으로 하는 시간 동기화 방법.5. The method of claim 4, wherein the time difference information calculating step
Comparing a pattern of the first PCM data with a pattern of the second PCM data; And
And comparing the time information in which the first PCM data was generated with the time information in which the second PCM data was generated.
상기 생성된 녹음 정보를 주 기기로 전송하는 단계;
상기 주 기기로부터 상기 주 기기와의 시간차 정보를 수신하는 단계; 및
상기 수신된 시간차 정보에 근거하여 시간을 보정하는 단계를 포함하는 것을 특징으로 하는 시간 동기화 방법.Recording a reference audio signal to generate recording information, the recording information including time information;
Transmitting the generated recording information to a main device;
Receiving time difference information from the main device with the main device; And
And correcting the time based on the received time difference information.
상기 녹음 정보는 PCM(Pulse Code Modulation) 방식으로 생성된 PCM 데이터를 포함하는 것을 특징으로 하는 시간 동기화 방법.The method according to claim 6,
Wherein the recorded information includes PCM data generated by a PCM (Pulse Code Modulation) method.
상기 PCM 데이터의 샘플링 레이트는 44.1 kHz 이상인 것을 특징으로 시간 동기화 방법.8. The method of claim 7,
Wherein the sampling rate of the PCM data is 44.1 kHz or more.
상기 시간 정보는 상기 PCM 데이터가 생성된 시간 정보를 포함하는 것을 특징으로 시간 동기화 방법.8. The method of claim 7,
Wherein the time information includes time information in which the PCM data is generated.
부 기기로부터 제2녹음 정보를 수신하는 수신부-상기 제2녹음 정보는 상기 부 기기가 상기 참조 오디오 신호를 녹음하여 생성한 정보로 제2시간 정보를 포함함-;
상기 제1녹음 정보 및 상기 제2녹음 정보를 이용하여 상기 부 기기와의 시간차 정보를 산출하는 시간차 정보 산출부;
상기 산출된 시간차 정보를 상기 부 기기에 전송하는 전송부; 및
상기 녹음부, 상기 수신부, 상기 시간차 정보 산출부, 및 상기 전송부를 제어하는 제어부를 포함하는 것을 특징으로 하는 전자 기기.A recording unit for recording a reference audio signal to generate first recording information, the first recording information including first time information;
A receiving unit for receiving second recorded information from a secondary device, the second recorded information including second time information as information generated by the secondary device recording the reference audio signal;
A time difference information calculation unit for calculating time difference information with the sub-device using the first recorded information and the second recorded information;
A transmission unit for transmitting the calculated time difference information to the sub-device; And
And a control unit for controlling the recording unit, the receiving unit, the time difference information calculating unit, and the transmitting unit.
상기 제1녹음 정보는 제1PCM(Pulse Code Modulation) 데이터를 포함-상기 PCM 데이터는 PCM 방식으로 생성된 데이터를 의미함-하고,
상기 제2녹음 정보는 제2PCM 데이터를 포함하는 것을 특징으로 하는 전자 기기.11. The method of claim 10,
Wherein the first recording information includes first pulse code modulation (PCM) data, the PCM data representing data generated by a PCM method,
And the second recording information includes second PCM data.
상기 제1PCM 데이터와 상기 제2PCM 데이터는 동일 샘플링 레이트(sample rate)를 가지고, 상기 샘플링 레이트는 44.1 kHz 이상인 것을 특징으로 전자 기기.12. The method of claim 11,
Wherein the first PCM data and the second PCM data have the same sampling rate and the sampling rate is 44.1 kHz or more.
상기 제1시간 정보는 상기 제1PCM 데이터가 생성된 시간 정보를 포함하고,
상기 제2시간 정보는 상기 제2PCM 데이터가 생성된 시간 정보를 포함하는 것을 특징으로 전자 기기.12. The method of claim 11,
Wherein the first time information includes time information in which the first PCM data is generated,
And the second time information includes time information in which the second PCM data is generated.
상기 제1PCM 데이터의 패턴과 상기 제2PCM 데이터의 패턴을 비교하고, 상기 제1PCM 데이터가 생성된 시간 정보와 상기 제2PCM 데이터가 생성된 시간 정보를 비교하는 것을 특징으로 하는 전자 기기.14. The apparatus of claim 13, wherein the time difference information calculation unit
And compares the pattern of the first PCM data with the pattern of the second PCM data and compares the time information in which the first PCM data was generated with the time information in which the second PCM data was generated.
상기 생성된 녹음 정보를 주 기기로 전송하는 전송부;
상기 주 기기로부터 상기 주 기기와의 시간차 정보를 수신하는 수신부;
상기 수신된 시간차 정보에 근거하여 시간을 보정하는 시간 보정부; 및
상기 녹음부, 상기 전송부, 상기 수신부, 및 상기 시간 보정부를 제어하는 제어부를 포함하는 것을 특징으로 하는 전자 기기.A recording unit for recording a reference audio signal to generate recording information, the recording information including time information;
A transmitting unit for transmitting the generated recording information to a main device;
A receiving unit for receiving time difference information from the main device with the main device;
A time corrector for correcting time based on the received time difference information; And
And a control unit for controlling the recording unit, the transmission unit, the reception unit, and the time correction unit.
상기 녹음 정보는 PCM(Pulse Code Modulation) 방식으로 생성된 PCM 데이터를 포함하는 것을 특징으로 하는 전자 기기.16. The method of claim 15,
Wherein the recording information includes PCM data generated by a PCM (Pulse Code Modulation) method.
상기 PCM 데이터의 샘플링 레이트는 44.1 kHz 이상인 것을 특징으로 전자 기기.17. The method of claim 16,
Wherein the sampling rate of the PCM data is 44.1 kHz or more.
상기 시간 정보는 상기 PCM 데이터가 생성된 시간 정보를 포함하는 것을 특징으로 전자 기기.17. The method of claim 16,
Wherein the time information includes time information in which the PCM data is generated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR20130150326A KR101480331B1 (en) | 2013-12-05 | 2013-12-05 | Time synchronization method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR20130150326A KR101480331B1 (en) | 2013-12-05 | 2013-12-05 | Time synchronization method and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101480331B1 true KR101480331B1 (en) | 2015-01-08 |
Family
ID=52588230
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR20130150326A KR101480331B1 (en) | 2013-12-05 | 2013-12-05 | Time synchronization method and electronic device |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101480331B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106707737A (en) * | 2017-01-24 | 2017-05-24 | 努比亚技术有限公司 | Radio-controlled watch time-adjusting method and mobile terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002016868A (en) | 2000-06-28 | 2002-01-18 | Canon Inc | Method and apparatus for detecting time difference and storage medium |
JP2004085609A (en) | 2002-08-22 | 2004-03-18 | Yamaha Corp | Apparatus and method for performing synchronous reproduction of audio data and performance data |
JP2005191786A (en) | 2003-12-25 | 2005-07-14 | Mega Chips Corp | Method for synchronization control between terminals |
KR20060113538A (en) * | 2005-04-29 | 2006-11-02 | 텍트로닉스 인터내셔널 세일즈 게엠베하 | Time synchronization of master and slave devices |
-
2013
- 2013-12-05 KR KR20130150326A patent/KR101480331B1/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002016868A (en) | 2000-06-28 | 2002-01-18 | Canon Inc | Method and apparatus for detecting time difference and storage medium |
JP2004085609A (en) | 2002-08-22 | 2004-03-18 | Yamaha Corp | Apparatus and method for performing synchronous reproduction of audio data and performance data |
JP2005191786A (en) | 2003-12-25 | 2005-07-14 | Mega Chips Corp | Method for synchronization control between terminals |
KR20060113538A (en) * | 2005-04-29 | 2006-11-02 | 텍트로닉스 인터내셔널 세일즈 게엠베하 | Time synchronization of master and slave devices |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106707737A (en) * | 2017-01-24 | 2017-05-24 | 努比亚技术有限公司 | Radio-controlled watch time-adjusting method and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10149088B2 (en) | Speaker position identification with respect to a user based on timing information for enhanced sound adjustment | |
US8751705B2 (en) | Electronic device and audio output method | |
EP3646323B1 (en) | Hybrid audio signal synchronization based on cross-correlation and attack analysis | |
CN105448312B (en) | Audio sync playback method, apparatus and system | |
US20140355947A1 (en) | System and method for synchronizing multi-camera mobile video recording devices | |
US20140032778A1 (en) | Media playback method and apparatus in multiple media devices | |
US9967437B1 (en) | Dynamic audio synchronization | |
EP4024894A1 (en) | Audio synchronization playback method, apparatus, device, and storage medium | |
EP3225059B1 (en) | Clock synchronization using wifi beacons | |
CN103220425B (en) | A kind of way of recording based on multiple mobile terminal and system | |
KR20190101373A (en) | Audio signal reproducing apparatus and method, reproducing apparatus and receiving method, and program | |
CN110634488B (en) | Information processing method, device and system and storage medium | |
WO2019002179A1 (en) | Hybrid audio signal synchronization based on cross-correlation and attack analysis | |
KR101480331B1 (en) | Time synchronization method and electronic device | |
US9247191B2 (en) | Wireless external multi-microphone system for mobile device environment | |
US20150271599A1 (en) | Shared audio scene apparatus | |
CN112135177B (en) | Data stream synchronization method and device | |
US10181312B2 (en) | Acoustic system, communication device, and program | |
KR101946471B1 (en) | Apparatus and method for synchronizing video and audio | |
CN112086095B (en) | Data processing method, device, equipment and storage medium | |
WO2022110385A1 (en) | Ranging method, apparatus, system, smart device, and computer-readable storage medium | |
CN102622855B (en) | Early-warning countdown method based on IOS (Internetworking Operating System) | |
EP3540735A1 (en) | Spatial audio processing | |
CN106657852B (en) | Time synchronization method, equipment and system | |
CN112714384B (en) | Stereo output control device and method, electronic apparatus, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GRNT | Written decision to grant | ||
LAPS | Lapse due to unpaid annual fee |