KR102288948B1 - Synchronization method of the sensor data - Google Patents

Synchronization method of the sensor data Download PDF

Info

Publication number
KR102288948B1
KR102288948B1 KR1020140182928A KR20140182928A KR102288948B1 KR 102288948 B1 KR102288948 B1 KR 102288948B1 KR 1020140182928 A KR1020140182928 A KR 1020140182928A KR 20140182928 A KR20140182928 A KR 20140182928A KR 102288948 B1 KR102288948 B1 KR 102288948B1
Authority
KR
South Korea
Prior art keywords
nibble
falling edge
sensor data
data
time
Prior art date
Application number
KR1020140182928A
Other languages
Korean (ko)
Other versions
KR20160074106A (en
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 KR1020140182928A priority Critical patent/KR102288948B1/en
Publication of KR20160074106A publication Critical patent/KR20160074106A/en
Application granted granted Critical
Publication of KR102288948B1 publication Critical patent/KR102288948B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/04Speed or phase control by synchronisation signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/04Speed or phase control by synchronisation signals
    • H04L7/041Speed or phase control by synchronisation signals using special codes as synchronising signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/04Speed or phase control by synchronisation signals
    • H04L7/041Speed or phase control by synchronisation signals using special codes as synchronising signal
    • H04L7/042Detectors therefor, e.g. correlators, state machines

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

본 발명은, 센서가 단일에지 니블전송(SENT) 프로토콜에 따라 송신한 센서 데이터를 수신하는 단계, 상기 센서 데이터에서 검출된 하강 에지(falling edge)가 최초 하강 에지인지 판단하는 단계 및 상기 하강 에지가 상기 최초 하강 에지이면, 상기 하강 에지에 데이터 동기화를 위한 레퍼런스(reference)를 설정하고, 상기 레퍼런스의 설정시점을 기록하는 단계를 포함하는 센서 데이터의 동기화방법을 제공한다.The present invention includes the steps of receiving sensor data transmitted by a sensor according to a single-edge nibble transmission (SENT) protocol, determining whether a falling edge detected in the sensor data is the first falling edge, and the falling edge If it is the first falling edge, it provides a method for synchronizing sensor data, including setting a reference for data synchronization on the falling edge, and recording the setting time of the reference.

Description

센서 데이터의 동기화방법{Synchronization method of the sensor data}Synchronization method of the sensor data

본 발명은 센서 데이터의 동기화방법에 관한 것으로서, 더욱 상세하게는 차량에 설치된 센서로부터 전송된 센서 데이터에 포함된 노이즈에 의해 에러 발생시 이후 센서 데이터에 대한 밀림 현상을 방지하기 용이한 센서 데이터의 동기화방법에 관한 것이다.The present invention relates to a method for synchronizing sensor data, and more particularly, to a method for synchronizing sensor data that is easy to prevent a phenomenon of pushing back sensor data when an error occurs due to noise included in sensor data transmitted from a sensor installed in a vehicle is about

시스템의 다양한 파라미터들을 모니터하도록 센서들이 사용된다. 예를 들어, 차량 시스템들에서, 종종 파워 스티어링 모듈(power steering module), 연료 주입 모듈, 및 전자 제어식 제동(anti-lock brake) 모듈 등과 같은 제어 모듈과 관련된 물품(article)의 전류, 속도, 각도, 선형 위치, 및 회전 방향과 같은 파라미터들이 모니터 된다. Sensors are used to monitor various parameters of the system. For example, in vehicle systems, the current, speed, angle of an article often associated with a control module, such as a power steering module, a fuel injection module, and an electronically controlled brake module, etc. Parameters such as , linear position, and rotational direction are monitored.

센서 출력 신호는, 엔진 제어 장치(Engine Control Unit; ECU)와 같은, 상기 센서 출력 신호를 처리하고 상기 제어 모듈의 원하는 동작을 위해 피드백 신호를 생성하는 시스템 제어기에 제공된다.The sensor output signal is provided to a system controller, such as an Engine Control Unit (ECU), which processes the sensor output signal and generates a feedback signal for a desired operation of the control module.

종래에는, 이러한 센서는 감지된 파라미터를 주기적으로 업데이트하고, 상기 제어기는 처리의 필요에 따라 상기 센서에 대한 데이터를 폴링(polling)한다. 그러나, 제어기가 보다 고속으로 동작하고, 또한 많은 경우에서 상기 센서보다 상당히 고속으로 동작함에 따라, 상기 제어기에 의해 가장 최신의 이용 가능한 데이터가 제공되도록 상기 제어기가 센서 출력 데이터 전송을 동기화하는 것이 바람직하다.Conventionally, these sensors periodically update the sensed parameters, and the controller polls the data for the sensors as needed for processing. However, as the controller operates at a higher speed, and in many cases significantly faster than the sensor, it is desirable for the controller to synchronize the sensor output data transmission so that the most up-to-date data available is provided by the controller. .

본 발명의 목적은, 차량에 설치된 센서로부터 전송된 센서 데이터에 포함된 노이즈에 의해 에러 발생시 이후 센서 데이터에 대한 밀림 현상을 방지하기 용이한 센서 데이터의 동기화방법을 제공함에 있다.SUMMARY OF THE INVENTION It is an object of the present invention to provide a method for synchronizing sensor data that is easy to prevent a phenomenon of pushing back sensor data when an error occurs due to noise included in sensor data transmitted from a sensor installed in a vehicle.

본 발명에 따른 센서 데이터의 동기화방법은, 센서가 단일에지 니블전송(SENT) 프로토콜에 따라 송신한 센서 데이터를 수신하는 단계, 상기 센서 데이터에서 검출된 하강 에지(falling edge)가 최초 하강 에지인지 판단하는 단계 및 상기 하강 에지가 상기 최초 하강 에지이면, 상기 하강 에지에 데이터 동기화를 위한 레퍼런스(reference)를 설정하고, 상기 레퍼런스의 설정시점을 기록하는 단계를 포함한다.A method for synchronizing sensor data according to the present invention includes the steps of: receiving sensor data transmitted by a sensor according to a single-edge nibble transmission (SENT) protocol; determining whether a falling edge detected in the sensor data is the first falling edge and if the falling edge is the first falling edge, setting a reference for data synchronization on the falling edge, and recording the reference setting time.

상기 센서 데이터는, 동기화/조정 니블, 상태 및 직렬 통신(Status and Serial Communication) 니블, 데이터(Data) 니블, 순환중복검사(Cyclic redundancy check) 니블, 및 옵션정지(Pause optional) 니블 중 적어도 어느 하나이다.The sensor data is at least one of a synchronization/adjustment nibble, a status and serial communication nibble, a data nibble, a cyclic redundancy check nibble, and a pause optional nibble. .

본 발명에 따른 센서 데이터의 동기화방법은, 상기 판단 단계 이후, 상기 하강 에지가 상기 최초 하강 에지가 아니면, 설정된 이전 레퍼런스의 이전설정시점부터 상기 하강 에지의 검출시점까지의 경과시간을 기록하는 단계, 상기 하강 에지 및 검출된 이전 하강 에지 사이의 에지시간을 기록하는 단계, 상기 하강에지가 상기 니블전송(SENT) 프로토콜에 따른 한 프레임의 마지막 하강 에지에 해당되는지 판단하는 단계, 상기 하강 에지가 상기 마지막 하강 에지에 해당되면, 상기 한 프레임의 주기시간과 설정된 기준프레임 주기시간이 동일한지 판단하는 단계 및 상기 주기시간과 상기 기준프레임 주기시간이 동일하면, 상기 센서 데이터에 대한 상기 한 프레임이 완료된 것으로 확인하고, 상기 이전 레퍼런스를 재설정 및 디코딩하고, 상기 한 프레임에 포함된 순환중복검사 니블에 따라 CRC 에러가 존재하지 않으면, 상기 센서 데이터의 데이터 니블에 포함된 데이터를 전달하는 단계를 포함한다.In the method for synchronizing sensor data according to the present invention, after the determining step, if the falling edge is not the first falling edge, recording the elapsed time from the previous setting time of a set previous reference to the detection time of the falling edge, recording the edge time between the falling edge and the detected previous falling edge, determining whether the falling edge corresponds to the last falling edge of one frame according to the nibble transmission (SENT) protocol, the falling edge being the last If it corresponds to the falling edge, determining whether the cycle time of the one frame and the set reference frame cycle time is the same and resetting and decoding the previous reference, and if there is no CRC error according to the cyclic redundancy check nibble included in the one frame, transmitting the data included in the data nibble of the sensor data.

본 발명에 따른 센서 데이터의 동기화방법은, 상기 주기시간과 상기 기준프레임 주기시간이 동일하지 않으면, 상기 센서 데이터를 유지시키고, 이후 하강 에지를 수신 대기하는 단계를 더 포함한다.The method for synchronizing sensor data according to the present invention further includes, if the cycle time and the reference frame cycle time are not the same, maintaining the sensor data and waiting for a falling edge thereafter.

상기 데이터 전달 단계는, 상기 이전 레퍼런스를 현재시점으로 재설정하는 단계, 상기 센서 데이터에 대한 상기 한 프레임을 디코딩하는 단계, 상기 디코딩 단계 이후, 상기 한 프레임에 포함된 상기 순환중복검사 니블에 따라 상기 CRC 에러가 존재하는지 판단하는 단계 및 상기 CRC 에러가 미 존재하면, 상기 데이터 니블에 포함된 상기 데이터를 전달하는 단계를 포함한다.The data transfer step includes resetting the previous reference to a current time point, decoding the one frame for the sensor data, and after the decoding step, the CRC according to the cyclic redundancy check nibble included in the one frame determining whether an error exists and, if the CRC error does not exist, transmitting the data included in the data nibble.

본 발명에 따른 센서 데이터의 동기화방법은, 상기 CRC 에러가 존재하면, 상기 센서 데이터의 상기 한 프레임을 삭제하는 단계를 더 포함한다.The method for synchronizing sensor data according to the present invention further includes, when the CRC error exists, deleting the one frame of the sensor data.

상기 주기시간은, 센서 데이터의 상기 동기화/조정 니블, 상태 및 직렬 통신(Status and Serial Communication) 니블, 데이터(Data) 니블, 순환중복검사(Cyclic redundancy check) 니블, 및 옵션정지(Pause optional) 니블을 포함하는 상기 한 프레임의 전체길이이다.The cycle time is the synchronization/adjustment nibble of sensor data, a Status and Serial Communication nibble, a Data nibble, a Cyclic redundancy check nibble, and a Pause optional nibble. It is the total length of the one frame including

본 발명에 따른 센서 데이터의 동기화방법은, 센서로부터 송신된 센서 데이터 수신 시, 센서 데이터에 포함된 노이즈에 의해 에러가 발생되면 재동기화를 실시할 수 있으며, 센서로부터 이후 송신된 센서 데이터에 대한 밀림 현상을 방지할 수 있는 이점이 있다.In the method for synchronizing sensor data according to the present invention, when an error occurs due to noise included in sensor data when receiving sensor data transmitted from a sensor, resynchronization can be performed, and the sensor data transmitted later from the sensor is delayed There is an advantage in that the phenomenon can be prevented.

도 1은 본 발명에 따른 센서 데이터의 동기화방법을 나타낸 순서도이다.1 is a flowchart illustrating a method for synchronizing sensor data according to the present invention.

본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있으며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하고, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다. 명세서 전체에 걸쳐 동일 참조 부호는 동일 구성 요소를 지칭한다.Advantages and features of the present invention and methods of achieving them will become apparent with reference to the embodiments described below in detail in conjunction with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, but may be implemented in various different forms, and only these embodiments allow the disclosure of the present invention to be complete, and common knowledge in the art to which the present invention pertains It is provided to fully inform those who have the scope of the invention, and the present invention is only defined by the scope of the claims. Like reference numerals refer to like elements throughout.

다른 정의가 없다면, 본 명세서에서 사용되는 모든 용어(기술 및 과학적 용어를 포함)는 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 공통적으로 이해될 수 있는 의미로 사용될 수 있을 것이다. 또 일반적으로 사용되는 사전에 정의되어 있는 용어들은 명백하게 특별히 정의되어 있지 않은 한 이상적으로 또는 과도하게 해석되지 않는다.Unless otherwise defined, all terms (including technical and scientific terms) used herein may be used with the meaning commonly understood by those of ordinary skill in the art to which the present invention belongs. In addition, terms defined in a commonly used dictionary are not to be interpreted ideally or excessively unless clearly specifically defined.

이하에서는 도면을 참조하여 실시예를 보다 상세하게 설명한다.Hereinafter, an embodiment will be described in more detail with reference to the drawings.

도 1은 본 발명에 따른 센서 데이터의 동기화방법을 나타낸 순서도이다.1 is a flowchart illustrating a method for synchronizing sensor data according to the present invention.

도 1은 센서 데이터를 송신하는 센서와 상기 센서 데이터를 수신하여 데이터를 수행 및 전달하는 제어모듈의 동작을 나타낸다.1 shows operations of a sensor that transmits sensor data and a control module that receives the sensor data and performs and transmits data.

도 1을 참조하면, 제어모듈은 상기 센서가 수집한 데이터를 단일에지 니블전송(SENT) 프로토콜에 따라 송신한 센서 데이터를 수신한다(S110).Referring to FIG. 1 , the control module receives sensor data transmitted by the sensor according to the single-edge nibble transmission (SENT) protocol (S110).

여기서, 상기 센서는 전원이 투입되면 특별한 요청 없이 상기 제어모듈로 수집한 센서 데이터를 전송한다. Here, when power is turned on, the sensor transmits the collected sensor data to the control module without a special request.

SENT 프로토콜에 대하여 설명하면, 다음과 같다.The SENT protocol will be described as follows.

SENT 메시지는 진보된 PWM으로 고려할 수 있다. SENT messages can be considered as advanced PWM.

SENT 메시지, 즉 센서 데이터는 duty cycle이 아닌 시간 부호화된 펄스로 구성되며, 하나의 센서 데이터는 동기화/조정 니블, 상태 및 직렬 통신(Status and Serial Communication) 니블, 6개의 데이터(Data) 니블, 순환중복검사(Cyclic redundancy check) 니블 및 옵션정지(Pause optional) 니블로 구성되며, 옵션정지 니블은 선택적으로 구성될 수 있다.SENT messages, i.e. sensor data, consist of time-encoded pulses rather than duty cycles, one sensor data containing a synchronization/adjustment nibble, a status and serial communication nibble, six data nibbles, a cycle It consists of a cyclic redundancy check nibble and an optional pause nibble, and the optional pause nibble can be configured selectively.

SENT 메시지의 모든 펄스는 4 클럭 이상 low 값을 유지하고 나머지 클럭은 high로 유지하도록 정의하며, 클럭 주기는 3us에서 10us의 값을 갖는다.All pulses of the SENT message are defined to maintain a low value for more than 4 clocks and to keep the remaining clocks high, and the clock cycle has a value from 3us to 10us.

동기화/조정 니블은 56 클럭으로 정의되어 있으며, 센서에 내장된 클럭의 변화를 보정하기 위한 니블 펄스의 실제 주기 측정을 위해 사용한다. 니블 펄스의 최소 주기는 12 클럭이며 최대 주기는 27 클럭이다. The synchronization/adjustment nibble is defined as 56 clocks and is used to measure the actual period of the nibble pulse to compensate for the change in the clock built into the sensor. The minimum period of the nibble pulse is 12 clocks and the maximum period is 27 clocks.

상태 및 직렬 통신 니블은 센서의 파트 번호와 같은 제조사 정보 또는 안전을 위한 진단 정보를전송하기 위해 사용한다. 또한 센서와 ECU의 보다 많은 정보의 송수신을 위해 상태 및 직렬 통신 니블의 특정 비트에 직렬 메시지의 전송에도 활용된다.Status and serial communication nibbles are used to transmit manufacturer information such as the sensor's part number or diagnostic information for safety. It is also used to transmit serial messages to specific bits of status and serial communication nibble for transmission and reception of more information between sensors and ECUs.

6개의 데이터 니블 즉, 24비트 데이터는 2 포지션, 포지션과 스피드, 압력과 온도 등과 같이 2개의 12비트 데이터 전송을 위해 사용한다. Six data nibbles, or 24-bit data, are used to transmit two 12-bit data, such as two positions, position and speed, pressure and temperature, etc.

상태 및 직렬 통신 니블은 CRC 계산에 포함 하지 않는다. State and serial communication nibbles are not included in the CRC calculation.

옵션정지 니블은 센서에 따라 선택적으로 적용 가능하며, SENT 메시지의 한 프레임의 시간을 일정하게 유지하기 위해 사용한다. The optional stop nibble can be selectively applied depending on the sensor and is used to keep the time of one frame of the SENT message constant.

수신기는 수신 신호의 하강 에지사이의 시간이 calibration 펄스의 ±20%인 경우 새로운 메시지로 인식한다. The receiver recognizes a new message when the time between the falling edges of the received signal is ±20% of the calibration pulse.

Calibration 펄스를 이용한 니블 펄스의 주기 보정은 다음과 같이 수행한다. 실제 측정된 펄스 주기와 규정된 주기 (56 클럭)의 비 RCal을 계산한다. 측정된 니블 펄스의 주기를 등가의 명목상 주기로 보정하기 위해 RCal로 나눈다. 보정된 주기에서 12 클럭의 최소 주기를 빼고 규정된 클럭 주기로 나눈 후 반올림하여 4비트 데이터를 얻는다.Period correction of nibble pulse using calibration pulse is performed as follows. Calculate the ratio RCal between the actual measured pulse period and the specified period (56 clocks). Divide by RCal to correct the period of the measured nibble pulse to the equivalent nominal period. Subtract the minimum period of 12 clocks from the corrected period, divide by the specified clock period, and round to obtain 4-bit data.

제어모듈은 상기 센서 데이터에서 하강 에지(falling edge)를 검출하고(S120), 상기 하강 에지가 동기화/조정 니블에 해당되는 최초 하강 에지인지 판단한다(S130).The control module detects a falling edge from the sensor data (S120), and determines whether the falling edge is the first falling edge corresponding to the synchronization/adjustment nibble (S130).

이후, 제어모듈은 상기 하강 에지가 상기 최초 하강 에지이면, 상기 하강 에지에 데이터 동기화를 위한 레퍼런스(reference)를 설정하고, 상기 레퍼런스의 설정시점을 설정된 타이머를 이용하여 기록한다(S140).Thereafter, when the falling edge is the first falling edge, the control module sets a reference for data synchronization on the falling edge, and records the setting time of the reference using a set timer (S140).

(S130) 단계 이후, 제어모듈은 상기 하강 에지가 상기 최초 하강 에지가 아니면, 설정된 이전 레퍼펀스의 이전설정시점부터 상기 하강 에지의 검출시점까지의 경과시간을 기록한다(S150).After step (S130), if the falling edge is not the first falling edge, the control module records the elapsed time from the previous setting time of the previous reference to the detection time of the falling edge (S150).

이후, 제어모듈은 상기 하강 에지 및 검출된 이전 하강 에지 사이의 에지시간을 기록한다(S160).Then, the control module records the edge time between the falling edge and the detected previous falling edge (S160).

제어모듈은 상기 경과시간 및 상기 에지시간을 기반으로, 상기 하강 에지가 상기 니블전송(SENT) 프로토콜에 따른 한 프레임의 마지막 하강 에지, 즉 수신된 니블의 카운트가 한 프레임의 마지막 번째 니블에 해당되는지 판단한다(S170).Based on the elapsed time and the edge time, the control module determines whether the falling edge corresponds to the last falling edge of one frame according to the nibble transmission (SENT) protocol, that is, the count of received nibbles corresponds to the last nibble of one frame. It is determined (S170).

제어모듈은 상기 하강 에지가 상기 옵션정지 니블에 해당되지 않으면 센서 데이터에 대한 수신된 니블의 카운트를 증가시킨다(S180).If the falling edge does not correspond to the optional stop nibble, the control module increments the count of the received nibble for the sensor data (S180).

(S180) 단계 이후, 제어모듈은 상기 센서 데이터의 한 프레임에 대한 주기시간이 설정된 기준프레임 주기시간과 동일한지 판단한다(S190).After step (S180), the control module determines whether the cycle time for one frame of the sensor data is the same as the set reference frame cycle time (S190).

여기서, 제어모듈은 상기 주기시간이 상기 기준프레임 주기시간과 동일하지 않으면, 수신된 센서 데이터를 유지 및 대기한다(S200).Here, if the cycle time is not the same as the reference frame cycle time, the control module maintains and waits for the received sensor data (S200).

(S190) 단계 이후, 제어모듈은 상기 주기시간이 상기 기준프레임 주기시간과 동일하면, 상기 센서 데이터의 한 프레임에 대한 수신이 완료된 것으로 확인한다(S210).After step (S190), if the cycle time is the same as the cycle time of the reference frame, the control module confirms that the reception of one frame of the sensor data is completed (S210).

제어모듈은 (S210) 단계 이후, 상기 이전 레퍼런스의 설정시점을 현재시점으로 재설정하고 동기화한다(S220). After the step (S210), the control module resets and synchronizes the setting time of the previous reference to the current time (S220).

제어모듈은 수신된 센서 데이터의 순환중복검사 니블에 따라 CRC 에러가 존재하는지 판단한다(S230).The control module determines whether a CRC error exists according to the cyclic redundancy check nibble of the received sensor data (S230).

제어모듈은 상기 CRC 에러가 존재하면, 다음 센서 데이터의 한 프레임이 수신 완료되기까지 대기 후 데이터를 삭제한다(S240).If the CRC error exists, the control module waits until one frame of the next sensor data is received and then deletes the data (S240).

(S230) 단계 이후, 제어모듈은 상기 CRC 에러가 미 존재하면, 센서 데이터의 6개 데이터 니블에 포함된 데이터를 전달 및 처리한다(S250).After the step (S230), if the CRC error does not exist, the control module transmits and processes the data included in the six data nibbles of the sensor data (S250).

이상에서 기재된 "포함하다", "구성하다" 또는 "가지다" 등의 용어는, 특별히 반대되는 기재가 없는 한, 해당 구성 요소가 내재될 수 있음을 의미하는 것이므로, 다른 구성 요소를 제외하는 것이 아니라 다른 구성 요소를 더 포함할 수 있는 것으로 해석되어야 한다.Terms such as "include", "compose" or "have" described above mean that the corresponding component may be embedded unless otherwise stated, so it does not exclude other components. It should be construed as being able to further include other components.

이상에서는 바람직한 실시예에 대하여 도시하고 설명하였지만, 본 발명은 상술한 특정의 실시예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진자에 의해 다양한 변형실시가 가능한 것은 물론이고, 이러한 변형실시들은 본 발명의 기술적 사상이나 전망으로부터 개별적으로 이해되어져서는 안될 것이다.Although preferred embodiments have been illustrated and described above, the present invention is not limited to the specific embodiments described above, and common knowledge in the technical field to which the present invention pertains without departing from the gist of the present invention as claimed in the claims is not limited thereto. Various modifications are possible by the possessor, of course, and these modifications should not be individually understood from the technical spirit or perspective of the present invention.

Claims (7)

1) 단일에지 니블전송(SENT) 프로토콜에 따라 센서가 송신한 센서 데이터를 수신하는 단계;
2) 상기 센서 데이터에서 검출된 하강 에지(falling edge)가 최초 하강 에지인지 판단하는 단계;
3) 상기 하강 에지가 최초 하강 에지이면, 상기 하강 에지에 데이터 동기화를 위한 레퍼런스(reference)를 설정하고, 상기 레퍼런스의 설정시점을 기록하는 단계;
4) 상기 하강 에지가 최초 하강 에지가 아니면, 이전에 설정된 레퍼런스의 이전 설정시점부터 상기 하강 에지의 검출시점까지의 경과시간을 기록하는 단계;
5) 상기 하강 에지 및 검출된 이전 하강 에지 사이의 에지시간을 기록하는 단계;
6) 상기 하강 에지가 상기 니블전송(SENT) 프로토콜에 따른 한 프레임의 마지막 하강 에지에 해당되는지 판단하여, 해당되지 않으면 센서 데이터에 대한 수신된 니블의 카운트를 증가시키는 단계;
7) 단계 6)에서 상기 하강 에지가 상기 니블전송(SENT) 프로토콜에 따른 한 프레임의 마지막 하강 에지에 해당되면, 상기 센서 데이터의 한 프레임에 대한 주기시간이 기준프레임 주기시간과 동일한지 판단하여, 동일하지 않으면, 수신된 센서 데이터를 유지하는 단계; 및
8) 단계 7)에서 상기 주기시간이 상기 기준프레임 주기시간과 동일하면, 이전 레퍼런스의 설정시점을 현재시점으로 재설정하고 동기화하는 단계를 포함하는 센서 데이터의 동기화방법.
1) receiving sensor data transmitted by a sensor according to a single-edge nibble transmission (SENT) protocol;
2) determining whether a falling edge detected from the sensor data is a first falling edge;
3) if the falling edge is the first falling edge, setting a reference for data synchronization on the falling edge and recording the reference setting time;
4) if the falling edge is not the first falling edge, recording an elapsed time from a previous setting time of a previously set reference to a detection time of the falling edge;
5) recording the edge time between the falling edge and the detected previous falling edge;
6) determining whether the falling edge corresponds to the last falling edge of one frame according to the nibble transmission (SENT) protocol, and if not, increasing the count of received nibbles for sensor data;
7) In step 6), if the falling edge corresponds to the last falling edge of one frame according to the nibble transmission (SENT) protocol, it is determined whether the period time for one frame of the sensor data is the same as the period time of the reference frame, if not the same, maintaining the received sensor data; and
8) If the cycle time is the same as the cycle time of the reference frame in step 7), resetting and synchronizing the set time of the previous reference to the current time.
제 1 항에 있어서,
상기 센서 데이터는,
동기화/조정 니블, 상태 및 직렬 통신(Status and Serial Communication) 니블, 데이터(Data) 니블, 순환중복검사(Cyclic redundancy check) 니블, 및 옵션정지(Pause optional) 니블 중 적어도 어느 하나인 센서 데이터의 동기화방법.
The method of claim 1,
The sensor data is
Synchronization of sensor data that is at least one of a synchronization/adjustment nibble, a status and serial communication nibble, a data nibble, a cyclic redundancy check nibble, and a pause optional nibble. method.
제 1 항에 있어서, 상기 단계 8) 이후에,
수신된 센서 데이터의 순환중복검사 니블에 따라 CRC 에러가 존재하는지 판단하는 단계;
상기 CRC 에러가 존재하면, 다음 센서 데이터의 한 프레임이 수신 완료되기까지 대기 후 데이터를 삭제 하는 단계; 및
상기 CRC 에러가 미 존재하면, 센서 데이터의 6개 데이터 니블에 포함된 데이터를 전달 및 처리 하는 단계를 추가로 포함하는 센서 데이터의 동기화방법.
The method according to claim 1, wherein after step 8),
determining whether a CRC error exists according to the cyclic redundancy check nibble of the received sensor data;
if the CRC error exists, deleting data after waiting until one frame of next sensor data is received; and
If the CRC error does not exist, the method of synchronizing sensor data further comprising the step of transmitting and processing the data included in the six data nibbles of the sensor data.
삭제delete 삭제delete 삭제delete 제 1 항에 있어서, 상기 주기시간은,
상기 센서 데이터의 동기화/조정 니블, 상태 및 직렬 통신(Status and Serial Communication) 니블, 데이터(Data) 니블, 순환중복검사(Cyclic redundancy check) 니블, 및 옵션정지(Pause optional) 니블을 포함하는 상기 한 프레임의 전체길이인 센서 데이터의 동기화방법.
According to claim 1, wherein the cycle time,
Synchronization/adjustment nibble of the sensor data, Status and Serial Communication nibble, Data nibble, Cyclic redundancy check nibble, and Pause optional nibble. A method of synchronizing sensor data that is the entire length of a frame.
KR1020140182928A 2014-12-18 2014-12-18 Synchronization method of the sensor data KR102288948B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020140182928A KR102288948B1 (en) 2014-12-18 2014-12-18 Synchronization method of the sensor data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020140182928A KR102288948B1 (en) 2014-12-18 2014-12-18 Synchronization method of the sensor data

