|
1 | 1 | # Configurability
|
2 | 2 |
|
3 | 3 | ## Set sampling interval and logic from cloud
|
4 |
| -- Instructions on setting sampling interval and logic from the cloud. |
| 4 | + |
| 5 | +The Asset Tracker can be configured remotely through nRF Cloud's device shadow mechanism. This allows dynamic adjustment of device behavior without requiring firmware updates. |
| 6 | + |
| 7 | +### Configuration through nRF Cloud UI |
| 8 | + |
| 9 | +1. Log in to [nRF Cloud](https://nrfcloud.com/) |
| 10 | +2. Navigate to "Devices" and select your device |
| 11 | +3. Click on "View Config" in the top bar |
| 12 | +4. Select "Edit Configuration" |
| 13 | +5. Enter the desired configuration: |
| 14 | +```json |
| 15 | +{ |
| 16 | + "update_interval": 60 |
| 17 | +} |
| 18 | +``` |
| 19 | +6. Click "Commit" to apply the changes |
| 20 | + |
| 21 | +The device will receive the new configuration through its shadow and adjust its update interval accordingly. |
| 22 | + |
| 23 | + |
| 24 | +### Configuration Flow |
| 25 | +1. **Initial Setup** |
| 26 | + - Device starts with default interval from `CONFIG_APP_MODULE_TRIGGER_TIMEOUT_SECONDS` |
| 27 | + - Upon cloud connection, device automatically requests shadow configuration |
| 28 | + |
| 29 | +2. **Runtime Configuration** |
| 30 | + - Cloud module receives and processes shadow updates |
| 31 | + - Device maintains last known configuration during offline periods |
| 32 | + |
| 33 | +3. **Impact on Device Behavior** |
| 34 | +The update_interval configuration controls the frequency of: |
| 35 | + - Location updates |
| 36 | + - Sensor sampling (environmental, battery, network quality) |
| 37 | + - FOTA update checks |
| 38 | + - Shadow update polling |
5 | 39 |
|
6 | 40 | ## Set location method priorities
|
7 |
| -- Instructions on setting location method priorities. |
| 41 | + |
| 42 | +The Asset Tracker supports multiple location methods that can be prioritized based on your needs. Configuration is done through board-specific configuration files. |
| 43 | + |
| 44 | +### Available Location Methods |
| 45 | +- GNSS (GPS) |
| 46 | +- Wi-Fi positioning |
| 47 | +- Cellular positioning |
| 48 | + |
| 49 | +### Configuration Examples |
| 50 | + |
| 51 | +1. **Thingy91x Configuration** (wifi available): |
| 52 | +``` |
| 53 | +CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_WIFI=y |
| 54 | +CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_GNSS=y |
| 55 | +CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_THIRD_CELLULAR=y |
| 56 | +CONFIG_LOCATION_REQUEST_DEFAULT_WIFI_TIMEOUT=10000 |
| 57 | +``` |
| 58 | + |
| 59 | +2. **nRF9151 DK Configuration** (wifi unavailable): |
| 60 | +``` |
| 61 | +CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_GNSS=y |
| 62 | +CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_CELLULAR=y |
| 63 | +``` |
8 | 64 |
|
9 | 65 | ## Network configuration
|
10 |
| -### NB-IoT vs M1 |
11 |
| -- Explanation of NB-IoT vs M1. |
12 | 66 |
|
13 |
| -### PSM |
14 |
| -- Explanation of PSM. |
| 67 | +### NB-IoT vs LTE-M |
| 68 | +The Asset Tracker supports both LTE Cat NB1 (NB-IoT) and LTE Cat M1 (LTE-M) cellular connectivity: |
| 69 | + |
| 70 | +- **NB-IoT**: Optimized for: |
| 71 | + - Low data rate applications |
| 72 | + - Better coverage |
| 73 | + - Stationary or low-mobility devices |
| 74 | + |
| 75 | +- **LTE-M**: Better suited for: |
| 76 | + - Higher data rates |
| 77 | + - Mobile applications |
| 78 | + - Lower latency requirements |
| 79 | + |
| 80 | +#### Network Mode Selection |
| 81 | +The following network modes are available (`LTE_NETWORK_MODE`): |
| 82 | + |
| 83 | +- **Default**: Use the system mode currently set in the modem |
| 84 | +- **LTE-M**: LTE Cat M1 only |
| 85 | +- **LTE-M and GPS**: LTE Cat M1 with GPS enabled |
| 86 | +- **NB-IoT**: NB-IoT only |
| 87 | +- **NB-IoT and GPS**: NB-IoT with GPS enabled |
| 88 | +- **LTE-M and NB-IoT**: Both LTE-M and NB-IoT enabled |
| 89 | +- **LTE-M, NB-IoT and GPS**: Both LTE modes with GPS enabled |
| 90 | + |
| 91 | +#### Network Mode Preference |
| 92 | +When multiple network modes are enabled (LTE-M and NB-IoT), you can set preferences (`LTE_MODE_PREFERENCE`): |
| 93 | + |
| 94 | +- **No preference**: Automatically selected by the modem |
| 95 | +- **LTE-M**: Prioritize LTE-M over PLMN selection |
| 96 | +- **NB-IoT**: Prioritize NB-IoT over PLMN selection |
| 97 | +- **LTE-M, PLMN prioritized**: Prefer LTE-M but prioritize staying on home network |
| 98 | +- **NB-IoT, PLMN prioritized**: Prefer NB-IoT but prioritize staying on home network |
| 99 | + |
| 100 | +Example configuration in `prj.conf`: |
| 101 | +``` |
| 102 | +# Enable both LTE-M and NB-IoT with GPS |
| 103 | +CONFIG_LTE_NETWORK_MODE_LTE_M_NBIOT_GPS=y |
| 104 | +
|
| 105 | +# Prefer LTE-M while prioritizing home network |
| 106 | +CONFIG_LTE_MODE_PREFERENCE_LTE_M_PLMN_PRIO=y |
| 107 | +``` |
| 108 | + |
| 109 | +### PSM (Power Saving Mode) |
| 110 | +PSM allows the device to enter deep sleep while maintaining network registration. Configuration is done through Kconfig options: |
| 111 | + |
| 112 | +#### PSM Parameters |
| 113 | +1. **Periodic TAU (Tracking Area Update)** |
| 114 | + - Controls how often the device updates its location with the network |
| 115 | + - Configuration options: |
| 116 | + ``` |
| 117 | + # Configure TAU in seconds |
| 118 | + CONFIG_LTE_PSM_REQ_RPTAU_SECONDS=1800 # 30 minutes |
| 119 | + ``` |
| 120 | +
|
| 121 | +2. **Active Time (RAT)** |
| 122 | + - Defines how long the device stays active after a wake-up |
| 123 | + - Configuration options: |
| 124 | + ``` |
| 125 | + # Configure RAT in seconds |
| 126 | + CONFIG_LTE_PSM_REQ_RAT_SECONDS=60 # 1 minute |
| 127 | + ``` |
| 128 | +
|
| 129 | +Key aspects: |
| 130 | +- Device negotiates PSM parameters with the network |
| 131 | +- Helps achieve longer battery life |
| 132 | +- Device remains registered but unreachable during sleep |
| 133 | +- Wakes up periodically based on TAU setting |
| 134 | +- Stays active for the duration specified by RAT |
| 135 | +
|
| 136 | +
|
| 137 | +### APN (Access Point Name) |
| 138 | +The Access Point Name (APN) is a network identifier used by the device to connect to the cellular network's packet data network. Configuration options: |
| 139 | +
|
| 140 | +- **Default APN**: Most carriers automatically configure the correct APN |
| 141 | +- **Manual Configuration**: If needed, APN can be configured through Kconfig: |
| 142 | + ``` |
| 143 | + CONFIG_PDN_DEFAULT_APN="Access point name" |
| 144 | + ``` |
| 145 | +
|
| 146 | +Common scenarios for APN configuration: |
| 147 | +- Using a custom/private APN |
| 148 | +- Connecting to specific network services |
| 149 | +- Working with MVNOs (Mobile Virtual Network Operators) |
15 | 150 |
|
16 |
| -### APN |
17 |
| -- Explanation of APN. |
| 151 | +Note: In most cases, the default APN provided by the carrier should work without additional configuration. |
0 commit comments