Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
b5eae78
mpsl: Generic coex implementation according to Thread Recommendations
hubertmis Jul 15, 2021
8711032
lib: ftp_client: Add IPv6 support to FTP client
junqingzou Aug 4, 2021
3eef362
application: serial_lte_modem: Add IPv6 support to FTP client
junqingzou Aug 4, 2021
b0c72f1
actions: labeler: Exclude Bluetooth Mesh from CI-find-my-test
trond-snekvik Aug 9, 2021
08c651f
doc: zigbee: expand default signal handler docs
greg-fer Aug 11, 2021
6a5daf2
.github: manifest.yml: Bring in support for filtered labels
oyvindronningstad Jun 23, 2021
58f2612
.github: manifest.yml: Add CI labels based on modules in west.yml
oyvindronningstad Jun 13, 2021
c782d6b
labeler.yml: Don't apply CI-all-test for west.yml
oyvindronningstad Jun 10, 2021
322a86e
net: lib: nrf_cloud: add GNSS API support for nRFCloud A-GPS and P-GPS
tokangas Aug 11, 2021
6bf2f13
samples: peripheral: Introduce IEEE 802.15.4 PHY Test Tool to NCS
piotrslawecki Aug 16, 2021
bf177c7
samples: nrf9160: modem_shell: a kill button #1
jhirsi Jun 25, 2021
4b6c3ef
ext: curl: possibility to pass abort/kill signal
jhirsi Jun 30, 2021
53c95fd
samples: nrf9160: modem_shell: passing kill signal to curl
jhirsi Jun 30, 2021
8f89e31
samples: nrf9160: modem_shell: sock send: support for abort
jhirsi Jul 2, 2021
bae2941
lib: agps: add own API for the A-GPS library
tokangas Aug 13, 2021
b2feffa
lib: agps: add support for writing A-GPS data using the GNSS API
tokangas Aug 13, 2021
7ded0c8
lib: agps: refactor SUPL socket handling
tokangas Aug 16, 2021
6b37ce7
Bluetooth: Mesh: Refactor Light XYL and HSL Server models
Jul 30, 2021
0067894
doc: improve instructions for building on cmd line
DeidreCasey Aug 16, 2021
7769bfc
manifest: update homekit manifest
RobertGalatNordic Jul 29, 2021
372f2a9
samples: matter: Fixed BLE advertising when not in pairing mode.
kkasperczyk-no Aug 10, 2021
f0a0557
caf: Fix typo in net_state event
Aug 16, 2021
818dcce
gps_sim: Fix validation of timeout configuration
Aug 14, 2021
82d1ec0
net: lib: nrf_cloud: fix A-GPS data processing with GNSS API
tokangas Aug 17, 2021
c566b40
lib: agps: fix debug log output
tokangas Aug 17, 2021
0fc8888
thingy53: Update USB PID and device name
Aug 17, 2021
0a91ee4
doc: fixing typo from nrf5840 to nrf52840
Jul 22, 2021
fb2bdb1
workflows: contribs: Allow external contributions
carlescufi Jul 22, 2021
58db2cf
samples: central_hids: Fix wrong protocol mode log
MarekPieta Jul 23, 2021
d6e37f8
doc: nrf: improve libraries doc structure
gmarull Jul 15, 2021
24285a2
doc: nrf: remove unnecessary namespacing from file names
gmarull Jul 15, 2021
85d9f69
doc: nrf: move bin libraries docs to doc
gmarull Jul 15, 2021
52302d7
doc: nrf: move bluetooth docs to doc folder
gmarull Jul 15, 2021
063696b
doc: nrf: move caf docs to doc folder
gmarull Jul 15, 2021
332fb6a
doc: nrf: move debug docs to doc folder
gmarull Jul 15, 2021
2d889bb
doc: nrf: move dfu docs to doc folder
gmarull Jul 15, 2021
ef8f14a
doc: nrf: move modem docs to doc folder
gmarull Jul 15, 2021
a351873
doc: nrf: move mpsl docs to doc folder
gmarull Jul 15, 2021
e5bfc2b
doc: nrf: move networking docs to doc folder
gmarull Jul 15, 2021
4f0ea87
doc: nrf: move shell docs to doc folder
gmarull Jul 15, 2021
2d5bf21
doc: nrf: move tfm docs to doc folder
gmarull Jul 15, 2021
e44cde4
doc: nrf: move zigbee docs to doc folder
gmarull Jul 15, 2021
3aad6dd
doc: nrf: move other libraries to doc folder
gmarull Jul 15, 2021
9ef51ef
doc: nrf: move nfc docs to doc folder
gmarull Jul 15, 2021
f53ef51
doc: nrf: stop using include and lib folders as docs sources
gmarull Jul 15, 2021
e4433a9
applications: serial_lte_modem Re-design of GNSS function
junqingzou May 28, 2021
14d0ec3
net: nrf_cloud: Handle nRF Cloud MQTT KEEPALIVE timeout
junqingzou Aug 17, 2021
1fe059f
manifest: update homekit revision
Aug 2, 2021
5291aa1
test: lib: dfu_target fix B1 upgrade url
mswarowsky Aug 17, 2021
863e070
samples: nrf9160: gps: Move SUPL work queue init
richardmccrae-nordicsemi Aug 18, 2021
5fb1e87
samples: nrf9160: modem_shell: update GNSS use case configuration
tokangas Aug 16, 2021
009f5f1
samples: matter: Optimized fetching data from device sensors
kkasperczyk-no Aug 17, 2021
43c133c
manifest: Updated sdk-connectedhomeip version
kkasperczyk-no Aug 17, 2021
442f63d
nfc: ndef: enable encoding of long uri messages
kapi-no Aug 17, 2021
e3f1291
manifest: update homekit revision
Aug 18, 2021
3144409
doc: matter: samples: advertising time
greg-fer Aug 17, 2021
f5663f3
Bluetooth: Tester: Fix Scheduler Action set
agata-ponitka Aug 16, 2021
a4112ae
scripts: get_pulls_in_range: add copyright/license
mbolivar-nordic Aug 17, 2021
b685cc9
application: serial_lte_modem: Bug-fix for native TLS
junqingzou Aug 18, 2021
13b0f55
samples: matter: Fixed assigning SDC_MAX_CONN_EVENT_LEN_DEFAULT on nRF53
kkasperczyk-no Aug 18, 2021
378f87f
doc: add Matter tools page
greg-fer Aug 18, 2021
11bdbaf
lib: date_time: Check LTE registration status before performing NTP
simensrostad Aug 19, 2021
004e0bf
doc: rename release-notes-latest and other edits
greg-fer Aug 17, 2021
99762ae
labeler: rename no-changelog label
greg-fer Aug 18, 2021
8dec56c
manifest: update Find My revision
kapi-no Aug 19, 2021
1fc7112
cmake: multi image: a domain may only contain a single child image
tejlmand Aug 18, 2021
d37180e
cmake: tests: add hello_world as domain image if the is no image already
tejlmand Aug 18, 2021
ea7b460
cmake: multi image: reworked shared variables for child images
tejlmand May 12, 2021
db4294a
cmake: partition manager: conditionally share b0n signed image
tejlmand Aug 18, 2021
dfe7168
mcuboot: using DOMAIN shared properties instead of fixed hci_rpmsg
tejlmand Aug 17, 2021
81fda45
cmake: adding missing file extension, .c to zephyr_sources filename
tejlmand Aug 18, 2021
88d6b02
caf: power_manager: Update log level of a log
MarekPieta Aug 19, 2021
1d83ed9
applications: nrf_desktop: Disable disaplaying keep alive event log
MarekPieta Aug 19, 2021
0ac2cb4
application: serial_lte_modem: Add secondary PDN support to #XPING
junqingzou Aug 16, 2021
2525cf4
application: serial_lte_modem: Datamode error handling
junqingzou Aug 16, 2021
d34214d
zigbee: samples: Add application template sample
tomchy Aug 11, 2021
98f397d
zigbee: Reduce ZBOSS timer unit conversion errors
tomchy Jun 30, 2021
8c10e9b
west.yml: sort zephyr name-allowlist
mbolivar-nordic Jul 26, 2021
6cead9d
scripts: west: improve ncs-compare heuristic
mbolivar-nordic Jul 26, 2021
4d4601f
scripts: west: zephyr uses 'main' branch now
mbolivar-nordic Jul 26, 2021
1baa677
scripts: west: output tweaks
mbolivar-nordic Jul 27, 2021
d3aed0b
scripts: west_commands: refactor for readability
mbolivar-nordic Jul 27, 2021
a739325
scripts: west: extend west ncs-loot json output
mbolivar-nordic Jul 27, 2021
60588e7
treewide: synchronize imported OSS repositories
mbolivar-nordic Jul 26, 2021
f5947aa
Bluetooth: Mesh: Adjust to new opcode handler API
trond-snekvik Jul 27, 2021
4d32486
doc: kconfig: enable kconfig-role extension
gmarull Jul 27, 2021
b7b2778
doc: mcuboot: enable kconfig-role extension
gmarull Jul 27, 2021
a718ae2
doc: nrf: enable kconfig-role extension
gmarull Jul 27, 2021
96a0fc1
doc: nrfxlib: enable kconfig-role extension
gmarull Jul 27, 2021
15d0199
doc: zephyr: remove custom external_content usage
gmarull Jul 27, 2021
8963fad
treewide: handle nRF5340DK non-secure rename
mbolivar-nordic Aug 10, 2021
2c0c748
treewide: handle nRF9160 non-secure rename
mbolivar-nordic Aug 9, 2021
8407bef
treewide: thingy91_nrf9160: Rename NS target
mbolivar-nordic Aug 9, 2021
5656a65
doc: handle nRF5340DK non-secure rename
mbolivar-nordic Aug 9, 2021
fed5f97
doc: handle nRF9160 non-secure rename
mbolivar-nordic Aug 9, 2021
e210537
doc: thingy91_nrf9160: rename non-secure target
mbolivar-nordic Aug 9, 2021
c804d8f
.github: improve action-oss-history checks
mbolivar-nordic Jul 28, 2021
6a283c7
west.yml: update memfault-firmware-sdk
mbolivar-nordic Jul 29, 2021
befbfaf
bluetooth: services: hids: keep up with API change
mbolivar-nordic Aug 3, 2021
d2cc0a8
treewide: remove unused pm_device_state_set callback args
mbolivar-nordic Aug 4, 2021
457461c
treewide: shrink names for null-pointer exception detection Kconfig
mbolivar-nordic Aug 4, 2021
66889e3
connectivity_bridge: adjust PM API usage
mbolivar-nordic Aug 4, 2021
eb10000
bl_storage: avoid use of memcpy()
mbolivar-nordic Aug 4, 2021
45db726
doc: _ns boards namechange mentioned in Userguides.
FrancescoSer Aug 5, 2021
0c5b11d
doc: updated release notes
FrancescoSer Aug 6, 2021
fbceba8
doc: nrf: replace option role with kconfig
gmarull Aug 5, 2021
10f85a1
modules: tfm: pass ZEPHYR_BASE to TF-M build
hakonfam Aug 9, 2021
de7e9c1
caf: Update leds module
Aug 9, 2021
09fdeac
CODEOWNERS: fix scripts/
mbolivar-nordic Aug 9, 2021
63cf819
modules: mbedtls: increase the heap size if building with TFM
hakonfam Aug 10, 2021
ef0a7e0
pm: adapt nrf9160 application and samples to new API
nordic-hani Aug 13, 2021
6458969
samples: crypto: Reduced mbed TLS heap size configuration
magnev Aug 17, 2021
1e5bec7
samples: peripheral: 802154_phy_test: RadioDriver compatibility fix
piotrslawecki Aug 17, 2021
4e177ab
net: openthread: make use of new API for retransmissions
edmont Aug 12, 2021
c857461
zigbee: osif: Allocate net packet for every TX
tomchy Aug 18, 2021
765975b
applications: Moved weather station from samples to applications
kkasperczyk-no Aug 9, 2021
a8e579f
manifest: update homekit revision
Aug 20, 2021
6a5ae6b
boards: shields: Add nrf21540_ek shield
Aug 20, 2021
5bf0097
doc: Introducing nrf21540 ek
Aug 20, 2021
0872c94
samples: use nRF21540-EK shield instead of devicetree overlays
hubertmis Aug 17, 2021
0da85f6
samples: use nRF21540-EK shield instead of devicetree overlays
Aug 18, 2021
0708e97
doc: add registered trademark to Bluetooth mentions
wiba-nordic Aug 17, 2021
e091bc6
samples: bluetooth: df: rx: Move BLE ctrl conf into board spec file
ppryga-nordic Jun 9, 2021
4b680ec
samples: bluetooth: df: rx: Add child img conf for nRF5340 target builds
ppryga-nordic Jun 9, 2021
68e74a0
samples: Bluetooth: df: rx: Add info about nRF5340 to README.rst
ppryga-nordic Jun 9, 2021
493859e
samples: matter: add support for nRF21540
LuDuda Aug 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .checkpatch.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
--ignore MULTISTATEMENT_MACRO_USE_DO_WHILE
--exclude ext
--exclude samples/matter/.*/src
--exclude applications/matter_weather_station/src
--exclude samples/openthread/cli/harness
--exclude modules/tfm/tfm/boards/src
--exclude modules/tfm/tfm/boards/common
Expand Down
36 changes: 20 additions & 16 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
- "tests/subsys/net/**/*"

