<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>TCP server (using net_context) running on nrf7002-DK in STA mode stopping receiving data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123835/tcp-server-using-net_context-running-on-nrf7002-dk-in-sta-mode-stopping-receiving-data</link><description>Hello everybody, 
 
 I have very bad problem for me. I am developing application on nrf7002-DK based on STA (station) example. I add own AT command analyzer and SCAN, so I am able to see webs that are available near my nrf7002-DK. With special AT command</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Aug 2025 12:45:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123835/tcp-server-using-net_context-running-on-nrf7002-dk-in-sta-mode-stopping-receiving-data" /><item><title>RE: TCP server (using net_context) running on nrf7002-DK in STA mode stopping receiving data</title><link>https://devzone.nordicsemi.com/thread/546631?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2025 12:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16357e9d-d6d4-4269-88ae-edc9b6f63fd2</guid><dc:creator>mathiaso</dc:creator><description>&lt;p&gt;That&amp;#39;s great, Jaroslav!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m happy to hear you figured it out.&lt;/p&gt;
&lt;p&gt;If there are no further questions, please close the ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP server (using net_context) running on nrf7002-DK in STA mode stopping receiving data</title><link>https://devzone.nordicsemi.com/thread/546505?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2025 18:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1606334b-9e2e-4fe8-8518-b04d01f15359</guid><dc:creator>Jaroslav Havel</dc:creator><description>&lt;p&gt;Hello Mathias,&lt;/p&gt;
&lt;p&gt;thank you for help. I already fixed trouble with socket, cause I had some syntax error inside code.&amp;nbsp;Compilator didn&amp;#39;t find it. Now, everything is ok, socket is working (TCP server runs on own thread).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt;Jaroslav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP server (using net_context) running on nrf7002-DK in STA mode stopping receiving data</title><link>https://devzone.nordicsemi.com/thread/546368?ContentTypeID=1</link><pubDate>Thu, 21 Aug 2025 16:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b062ee0-c48b-499c-8df5-7718a73a0b20</guid><dc:creator>Jaroslav Havel</dc:creator><description>&lt;p&gt;Hi Mathias,&lt;/p&gt;
&lt;p&gt;thanks for reply.&lt;/p&gt;
&lt;p&gt;I am trying to use sockets, but if i open TCP server, after some little time, a get error.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:01:52.010,681] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****
[00:01:52.010,711] &amp;lt;err&amp;gt; os:   Data Access Violation
[00:01:52.010,711] &amp;lt;err&amp;gt; os:   MMFAR Address: 0x8
[00:01:52.010,742] &amp;lt;err&amp;gt; os: r0/a1:  0x0005737d  r1/a2:  0xe000ed00  r2/a3:  0x0005737c
[00:01:52.010,742] &amp;lt;err&amp;gt; os: r3/a4:  0x00000008 r12/ip:  0x200061d8 r14/lr:  0x00003ba5
[00:01:52.010,772] &amp;lt;err&amp;gt; os:  xpsr:  0x29000000
[00:01:52.010,772] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0005999a
[00:01:52.010,803] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 19: Unknown error on CPU 0
[00:01:52.010,864] &amp;lt;err&amp;gt; os: Current thread: 0x20006618 (unknown)
[00:01:52.072,235] &amp;lt;err&amp;gt; coredump: #CD:BEGIN#
[00:01:52.077,301] &amp;lt;err&amp;gt; coredump: #CD:5a4502000300050013000000
[00:01:52.083,862] &amp;lt;err&amp;gt; coredump: #CD:4102004400
[00:01:52.089,233] &amp;lt;err&amp;gt; coredump: #CD:7d73050000ed00e07c73050008000000d8610020a53b00009a99050000000029
[00:01:52.099,273] &amp;lt;err&amp;gt; coredump: #CD:5819052000000000000000000000000000000000000000000000000000000000
[00:01:52.109,313] &amp;lt;err&amp;gt; coredump: #CD:00000000
[00:01:52.114,501] &amp;lt;err&amp;gt; coredump: #CD:4d010018660020b0660020
[00:01:52.120,910] &amp;lt;err&amp;gt; coredump: #CD:c8640020a8e90020000000000180000000000000000000000000000000000000
[00:01:52.130,950] &amp;lt;err&amp;gt; coredump: #CD:21f8050000000000d966020000000000000000009819052044fc002098190520
[00:01:52.141,021] &amp;lt;err&amp;gt; coredump: #CD:0100565143fc0020ffffffffffffffff40190520000000007066002070660020
[00:01:52.151,062] &amp;lt;err&amp;gt; coredump: #CD:00010000b82f042060ea000010000000840e0020081a05200000000000000000
[00:01:52.161,102] &amp;lt;err&amp;gt; coredump: #CD:2b0d0520fc03000018660020000000000000000000000000
[00:01:52.169,769] &amp;lt;err&amp;gt; coredump: #CD:4d0100b82f0420181a0520
[00:01:52.176,177] &amp;lt;err&amp;gt; coredump: #CD:f0f0f0f0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
[00:01:52.186,248] &amp;lt;err&amp;gt; coredump: #CD:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My prj.conf looks like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_WIFI=y
CONFIG_WIFI_NRF70=y

