I am attempting to run a throughput test using TCP on the nrf7002 DK as the client and my laptop as the iperf2 server. I am using the sr_coex sample listed in sdk-nrf repo, and modified the following files: src/main.c and prj.conf. In prj.conf I modified the following parameters:
CONFIG_STA_KEY_MGMT_WPA2 | ||
CONFIG_STA_SAMPLE_SSID | ||
|
||
CONFIG_WIFI_ZPERF_PROT_UDP | ||
CONFIG_NET_CONFIG_PEER_IPV4_ADDR |
I set CONFIG_WIFI_ZPERF_PROT_UDP to y and the others with my Wifi credentials. I can confirm the Wifi credentials are correct since I was able to perform the throughput test with UDP with no errors.
In the src/main.c file: I changed the following
udp_callback to tcp_callback in line 63,
udp_upload_results_cb to tcp_upload_results_cb in line 303,
udp_callback to tcp_callback in line 332
zperf_udp_upload_async with zperf_tcp_upload_async in line 464
udp_callback to tcp_callback in line 480
After I saved my changes, I used the following commands to build/flash my nrf7002 DK board
west build --pristine -s <path/to/app> -b nrf7002dk_nrf5340_cpuapp -- -DCONFIG_MPSL_CX=n -Dhci_rpmsg_CONFIG_MPSL_CX=n
west flash --dev-id <DEV_ID> --hex-file build/zephyr/merged_domains.hex
Both build and flash was successful, I see the throughput test can run, but in the logs I get several messages that look like the following:
<wrn> net_conn: conn_raw_socket: pkt cloning failed, pkt 0x20052cc8 dropped
My question is if there's something else that I need to do to stop getting that error message in order to run a throughput test using TCP