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.

作为主机扫描参数的设置,扫描窗口和扫描间隔一致,是不是只要相同,扫描的效果是一样的?

Other Parts Discussed in Thread: CC2640R2F

扫描窗口和扫描间隔  一致的话,就表示一致扫描,然后再把扫描持续时间改为500ms,在扫描完成的事件中,再次触发扫描,这种情况下,是不是扫描窗口设置 80,240,120 等 是没有区别的呢?对扫描到其他设备影响不大?还是说需要根据从机的广播间隔进行设置,比如从机广播间隔100ms ,设置哪种扫描参数合适呢?

  • 我是用CC2640R2F 扫描 安卓手机,安卓手机作为从机,100ms 广播,simplelink_cc2640r2_sdk_1_40_00_45 这个版本,但是一致扫不到,不知道什么原因。
  • scanning windows设置为advertising interval + 10ms

    In a time-constrained application, when the user needs to receive the data as fast as possible, make sure that scanning window is more than the advertising interval + 10ms to guarantee discovery. (The 10 ms extra account for the 0 ms to 10 ms of pseudo-random delay in between each advertising event, assuming no interference.) Following this rule will increase the chance of receiving the advertising packet on the first scan.

  • 您好:

          我的这两个参数scanning windows advertising interval设置必须一样,要是设置不同的参数,就无法扫描了。这是什么原因啊?

    // Scan parameters
    #define DEFAULT_SCAN_DURATION                 0//0//4000//2000   //mod lhj 190906  // 值越小,则发现的同一设备广播包越多
    #define DEFAULT_SCAN_WIND                     10 //120  //
    #define DEFAULT_SCAN_INT                      10 //120

    // Discovey mode (limited, general, all)
    #define DEFAULT_DISCOVERY_MODE                DEVDISC_MODE_ALL    //mod lhj 190929 @@@  DEVDISC_MODE_GENERAL

    // TRUE to use active scan
    #define DEFAULT_DISCOVERY_ACTIVE_SCAN         FALSE

    // Set desired policy to use during discovery (use values from GAP_Disc_Filter_Policies)
    #define DEFAULT_DISCOVERY_WHITE_LIST          GAP_DISC_FILTER_POLICY_ALL

    // TRUE to use high scan duty cycle when creating link
    #define DEFAULT_LINK_HIGH_DUTY_CYCLE          FALSE

    // TRUE to use white list when creating link
    #define DEFAULT_LINK_WHITE_LIST               FALSE