Google은 흑인 공동체를 위한 인종적 평등을 추구하기 위해 노력하고 있습니다. 자세히 알아보기
컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.

잼 감지

이 모듈에는 신호 잡음 감지 기능이 포함되어 있습니다.

요약

이 모듈의 기능은 Jam 감지 기능 (OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE)이 사용 설정된 경우 사용할 수 있습니다.

Typedef

otJamDetectionCallback)(bool aJamState, void *aContext) typedef
void(*
이 함수 포인터는 신호 잼 감지가 사용 설정되어 있고 잼이 감지되면 호출됩니다.

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)

이 함수 포인터는 신호 잼 감지가 사용 설정되어 있고 잼이 감지되면 호출됩니다.

세부정보
매개변수
[in] aJamState
현재 잼 상태 (true Jam이 감지되면 false 그렇지 않은 경우)
[in] aContext
애플리케이션별 컨텍스트를 가리키는 포인터입니다.

Functions

otJamDetectionGetBusyPeriod

uint8_t otJamDetectionGetBusyPeriod(
  otInstance *aInstance
)

Jam 감지 사용 시간 (초) 가져오기

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
반환
Jam 감지 사용 중 기간

otJamDetectionGetHistoryBitmap

uint64_t otJamDetectionGetHistoryBitmap(
  otInstance *aInstance
)

현재 기록 비트맵을 가져옵니다.

이 값은 모니터링/디버깅 목적으로 현재 재밍 감지 모듈의 상태에 관한 정보를 제공합니다. 각 비트가 최근 간격의 비트 0으로 시작하여 가장 오래된 간격의 경우 비트 63 (63초 앞)에 해당하는 64비트 값을 반환합니다. 비트는 상응하는 1초 간격 동안 전파 방해 감지 모듈이 높은 신호 수준을 관찰하거나 감지하면 1로 설정됩니다.

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
반환
현재 기록 비트맵입니다.

otJamDetectionGetRssiThreshold

int8_t otJamDetectionGetRssiThreshold(
  otInstance *aInstance
)

Jam Detection RSSI 임계값 (dBm)을 가져옵니다.

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
반환
Jam 감지 RSSI 임계값

otJamDetectionGetState

bool otJamDetectionGetState(
  otInstance *aInstance
)

Jam 감지 상태 가져오기

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
반환
Jam 감지 상태(true 잼이 감지됨, `false' 그렇지 않음).

otJamDetectionGetWindow

uint8_t otJamDetectionGetWindow(
  otInstance *aInstance
)

Jam 감지 감지 창 (초 단위)을 가져옵니다.

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
반환
Jam 감지 창

otJamDetectionIsEnabled

bool otJamDetectionIsEnabled(
  otInstance *aInstance
)

Jam 감지 상태 가져오기 (사용/사용 중지됨)

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
반환
Jam 감지 상태 (사용 설정된 경우 true, 그렇지 않은 경우 false)

otJamDetectionSetBusyPeriod

otError otJamDetectionSetBusyPeriod(
  otInstance *aInstance,
  uint8_t aBusyPeriod
)

Jam 감지 사용 시간 (초) 설정

감지를 트리거하기 위해 RSSI가 기준을 초과해야 하는 감지 기간 내 집계 시간(초)입니다.

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
[in] aBusyPeriod
Jam 감지 사용 중 기간 (0이 아니어야 하고 Jam 감지 기간보다 작거나 같아야 함)
반환 값
OT_ERROR_NONE
창을 설정했습니다.
OT_ERROR_INVALID_ARGS
입력한 값이 올바른 범위를 벗어났습니다.

otJamDetectionSetRssiThreshold

otError otJamDetectionSetRssiThreshold(
  otInstance *aInstance,
  int8_t aRssiThreshold
)

Jam 감지 RSSI 임계값 (dBm)을 설정합니다.

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
[in] aRssiThreshold
RSSI 임계값.
반환 값
OT_ERROR_NONE
기준을 설정했습니다.

otJamDetectionSetWindow

otError otJamDetectionSetWindow(
  otInstance *aInstance,
  uint8_t aWindow
)

Jam 감지 감지 창 (초 단위)을 설정합니다.

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
[in] aWindow
Jam 감지 창 (유효 범위: 1~63)
반환 값
OT_ERROR_NONE
창을 설정했습니다.
OT_ERROR_INVALID_ARGS
입력한 입력 매개변수가 올바른 범위 (1~63)가 아닙니다.

otJamDetectionStart

otError otJamDetectionStart(
  otInstance *aInstance,
  otJamDetectionCallback aCallback,
  void *aContext
)

재밍 감지를 시작합니다.

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
[in] aCallback
재밍 상태 변경을 알리기 위해 호출하는 함수에 대한 포인터입니다.
[in] aContext
애플리케이션별 컨텍스트를 가리키는 포인터입니다.
반환 값
OT_ERROR_NONE
재밍 감지를 시작했습니다.
OT_ERROR_ALREADY
Jam 감지가 이전에 시작되었습니다.

otJamDetectionStop

otError otJamDetectionStop(
  otInstance *aInstance
)

재밍 감지를 중지합니다.

세부정보
매개변수
[in] aInstance
OpenThread 인스턴스에 대한 포인터입니다.
반환 값
OT_ERROR_NONE
재밍 감지를 중지했습니다.
OT_ERROR_ALREADY
Jam 감지가 이미 중지되었습니다.

리소스

OpenThread API 참조 주제는 GitHub에서 제공되는 소스 코드에서 가져옵니다. 자세한 정보를 보거나 문서 작성에 참여하려면 리소스를 참고하세요.