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