Hi
I am trying to test Wi-Fi 6 Target Wake Time (TWT) in a matter device. I have built and run the light bulb example, but I can't seem to find a way to make it run with TWT. Is there a way to configure the sample to use TWT?
Hi
I am trying to test Wi-Fi 6 Target Wake Time (TWT) in a matter device. I have built and run the light bulb example, but I can't seem to find a way to make it run with TWT. Is there a way to configure the sample to use TWT?
Thanks for the quick reply
I have been trying to open the sample, but when I click "Create a new application" followed by the "Create Application" button in nRF connect for VS code extension, it only creates an empty directory and not the sample.
I have followed the manual installation guide: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/installation/installing.html
I have the same problem when trying to create other samples.
Hi
Both nrf\boards\arm and zephyr\boards\arm have boards.
I have no problem with V2.4.1 (installed from nRF Connect for Desktop)
I have also tried to restart both VSCode and my PC, and also tried to reinstall the SDK version 2.4.99
Hi again
After reinstalling a second time I got it to work.
Now when I try to set up TWT as in the sample you provided in the Matter template sample I get the error -8 ("TWT setup failed: -8" in the console). I can't seem to find what the error means.
hope you can help.
Hi,
According to ncs\toolchains\31f4403e35\opt\zephyr-sdk\arm-zephyr-eabi\arm-zephyr-eabi\sys-include\sys\errno.h,
-8 means Exec format error. If the error code is returned by net_mgmt, you can take a look at the function definition https://github.com/nrfconnect/sdk-zephyr/blob/main/include/zephyr/net/net_mgmt.h#L77-L93 and check the format.
-Amanda H.
This is the code I have added to the Matter template sample. It is added to the AppTask::ChipEventhandler() inside the wifi Change if statement. the only difference from the TWT sample is that I have hardcoded some of the parameters and removed the 0 in the initialization of the params struct since it made an error.
Hi,
You should merge the https://github.com/nrfconnect/sdk-nrf/blob/main/samples/wifi/twt/Kconfig to the app/Kconfig to get those values for the parameters.
-Amanda H.
Hi,
You should merge the https://github.com/nrfconnect/sdk-nrf/blob/main/samples/wifi/twt/Kconfig to the app/Kconfig to get those values for the parameters.
-Amanda H.
Hi
I do not have a problem with the hardcoded parameters. My problem is that the code that works in the TWT sample does not work in the matter sample. I have tried to debug both, to see what the difference is.
^this is the iface from the matter code from last post^
^This is the iface from the TWT sample that works^
The matter sample does not have an ipv4 address, which I think might be the problem since it is failing on this part of wifi_set_twt() in "zephyr/subsys/net/l2/wifi/wifi_mgmt.c
hope you can help me find the problem.
-Martin
Martin Hauser said:The matter sample does not have an ipv4 address, which I think might be the problem since it is failing on this part of wifi_set_twt() in "zephyr/subsys/net/l2/wifi/wifi_mgmt.c
Do you add ipv4 address into the prj.conf as this https://github.com/nrfconnect/sdk-nrf/blob/ea31b211be92f0f837cec1a70be665ec6ff712c3/samples/wifi/twt/prj.conf#L83-L85?
-Amanda H.
I got it to work, it needed an ipv6 address since matter runs on ipv6.
now when the TWT connection is set up the rest of the sample does not work, but I will look further into it before writing again.
- Martin