Commit Graph

2521 Commits

Author SHA1 Message Date
Arif Balik
2bf86a3ff9 samples: net: update mqtt publisher
Added MQTT logging backend to publisher sample

Signed-off-by: Arif Balik <arifbalik@outlook.com>
2025-06-11 16:18:51 -07:00
Maochen Wang
6d161802a8 samples: net: wifi: nxp: supplicant enterprise enabledment on IW610
Add mbedtls config file to support enterprise mode.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-06-11 09:54:46 +02:00
Abhinav Kulkarni
703fa22b11 samples: net: wifi: shell: nxp: HostAP support for IW416
Added host AP support for IW416 and IW612 socs.
Adding conf files which can be used along with shield for compilation to
test HostAP and WPA supplicant.

Signed-off-by: Abhinav Kulkarni <abhinav.kulkarni@nxp.com>
2025-06-11 09:54:46 +02:00
Robert Lubos
00bd154d84 samples: net: echo_client/server: Lower log level for OpenThread
OpenThread stack prints just too much data at the info log level,
completely obfuscating the output of the sample, which prints a lot on
its own. Therefore, lower the log level for OT logs.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-06-09 14:59:35 -07:00
Chaitanya Tata
810697bf4b samples: net: zperf: Add Zperf server report skip
This way server report is skipped, but client stats are still dumped.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-06-02 17:37:55 +02:00
Chaitanya Tata
778d72a215 samples: net: zperf: Fix the loopback drop config
This should have been disabled, by default we want loopback and
optionally TX only.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-06-02 17:37:55 +02:00
Jamel Arbi
bb81347dfb samples: openthread: net: shell: Add NXP rcp host configuration
Add the NXP shell configuration for openthread RCP host

Signed-off-by: Jamel Arbi <jamel.arbi@nxp.com>
2025-05-29 20:17:23 +02:00
Olivier Lalonde
afc481ab31 modem_cellular: Add support for the simcom a76xx modem
Add support for the simcom a76xx modem which is similar to the simcom 7080
but has a few key differences. Tested with a simcom A7672SA module but as
there is a single simcom A76XX AT commands manual, the driver should work
with other modems of the series.

Signed-off-by: Olivier Lalonde <o@syskall.com>
2025-05-28 16:37:53 +02:00
Lucien Zhao
e70fef36e1 samples: net/secure_mqtt_sensor_actuator: replenish filter condition
The original filtering condition was only whether ambient-temp0
device existed or not. However, registering ambient temp0 does
not mean that NET-related devices have been enabled.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-05-25 21:55:07 +02:00
Robert Lubos
3572c9f825 net: http: client: Allow to abort download from response callback
Update the response callback function signature to allow the callback to
return an error code, which in turn will cause the HTTP client to abort
the download.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-23 17:20:24 +02:00
Hui Bai
67ef6af8d3 samples: pm: Enable PM3 mode for RW612 in wifi example
Added overlay file for RW612 in wifi example to enable standby mode (PM3).
Set IMU as wakeup source.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2025-05-21 12:33:10 +02:00
Benjamin Cabé
fd2a80e299 samples: net: cellular_modem: add test for mikroe_lte_iot10_click shield
Add a test for the mikroe_lte_iot10_click shield.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-16 17:31:58 +02:00
Chris Friedt
393446108e samples: net: lwm2m: depend on xsi single process for gettimeofday()
https://github.com/zephyrproject-rtos/zephyr/actions/runs/\
15014534061/job/42189411225

We were seeing a linker error of the form

```
picolibc/x86_64-zephyr-elf/lib/32/libc.a(libc_time_time.c.o): \
  in function `time':
time.c:(.text.time+0x11): undefined reference to `gettimeofday'
```

Update the dependency from CONFIG_POSIX_TIMERS to
CONFIG_XSI_SINGLE_PROCESS for gettimeofday().

Note: this is really only a workaround. The proper solution would
be to have libc functions not depend on POSIX functions.

Specifically, here

https://github.com/zephyrproject-rtos/picolibc/blob/\
51a8b32857e75345c37652a80b5cda98b28d69e5/newlib/libc/time/\
time.c#L54

and here

https://github.com/zephyrproject-rtos/zephyr/blob/\
3a4e12899c2ae5962a64055f4739f774fb7262e5/lib/libc/common/\
source/time/time.c#L17

Also mentioned in #89068

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-05-15 09:04:08 +02:00
Tomi Fontanilles
35f7eda545 modules: mbedtls: make key exchange Kconfigs depend on, not select
Turn the MBEDTLS_RSA_FULL selects into depends on.
This is how the other MBEDTLS_KEY_EXCHANGE_* Kconfig options are defined.

This is done to avoid circular dependencies.

