2305387_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2305387_en-US

2305387_en-US

speed

I am using rw612, is it possible to send udp packet every 1ms? after about 20 seconds i cannot send and should wait. I increased all buffers but it did not work. I receive MEM Error after that

Re: speed
/*
 *  Copyright 2020-2022 NXP
 *  All rights reserved.
 *
 *  SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef _WIFI_CONFIG_H_
#define _WIFI_CONFIG_H_

#include "wifi_bt_module_config.h"

#define OVERRIDE_CALIBRATION_DATA "wifi_cal_data_override.h"
#define CONFIG_IPV6 0
#define CONFIG_MAX_IPV6_ADDRESSES 0

#define CONFIG_RF_TEST_MODE 0
#define CONFIG_MAX_RESCAN_LIMIT 30
#define CONFIG_WIFI_AUTO_POWER_SAVE 0
#define CONFIG_TURBO_MODE 0

#define CONFIG_WIFI_TX_PER_TRACK 1

#define CONFIG_WIFI_TX_BUFF 1
#define CONFIG_WIFI_FEATURES 1

// #define CONFIG_HOST_SLEEP 0
#define CONFIG_POWER_MANAGER 0
// #define CONFIG_MEF_CFG 0
/** If define CONFIG_TX_RX_ZERO_COPY 1, please make sure
 *  #define PBUF_POOL_BUFSIZE 1752
 *  in lwipopts.h
 */
#define CONFIG_TX_RX_ZERO_COPY 1
// #define CONFIG_ANT_DETECT 1

#define CONFIG_11AX 0
// #define CONFIG_11AC 0

/* WLCMGR debug */
#define CONFIG_WLCMGR_DEBUG 0

/*
 * Wifi extra debug options
 */
#define CONFIG_WIFI_EXTRA_DEBUG 0
#define CONFIG_WIFI_EVENTS_DEBUG 0
#define CONFIG_WIFI_CMD_RESP_DEBUG 0
#define CONFIG_WIFI_PKT_DEBUG 0
#define CONFIG_WIFI_SCAN_DEBUG 0
#define CONFIG_WIFI_IO_INFO_DUMP 0
#define CONFIG_WIFI_IO_DEBUG 0
#define CONFIG_WIFI_IO_DUMP 0
#define CONFIG_WIFI_MEM_DEBUG 0
#define CONFIG_WIFI_AMPDU_DEBUG 0
#define CONFIG_WIFI_TIMER_DEBUG 0
#define CONFIG_WIFI_SDIO_DEBUG 0
#define CONFIG_WIFI_FW_DEBUG 0
#define CONFIG_WIFI_UAP_DEBUG 0
#define CONFIG_WPS_DEBUG 0
#define CONFIG_FW_VDLL_DEBUG 0
#define CONFIG_DHCP_SERVER_DEBUG 0
#define CONFIG_FWDNLD_IO_DEBUG 0

/*
 * Heap debug options
 */
#define CONFIG_HEAP_DEBUG 0
#define CONFIG_HEAP_STAT 0

#endif /* _WIFI_CONFIG_H_ */
Re: speed

Thanks for your answer. VS code, SDK 25.09. Freertos.

I want to send every 1ms a udp packet to an AP, (rw612 to rw612)

on receiver side (AP), i fixed the problem, it seems can receive. but on transmitter after ~20 second, i got error -1 from udp_send function and after a second it works again for some seconds and again. I increased many values on TCP/IP config library but no effect.

Re: speed

Hello @gtecaskari, hope you are doing well.

To better analyze the issue, could you please share more details about your test scenario? Information such as the board you are using, the IDE (MCUXpresso or MCUXpresso for Visual Studio Code), SDK version, whether you are working with FreeRTOS or Zephyr, and the specific example you are running would be very helpful.

Re: speed

Hi @gtecaskari.

Thanks for sharing your environment, although it would be very helpful if you could provide more details on your application and clarify if it is an example from the SDK or a custom project. If it is an example from the SDK please share with me the example and the steps that you are following so I can be able to replicate your issue and try to get to the root cause.

Re: speed

Hi.a custom project. 

and i have another question. when we are using freertos, why the wifi interrupt priority still 0, it should be bigger than 2 ( freertos config).

judt i want to know is it possible send continues udp packet every 1 ms? when i am sending every 2 ms it is working.

and another problem,

when i am using wifi6, i have many packet loss by shaking my device. ( also without shaking but less). 

when i disable AX, it is working much better, maybe 1 packet loss every 1 hour. 

Re: speed

Hello @gtecaskari.

Is your custom project based on any of our SDK demos? If so, could you please specify which example it is derived from?

Additionally, could you clarify where you are viewing the priority configuration? The FreeRTOS configuration file only defines general OS parameters such as the tick rate and the maximum number of available priorities. Any task‑specific priority values (or changes to them) must be configured within the application itself.

Re: speed

Hi, I have selected httpsrv example and changed. 

my last configs:

priorities:

in "lwipopts.h", #define TCPIP_THREAD_PRIO      (configMAX_PRIORITIES - 1)

in "wifi_config.h" #define CONFIG_WIFI_MAX_PRIO (configMAX_PRIORITIES - 2)


And please answer why when wifi6 (11AX) is enabled, when I shake the board, a lot of packets are lost?

when i use "#define CONFIG_11AX 0" , it is working.


And I could not find any document about TURBO MODE. What is the parameter 0~3.

Why you dont have a good document for your product. 

and my last result, I can send 128 byte packet every 1 ms, but cannot send 256 bytes (error after a while)

Re: speed

Hello @gtecaskari.

Could you please confirm that the "CONFIG_WIFI_MAX_PRIO" macro has been added by you as a part of your custom modifications?

Also please clarify on what are you referring on the turbo mode issue?

Re: speed

Hello @gtecaskari.

I'm checking internally the issue about the turbo mode documentation, I will let you know upon any update on this regard.

Regarding your Wi-Fi 6 data loss, since this might be related to your setup, therefore I'm not able to replicate your issue as I cannot replicate your exact test scenario.

Re: speed

dear @RomanVR ,

I fixed speed problem, Please answer these 2 questions.

what it does wlan_set_turbo_mode function, the input is 0 to 3.

and why when I am using wifi6, i have data loss when shaking the board, but it is working with WIFI5 and 4



Re: speed

Hello @gtecaskari, sorry for the late response.

The wlan_set_turbo_mode function allows the user to configure WMM performance optimization levels for a Wi-Fi connection. Regarding the parameters that this function receives:
- 0: Standard mode (required for WFA certification)
- 3: Enhanced performance.
The usage of the function would be "int wlan_set_turbo_mode(t_u8 mode);" and it would return WM_SUCCESS on success setup and WM_FAILURE on failure.

Please let me know if this information clears out your doubts.

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎02-26-2026 02:26 AM
更新者: