Fast pair input device sample application is not working as expected on my nrf52840 dk

I want to develop some applications on top of Google Fast Pair.
Created the fast pair input device application with the SDK version 2.7.0 rc1
and built with prj.config

#
# Copyright (c) 2022 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_NCS_SAMPLES_DEFAULTS=y

CONFIG_SYSTEM_WORKQUEUE_PRIORITY=-1
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

CONFIG_DK_LIBRARY=y

# Enable settings to store data in non-volatile memory
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS_NVS=y
CONFIG_SETTINGS=y
CONFIG_BT_SETTINGS=y

CONFIG_BT=y
CONFIG_BT_DEVICE_NAME="Nordic_Fast_Pair"
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=6
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=6
CONFIG_BT_PERIPHERAL_PREF_LATENCY=99
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
# Appear as a Generic Human Interface Device
CONFIG_BT_DEVICE_APPEARANCE=960

CONFIG_BT_ADV_PROV=y
CONFIG_BT_ADV_PROV_FLAGS=y
CONFIG_BT_ADV_PROV_TX_POWER=y
CONFIG_BT_ADV_PROV_FAST_PAIR=y

CONFIG_BT_ADV_PROV_DEVICE_NAME=y
CONFIG_BT_ADV_PROV_DEVICE_NAME_SD=y
CONFIG_BT_ADV_PROV_GAP_APPEARANCE=y
CONFIG_BT_ADV_PROV_GAP_APPEARANCE_SD=y

# Align the advertised TX power with Fast Pair expectations.
# The value has been tailored for following DKs:
#   * nrf52840dk/nrf52840
#   * nrf52dk/nrf52832
#   * nrf5340dk/nrf5340/cpuapp
CONFIG_BT_ADV_PROV_TX_POWER_CORRECTION_VAL=-14

# Disable automatic initiation of PHY updates.
# Workaround to prevent disconnection with reason 42 (BT_HCI_ERR_DIFF_TRANS_COLLISION).
# Some Android phones reply to the LL_PHY_REQ and at the same time initiate a connection
# update which triggers an invalid procedure collision.
CONFIG_BT_AUTO_PHY_UPDATE=n

CONFIG_BT_ID_MAX=1
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_PAIRED=8

CONFIG_BT_SMP=y
CONFIG_BT_PRIVACY=y
CONFIG_BT_RPA_TIMEOUT=960
CONFIG_BT_FAST_PAIR=y

CONFIG_LOG=y
CONFIG_BT_FAST_PAIR_LOG_LEVEL_DBG=y

CONFIG_BT_HIDS=y
CONFIG_BT_HIDS_DEFAULT_PERM_RW_ENCRYPT=y
CONFIG_BT_CONN_CTX=y

# Enable BAS to comply with HID over GATT profile
CONFIG_BT_BAS=y

# Fill DIS characteristic to comply with HID over GATT profile
CONFIG_BT_DIS_MANUF="NordicSemiconductor"
CONFIG_BT_DIS_PNP=y
CONFIG_BT_DIS_PNP_VID_SRC=2
CONFIG_BT_DIS_PNP_VID=0x1915
CONFIG_BT_DIS_PNP_PID=0xEEED
I am currently using the pixel 7a and the Samsung s23 ultra both are connected to the internet and Bluetooth I turned on 
But after programming the device I see the device is advertising but the fast pair pop-is not popping up on the phones 


We need to ensure that 0x2A410B  model id is correct 

Thanks in advance 
Nandy 
Parents
  • Hello,

    Can you please try to use either NCS v2.6.1 or v2.7.0, as those are stable releases. The v2.7.0 rc1 is the first out of 3 release candidates, which means it is not stable. So unless you particularly need a feature that is just released in a release candidate, please stick to a stable version of the SDK. 

    Let me know if it doesn't work in NCS v2.7.0. In that case, please share your build log and your nRF52840's (uart) log.

    Best regards,

    Edvin

  • I tried with 2.7.0 still i don't see any pop up
    UART LOGS

    Build logs

    main] Configuring project: input_device_TEST
    [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -SC:/ND_SPACE/input_device_TEST -Bc:/ND_SPACE/input_device_TEST/build -G Ninja
    [cmake] Not searching for unused variables given on the command line.
    [cmake] CMake Warning at CMakeLists.txt:9 (message):
    [cmake]  
    [cmake]
    [cmake]     -------------------------------------------------------
    [cmake]     --- WARNING: Using demo Fast Pair Model ID and Fast ---
    [cmake]     --- Pair Anti Spoofing Key, it should not be used   ---
    [cmake]     --- for production.                                 ---
    [cmake]     -------------------------------------------------------
    [cmake]    
    [cmake]
    [cmake]
    [cmake]
    [cmake] Loading Zephyr default modules (Zephyr base (cached)).
    [cmake] -- Application: C:/ND_SPACE/input_device_TEST
    [cmake] -- CMake version: 3.30.1
    [cmake] -- Cache files will be written to: C:/Users/GowdaCM/zephyrproject/zephyr/.cache
    [cmake] -- Zephyr version: 3.7.99 (C:/Users/GowdaCM/zephyrproject/zephyr)
    [cmake] -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    [cmake] CMake Error at C:/Users/GowdaCM/zephyrproject/zephyr/cmake/modules/extensions.cmake:3352 (message):
    [cmake]   BOARD is not being defined on the CMake command-line, in the environment or
    [cmake]   by the app.
    [cmake] Call Stack (most recent call first):
    [cmake]   C:/Users/GowdaCM/zephyrproject/zephyr/cmake/modules/boards.cmake:61 (zephyr_check_cache)
    [cmake]   C:/Users/GowdaCM/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
    [cmake]   C:/Users/GowdaCM/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    [cmake]   C:/Users/GowdaCM/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
    [cmake]   CMakeLists.txt:21 (find_package)
    [cmake]
    [cmake]
    [cmake] -- Configuring incomplete, errors occurred!
    [proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -SC:/ND_SPACE/input_device_TEST -Bc:/ND_SPACE/input_device_TEST/build -G Ninja exited with code: 1


    Thanks in advance 
    Nandy
  • Hello Nandy,

    Can you please try to register an account with Google and use your own Model ID and spoofing keys?

    And can you please try out the unmodified Fast Pair: Input Device sample from NCS? Does that work with: 1: Debug keys from nordic, and 2: your own keys?

    BR,
    Edvin

  • Hello Edvin,
    I am using the default  Fast Pair: Input Device sample without any changes,
    If I use any of these model id (https://github.com/DiamondRoPlayz/FastPair-Models) I can see the pop up but because of the wrong antispoofing key, it fails.

Reply Children
Related