CONFIG_SERIAL=y
CONFIG_NRFX_UART0=y
CONFIG_UART_ASYNC_API=y
# WPA supplicant
CONFIG_WIFI_NRF70_LOG_LEVEL_INF=n
CONFIG_WIFI_NRF70_LOG_LEVEL_DBG=n
CONFIG_WIFI_NRF70_LOG_LEVEL_DEFAULT=n
CONFIG_WIFI_NRF70_LOG_LEVEL_WRN=n
CONFIG_WIFI_NRF70_LOG_LEVEL_OFF=n
CONFIG_WIFI_NRF70_LOG_LEVEL_ERR=n

CONFIG_WIFI_READY_LIB=y
CONFIG_WIFI_NM_WPA_SUPPLICANT=y
CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_DBG=n
CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_INF=n
CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_DEFAULT=n
CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_ERR=n
CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_OFF=n
CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_WRN=n
CONFIG_NRF_WIFI_RPU_RECOVERY=y

CONFIG_WIFI_CREDENTIALS=y
CONFIG_WIFI_CREDENTIALS_STATIC=y
CONFIG_WIFI_CREDENTIALS_STATIC_SSID=&amp;quot;xxxxxxxxx&amp;quot;
CONFIG_WIFI_CREDENTIALS_STATIC_PASSWORD=&amp;quot;yyyyyyyyyy&amp;quot;

# Networking
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_LOG=n
CONFIG_NET_IPV4=y
CONFIG_NET_UDP=y
CONFIG_NET_TCP=y
CONFIG_NET_DHCPV4=y

CONFIG_NET_MGMT_EVENT_LOG_LEVEL_DBG=n
CONFIG_NET_MGMT_EVENT_LOG_LEVEL_DEFAULT=n
CONFIG_NET_MGMT_EVENT_LOG_LEVEL_INF=n
CONFIG_NET_MGMT_EVENT_LOG_LEVEL_ERR=n
CONFIG_NET_MGMT_EVENT_LOG_LEVEL_WRN=n
CONFIG_NET_MGMT_EVENT_LOG_LEVEL_OFF=n



CONFIG_NET_PKT_RX_COUNT=32
CONFIG_NET_PKT_TX_COUNT=32
CONFIG_NRF70_RX_NUM_BUFS=16

# Below section is the primary contributor to SRAM and is currently
# tuned for performance, but this will be revisited in the future.
CONFIG_NET_BUF_RX_COUNT=64
CONFIG_NET_BUF_TX_COUNT=64
CONFIG_HEAP_MEM_POOL_SIZE=47000
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=32768
CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
CONFIG_NRF_WIFI_CTRL_HEAP_SIZE=20000
CONFIG_NRF_WIFI_DATA_HEAP_SIZE=40000
CONFIG_NET_TC_TX_COUNT=1

CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=1
CONFIG_NET_MAX_CONTEXTS=50
CONFIG_NET_CONTEXT_SYNC_RECV=y

CONFIG_INIT_STACKS=y

CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_L2_WIFI_MGMT=y
CONFIG_NET_L2_WIFI_MGMT_LOG_LEVEL_DBG=n
CONFIG_NET_L2_WIFI_MGMT_LOG_LEVEL_INF=n
CONFIG_NET_L2_WIFI_MGMT_LOG_LEVEL_WRN=n
CONFIG_NET_L2_WIFI_MGMT_LOG_LEVEL_ERR=n
CONFIG_NET_L2_WIFI_MGMT_LOG_LEVEL_DEFAULT=n
CONFIG_NET_L2_WIFI_MGMT_LOG_LEVEL_OFF=n

CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX=4

CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_INIT_TIMEOUT=0

CONFIG_NET_SOCKETS_POLL_MAX=15

# Memories
CONFIG_MAIN_STACK_SIZE=60000
CONFIG_NET_TX_STACK_SIZE=4096
CONFIG_NET_RX_STACK_SIZE=4096
CONFIG_STA_SAMPLE_START_WIFI_THREAD_STACK_SIZE=65400

# Debugging
CONFIG_STACK_SENTINEL=y
CONFIG_DEBUG_COREDUMP=y
CONFIG_DEBUG_COREDUMP_BACKEND_LOGGING=y
CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y
CONFIG_SHELL_CMDS_RESIZE=n


# Kernel options
CONFIG_ENTROPY_GENERATOR=y