"CI-all-test":
- "west.yml"
- "**/*partition_manager*/**/*"
- "**/*partition_manager*"

Expand Down Expand Up @@ -181,19 +180,24 @@
- "samples/matter/**/*"

"CI-find-my-test":
- "include/bluetooth/**/*"
- "include/dfu/**/*"
- "include/nfc/**/*"
- "include/dk_buttons_and_leds.h"
- "include/event_manager.h"
- "lib/dk_buttons_and_leds/**/*"
- "subsys/bootloader/**/*"
- "subsys/bluetooth/**/*"
- "subsys/dfu/dfu_target/**/*"
- "subsys/event_manager/**/*"
- "subsys/nfc/**/*"
- "subsys/partition_manager/**/*"
- "modules/mcuboot/**/*"
- any:
- "include/dfu/**/*"
- "include/nfc/**/*"
- "include/dk_buttons_and_leds.h"
- "include/event_manager.h"
- "lib/dk_buttons_and_leds/**/*"
- "subsys/bootloader/**/*"
- "subsys/dfu/dfu_target/**/*"
- "subsys/event_manager/**/*"
- "subsys/nfc/**/*"
- "subsys/partition_manager/**/*"
- "modules/mcuboot/**/*"
- any:
- "include/bluetooth/**/*"
- "!include/bluetooth/mesh/**/*"
- any:
- "subsys/bluetooth/**/*"
- "!subsys/bluetooth/mesh/**/*"