At the same time update uses of the affected MBEDTLS_KEY_EXCHANGE_*
Kconfig options to enable/disable the dependencies which used to be
automatically handled.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-05-13 22:22:43 -04:00
Maochen Wang
9dd9661836 samples: net: wifi: update the RSA3K certificates
The original Wi-Fi certificates are from WFA. Now replace them with
certificates that generated by myself. These certificates use
sha384WithRSAEncryption signature algorithm, and use 3072 bit RSA
public-key.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-05-13 10:05:24 +02:00
Robert Lubos
eadf1a1a2d samples: net: mqtt_sn_publisher: Drop POSIX requirement
The library no longer requires POSIX, therefore remove it from the
sample as well.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-09 18:00:14 +02:00
Arkadiusz Balys
bee2f79dde samples: Enable OpenThread logging in all related samples
Some OpenThread logs were moved from L2 to the OpenThread module,
so enable logging from there to keep previous logging visibility.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
2025-05-05 14:25:13 +02:00
Pieter De Gendt
51a4e4c858 samples: net: sockets: coap_server: Add CoAP secure support
Update the CoAP server sample to demonstrate using DTLS for secure
sockets.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-05-01 08:53:32 -04:00
Marek Matej
780bafab6a tests, samples: update esp32_devkitc board records
Update the tests using the esp32_devkitc_xxx entries.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-04-29 16:48:55 +02:00
Abhinav Kulkarni
bbeb01d325 boards: nxp: mimxrt1060_evk: Added support for IW612 and IW416 SoCs
- Added separate overlay conf files for wifi IW416 and IW612 SoCs.
- Added overlay debug conf file for nxp wifi needed to enable debug logs.
- Added additional configurations for module's region selection.

Signed-off-by: Abhinav Kulkarni <abhinav.kulkarni@nxp.com>
2025-04-29 08:16:46 +01:00
Robert Lubos
6a672bc5ba samples: net: mqtt_publisher: Enable MQTT 5.0 support
Enable MQTT 5.0 support in the mqtt_publisher sample and make use
of the topic aliasing feature.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-04-28 16:40:33 +02:00
Pályi Lőrinc
018963e0c7 samples: net: secure_mqtt: error code to enum
The error code `0x80` is replaced with its
corresponding `mqtt_suback_return_code` enum
value. This will make the code more readable, as
users of this example do not have to look up, what
`0x80` encodes.

Signed-off-by: Pályi Lőrinc <palyilorinc33@gmail.com>
2025-04-28 13:41:17 +02:00
Jukka Rissanen
7595a4bb39 samples: net: zperf: Add compilation of concurrent upload support
Make sure we compile test CONFIG_ZPERF_SESSION_PER_THREAD support.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-04-25 10:22:33 +01:00
Jukka Rissanen
c09ec58f01 samples: net: dsa: Enable DHCPv4 and start it when interface is up
Enable DHCPv4 when network interface goes up. This makes it easier
to test IP connectivity with DSA.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-04-24 01:26:46 +02:00
Yangbo Lu
4eb1669ac6 samples: net: dsa: convert to new dsa core driver
Converted to new dsa core driver. And adapted mimxrt1180_evk to it.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-04-24 01:26:46 +02:00
Yangbo Lu
14e4e12441 samples: net: dsa: rename master/slave to conduit/user
Renamed master/slave to conduit/user.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-04-24 01:26:46 +02:00
Yangbo Lu
b22db75cec include: ethernet: rename dsa master/slave to conduit/user
Renamed dsa master/slave to conduit/user for capabilities.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-04-24 01:26:46 +02:00
Yangbo Lu
018a718e12 net: dsa: make current DSA core driver obsolete
Current DSA TX/RX way was hard-coded in ethernet devices driver
with ETH_DSA_SUPPORT and NET_DSA.
This patch is to make such way obsolete, as we actually will support
a better DSA framework to handle this in NET/DSA core driver.
To make legacy devices not affected, below options are used instead.

- ETH_DSA_SUPPORT_DEPRECATED
- NET_DSA_DEPRECATED

Once the legacy devices are converted to new DSA framework, this code
could be removed.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-04-24 01:26:46 +02:00
Jordan Yates
3048e6df6e samples: net: zperf: test NET_ZPERF_SERVER=n
Validate that zperf compiles without `NET_ZPERF_SERVER`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-04-23 11:48:42 +02:00
Jordan Yates
ed93ea3913 samples: net: enable NET_ZPERF_SERVER
Enable `NET_ZPERF_SERVER` for samples that currently enable `NET_ZPERF`
to prevent feature regressions.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-04-23 11:48:42 +02:00
Jordan Yates
80f7124155 samples: net: zperf: fix NRF_WIFI_DATA_HEAP_SIZE
Commit e33d9ee4 incorrectly stated that:
 > Now that nRF70 by default uses zero-copy fine-tune the configuration
   to get optimal memory while getting peak throughputs.

This is incorrect since `NRF_WIFI_ZERO_COPY_TX` is only enabled by
default for the nRF54L series. Update the data heap size so that the
smaller value is only used when `NRF_WIFI_ZERO_COPY_TX` is enabled.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-04-22 10:00:19 +02:00
Jordan Yates
6695c8f0d6 doc: zbus: update iperf version information
Update iperf version information for use with zperf. Note the fallback
kconfig option for versions older than `2.0.10`, and remove the warning
about `LAST PACKET NOT RECEIVED!!!` since it is not longer present with
the fixed UDP header.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-04-22 09:59:57 +02:00
Jukka Rissanen
f9220146e6 samples: net: pkt_filter: Add Ethernet support to prj.conf
As the sample uses VLAN which needs Ethernet support make sure
CONFIG_NET_L2_ETHERNET is set in prj.conf file.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-04-17 21:18:26 +02:00
Chaitanya Tata
eb1a13eda7 samples: net: wifi: Add two variants of certs
RSA3K based certs are not supported on all platforms, so, keep both
variants, rsa2k (the older certs but with longer expiry 9999 days) and
rsa3k (latest ones) and we can have more variants in this folders.

Also, add a cmake variable to override the path with default as rsa3k.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-04-17 17:22:58 +02:00
Chaitanya Tata
d7b3bcd982 wifi: Move Wi-Fi enterprise configs to a snippet
Instead of having an overlay move the Enterprise configurations to a
dedicated snippet so that it can be enabled with any sample.

Can be used along with Wi-Fi snippet e.g., `-S
"wifi-ipv4;wifi-enterprise"`.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-04-17 17:22:58 +02:00
Jukka Rissanen
3064c7b11d samples: net: pkt_filter: Add a sample to demo packet filtering
Add a network packet filtering sample to show how the packet
filtering can be used.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-04-16 08:07:34 +02:00
Maochen Wang
879c00a462 samples: net: wifi: fix the value of NXP_WIFI_DRIVER_TASK_STACK_SIZE
Fix the typo that NXP_WIFI_DRIVER_TASK_STACK_SIZE has wrong value in
the overlay_rw612_debug.conf.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-04-15 19:10:12 +02:00
Gerhard Jörges
a01f344d64 samples: net: http_server: concurrent connections
update to reflect changes in 3ebecd15615197b81efe79fcde6e4bedc0f6b09d

Signed-off-by: Gerhard Jörges <joerges@metratec.com>
2025-04-09 17:32:50 +02:00
Maochen Wang
4385aa46d4 samples: net: wifi: shell: split rw612 conf file
Keep the minimum configurations in frdm_rw612.conf and rd_rw612_bga.conf
for basic STA functionality of embedded supplicant case.
Add the superset configurations in nxp/overlay_rw612.conf.
Add the supplicant support in nxp/overlay_hostap_rw612.conf.
Add the basic debug support in nxp/overlay_rw612_debug.conf.
Add the supplicant debug support in nxp/overlay_hostap_rw612_debug.conf.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-04-08 17:36:39 +02:00
Jukka Rissanen
db098f5ae8 samples: net: common: Check that tunnel config options are valid
Make sure that we have always a default value for tunnel peer and
local addresses.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-04-02 10:29:29 +02:00
Jukka Rissanen
8d94245152 samples: net: echo-server: Refactor tunnel support
Move the common tunnel setup code to samples/net/common directory
so that other network samples can utilize that too.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-04-02 05:29:57 +02:00
Benjamin Cabé
daacc8c297 samples: net: wifi: remove redundant options from esp32 conf overlays
A lot of the config options are already set in the prj.conf.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-04-01 11:51:59 +02:00
Chaitanya Tata
e33d9ee45c samples: net: zperf: Fine tune memory to align zero-copy
Now that nRF70 by default uses zero-copy fine-tune the configuration to
get optimal memory while getting peak throughputs.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-03-28 16:11:05 +01:00
Ravi Dondaputi
58591c6f2c net: wifi: shell: Fix alloc failures during cert validation
Memory allocation failures during certificate validation causes
connection termination. Increase MBEDTLS_HEAP_SIZE to fix this.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2025-03-28 12:21:20 +01:00
Marek Matej
c9e1ff3876 samples: net: wifi: esp32: Enable config by driver
Move repeated config NET_L2_ETHERNET under the driver Kconfig.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-03-27 21:33:24 +01:00
Marek Matej
4d78218091 boards,samples: espressif: enable wifi by default
Enable wifi node in all procpu dts, so Wi-Fi could be enabled simply by
enabling the CONFIG_WIFI. In turn some sample code overlay files can be
dismissed.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-03-27 21:33:24 +01:00
Seppo Takalo
18b1af8b86 samples: net: lwm2m: Refactor to use NET_SAMPLE Kconfig prefix
It is easier to separate a sample application Kconfig
values from ones that configure something inside Zephyr.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-03-27 09:51:31 +01:00
Seppo Takalo
f9737e016f samples: net: lwm2m: Add support for nRF52840 on nRF9160DK
Add support for running LwM2M client on nRF52840 chip
using nRF9160 as a modem through serial port.
nRF9160 should run Serial LTE Modem application build
from nRF Connect SDK.

nRF9160DK board has two MCU, nRF9160 and nRF52840.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-03-27 09:51:31 +01:00
Chaitanya Tata
be4c79b01e samples: net: zperf: Optimize heap for nRF70 Series
Fine-tune the heap to get peak UDP (TX and RX) results but with minimal
heap consumption.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-03-26 21:56:14 +01:00
Jukka Rissanen
618ec363f2 samples: net: zperf: Add frdm-rw612 board
Set minimal set of options to enable running zperf with
NXP frdm-rw612 board.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-03-26 16:22:14 +01:00