This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to disable peer manage in ble_app_buttonless_dfu project in sdk15.3.0 nrf52810?

Hi,I have some problems when disable peer manage in ble_app_buttonless_dfu project in sdk15.3.0 on nrf52810.

I disable PEER_MANAGER_ENABLED in config.h and remove the peer manage module relevant code in main.c.

In config.h

Fullscreen
1
2
3
4
5
// <e> PEER_MANAGER_ENABLED - peer_manager - Peer Manager
//==========================================================
#ifndef PEER_MANAGER_ENABLED
#define PEER_MANAGER_ENABLED 0//1 //For_code_size_optimization//DEBUG_BY_LUOGF
#endif
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

In main.c

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#if 1 //For_code_size_optimization
#else
/**@brief Function for handling Peer Manager events.
*
* @param[in] p_evt Peer Manager event.
*/
static void pm_evt_handler(pm_evt_t const * p_evt)
{
pm_handler_on_pm_evt(p_evt);
pm_handler_flash_clean(p_evt);
}
#endif
#if 1 //For_code_size_optimization
#else
/**@brief Function for the Peer Manager initialization.
*/
static void peer_manager_init()
{
ble_gap_sec_params_t sec_param;
ret_code_t err_code;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The device advertise well, but can not be connected by application.

I wonder if I miss something useful.ThanKs.

Parents
  • Hi gf luo,

    I replicated your setup and I had no issues connecting to the ble_app_buttonless_dfu example with nRF Connect on Android? Could you post the log from nRF Connect when you attempt to connect?

    Best regards

    Bjørn

  • Hi biorn-spockeli,

    I try to use nRF Connect v2.0.3 app on IOS to connect the device, it can be connected.

    I try to use LightBlue v3.0.4 app on IOS to connect the device, it can not be connected.It show me the information below.

    LightBlue Link https://apps.apple.com/cn/app/lightblue-explorer/id557428110

    We will develop our own application and use the nRF Connect app and LightBlue app as our reference.

    I want to know the difference between the nRF Connect app and the LightBlue app try to connect the device.

    Best Regards.

  • Could you capture a on-air trace of the communication between the iOS device and the nRF53810 using nRF Sniffer and nRF52 DK? Or with a dedicated Bluetooth Protocol Analyzer like Ellisys. 

    I would recommend using our template apps as a starting point, i.e. iOS-nRF-Blinky and IOS-nRF-Toolbox. If you are integrating DFU support in your app, then I strongly recommend using IOS-Pods-DFU-Library

    Best regards
    Bjørn

Reply Children