- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I want to change WICED_ALLOCATE_PACKET_TIMEOUT from 2000ms to 20000ms (from 2sec to 20sec).
I've tried GLOBAL_DEFINES += WICED_ALLOCATE_PACKET_TIMEOUT=20000
but I obtained WICED_ALLOCATE_PACKET_TIMEOUT redefined ...
How can I solve ?
Solved! Go to Solution.
- Labels:
-
WICED Studio Wi-Fi Combo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MaFa_974161 ,
We cannot redefine a macro in make file which is already defined in the header file.
You can edit wiced_defualts.h to set the timeout.
Thanks,
Rakesh B G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MaFa_974161 ,
You can edit #define WICED_ALLOCATE_PACKET_TIMEOUT in wiced_defualts.h file to 20000 ms.
Thanks,
Rakesh B G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I prefer not to change WICED framework ... because if I change WICED framework I have to put WICED framework under version control (like SVN)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MaFa_974161 ,
We cannot redefine a macro in make file which is already defined in the header file.
You can edit wiced_defualts.h to set the timeout.
Thanks,
Rakesh B G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@MaFa_974161 wrote:
Hello,
I want to change WICED_ALLOCATE_PACKET_TIMEOUT from 2000ms to 20000ms (from 2sec to 20sec).
It looks like you are hitting OOM issue.
You need to analyze the memory usage in your application.
I don't think increase WICED_ALLOCATE_PACKET_TIMEOUT helps. (Keep retry allocating memory for 20 sec is not a good idea.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good observation !!
I don't know why packet pool is so full ...
This behaviour appears when I transmit UDP packets to a specific Android device that lacks some UDP packets. I deduce that the WiFi transceiver tries to retransmit WiFi packets so many times that packet pool overflow.
The rate that I produce UDP packets is 60Packets/s. Every packet is 1KByte.