Publications (2)

Publication Number Publication Date
KR20160074106A KR20160074106A (en) 2016-06-28
KR102288948B1 true KR102288948B1 (en) 2021-08-12

Family

ID=56366101

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020140182928A KR102288948B1 (en) 2014-12-18 2014-12-18 Synchronization method of the sensor data

Country Status (1)

Country Link
KR (1) KR102288948B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114323102B (en) * 2021-12-17 2024-01-19 中国重汽集团济南动力有限公司 SENT interface sensor fault diagnosis method, device and system
KR102540637B1 (en) 2022-10-27 2023-06-13 주식회사 모빌테크 Method for synchronize multiple sensor, and computer program recorded on record-medium for executing method therefor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100832462B1 (en) 2007-11-30 2008-05-26 (주)마이크로텍시스템 Apparatus and method of processing data in infrared ray communication system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0129263B1 (en) * 1994-12-07 1998-04-08 구자홍 Dual-speed communication protocole handling system
KR100229967B1 (en) * 1997-09-18 1999-11-15 윤종용 A majority voting detection method using undersampling
KR20060009516A (en) * 2004-07-26 2006-02-01 주식회사 대우일렉트로닉스 High speed infrared rays data transmission method
US8577634B2 (en) * 2010-12-15 2013-11-05 Allegro Microsystems, Llc Systems and methods for synchronizing sensor data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100832462B1 (en) 2007-11-30 2008-05-26 (주)마이크로텍시스템 Apparatus and method of processing data in infrared ray communication system

