Qorvo nearby interaction dwm3000

Hi @melson !

UART communication has not been implemented in the QANI example, so you’d need to add it.
For the “set advertising name” command, you may need to stop advertising, change the advertising settings (set the new name), and start advertising again.
For the “get uwb serial number” you’ll need the function “uwbmac_get_device_info()” like in the CLI example:

REG_FN(f_decaid)
{
    struct uwbmac_context *uwbmac_ctx = NULL;
    struct uwbmac_device_info device_info;

    enum qerr r = uwb_stack_init(&uwbmac_ctx);
    if (r != QERR_SUCCESS)
        return CMD_FN_RET_KO;

    uwbmac_get_device_info(uwbmac_ctx, &device_info);

    diag_printf("Qorvo Device ID = 0x%08lx\r\n", device_info.dev_id);
    /* PRIx64 does not work properly, so print uint64_t using 2x uint32_t. */
    diag_printf("Qorvo Lot ID = 0x%08lx%08lx\r\n", (uint32_t)(device_info.lot_id >> 32), (uint32_t)device_info.lot_id);
    diag_printf("Qorvo Part ID = 0x%08lx\r\n", device_info.part_id);
    diag_printf("Qorvo SoC ID = %08lx%08lx%08lx\r\n", (uint32_t)(device_info.lot_id >> 32), (uint32_t)device_info.lot_id, device_info.part_id);

    uwb_stack_deinit(uwbmac_ctx);
    return CMD_FN_RET_OK;
}

Kind regards!