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

Wi-Fi Combo

MaFa_974161
Level 5
50 replies posted 50 questions asked 50 sign-ins
Level 5

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
Rakesh_BG
Moderator
Moderator 25 solutions authored 50 replies posted 50 sign-ins
Moderator

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 25 solutions authored 50 replies posted 50 sign-ins
Moderator

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
50 replies posted 50 questions asked 50 sign-ins
Level 5

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
Rakesh_BG
Moderator
Moderator 25 solutions authored 50 replies posted 50 sign-ins
Moderator

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
10 comments on KBA 5 comments on KBA First comment on KBA
Level 7

@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
MaFa_974161
Level 5
50 replies posted 50 questions asked 50 sign-ins
Level 5

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