> For the complete documentation index, see [llms.txt](https://freegrow-1.gitbook.io/product-docs-kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://freegrow-1.gitbook.io/product-docs-kr/creatorkit_q1/tag/stationary.md).

# Stationary 기능

### 이 글에서는

UWB 태그에 적용 가능한 **Stationary 기능**에 대해 설명합니다.\
이 기능은 태그가 움직이지 않을 때 전송 주기를 줄여 **전력 소모를 줄이는 저전력 동작**을 가능하게 합니다.

Stationary는 가속도 센서를 기반으로 작동하며, 태그가 움직이는지 여부를 판단해 동작을 다르게 설정할 수 있습니다.

***

### Stationary 기능이란?

Stationary 기능은 UWB 태그가 **정지 상태와 이동 상태를 자동으로 판단**하여, 각각 다른 전송 빈도를 적용하는 기능입니다.\
이를 통해 **불필요한 전송을 줄이고 배터리 소모를 최소화**할 수 있습니다.

* 동작 감지는 **내장 가속도 센서**를 사용합니다.
* 감지된 정지 상태에서는 전송 빈도를 줄여 **저전력 모드(low power mode)**&#xB85C; 전환합니다.

***

### Stationary 기능 활성화

Stationary 기능을 켜기 위해서는 `acts` 명령어를 사용합니다.

```bash
acts <meas_mode> <stnry_en> <low_pwr> <loc_en> <enc> <leds> <ble> <uwb> <fw_upd>
```

예시:

```bash
acts 0 1 1 1 0 0 1 2 0
```

* Stationary: On (`stnry_en = 1`)
* Low Power: On (`low_pwr = 1`)

```bash
acts 0 1 0 1 0 0 1 2 0
```

* Stationary: On
* Low Power: Off

> **주의:** `acts` 명령어 적용 후에는 반드시 `reset` 명령어를 실행해야 설정이 반영됩니다.

***

### 설정 결과 확인

설정이 제대로 적용되었는지 확인하려면 `si` 명령어를 사용합니다.

예시:

```bash
dwm> si
[000000.970 INF] cfg: sync=0 fwup=0 ble=1 leds=0 le=1 lp=1 stat_det=1 (sens=1) mode=0 upd_rate_norm=1 upd_rate_stat=100 label=GR10D3
```

* `stat_det=1` → Stationary 기능 활성화됨
* `(sens=1)` → 감도 수준 설정 확인 가능 (0\~2)

또는 다음 항목에서도 확인 가능:

```bash
[000000.960 INF] mode: tn (act,twr,lp,le)  ← np가 lp로 바뀌었는지 확인
```

***

### 예시 시나리오

```javascript
dwm> si
[000006.880 INF] sys: fw2 fw_ver=x01030001 cfg_ver=x00010700
[000006.880 INF] uwb0: panid=x0000 addr=xDECA8A367CF010D3
[000006.890 INF] mode: tn (act,twr,np,le)
[000006.890 INF] uwbmac: disconnected
[000006.890 INF] uwbmac: bh disconnected
[000006.900 INF] cfg: sync=0 fwup=0 ble=1 leds=0 le=1 lp=0 stat_det=0 mode=0 upd_rate_norm=1 upd_rate_stat=100 label=GR10D3
[000006.910 INF] enc: off
[000006.910 INF] ble: addr=F5:FE:CA:19:0A:C0
dwm> acts 0 1 1 1 0 0 1 2 0
acts: ok
dwm> reset


 DWM1001 TWR Real Time Location System

 Copyright :  2016-2019 LEAPS and Decawave
 License   :  Please visit https://decawave.com/dwm1001_license
 Compiled  :  Mar 27 2019 03:37:38

 Help      :  ? or help

dwm> si
[000000.950 INF] sys: fw2 fw_ver=x01030001 cfg_ver=x00010700
[000000.950 INF] uwb0: panid=x0000 addr=xDECA8A367CF010D3
[000000.960 INF] mode: tn (act,twr,lp,le)
[000000.960 INF] uwbmac: disconnected
[000000.960 INF] uwbmac: bh disconnected
[000000.970 INF] cfg: sync=0 fwup=0 ble=1 leds=0 le=1 lp=1 stat_det=1 (sens=1) mode=0 upd_rate_norm=1 upd_rate_stat=100 label=GR10D3
[000000.980 INF] enc: off
[000000.980 INF] ble: addr=F5:FE:CA:19:0A:C0
```

***

### 감도 설정 및 확인

#### 감도 설정 (`scs`)

```bash
scs <value>
```

* `0` → Low (512 mg) : 작은 움직임 무시
* `1` → Normal (2048 mg) : 기본 감도
* `2` → High (4064 mg) : 미세한 움직임도 감지

예시:

```bash
dwm> scs 2
scs: ok
```

#### 감도 확인 (`scg`)

```bash
dwm> scg
sensitivity=1
```

현재 설정된 감도 수준을 확인할 수 있습니다.

***

### 전송 주기 설정

Stationary 상태와 일반 상태에서 **서로 다른 전송 주기**를 설정할 수 있습니다.

#### 전송 주기 설정 (`aurs`)

```bash
aurs <normal> <stationary>
```

* `normal`: 움직이는 중의 주기 (단위: 100ms)
* `stationary`: 정지 중의 주기

예시:

```bash
dwm> aurs 1 100
```

* 움직일 때: 100ms (1 × 100ms)
* 정지 시: 10초 (100 × 100ms)

#### 전송 주기 확인 (`aurg`)

```bash
dwm> aurg
```

현재 설정된 주기를 확인할 수 있습니다.

***

### 요약

| 항목                | 명령어    | 설명                                    |
| ----------------- | ------ | ------------------------------------- |
| Stationary 기능 활성화 | `acts` | 측정 모드, stationary 여부, low power 설정 포함 |
| 적용 확인             | `si`   | stat\_det, sens 값 확인                  |
| 감도 설정             | `scs`  | 감도 0\~2 설정                            |
| 감도 확인             | `scg`  | 현재 감도 출력                              |
| 전송 주기 설정          | `aurs` | 움직일 때 / 정지 시 전송 주기 설정                 |
| 전송 주기 확인          | `aurg` | 설정된 주기 확인                             |

***

Stationary 기능은 실내 위치 추적 환경에서 **배터리 효율성을 극대화**하고 **불필요한 데이터 전송을 줄이기 위한 필수 설정**입니다.\
테스트 및 상용 환경 모두에서 효과적으로 적용해 보시길 권장합니다.
