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