"no-changelog":
- "!doc/nrf/releases/release-notes-latest.rst"
"changelog-entry-required":
- "!doc/nrf/releases/release-notes-changelog.rst"
11 changes: 8 additions & 3 deletions .github/workflows/contribs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ jobs:
command: 'external'
messages: |
Thank you for your contribution!
It seems you are not a member of the nrfconnect GitHub organization.
At this time we are not accepting external contributions, but this may change soon.
Please visit https://devzone.nordicsemi.com/ to raise any issues you found or ask for help.
It seems you are not a member of the nrfconnect GitHub organization. External contributions are handled as follows:
Large contributions, affecting multiple subsystems for example, may be rejected if they are complex, may introduce regressions due to lack of test coverage, or if they are not consistent with the architecture of nRF Connect SDK.
PRs will be run in our continuous integration (CI) test system.
If CI passes, PRs will be tagged for review and merged on successful completion of review. You may be asked to make some modifications to your contribution during review.
If CI fails, PRs may be rejected or may be tagged for review and rework.
PRs that become outdated due to other changes in the repository may be rejected or rework requested.
External contributions will be prioritized for review based on the relevance to current development efforts in nRF Connect SDK. Bug fix PRs will be prioritized.
You may raise issues or ask for help from our Technical Support team by visiting https://devzone.nordicsemi.com/.
|
The author of this pull request has now been added to the nrfconnect GitHub organization.
labels: 'external'
18 changes: 16 additions & 2 deletions .github/workflows/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,26 @@ jobs:
fetch-depth: 0

