<?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>Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116486/enable-or-disable-twt-with-notification</link><description>I am studying Lesson 6/wifi fund_1ess6uexer2 and I can run the provided code normally. 
 （academy.nordicsemi.com/.../） But I still want to control whether to send packets by pressing button 2 when turning off the TWT function. As shown in step 3 of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 May 2025 07:35:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116486/enable-or-disable-twt-with-notification" /><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/536711?ContentTypeID=1</link><pubDate>Fri, 23 May 2025 07:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1168c484-3a98-431e-b3a4-28ee875e5f78</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In that case, you can use this example for audio: &lt;a href="https://github.com/charlieshao5189/nordic_wifi_opus_audio_demo"&gt;https://github.com/charlieshao5189/nordic_wifi_opus_audio_demo&lt;/a&gt;, and this example for video: &lt;a href="https://github.com/NordicPlayground/nrf70-wifi-ble-image-transfer-demo/"&gt;https://github.com/NordicPlayground/nrf70-wifi-ble-image-transfer-demo/&lt;/a&gt;. You will need extra hardware for both examples, but everything is listed in the README.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/536653?ContentTypeID=1</link><pubDate>Thu, 22 May 2025 14:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ff7cf06-dd4b-4a9f-a030-f256aef8b878</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;&lt;span&gt;The nRF7002 device is supposed to be the one to send.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/536647?ContentTypeID=1</link><pubDate>Thu, 22 May 2025 13:52:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d35214f6-16d8-4fa3-9cdd-b6b6bf0df5e1</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the nRF7002 device supposed to be the one to send or receive this traffic?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/536643?ContentTypeID=1</link><pubDate>Thu, 22 May 2025 13:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dad99d1c-717f-4c5a-8be7-83cc4908d92d</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;&lt;span&gt;As described in the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/wifi/station_mode/powersave.html"&gt;docs.nordicsemi.com/.../powersave.html&lt;/a&gt;, &amp;quot;The application must choose the right duration based on the traffic pattern&amp;quot;. Therefore, I want to test different traffic patterns(video, voice, gaming, or any other real-time/unreal-time) under TWT mode. To achieve this, I want to know how to generate those different traffic patterns.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/536340?ContentTypeID=1</link><pubDate>Wed, 21 May 2025 08:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a53c7480-88a0-4aaa-8b34-9ec4d00aecc2</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you clarify what you want to achieve? Do you want the device to send or receive the traffic, and do you want the traffic to be continuous, or should the device be asleep for periods of time before waking up to either receive or transmit something?&lt;/p&gt;
&lt;p&gt;There are some unofficial demos and samples showing image transfer and audio streaming that you can find here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/NordicPlayground/nrf70-wifi-ble-image-transfer-demo/"&gt;https://github.com/NordicPlayground/nrf70-wifi-ble-image-transfer-demo/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/charlieshao5189/nordic_wifi_opus_audio_demo"&gt;https://github.com/charlieshao5189/nordic_wifi_opus_audio_demo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/charlieshao5189/wifi_audio_simple_sample"&gt;https://github.com/charlieshao5189/wifi_audio_simple_sample&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These are made by Nordic employees, but have not been thoroughly tested or qualified and should be considered provided “as-is”.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/536067?ContentTypeID=1</link><pubDate>Tue, 20 May 2025 03:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14d079eb-8cab-4acc-8eb4-b019c40266eb</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;&lt;span&gt;hello，&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;，I want to send voice traffic, game traffic, or video traffic through TWT. Do you have any examples of this？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/514511?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 13:05:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22579e20-7924-45bc-99ec-882f905fc519</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Because the device is using DTIM and not listen interval. If you want the device to use listen interval as wakeup mode you must change it by sending a wakeup mode request to the AP. You can do so like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;struct net_if *iface = net_if_get_default();
struct wifi_ps_params params = { 0 };

params.wakeup_mode = WIFI_PS_WAKEUP_MODE_LISTEN_INTERVAL;
params.type = WIFI_PS_PARAM_WAKEUP_MODE;

if (net_mgmt(NET_REQUEST_WIFI_PS, iface, &amp;amp;params, sizeof(params))) {
	LOG_ERR(&amp;quot;Setting wakeup mode failed. Reason %s&amp;quot;,
		wifi_ps_get_config_err_code_str(params.fail_reason));
	return -1;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/514320?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 15:22:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a7eb43d-ac7d-4046-aa0b-dd1bf79ebe28</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;no, I am not,&amp;nbsp;it is the default.&lt;/p&gt;
&lt;p&gt;so, why capture &lt;span&gt;&amp;nbsp;listen interval is 0x000a (10 beacon about 1 second), but the picture 3 is 100ms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;are there some misunderstandings?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;the code is from:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicDeveloperAcademy/wifi-fund/blob/main/lesson6/wififund_less6_exer2_solution/src/main.c"&gt;github.com/.../main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/514315?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 15:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1227e783-4518-4161-a8b6-2dc63c7ca83a</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you configured the device to use DTIM or listen interval as wakeup mode? You can change this by sending a wakeup mode request, as described in step 5 in &lt;a href="https://academy.nordicsemi.com/courses/wi-fi-fundamentals/lessons/lesson-6-wifi-fundamentals/topic/lesson-6-exercise-1-2/"&gt;Lesson 6, exercise 1 - Enabling power save modes&lt;/a&gt; in the Wi-Fi Fundamental course.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/514298?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 14:30:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2919bf85-02f9-441d-8d97-e5482e97b3a6</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;OK, I see. As shown in the picture 1 and 2, the listen interval is 0x000a, and the beacon interval is 100ms.&lt;/p&gt;
&lt;p&gt;The sta will wake up 10 beacons(about 1 second ) to check if AP has data buffered for it.&lt;/p&gt;
&lt;p&gt;but why it is 100ms in the measurement of picture 3:&lt;/p&gt;
&lt;p&gt;picture 1:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/listen-interval.png" /&gt;&lt;/p&gt;
&lt;p&gt;picture 2:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/WechatIMG791.png" /&gt;&lt;/p&gt;
&lt;p&gt;picture 3:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/WechatIMG786.png" /&gt;&lt;/p&gt;
&lt;p&gt;The capture package:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/listen-interval-.pcapng"&gt;devzone.nordicsemi.com/.../listen-interval-.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/514245?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 12:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90ac996f-d0bf-4f8f-81ce-175b0077a431</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="ChengQing Zhao"]How is the peak current in the picture caused？[/quote]
&lt;p&gt;It is the device waking up to see if the AP sends any DTIM beacons, indicating that the AP has data buffered for it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/513909?ContentTypeID=1</link><pubDate>Sat, 07 Dec 2024 04:52:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3838d2e-f69e-44f9-a9ed-7b74477288e6</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;OK, thank you&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;. So, after it goes back to sleep, How is the peak current in the picture caused？&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/WechatIMG782.png" /&gt;&lt;/p&gt;
&lt;p&gt;I captured the package by the Wireshark and found that there is no package about STA, just about some AP broadcast package.&lt;/p&gt;
&lt;p&gt;As described in the official document &amp;quot;&lt;span&gt;This means that the STA &lt;span style="background-color:#ff0000;"&gt;must send a PS-Poll frame for every downlink frame&lt;/span&gt;, which is sub-optimal with regards to efficiency and reducing overhead control signaling.&lt;/span&gt;&amp;quot;&lt;a id="" href="https://academy.nordicsemi.com/courses/wi-fi-fundamentals/lessons/lesson-6-wifi-fundamentals/topic/power-save-modes-2/"&gt;https://academy.nordicsemi.com/courses/wi-fi-fundamentals/lessons/lesson-6-wifi-fundamentals/topic/power-save-modes-2/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So, I think&amp;nbsp;&lt;span&gt;the peak current&amp;nbsp;is caused by the &amp;quot;ps-poll&amp;quot; package, but sta nrf7002dk does not send any package. that is my question.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And I want to know the&amp;nbsp;the peak current&amp;nbsp;include the package detail, just like the follow picture shows. can you give me some help?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1733563801315v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/512996?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2024 14:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3c4c56f-4c24-49de-a128-166be9d7c159</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Since the device sent a packet, it will be awake to receive any response and ACKs from the AP. When it receives a frame from the AP informing it that the AP does not have any more data buffered for the device, it will go back to sleep.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/512326?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 11:51:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2672142f-04e3-459f-b16d-2f5fa5be6af8</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;Thank you,&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;. The last question, as you subscribe that, in&amp;nbsp;&lt;span&gt;legacy power save mode, after STA receives the data, the sta will be awake&amp;nbsp;to send &amp;quot;ps-poll&amp;quot;, as shown in the figure, so it keeps awake, does not go to sleep, still there is no data, sta then go to sleep, right?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1732707840570v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/512295?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 09:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39a517cf-e994-4270-9b83-b946fdd5ad82</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="ChengQing Zhao"]So, why does&amp;nbsp;&lt;span&gt;t&lt;/span&gt;&lt;span&gt;he legacy power save mode consume more power than the TWT mode when sending a package?&lt;/span&gt;[/quote]
&lt;p&gt;Because the radio is on for a longer period of time with legacy power save mode. As is explained in the &lt;a href="https://academy.nordicsemi.com/courses/wi-fi-fundamentals/lessons/lesson-6-wifi-fundamentals/topic/power-save-modes-2/"&gt;Power save modes&lt;/a&gt; topic in DevAcademy, with legacy power save mode, the device sends a PS poll to the AP to inform the AP that it is ready to receive data. The STA will be awake until it receives a frame from the AP with the More Data subfield set to 0, indicating that the AP does not have any more buffered data to send to the STA. In your case, this interaction seems to take 100 ms.&lt;/p&gt;
&lt;p&gt;When it comes to TWT, you have configured the TWT interval to be 100 ms and the wake interval to be 65 ms. This means that for each TWT period, which is 100 ms, the device will be awake for 65 ms and asleep for 35 ms. It does not wait to receive a frame from the AP with the More Data subfield set to 0 before going to sleep, it goes to sleep after being awake for 65 ms, as is agreed upon with the AP. If more data is buffered on the AP, this will be sent during the next wake-up instead.&lt;/p&gt;
&lt;p&gt;The nominal current consumption for RX is 60 mA for 2.4GHz and 56 mA for 5GHz, so the extra 35 ms that the device is awake for with legacy power save will greatly impact the average current consumption.&lt;/p&gt;
&lt;p&gt;The best improvement of TWT is that the device can be asleep for a longer period of time than with legacy power save mode, so comparing the current consumption under the same conditions does not really show the advantages of using TWT. However, for a fairer comparison, I would recommend reducing the TWT wake interval when having such a short TWT interval, as 65 ms wake interval is rather long when the total TWT interval is 100 ms. You can change this by changing the TWT_WAKE_INTERVAL_MS or directly changing params.setup.twt_wake_interval in wifi_set_twt() instead.&lt;/p&gt;
&lt;p&gt;I also recommend checking out the &lt;a href="https://devzone.nordicsemi.com/power/w/opp/14/online-power-profiler-for-wi-fi"&gt;Online Power Profiler for Wi-Fi&lt;/a&gt;. Here, you can set the power save mode and other configurations and easily see how legacy power save mode (DTIM) compares with TWT when using different settings.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/512170?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 14:29:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de798eb6-0a9d-4d1f-a692-9841de4f8b1f</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;I want to compare the power consumption of TWT and legacy&lt;span&gt;&amp;nbsp;power save mode&lt;/span&gt;&amp;nbsp;under the same conditions, as the&amp;nbsp;&lt;span&gt;legacy&lt;/span&gt;&lt;span&gt;&amp;nbsp;power save mode&lt;/span&gt;&amp;nbsp;is 100 ms.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As you said, the legacy power save mode is 1.78mA, and TWT is 40.95mA, as shown in picture 1 and picture 2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But when I send a package the legacy power save mode&amp;nbsp;consumes more power than TWT.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;as shown in picture 3 and picture 4.&amp;nbsp; TWT average is&lt;/span&gt;&amp;nbsp;44.35mA, and&amp;nbsp;&lt;span&gt;t&lt;/span&gt;&lt;span&gt;he legacy power save mode is&amp;nbsp;&lt;/span&gt;58.31mA&amp;nbsp; in 100ms.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, why does&amp;nbsp;&lt;span&gt;t&lt;/span&gt;&lt;span&gt;he legacy power save mode consume more power than the TWT mode when sending a package?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;picture 1 (the&amp;nbsp;legacy&amp;nbsp;power mode ):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/12545.png" /&gt;&lt;/p&gt;
&lt;p&gt;picture 2 (TWT mode ):&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2350.png" /&gt;&lt;/p&gt;
&lt;p&gt;picture 3 (&lt;span&gt;the&amp;nbsp;legacy&amp;nbsp;power mode with send a package&lt;/span&gt;):&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/55520.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;picture&amp;nbsp;4 (&lt;/span&gt;&lt;span&gt;the&amp;nbsp;TWT mode with send a package&lt;/span&gt;&lt;span&gt;):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/56336.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The code is from lesson 6/wifi fund_1ess6uexer2, and put the button 2 to send a &amp;quot;hello&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;package. the high peak power in Figure 3 and Figure 4 is caused by the package. the code change is as:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;static void button_handler(uint32_t button_state, uint32_t has_changed)
{
	uint32_t button = button_state &amp;amp; has_changed;

	/* STEP 5.1 - Call wifi_set_twt() to enable or disable TWT when button 1 is pressed. */
	if (button &amp;amp; DK_BTN1_MSK) {
		wifi_set_twt();
	}

	/* STEP 5.2 - Enable or disable sending packets during TWT awake when button 2 is pressed.
	 */
	if (button &amp;amp; DK_BTN2_MSK) {
		send_packet();
	}
}&lt;/pre&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/512144?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 13:45:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63dee8bf-9a73-4d0c-a8a6-fa3da89fa932</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Why are you setting the TWT interval to 100 ms? With your current configurations, the device will only be asleep for 35 ms for each TWT service period since the wake interval is 65 ms and the TWT interval (wake + sleep) is 100 ms. This will result in a higher current consumption than when using legacy power save mode. Can you try increasing the TWT interval to see if you get the same behavior?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/511882?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 12:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b487b97e-2e2b-4242-a8c2-23249e4b9c59</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;Oh, i am so sorry&amp;nbsp; that i modify the twt&amp;nbsp;&lt;span&gt;interval&amp;nbsp;&lt;/span&gt;100ms.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The nRF Connect SDK is v2.7.0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nordic-TWT.pcapng"&gt;devzone.nordicsemi.com/.../nordic-TWT.pcapng&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/511857?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 10:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd404abd-54ce-4075-b915-9c3f16c7bc40</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you share the sniffer log as a pcap file?&lt;/p&gt;
&lt;p&gt;It seems like TWT is not set up correctly based on this log:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;[00:01:15.231,933] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT interval: 0 s (100000 us)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For some reason, TWT is set up with a TWT interval of 0.1 seconds, which could explain the high current consumption. If you have not made any changes to the code, then the interval should be 7 seconds.&lt;/p&gt;
&lt;p&gt;Also, which version of the nRF Connect SDK are you using?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/511767?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2024 16:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf7a2ae-0de5-4138-9727-87fd2e89f3e1</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;I captured the package by wireshark, the track is shown in figure below, I tried to analyze the reason for the peak.&lt;/p&gt;
&lt;p&gt;I think the peak is caused by the &amp;quot;QoS null function&amp;quot; package.&lt;/p&gt;
&lt;p&gt;do you think it is reasonable or not?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/WechatIMG725.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/511534?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 15:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93121a99-bb5d-42f4-8332-3e4568ffac11</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;The log is:&lt;/p&gt;
&lt;p&gt;&amp;gt; wifi_cred auto_connect&lt;br /&gt;wifi_cred auto_connect&lt;br /&gt;[00:00:36.831,787] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:41.863,525] &amp;lt;inf&amp;gt; Lesson6_Exercise2: Network connected&lt;br /&gt;[00:00:41.864,288] &amp;lt;inf&amp;gt; Lesson6_Exercise2: Connected to server&lt;br /&gt;[00:00:41.864,288] &amp;lt;inf&amp;gt; Lesson6_Exercise2: Press button 1 on your DK to enable or disable TWT&lt;br /&gt;[00:00:41.865,753] &amp;lt;inf&amp;gt; Lesson6_Exercise2: Successfully sent message: Hello from nRF70 Series! 0&lt;br /&gt;[00:00:42.865,936] &amp;lt;inf&amp;gt; Lesson6_Exercise2: Data received from the server: (Hello from nRF70 Series! 0)&lt;br /&gt;[00:01:15.183,654] &amp;lt;inf&amp;gt; Lesson6_Exercise2: -------------------------------&lt;br /&gt;[00:01:15.183,685] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT operation TWT setup requested&lt;br /&gt;[00:01:15.183,715] &amp;lt;inf&amp;gt; Lesson6_Exercise2: -------------------------------&lt;br /&gt;[00:01:15.231,750] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT response: TWT accept&lt;br /&gt;[00:01:15.231,781] &amp;lt;inf&amp;gt; Lesson6_Exercise2: == TWT negotiated parameters ==&lt;br /&gt;[00:01:15.231,781] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT Dialog token: 1&lt;br /&gt;[00:01:15.231,781] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT flow ID: 1&lt;br /&gt;[00:01:15.231,811] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT negotiation type: TWT individual negotiation&lt;br /&gt;[00:01:15.231,842] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT responder: true&lt;br /&gt;[00:01:15.231,872] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT implicit: true&lt;br /&gt;[00:01:15.231,903] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT announce: false&lt;br /&gt;[00:01:15.231,903] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT trigger: false&lt;br /&gt;[00:01:15.231,933] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT wake interval: 65 ms (65024 us)&lt;br /&gt;[00:01:15.231,933] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT interval: 0 s (100000 us)&lt;br /&gt;[00:01:15.231,933] &amp;lt;inf&amp;gt; Lesson6_Exercise2: ===============================&lt;br /&gt;[00:01:15.232,574] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT sleep state: sleeping&lt;br /&gt;[00:01:15.333,343] &amp;lt;inf&amp;gt; Lesson6_Exercise2: TWT sleep state: awake&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1732202548146v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I do not change the code from the&amp;nbsp;Lesson 6/wifi fund_1ess6uexer2:&lt;a id="" href="https://github.com/NordicDeveloperAcademy/wifi-fund/blob/main/lesson6/wififund_less6_exer2_solution/src/main.c"&gt;https://github.com/NordicDeveloperAcademy/wifi-fund/blob/main/lesson6/wififund_less6_exer2_solution/src/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Is it due to a negotiation process in TWT, but why does it appear so regularly？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/511527?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 14:56:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7825699-e82c-4d79-9a36-b937048db18f</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you share what you are setting the TWT parameters to in your code, and share the application log from the device?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/511321?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 13:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2420f34-4d20-4bbd-b133-f2a836a3d44d</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;Thank you,&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;.&amp;nbsp;Your guidance is detailed and easy to understand.&lt;/p&gt;
&lt;p&gt;I still have questions, as shown in the picture, TWT mode and DTIM mode. How is the&amp;nbsp;peak in the image caused in TWT mode?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1732110869623v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/511070?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 12:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2867687b-0796-4e79-8fe2-c5d72212d039</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is due to how the exercise is implemented in such a way that it only sends a message during the awake state when TWT is enabled:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void twt_mgmt_event_handler(struct net_mgmt_event_callback *cb, uint32_t mgmt_event,
				   struct net_if *iface)
{
	switch (mgmt_event) {
	/* STEP 3.2.1 - Upon a TWT event, call handle_wifi_twt_event() to handle the response */
	case NET_EVENT_WIFI_TWT:
		handle_wifi_twt_event(cb);
		break;
	/* STEP 3.2.2 -	Upon TWT sleep state event, inform the user of the current sleep state.
	 * When the device is in the awake state, send a packet to the server and check for any
	 * received packets if sending packets is enabled. */
	case NET_EVENT_WIFI_TWT_SLEEP_STATE:
		int *twt_state;
		twt_state = (int *)(cb-&amp;gt;info);
		LOG_INF(&amp;quot;TWT sleep state: %s&amp;quot;, *twt_state ? &amp;quot;awake&amp;quot; : &amp;quot;sleeping&amp;quot;);
		if ((*twt_state == WIFI_TWT_STATE_AWAKE) &amp;amp; sending_packets_enabled) {
			send_packet();
			receive_packet();
		}
		break;
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you want to be able to send packets when TWT is not enabled, you can call the function to send the packet directly in the button_handler() or schedule that it should be called. This code snippet shows how to call it directly in the button_handler():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void button_handler(uint32_t button_state, uint32_t has_changed)
{
	uint32_t button = button_state &amp;amp; has_changed;

	/* STEP 5.1 - Call wifi_set_twt() to enable or disable TWT when button 1 is pressed. */
	if (button &amp;amp; DK_BTN1_MSK) {
		wifi_set_twt();
	}

	/* STEP 5.2 - Enable or disable sending packets during TWT awake when button 2 is pressed.
	 */
	if (button &amp;amp; DK_BTN2_MSK) {
		send_packet();
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you want to schedule it, you can take a look at the TWT example here: &lt;a href="https://github.com/martelmy/NCS_examples/blob/main/wifi/twt_provisioning_demo/README.md"&gt;https://github.com/martelmy/NCS_examples/blob/main/wifi/twt_provisioning_demo&lt;/a&gt;. In this example, pressing button 2 will schedule a ping that will either be sent immediately when TWT is not enabled or during the next wakeup when TWT is enabled. You can use work queue to schedule the UDP packet in the DevAcademy exercise in a similar way.&lt;br /&gt;Please note that this example is not official and should be considered provided “as-is”.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable or disable TWT with notification</title><link>https://devzone.nordicsemi.com/thread/510952?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 18:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa08557d-9c38-40db-90e9-3d350093559f</guid><dc:creator>ChengQing Zhao</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/WechatIMG714.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>