Can I get longer the link down detection timeout?

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

cross mob
NoMa_3617641
Level 2
Level 2

Hi,

I'm using CYW43907 as a WLAN station.

In my environment, link down (and a few seconds later link up)  sometimes happen.

Can I get longer the link down detection timeout?

WICED SDK 6.2.1, CYW43907

Best regards,

Nobuhiro

0 Likes
1 Solution

Hi,

Now, I've attempted new AP.

It looks like fine.

Thanks,

Nobuhiro.

View solution in original post

0 Likes
8 Replies
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

Hello Nobuhiro-san,

When you meant to increase the link down detection timeout, do you mean that WICED should not detect the link down events immediately, instead it should reject the link down events if it is below some particular threshold (x ms)?

Please enable WPRINT_ENABLE_NETWORK_DEBUG macro in 43xxx_Wi-Fi/include/wiced_defaults.h and check the reason of the link down. You can modify the wiced link down event handler implementation by checking the code of wiced_wireless_link_down_handler in 43xxx_Wi-Fi/WICED/network/NetX_Duo/WICED/wiced_network.c

0 Likes

Hi,

Thanks for your reply.

In my app, I registered linkdown call back, like...

    result = wiced_network_register_link_callback(linkup_callback, linkdown_callback, WICED_STA_INTERFACE);

But, our APs sometimes change channel in order to avoid interference. At that time, linkdown_callback is called. If possible, I don't want to call the callback. On the other hand, in case of link down actually happened, the callback should be called.

I'd like to change the detection timeout 2-3s(?) longer.

Best regards,

Nobuhiro

0 Likes

Hi,

Are there any update?

Best regards,

Nobuhiro

0 Likes

Unfortunately, this timeout value is fixed in WLAN firmware and there is no low level APIs available to modify this. Usually, the firmware is written keeping generic customer requirements and we don't have provision to modify the timeout. Kindly post the Link event (type, status, reason, flags) 46 262 512 0 debug print by enabling WPRINT_ENABLE_NETWORK_DEBUG in wiced_defaults.h for us to check if there is any possible workaround.

Hi,

I attached the sample log below.

Link event (type, status, reason, flags) 12 0 8 0

Wireless link DOWN!

Link event (type, status, reason, flags) 16 0 0 1

Link event (type, status, reason, flags) 46 262 512 0

Wireless link UP!

Link event (type, status, reason, flags) 12 0 8 0

Wireless link DOWN!

Link event (type, status, reason, flags) 16 0 0 1

Link event (type, status, reason, flags) 46 262 512 0

Wireless link UP!

Link event (type, status, reason, flags) 12 0 8 0

Wireless link DOWN!

Link event (type, status, reason, flags) 16 0 0 1

Link event (type, status, reason, flags) 46 262 512 0

Wireless link UP!

Link event (type, status, reason, flags) 12 0 8 0

Wireless link DOWN!

Link event (type, status, reason, flags) 16 0 0 1

Link event (type, status, reason, flags) 46 262 512 0

Wireless link UP!

Link event (type, status, reason, flags) 12 0 8 0

Wireless link DOWN!

Link event (type, status, reason, flags) 16 0 0 1

Link event (type, status, reason, flags) 46 262 512 0

Wireless link UP!

Link event (type, status, reason, flags) 12 0 8 0

Wireless link DOWN!

Link event (type, status, reason, flags) 16 0 0 1

Link event (type, status, reason, flags) 46 262 512 0

Wireless link UP!

Link event (type, status, reason, flags) 12 0 8 0

Wireless link DOWN!

Link event (type, status, reason, flags) 16 0 0 1

Link event (type, status, reason, flags) 46 262 512 0

Wireless link UP!

Regards,

0 Likes

Hi,

Now, I've attempted new AP.

It looks like fine.

Thanks,

Nobuhiro.

0 Likes

Do you observe other non wiced devices have the link-down then link-up behavior in the same test environment?

So you can clarify if it's AP issue or only wiced devices have this issue.

0 Likes

Hi,

I attempted some Wi-Fi modules made by other companies.

I noticed this behavior only on CYW43907 device.

Regards,

0 Likes