- name: Manifest
uses: zephyrproject-rtos/action-manifest@v1.1.0
uses: oyvindronningstad/action-manifest@module-labels
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
manifest-path: 'west.yml'
checkout-path: 'ncs/nrf'
label-prefix: 'manifest-'
verbosity-level: '1'
labels: 'manifest'

# Add one label per line. 'manifest' always adds the label 'manifest'.
# 'CI-all-test:zephyr;nrfxlib,' adds the 'CI-all-test' label when the
# zephyr module or the nrfxlib module is changed. Each line is comma-
# separated.
labels: >
manifest,
CI-all-test:zephyr;nrfxlib,
CI-tfm-test:trusted-firmware-m;tfm-mcuboot,
CI-boot-dfu-test:mcuboot;mcumgr,
CI-matter-test:matter,
CI-find-my-test:find-my,
CI-homekit-test:homekit,
CI-thread-test:openthread,
CI-crypto-test:mbedtls;mbedtls-nrf
dnm-labels: 'DNM'
2 changes: 1 addition & 1 deletion .github/workflows/oss-history.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
west init -l ncs/nrf
cd ncs
west update zephyr
west update zephyr mcuboot trusted-firmware-m
git -C zephyr remote add upstream https://github.com/zephyrproject-rtos/zephyr