# Logging
CONFIG_LOG_BUFFER_SIZE=16384
CONFIG_POSIX_CLOCK=y

CONFIG_NET_CONFIG_MY_IPV4_ADDR=&amp;quot;192.168.1.99&amp;quot;
CONFIG_NET_CONFIG_MY_IPV4_NETMASK=&amp;quot;255.255.255.0&amp;quot;
CONFIG_NET_CONFIG_MY_IPV4_GW=&amp;quot;192.168.1.1&amp;quot;

# printing of scan results puts pressure on queues in new locking
# design in net_mgmt. So, use a higher timeout for a crowded
# environment.
CONFIG_NET_MGMT_EVENT_QUEUE_TIMEOUT=5000

CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS=n
CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS_ONLY=n

CONFIG_WIFI_SCAN_DWELL_TIME_ACTIVE=50
CONFIG_WIFI_SCAN_DWELL_TIME_PASSIVE=130

CONFIG_WIFI_LOG_LEVEL_OFF=n
CONFIG_WIFI_LOG_LEVEL_INF=n

CONFIG_LOG_BACKEND_NET_AUTOSTART=n
CONFIG_LOG=n
CONFIG_LOG_DEFAULT_LEVEL=3

CONFIG_TIMER=y
CONFIG_COUNTER=y
CONFIG_CLOCK_CONTROL=y
CONFIG_CLOCK_CONTROL_NRF=y
CONFIG_NRFX_CLOCK=y
CONFIG_RTC_ALARM=y
CONFIG_RTC_UPDATE=y
CONFIG_NET_ICMPV4_ACCEPT_BROADCAST=y

#CONFIG_NET_BUF_DATA_SIZE=8192
CONFIG_NET_BUF_POOL_USAGE=y