Also Published As

Publication number Publication date
KR20160074106A (en) 2016-06-28

Similar Documents

Publication Publication Date Title
US5392005A (en) Field calibration of a digitally compensated crystal oscillator over a temperature range
US10491530B2 (en) Communication system and communication device
JP2007060400A (en) Method and system for controlling communication timing
CN109951407B (en) Edge-based communication with multiple slaves using a timer
KR102288948B1 (en) Synchronization method of the sensor data
KR101519719B1 (en) Message process method of gateway
US7583654B2 (en) Sub-frame synchronized multiplexing
US10123099B2 (en) Method and device for synchronizing sensors
US20140036987A1 (en) Decoder for decoding pwm code and communications system
KR20030084984A (en) Method and device for synchronizing at least one node of a bus system and a corresponding bus system
US9323605B2 (en) Measured value transmitting device
JP2019115036A5 (en)
KR102253167B1 (en) Vehicle and method of synchronizing sensor data
US9509444B2 (en) Efficient checksum communication between devices
JP2014103552A (en) Communication apparatus
US20170090464A1 (en) Numerical control system having synchronous control function between units
JP2015111916A (en) Method and device for low power consumption when operated as bluetooth low energy device
JP6115478B2 (en) Communications system
US20020095612A1 (en) Method and system for synchronizing users of a communications link
US8848848B2 (en) Transmission timing adjustment in radio systems
JP2018106513A (en) Detection device
KR101988723B1 (en) Mcu operation monitoring system and controlling method thereof
JP6379925B2 (en) Communication waveform generator
JP2007274432A (en) Photoelectric sensor, and system thereof
JP6205930B2 (en) Receiving apparatus and communication system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right