- name: Check OSS history
Expand Down
4 changes: 3 additions & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/applications/asset_tracker_v2/ @simensrostad @jtguggedal @jhn-nordic @coderbyheart
/applications/connectivity_bridge/ @jtguggedal @nordic-auko
/applications/machine_learning/ @pdunaj
/applications/matter_weather_station/ @Damian-Nordic @kkasperczyk-no
/applications/nrf_desktop/ @pdunaj
/applications/pelion_client/ @pdunaj
/applications/serial_lte_modem/ @junqingzou @lats1980 @rlubos
Expand Down Expand Up @@ -115,12 +116,13 @@ Kconfig* @tejlmand
/samples/profiler/ @pdunaj @pizi-nordic
/samples/peripheral/radio_test/ @kapi-no
/samples/peripheral/lpuart/ @nordic-krch
/samples/peripheral/802154_phy_test/ @czeslawmakarski
/samples/tfm/tfm_hello_world/ @oyvindronningstad
/samples/zigbee/ @tomchy @sebastiandraus
/samples/CMakeLists.txt @tejlmand
/samples/nrf5340/netboot/ @hakonfam
/samples/nrf5340/multiprotocol_rpmsg/ @hubertmis
/scripts/ @mbolivar @tejlmand
/scripts/ @mbolivar-nordic @tejlmand
/scripts/hid_configurator/ @pdunaj
/scripts/tools-versions-*.txt @tejlmand @asle-nordic @grho @shanta-14
/share/zephyrbuild-package/ @tejlmand
Expand Down
4 changes: 2 additions & 2 deletions Kconfig.nrf
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ config MBEDTLS_LIBRARY_NRF_SECURITY
endchoice

# This is a temporary solution to whitelist
# BOARD_THINGY91_NRF9160NS in compliance
config BOARD_THINGY91_NRF9160NS
# BOARD_THINGY91_NRF9160_NS in compliance
config BOARD_THINGY91_NRF9160_NS
bool

# nRF Connect SDK needs a larger default stacks in certain configurations
Expand Down
28 changes: 14 additions & 14 deletions applications/asset_tracker/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ config ACCEL_TRIGGER

config FLIP_INPUT
int "Button or switch number to simulate flip"
range 1 4 if BOARD_NRF9160DK_NRF9160NS
range 1 1 if BOARD_THINGY91_NRF9160NS
default 3 if BOARD_NRF9160DK_NRF9160NS
default 1 if BOARD_THINGY91_NRF9160NS
range 1 4 if BOARD_NRF9160DK_NRF9160_NS
range 1 1 if BOARD_THINGY91_NRF9160_NS
default 3 if BOARD_NRF9160DK_NRF9160_NS
default 1 if BOARD_THINGY91_NRF9160_NS
help
Button or switch number to use for simulating
a board flip event.
Expand All @@ -232,7 +232,7 @@ endif

config ACCEL_INVERTED
bool "Accelerometer inverted"
default y if BOARD_THINGY91_NRF9160NS
default y if BOARD_THINGY91_NRF9160_NS
help
Enable if the accelerometer is mounted with the top side facing
down when the board itself is in normal position.
Expand All @@ -258,8 +258,8 @@ config CLOUD_BUTTON

config CLOUD_BUTTON_INPUT
int "Set button sensor button number"
range 1 4 if BOARD_NRF9160DK_NRF9160NS
range 1 1 if BOARD_THINGY91_NRF9160NS
range 1 4 if BOARD_NRF9160DK_NRF9160_NS
range 1 1 if BOARD_THINGY91_NRF9160_NS
default 1

config CLOUD_CONNECT_RETRY_DELAY
Expand Down Expand Up @@ -388,10 +388,10 @@ config TEMP_TRIGGER

config TEMP_SIM_BUTTON
int "Button or switch to trigger 'data ready' event"
range 1 4 if BOARD_NRF9160DK_NRF9160NS
range 1 1 if BOARD_THINGY91_NRF9160NS
default 3 if BOARD_NRF9160DK_NRF9160NS
default 1 if BOARD_THINGY91_NRF9160NS
range 1 4 if BOARD_NRF9160DK_NRF9160_NS
range 1 1 if BOARD_THINGY91_NRF9160_NS
default 3 if BOARD_NRF9160DK_NRF9160_NS
default 1 if BOARD_THINGY91_NRF9160_NS
help
Button or switch number to use for triggering
a 'data ready' event.
Expand All @@ -415,14 +415,14 @@ endif # ENVIRONMENT_SENSORS

menuconfig LIGHT_SENSOR
bool "Light sensor"
select BH1749 if BOARD_THINGY91_NRF9160NS
default y if BOARD_THINGY91_NRF9160NS
select BH1749 if BOARD_THINGY91_NRF9160_NS
default y if BOARD_THINGY91_NRF9160_NS

if LIGHT_SENSOR

config LIGHT_SENSOR_DEV_NAME
string "Light sensor device name"
default "BH1749" if BOARD_THINGY91_NRF9160NS
default "BH1749" if BOARD_THINGY91_NRF9160_NS

config LIGHT_SENSOR_DATA_SEND_INTERVAL
int "Interval in seconds for sending light sensor data"
Expand Down
6 changes: 3 additions & 3 deletions applications/asset_tracker/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ The sample supports the following development kits:

.. table-from-rows:: /includes/sample_board_rows.txt
:header: heading
:rows: thingy91_nrf9160ns, nrf9160dk_nrf9160ns
:rows: thingy91_nrf9160_ns, nrf9160dk_nrf9160_ns

.. include:: /includes/spm.txt

Expand Down Expand Up @@ -216,7 +216,7 @@ Alternatively, use the command line tool ``menuconfig`` or configure the options
.. external_antenna_note_start

.. note::
For nRF9160 DK v0.15.0 and later, set the :option:`CONFIG_NRF9160_GPS_ANTENNA_EXTERNAL` option to ``y`` when building the application to achieve the best external antenna performance.
For nRF9160 DK v0.15.0 and later, set the :kconfig:`CONFIG_NRF9160_GPS_ANTENNA_EXTERNAL` option to ``y`` when building the application to achieve the best external antenna performance.

.. external_antenna_note_end

Expand Down Expand Up @@ -289,7 +289,7 @@ This application uses the following |NCS| libraries and drivers:
* :ref:`lte_lc_readme`
* |NCS| modules abstracted via the LwM2M carrier OS abstraction layer (:file:`lwm2m_os.h`)

.. include:: /lib/bin/lwm2m_carrier/doc/app_integration.rst
.. include:: /libraries/bin/lwm2m_carrier/app_integration.rst
:start-after: lwm2m_osal_mod_list_start
:end-before: lwm2m_osal_mod_list_end

Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ sample:
tests:
applications.asset_tracker:
build_only: true
platform_allow: nrf9160dk_nrf9160ns thingy91_nrf9160ns qemu_x86
platform_allow: nrf9160dk_nrf9160_ns thingy91_nrf9160_ns qemu_x86
tags: ci_build
42 changes: 39 additions & 3 deletions applications/asset_tracker/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#endif /* CONFIG_NRF_MODEM_LIB */
#include <net/cloud.h>
#include <net/socket.h>
#if defined(CONFIG_AGPS)
#include <modem/agps.h>
#endif
#include <net/nrf_cloud.h>
#if defined(CONFIG_NRF_CLOUD_AGPS)
#include <net/nrf_cloud_agps.h>
Expand Down Expand Up @@ -479,6 +482,36 @@ static void send_cell_pos_request(struct k_work *work)
}
#endif /* CONFIG_NRF_CLOUD_CELL_POS */

#if defined(CONFIG_AGPS)
/* Converts the A-GPS data request from GPS driver to GNSS API format. */
static void agps_request_convert(
struct nrf_modem_gnss_agps_data_frame *dest,
const struct gps_agps_request *src)
{
dest->sv_mask_ephe = src->sv_mask_ephe;
dest->sv_mask_alm = src->sv_mask_alm;
dest->data_flags = 0;
if (src->utc) {
dest->data_flags |= NRF_MODEM_GNSS_AGPS_GPS_UTC_REQUEST;
}
if (src->klobuchar) {
dest->data_flags |= NRF_MODEM_GNSS_AGPS_KLOBUCHAR_REQUEST;
}
if (src->nequick) {
dest->data_flags |= NRF_MODEM_GNSS_AGPS_NEQUICK_REQUEST;
}
if (src->system_time_tow) {
dest->data_flags |= NRF_MODEM_GNSS_AGPS_SYS_TIME_AND_SV_TOW_REQUEST;
}
if (src->position) {
dest->data_flags |= NRF_MODEM_GNSS_AGPS_POSITION_REQUEST;
}
if (src->integrity) {
dest->data_flags |= NRF_MODEM_GNSS_AGPS_INTEGRITY_REQUEST;
}
}
#endif

static void send_agps_request(struct k_work *work)
{
ARG_UNUSED(work);
Expand All @@ -494,8 +527,12 @@ static void send_agps_request(struct k_work *work)
(k_uptime_get() - last_request_timestamp) < AGPS_UPDATE_PERIOD) {
LOG_WRN("A-GPS request was sent less than 1 hour ago");
} else {
struct nrf_modem_gnss_agps_data_frame request;

agps_request_convert(&request, &agps_request);

LOG_INF("Sending A-GPS request");
err = gps_agps_request_send(agps_request, GPS_SOCKET_NOT_PROVIDED);
err = agps_request_send(request, AGPS_SOCKET_NOT_PROVIDED);
if (err) {
LOG_ERR("Failed to request A-GPS data, error: %d", err);
} else {
Expand Down Expand Up @@ -1569,8 +1606,7 @@ void cloud_event_handler(const struct cloud_backend *const backend,
}

#if defined(CONFIG_AGPS)
err = gps_process_agps_data(evt->data.msg.buf,
evt->data.msg.len);
err = agps_cloud_data_process(evt->data.msg.buf, evt->data.msg.len);
#if defined(CONFIG_NRF_CLOUD_PGPS)
if (!err) {
LOG_INF("A-GPS data processed");
Expand Down
Loading