잼 감지
이 모듈에는 신호 잡음 감지 기능이 포함되어 있습니다.
요약
이 모듈의 기능은 Jam 감지 기능 (OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE
)이 사용 설정된 경우 사용할 수 있습니다.
Typedef |
|
---|---|
otJamDetectionCallback)(bool aJamState, void *aContext)
|
typedefvoid(*
이 함수 포인터는 신호 잼 감지가 사용 설정되어 있고 잼이 감지되면 호출됩니다. |
Functions |
|
---|---|
otJamDetectionGetBusyPeriod(otInstance *aInstance)
|
uint8_t
Jam 감지 사용 시간 (초) 가져오기
|
otJamDetectionGetHistoryBitmap(otInstance *aInstance)
|
uint64_t
현재 기록 비트맵을 가져옵니다.
|
otJamDetectionGetRssiThreshold(otInstance *aInstance)
|
int8_t
Jam Detection RSSI 임계값 (dBm)을 가져옵니다.
|
otJamDetectionGetState(otInstance *aInstance)
|
bool
Jam 감지 상태 가져오기
|
otJamDetectionGetWindow(otInstance *aInstance)
|
uint8_t
Jam 감지 감지 창 (초 단위)을 가져옵니다.
|
otJamDetectionIsEnabled(otInstance *aInstance)
|
bool
Jam 감지 상태 가져오기 (사용/사용 중지됨)
|
otJamDetectionSetBusyPeriod(otInstance *aInstance, uint8_t aBusyPeriod)
|
Jam 감지 사용 시간 (초) 설정
|
otJamDetectionSetRssiThreshold(otInstance *aInstance, int8_t aRssiThreshold)
|
Jam 감지 RSSI 임계값 (dBm)을 설정합니다.
|
otJamDetectionSetWindow(otInstance *aInstance, uint8_t aWindow)
|
Jam 감지 감지 창 (초 단위)을 설정합니다.
|
otJamDetectionStart(otInstance *aInstance, otJamDetectionCallback aCallback, void *aContext)
|
재밍 감지를 시작합니다.
|
otJamDetectionStop(otInstance *aInstance)
|
재밍 감지를 중지합니다.
|
Typedef
otJamDetectionCallback
void(* otJamDetectionCallback)(bool aJamState, void *aContext)
이 함수 포인터는 신호 잼 감지가 사용 설정되어 있고 잼이 감지되면 호출됩니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
Functions
otJamDetectionGetBusyPeriod
uint8_t otJamDetectionGetBusyPeriod( otInstance *aInstance )
Jam 감지 사용 시간 (초) 가져오기
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
Jam 감지 사용 중 기간
|
otJamDetectionGetHistoryBitmap
uint64_t otJamDetectionGetHistoryBitmap( otInstance *aInstance )
현재 기록 비트맵을 가져옵니다.
이 값은 모니터링/디버깅 목적으로 현재 재밍 감지 모듈의 상태에 관한 정보를 제공합니다. 각 비트가 최근 간격의 비트 0으로 시작하여 가장 오래된 간격의 경우 비트 63 (63초 앞)에 해당하는 64비트 값을 반환합니다. 비트는 상응하는 1초 간격 동안 전파 방해 감지 모듈이 높은 신호 수준을 관찰하거나 감지하면 1로 설정됩니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
현재 기록 비트맵입니다.
|
otJamDetectionGetRssiThreshold
int8_t otJamDetectionGetRssiThreshold( otInstance *aInstance )
Jam Detection RSSI 임계값 (dBm)을 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
Jam 감지 RSSI 임계값
|
otJamDetectionGetState
bool otJamDetectionGetState( otInstance *aInstance )
Jam 감지 상태 가져오기
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
Jam 감지 상태(
true 잼이 감지됨, `false' 그렇지 않음). |
otJamDetectionGetWindow
uint8_t otJamDetectionGetWindow( otInstance *aInstance )
Jam 감지 감지 창 (초 단위)을 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
Jam 감지 창
|
otJamDetectionIsEnabled
bool otJamDetectionIsEnabled( otInstance *aInstance )
Jam 감지 상태 가져오기 (사용/사용 중지됨)
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
Jam 감지 상태 (사용 설정된 경우 true, 그렇지 않은 경우 false)
|
otJamDetectionSetBusyPeriod
otError otJamDetectionSetBusyPeriod( otInstance *aInstance, uint8_t aBusyPeriod )
Jam 감지 사용 시간 (초) 설정
감지를 트리거하기 위해 RSSI가 기준을 초과해야 하는 감지 기간 내 집계 시간(초)입니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otJamDetectionSetRssiThreshold
otError otJamDetectionSetRssiThreshold( otInstance *aInstance, int8_t aRssiThreshold )
Jam 감지 RSSI 임계값 (dBm)을 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otJamDetectionSetWindow
otError otJamDetectionSetWindow( otInstance *aInstance, uint8_t aWindow )
Jam 감지 감지 창 (초 단위)을 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otJamDetectionStart
otError otJamDetectionStart( otInstance *aInstance, otJamDetectionCallback aCallback, void *aContext )
재밍 감지를 시작합니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otJamDetectionStop
otError otJamDetectionStop( otInstance *aInstance )
재밍 감지를 중지합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
리소스
OpenThread API 참조 주제는 GitHub에서 제공되는 소스 코드에서 가져옵니다. 자세한 정보를 보거나 문서 작성에 참여하려면 리소스를 참고하세요.