Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10561

[multi_role] multi_role example does not use the scan parameters set in SysConfig

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • SimpleLink CC13x2-26x2 SDK BLE5 Stack
    • BLE_AGAMA-2851
    • BLE Stack BLE5-2.2.0 RC9
    • Hide
      BLE stack BLE5-2.2.3 RC1
      BLE Stack BLE5-2.2.3
      Show
      BLE stack BLE5-2.2.3 RC1 BLE Stack BLE5-2.2.3
    • CC26X2R1

      SDK: 4.30.00.54

      Example: multi_role

      Summary: the scan parameters set in SysConfig are not used (instead we use some default parameters set in gap_scanner.h).

      Suggested solution:

      In multi_role_scanInit():

      Replace:
      // Set Scan PHY parameters{{}}
      GapScan_setPhyParams(DEFAULT_SCAN_PHY, SCAN_TYPE_ACTIVE,
                           SCAN_PARAM_DFLT_INTERVAL, SCAN_PARAM_DFLT_WINDOW);
      By:
      // Set Scan PHY parameters{{}}
      GapScan_setPhyParams(DEFAULT_SCAN_PHY, DEFAULT_SCAN_TYPE,
                           DEFAULT_SCAN_INTERVAL, DEFAULT_SCAN_WINDOW);
       

      Bonus: the comment right before the function multi_role_advertInit() has a wrong copy/paste:

      Replace:

      * @fn multi_role_scanInit

      By:

      * @fn multi_role_advertInit

      Thanks!

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: