Commit Graph

2549 Commits

Author SHA1 Message Date
Vytautas Virvičius
4bd85fe6c4 samples: net: zperf: add cellular modem support
This commit adds a cellular modem overlay to the zperf sample, enabling
the use of zperf with a cellular modem.

Signed-off-by: Vytautas Virvičius <vytautas@virvicius.dev>
2025-07-28 08:36:57 -04:00
Declan Snyder
fb0ca1653f samples: net: sockets: http_server: Dont block system workq
Since the netstats handler calls on functions which reach deep into the
networking stack, there is a lot of points actually at which it can be
blocked, even forever. So having this handler on the system workqueue is
not a good idea and can even cause a deadlock in some cases if it's
blocked waiting on a synchronization primitive that would be given by a
work item scheduled later in the queue. Therefore, make a workqueue
specifically for this http server socket instead of using the system
one.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-07-25 08:07:14 -04:00
Cristian Bulacu
d2ecb8e829 samples: net: openthread: border_router: Add OTBR sample application.
Enabled Wi-Fi shell alongside OpenThread application and added specific
configuration for Border Router enablement.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-07-24 16:56:42 +01:00
Vijayakannan Ayyathurai
04336baf90 samples: net: zperf: Enable i226 config with Intel Alderlake
The Zperf sample application was chosen to demonstrate basic network
functionality and high-performance use cases. This application serves
as a reference for users who wish to enable other network sample
applications.

In addition to the essential configurations for the Intel i226 Ethernet
controller, stack-specific configurations were added to ensure stability
under heavy network loads. These configurations include adjustments to
buffer sizes, interrupt handling, and DMA descriptor management.

Signed-off-by: Vijayakannan Ayyathurai <vijayakannan.ayyathurai@intel.com>
2025-07-23 17:17:24 +01:00
Robert Lubos
eacd745627 samples: net: http_client: Avoid parallel IPv4/IPv6 sessions
Apparently the simple python HTTPS server the sample is interfacing,
cannot handle parallel TLS sessions (just one at a time), hence
establishing both IPv4/6 connections before sending request doesn't work
well, half of the requests are dropped. Therefore, modify the sample a
little to run only one TLS (or TCP if no TLS is used) connection at a
time.

Additionally, add a log in case HTTP client request fails, as it could
easily be overlooked if something went wrong.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-07-23 09:31:49 +02:00
Robert Lubos
82be9354ee samples: net: http_client: Update TLS configuration
Python HTTPS server counterpart for the sample now seems to enforce
ECDHE key exchange, so enable it in the sample.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-07-23 09:31:49 +02:00
Jorge Ramirez-Ortiz
f9eeefa6e0 samples: net: latmon: latency monitor tool
Supports the EVL/Xenomai4 benchmarking tool as described in the
documentation. The benchmarking tool is accessed via the latmon service.

This code uses the J2 socket on FRDMk64-F:
             PIN_20: tx pulse to SUT
             PIN_18: rx ack from SUT

The client code running on the SUT shall monitor the falling edge of
PIN_20.

Example usage from the latmus client running Xenomai4:
 $ latmus -I gpiochip2,23,falling-edge  \
          -O gpiochip2,21 -g"histogram" \
          -z broadcast

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
2025-07-20 12:27:30 -04:00
Krzysztof Chruściński
3c9389650e Revert "drivers: serial: nrfx_uarte: Deprecate CONFIG_UART_x_NRF_HW_ASYNC"
This reverts commit 384e940c66.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-07-17 12:46:31 -10:00
Gaetan Perrot
36fe97f2ee samples: net: mqtt_sn_publisher: Remove shadowed variable
Avoids shadowing the outer 'err' variable by reusing it instead of
redeclaring it inside a conditional block.

This improves code readability.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-07-08 13:44:28 -05:00
Gerson Fernando Budke
b478cd8f37 linker_script: Remove some remaining SUBALIGN in iterable sections
The #91219 miss some entries when doing the clean-up. This removes
some of remaining SUBALIGN entries in the iterable sections. It do
not consider SECTION_PROLOGUE and zephyr_linker_section entries.

Fixes #92349

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2025-07-07 10:07:56 -05:00
Tim Pambor
f682a173d8 net: socket: mgmt: Fix function signature
Update the trigger_events function signature to match the expected
k_thread_entry_t type:
typedef void (*k_thread_entry_t)(void *p1, void *p2, void *p3);

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-07-04 14:21:23 -10:00
Pisit Sawangvonganan
a163f9db61 kconfig: fix typo in (arch, boards, kernel, modules, samples, share)
Utilize a code spell-checking tool to scan for and correct spelling errors
in `Kconfig` files within the `arch`, `boards`, `kernel`, `modules`,
`samples`, and `share` directory.
Additionally, incorporates a fix recommended by the reviewer.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-07-01 10:58:54 -10:00
Philipp Steiner
ebaf31c8c1 boards: adafruit: add initial support esp32s3_feather_tft_reverse
The Adafruit Feather ESP32S3 TFT Reverse is a development board in the
Feather standard layout, sharing peripheral placement with other devices
labeled as Feathers or FeatherWings. The board is equipped with an
ESP32-S3 mini module, a fuel gauge, a USB-C and Qwiic/STEMMA-QT connector.
This variant additionally comes with a 240x135 pixel IPS TFT color display
on the backside of the boards and with 3 buttons.

