-
Notifications
You must be signed in to change notification settings - Fork 0
/
overlay-lwm2m.conf
135 lines (112 loc) · 4.79 KB
/
overlay-lwm2m.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
CONFIG_LWM2M_INTEGRATION=y
CONFIG_LWM2M=y
CONFIG_LWM2M_DTLS_SUPPORT=y
CONFIG_LWM2M_SECURITY_KEY_SIZE=33
CONFIG_JSON_LIBRARY=y
CONFIG_LWM2M_RW_SENML_JSON_SUPPORT=y
CONFIG_LWM2M_RW_OMA_TLV_SUPPORT=y
CONFIG_LWM2M_VERSION_1_1=y
CONFIG_LWM2M_ENGINE_STACK_SIZE=3072
CONFIG_LWM2M_COAP_BLOCK_SIZE=1024
CONFIG_LWM2M_DNS_SUPPORT=y
CONFIG_LWM2M_RW_JSON_SUPPORT=n
CONFIG_LWM2M_SECURITY_INSTANCE_COUNT=3
CONFIG_COAP_INIT_ACK_TIMEOUT_MS=4000
CONFIG_BASE64=y
# Transmission buffers.
CONFIG_LWM2M_ENGINE_MAX_OBSERVER=5
CONFIG_LWM2M_ENGINE_MAX_MESSAGES=5
CONFIG_LWM2M_ENGINE_MAX_REPLIES=5
CONFIG_LWM2M_ENGINE_MAX_PENDING=5
# CBOR encoding.
CONFIG_LWM2M_RW_SENML_CBOR_SUPPORT=y
CONFIG_LWM2M_RW_SENML_CBOR_RECORDS=45
CONFIG_ZCBOR=y
CONFIG_ZCBOR_CANONICAL=y
# Enable DTLS Connection Identifier and TLS session caching
# to prevent doing a full TLS handshake for every send.
CONFIG_LWM2M_TLS_SESSION_CACHING=y
CONFIG_LWM2M_DTLS_CID=y
# Set uptime to 12 hours.
# Update every 60 minutes (3600 s)
CONFIG_LWM2M_ENGINE_DEFAULT_LIFETIME=43200
CONFIG_LWM2M_UPDATE_PERIOD=3600
CONFIG_LWM2M_SECONDS_TO_UPDATE_EARLY=60
# LwM2M Queue Mode
CONFIG_LWM2M_QUEUE_MODE_ENABLED=y
CONFIG_LWM2M_RD_CLIENT_STOP_POLLING_AT_IDLE=y
# Sets the duration that the lwm2m engine will be polling for data after transmission before
# the socket is closed.
CONFIG_LWM2M_QUEUE_MODE_UPTIME=30
# Configure PSM mode
CONFIG_LTE_PSM_REQ=y
# Request periodic TAU of 3600 seconds (60 minutes)
CONFIG_LTE_PSM_REQ_RPTAU="00000110"
# Set Requested Active Time (RAT) to 30 seconds. Preferably same as the
# configured LWM2M_QUEUE_MODE_UPTIME. Due to NAT/firewall UDP connections are usually
# closed within 30-60 seconds so there is in general no point in setting a longer
# Queue mode uptime / LTE PSM active time.
CONFIG_LTE_PSM_REQ_RAT="00001111"
# Request eDRX mode
CONFIG_LTE_EDRX_REQ=y
# Requested eDRX cycle length for LTE-M and NB-IoT
# This should be fine-tuned for the network and the chosen server.
# Lowest value is the most responsive, but uses more energy during the active eDRX period.
# Longer period may cause more CoAP packet drops on server requests.
# "0000" is 5.12 s
# "0001" is 10.24 s
# "0010" is 20.48 s.
CONFIG_LTE_EDRX_REQ_VALUE_LTE_M="0000"
CONFIG_LTE_EDRX_REQ_VALUE_NBIOT="0000"
# Request Paging time window of 1.28 seconds for LTE-M
CONFIG_LTE_PTW_VALUE_LTE_M="0000"
# Request Paging time window of 2.56 seconds for NB-IoT
CONFIG_LTE_PTW_VALUE_NBIOT="0000"
# Get notification before Tracking Area Update (TAU). Notification triggers registration
# update and TAU will be sent with the update which decreases power consumption.
CONFIG_LTE_LC_TAU_PRE_WARNING_NOTIFICATIONS=y
# Optimize powersaving by using tickless mode in LwM2M engine
CONFIG_NET_SOCKETPAIR=y
CONFIG_LWM2M_TICKLESS=y
# Enable Release Assistance Indication
CONFIG_LWM2M_CLIENT_UTILS_RAI=y
# Use LwM2M client bootstrap server.
# CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP=y
# Provision the default PSK to the modem at run-time. The default PSK is set by
# the CONFIG_LWM2M_INTEGRATION_PSK option. If CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP is set,
# the PSK is provisioned to a sec tag that is used in the connection towards
# the configured bootstrap server.
CONFIG_MODEM_KEY_MGMT=y
CONFIG_LWM2M_INTEGRATION_PROVISION_CREDENTIALS=y
# Adjust this to match the longest possible list size in the application.
# Should be minimum the maximum number of supported objects that can be sent simultaneously.
CONFIG_LWM2M_COMPOSITE_PATH_LIST_SIZE=15
# Enable CoAP extended option length.
CONFIG_COAP_EXTENDED_OPTIONS_LEN=y
CONFIG_COAP_EXTENDED_OPTIONS_LEN_VALUE=40
# IPSO v1.1
CONFIG_LWM2M_IPSO_SUPPORT=y
CONFIG_LWM2M_IPSO_PUSH_BUTTON_VERSION_1_1=y
CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_3=y
# Zephyr LwM2M standard objects
CONFIG_LWM2M_IPSO_PUSH_BUTTON=y
CONFIG_LWM2M_CONN_MON_OBJ_SUPPORT=y
CONFIG_LWM2M_LOCATION_OBJ_SUPPORT=y
CONFIG_LWM2M_CONN_MON_BEARER_MAX=2
# Use nrf-sdk lwm2m client utils for convenience. The library contains pre-existing support
# for certain objects that we are dependent on in the application.
CONFIG_LWM2M_CLIENT_UTILS=y
CONFIG_LWM2M_CLIENT_UTILS_SECURITY_OBJ_SUPPORT=y
CONFIG_LWM2M_CLIENT_UTILS_FIRMWARE_UPDATE_OBJ_SUPPORT=y
CONFIG_LWM2M_CLIENT_UTILS_DEVICE_OBJ_SUPPORT=n
CONFIG_LWM2M_CLIENT_UTILS_CONN_MON_OBJ_SUPPORT=n
CONFIG_LWM2M_CLIENT_UTILS_LOCATION_OBJ_SUPPORT=n
# Object used for cellular and Wi-Fi location.
CONFIG_LWM2M_CLIENT_UTILS_SIGNAL_MEAS_INFO_OBJ_SUPPORT=y
CONFIG_LWM2M_CLIENT_UTILS_GROUND_FIX_OBJ_SUPPORT=y
# Object used for assisted GNSS data. P-GPS is not enabled by default but will be enabled if
# overlay-pgps.conf is added to the build command. This is handled in Kconfig.lwm2m_integration.
# P-GPS and A-GNSS are currently mutually exclusive features.
CONFIG_LWM2M_CLIENT_UTILS_GNSS_ASSIST_OBJ_SUPPORT=y
CONFIG_LWM2M_CLIENT_UTILS_LOCATION_ASSIST_AGNSS=y
CONFIG_LWM2M_CLIENT_UTILS_LOCATION_ASSIST_CELL=y