Change WICED_ALLOCATE_PACKET_TIMEOUT

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaFa_974161
Level 5
Level 5
100 sign-ins 50 replies posted 50 questions asked

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 ?

0 Likes
1 Solution

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

View solution in original post

0 Likes
5 Replies
Rakesh_BG
Moderator
Moderator
Moderator
50 solutions authored 100 replies posted 100 sign-ins

Hi @MaFa_974161 ,

You can edit #define WICED_ALLOCATE_PACKET_TIMEOUT in wiced_defualts.h file to 20000 ms.

Thanks,

Rakesh B G

0 Likes
MaFa_974161
Level 5
Level 5
100 sign-ins 50 replies posted 50 questions asked

I prefer not to change WICED framework ... because if I change WICED framework I have to put WICED framework under version control (like SVN)

0 Likes

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

0 Likes
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

@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.)

0 Likes

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.

0 Likes