Signed-off-by: Philipp Steiner <philipp.steiner1987@gmail.com>
2025-06-26 10:44:53 -10:00
Fin Maaß
ab0c9b861e samples: add CONFIG_LOG_TIMESTAMP_USE_REALTIME
add CONFIG_LOG_TIMESTAMP_USE_REALTIME to a sample,
so building with it is tested.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-06-26 11:03:22 -05:00
Marek Matej
e93a6338d4 samples: ot: shell: update the sample configuration
Add l2 shell and ieee802154 node to the samples.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-06-26 11:12:34 +02:00
Arunmani Alagarsamy
60ab9888d4 samples: net: Fix MAC address logging to include correct third byte
Previously, mac->addr[2] was skipped and mac->addr[3] was duplicated.
This change ensures all six MAC address bytes are logged in the
correct order.

Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
2025-06-24 15:40:44 -05:00
Chris Friedt
45b3dbd008 samples: net: remove POSIX_TIMERS and XSI_SINGLE_PROCESS
Remove POSIX_TIMERS and XSI_SINGLE_PROCESS dependencies from the aws
cloud sample and the lwm2m client sample, as they are no longer
required.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-06-24 14:18:52 +02:00
Maochen Wang
f4a0beb2b7 samples: net: wifi: Enable NXP_WIFI_TX_RX_ZERO_COPY for IW610
Enable NXP_WIFI_TX_RX_ZERO_COPY for IW610, which will reduce extra memcpy
between net stack and driver in TX data path and avoid the allocation of
RXPD and mlan_buffer in RX data path, to improve the throughput
performance.
Increase CONFIG_NET_BUF_DATA_SIZE to hold one packet in one buffer.
NXP_WIFI_TX_RX_ZERO_COPY can be enabled not only for NXP_RW610 case.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-06-24 09:17:03 +02:00
Chaitanya Tata
9e8a21701b samples: net: zperf: Disable L2 ethernet
This simplifies Zperf commands avoiding needs to handle multiple
interfaces.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-06-23 12:47:56 -07:00
Jukka Rissanen
5a9a39caf3 net: mgmt: Convert the mgmt API to use 64-bit masks
Instead of using 32 bit enum values for event numbers, convert
the code to use 64 bit long bit fields. This means that the
user API is changed to use 64 bit event values instead of 32
bit event values.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-06-18 10:54:44 +02:00
Keith Packard
97f96afbd7 linker_script: Remove all SUBALIGN usage for iterable sections
SUBALIGN forces alignment to the specified value, even if the object
requires stricter alignment. This causes mis-aligned access when accessing
the resulting value.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-06-17 16:06:21 +02:00
Maochen Wang
0f6aeca490 samples: net: wifi: nxp: add separate conf for IW610
Add one config file for IW610 chip, as it has different net related
settings and thread priority settings from other hosted MCU, due to
Wi-Fi chip capability difference.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-06-17 07:24:13 +02:00
Chris Friedt
4cb9c80e6c samples: net: socketpair: ensure integration platform is on allow list
Ensure that qemu_x86 (the integration platform) is on the allow list
for `sample.net.sockets.socketpair.s32k148_evb`.

```
INFO: Error found: sample.net.sockets.socketpair.s32k148_evb on
qemu_x86/atom (Not in testsuite platform allow list but is one of the
integration platforms)
```

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-06-14 12:37:06 -04:00
Kevin Shaju
49091ff10b boards: shields: Add shield for NXP ADTJA1101 Ethernet Adapter
Add a shield for NXP ADTJA1101 Ethernet Adapter. This shield can
be used with the s32k148_evb.

Signed-off-by: Kevin Shaju <kevin.shaju@accenture.com>
2025-06-12 15:04:32 -07:00
Robert Lubos
86244a9c54 net: stats: Make byte counters 64-bit
In high throughput tests it's fairly easy to overflow the current 32-bit
byte counters in net statistics (it's just over 4 GB of data).
Therefore, make the byte counters 64-bit to prevent overflows.
Rearrange some fields to avoid padding.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-06-12 09:36:38 -07:00
Robert Lubos
b877d2c1fe net: stats: Use correct format specifiers when printing stats
net_stats_t type is an unsigned type, therefore %u should be used
instead of %d when printing values of this type, otherwise negative
values will be printer if INT32_MAX is exceeded.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-06-12 09:36:38 -07:00
Cristian Bulacu
d29ca4bf6c samples: echo_client echo_server: update tests
Added frdm_mcxw72 as allowed platform

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-06-12 09:34:16 -07:00
Maochen Wang
f6c386d900 samples: net: wifi: nxp: fix TCP RX accept error
Fix the zperf TCP RX accept error when start both UDP and TCP zperf
server, as the fdtable size is not enough and reserve fd table failed.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-06-12 11:33:19 +02:00
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