CONFIG_NET_RX_DEFAULT_PRIORITY=7
CONFIG_MULTITHREADING=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any idea how to fix it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Jaroslav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP server (using net_context) running on nrf7002-DK in STA mode stopping receiving data</title><link>https://devzone.nordicsemi.com/thread/546307?ContentTypeID=1</link><pubDate>Thu, 21 Aug 2025 08:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15d10b8a-eaca-4287-8106-3d3b560f5274</guid><dc:creator>mathiaso</dc:creator><description>&lt;p&gt;Hi, Jaroslav.&lt;/p&gt;
&lt;p&gt;I got some input from a colleague that you should use&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/wi-fi-fundamentals/lessons/lesson-3-wifi-fundamentals/topic/socket-api-2/"&gt;POSIX sockets&lt;/a&gt;. Have a look at the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.0/page/nrf/samples/net/https_client/README.html"&gt;HTTPS Client&lt;/a&gt; and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.0/page/nrf/samples/net/udp/README.html"&gt;UDP&lt;/a&gt; samples for references.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Mathias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP server (using net_context) running on nrf7002-DK in STA mode stopping receiving data</title><link>https://devzone.nordicsemi.com/thread/546280?ContentTypeID=1</link><pubDate>Thu, 21 Aug 2025 05:51:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:252b61be-fd51-4966-91b6-e49dbd387429</guid><dc:creator>Jaroslav Havel</dc:creator><description>&lt;p&gt;Hi Mathias,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have some news, that can help us solve problem with TCP server.&amp;nbsp;&lt;span class="Y2IQFc" lang="en"&gt;I also implemented the TCP server in another project based on the SoftAP example.&amp;nbsp;&lt;/span&gt;&lt;span class="Y2IQFc" lang="en"&gt;It&amp;#39;s a different project, based on the fact that the nrf7002-DK behaves as an AP, there is no scan, etc., but the implementation of my TCP server is the same.&lt;/span&gt;&lt;span class="Y2IQFc" lang="en"&gt;I found exactly the same behavior of the TCP server. In the case when the TCP server receives several messages, it is blocked (frozen). It does not accept any more messages on a specific connection with the client. The number of messages is smaller (about 4 to 5), this is because the buffer sizes are specified differently.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think the problem arises with memory release.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The implementation of the server and callback for receiving data is the same as in the main post.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt;Jaroslav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP server (using net_context) running on nrf7002-DK in STA mode stopping receiving data</title><link>https://devzone.nordicsemi.com/thread/546205?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 13:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd03bdb9-a8c0-4762-9f7f-f148ebb6e74e</guid><dc:creator>Jaroslav Havel</dc:creator><description>&lt;p&gt;Hi Mathias,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I thing for start it will be hard to understand each other. Maybe it is because I am not able to decribe my problem. But&amp;nbsp;I can send project (in .zip) or a video when&amp;nbsp;I show issue. If you are interested, please give me some contact or link for send a video or complete project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Jaroslav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP server (using net_context) running on nrf7002-DK in STA mode stopping receiving data</title><link>https://devzone.nordicsemi.com/thread/546199?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 12:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42af1800-1d86-4ad2-9df4-6d99e87b3b2f</guid><dc:creator>Jaroslav Havel</dc:creator><description>&lt;p&gt;Hi, Mathias,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if I tryied to use sockets, I got error (operation is not supported). So I decided to use net_context and it seems to me it works.&amp;nbsp;&lt;span class="Y2IQFc" lang="en"&gt;I don&amp;#39;t think it matters.&lt;/span&gt;Let&amp;#39;s not talk now about why I don&amp;#39;t use sockets but net_context, I need to get it working on net_context (although maybe converting it to sockets could be a solution).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My problem is that my server stops receiving data after I got maybe 20 messanges. After maybe 20 messanges, my TCP server is not able to receive any data. If&amp;nbsp;I close connection with client and re-open it, I am able to receive new 20 messanges (maybe 20). After this, the connection freezes. Only if I re-open connectin with client, I am able to receive data (only 20 messages and them freeze).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I want to be able receive messages without any limit&amp;nbsp;on the number (using TCP). Each message could be 8192 bytes length. Maybe 100 messages per minute per connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Personally, I think the problem is in memories, buffers and packets management. I don&amp;#39;t really understand it, I think my buffers are overflowing and then the packets are being dropped, which is why the callback for the receive event is not triggered.&lt;/span&gt;&lt;/p&gt;
&lt;div id="KnM9nf" class="PZPZlf" data-attrid="tw-sourceArea" data-entityname="Google Translate"&gt;
&lt;div id="tw-smenu" class="tw-menu"&gt;&lt;span id="tw-mic" class="tw-menu-btn" data-ved="2ahUKEwiW_5-N9ZiPAxWB7rsIHUUZCEUQ7zR6BAgJEBA"&gt;&lt;span class="tw-menu-btn-image"&gt;&lt;/span&gt;&lt;span class="tw-menu-btn-image CFq0kc Hnn8f z1asCe JXrXlb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id="_0n-laJbOF4Hd7_UPxbKgqAQ_46" class="fQjaD" data-pronunciation-action-target="source"&gt;&lt;span class="c5aZPb" data-extra-container-classes="tw-promo-bubble" data-extra-triangle-classes="tw-promo-triangle" data-hover-hide-delay="1000" data-hover-open-delay="500" data-send-dismiss-event="true" data-theme="0" data-width="0" data-zidx="1"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id="tw-src-spkr-button" class="tw-menu-btn" data-action-target="source" data-sttse="true" data-ved="2ahUKEwiW_5-N9ZiPAxWB7rsIHUUZCEUQv7cBegQICRAT"&gt;&lt;span class="tw-menu-btn-image z1asCe JKu1je" title="Poslech v&amp;yacute;slovnosti"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id="tw-cst" class="tw-menu-btn KTDgic" data-ved="2ahUKEwiW_5-N9ZiPAxWB7rsIHUUZCEUQxZgCegQICRAU"&gt;&lt;span class="tw-menu-btn-image z1asCe wuXmqc" title="Vymazat zdrojov&amp;yacute; text"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="QmZWSe"&gt;
&lt;div class="DHcWmd"&gt;I attached my settings in my previous post (main post) and I would like to ask for your assessment of whether I am working correctly with memory, buffers, packets, etc. I am not very familiar with this yet.&lt;/div&gt;
&lt;div class="DHcWmd"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Jaroslav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP server (using net_context) running on nrf7002-DK in STA mode stopping receiving data</title><link>https://devzone.nordicsemi.com/thread/546188?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 12:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a4ed8e0-45ae-4d1f-b842-124480a4b2a4</guid><dc:creator>mathiaso</dc:creator><description>&lt;p&gt;Hi, Jaroslav.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ll do our best to help you.&lt;/p&gt;
&lt;p&gt;Could you please specify again what your specific problem is?&lt;/p&gt;
[quote user=""]I am working with net_context architecture. I try to use sockets, but it doesn&amp;#39;t work.[/quote]
&lt;p&gt;What specifically doesn&amp;#39;t work when you&amp;#39;re trying to use sockets?&lt;/p&gt;
[quote user=""]I added function, that will disconnect client, that didn&amp;#39;t send message for some time (maybe 30 seconds). If I do disconnection of client and I do new connection, data start flow (only maybe 20 messages). If you do net_context unref and put.[/quote]
&lt;p&gt;Is it that you&amp;#39;re only able to receive 20 messages before a disconnect occurs?&lt;/p&gt;
[quote user=""]Could you please help me solve this problem, I want to be able read any count of messages.[/quote]
&lt;p&gt;Or is it a different number of messages you&amp;#39;re able to receive before the disconnect occurs?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Mathias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>