This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Varying results of scanning network

I see that the number of networks found by CC3000 is unstable, sometimes it's 12 (same with laptop wifi), but sometimes it's just zero.

I set scan parameters as follow:

unsigned long timescan_array[16] = {400, 400, ..., 400};

wlan_ioctl_set_scan_params(1, 20, 200, 2, 0x1fff, -128, 0, 205, timescan_array);

//Below function is called in a loop to get all networks

res = wlan_ioctl_get_scan_results(5000, scan_result);

I wondering if it be power problem or design problem (used hardware is my own designing, not a TI development board).

  • Hi,

    The scan report depends on certain parameters. Like the APs in the vicinity, their RSSI value and the validity of each scanned network.

    I would suggest you to start the sequence of scan everytime you need to. Hence, call the wlan_ioctl_set_scan_params API first, wait for the scan to complete, and then do a wlan_ioctl_get_scan_results.

    Do all the above in a loop for the number of iterations that you desire for.

    Thanks & Regards,
    Raghavendra

  • Raghavendra Shenoy Mathav said:

    Hi,

    The scan report depends on certain parameters. Like the APs in the vicinity, their RSSI value and the validity of each scanned network.

    I would suggest you to start the sequence of scan everytime you need to. Hence, call the wlan_ioctl_set_scan_params API first, wait for the scan to complete, and then do a wlan_ioctl_get_scan_results.

    Do all the above in a loop for the number of iterations that you desire for.

    Thanks & Regards,
    Raghavendra

    Hi Raghavendra,

    Is this customer follows your advice he will exhaust his EEPROM and his CC3000 will be dead in a matter of weeks or even days. Calling wlan_ioctl_set_scan_params writes to the EEPROM, even if called with the same parameters every time. So putting it in a loop is definitely not a good idea.

    Yet, your response is correct, since there is no other way to force a scan. So, will the new patch that is coming out in a week address this problem?