芯片:CC3235SF。SDK:V4.1。环境:CCS
目前测试效果,network_terminal,以及根据此例程修改的程序都有一个问题,那就是连接过程过于缓慢,从开始连接到成功连上大概需要10~15秒,而且失败几率还挺高的,能从哪些方面对连接速度进行优化,加快连接速度呢?
Kevin Qiu1:
一般第一次连接会慢一点,连接的时候有个启动协商的过程,十秒左右是正常连接时间,和网络环境也有关 1. SL_WLAN_P2P_NEG_INITIATOR_ACTIVE: When the remote peer is found after the discovery process, the device immediately sends the negotiation request to the peer device. 2. SL_WLAN_P2P_NEG_INITIATOR_PASSIVE: When the remote peer is found after the discovery process, the device passively waits for the peer to start the negotiation, and only responds after. 3. SL_WLAN_P2P_NEG_INITIATOR_RAND_BACKOFF: When the remote peer is found after the discovery process, the device triggers a random timer (1 to 6 seconds). During this period, the device passively waits for the peer to start the negotiation. If the timer expires without negotiation, the device immediately sends the negotiation request to the peer device. This is the system default, and also the recommendation for working with two SimpleLink Wi-Fi devices out-of-the box, because no negotiation synchronization must be done.
Viki Shi:
怀疑是 negotiation request的问题,看下这边解答: e2e.ti.com/…/878528