8 Replies Latest reply on Jun 11, 2019 7:28 PM by NoMa_3617641

    Can I get longer the link down detection timeout?

    NoMa_3617641

      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

        • 1. Re: Can I get longer the link down detection timeout?
          RaktimR_11

          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

          • 2. Re: Can I get longer the link down detection timeout?
            NoMa_3617641

            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

            • 3. Re: Can I get longer the link down detection timeout?
              NoMa_3617641

              Hi,

              Are there any update?

               

              Best regards,

              Nobuhiro

              • 4. Re: Can I get longer the link down detection timeout?
                RaktimR_11

                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.

                1 of 1 people found this helpful
                • 5. Re: Can I get longer the link down detection timeout?
                  NoMa_3617641

                  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,

                  • 6. Re: Can I get longer the link down detection timeout?
                    NoMa_3617641

                    Hi,

                     

                    Now, I've attempted new AP.

                    It looks like fine.

                     

                    Thanks,

                    Nobuhiro.

                    • 7. Re: Can I get longer the link down detection timeout?
                      axlic_1746341

                      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.

                      • 8. Re: Can I get longer the link down detection timeout?
                        NoMa_3617641

                        Hi,

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

                        I noticed this behavior only on CYW43907 device.

                        Regards,