Skip to main content
yon hona
Associate
May 27, 2018
Question

BlueNRG-MS reconnection issues

  • May 27, 2018
  • 1 reply
  • 1538 views
Posted on May 27, 2018 at 20:14

Hi,

I'm using the BlueNRG-MS as HID peripheral and having trouble with the re-connection process.

In order to reconnect with the central, I use directed advertising.

The central recognize the slave and I get pairing complete event. The problem is that HID service remains encrypted for some reason and thus I cannot send HID reports (GATT services works). I can see that the device is connected.

What is the correct procedure of initiating a reconnecting between bonded devices ? pseudo code will be welcome.

Thanks,

Yon

Note: this post was migrated and contained many threaded conversations, some content may be missing.
    This topic has been closed for replies.

    1 reply

    Andrea Palmieri
    ST Employee
    May 28, 2018
    Posted on May 28, 2018 at 12:59

    Hi Yon,

    What is the application you are testing for HID on the BlueNRG-MS device? I can recommend for reference the HID profile application included in the 

    http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-ble1.html

     package (~\Projects\Multi\Applications\Profiles_LowPower\).

    Kind Redards

    Andrea

    yon hona
    yon honaAuthor
    Associate
    May 28, 2018
    Posted on May 28, 2018 at 18:58

    Hi,

    I don't want to use this example because it is based on a compiled closed library.

    I have mine own code which works fine, just the reconnection causing me problems.

    Regards,

    Yon

    Andrea Palmieri
    ST Employee
    May 29, 2018
    Posted on May 29, 2018 at 14:07

    Hi Yon,

    The projects included in the current version of the package (v3.3.0) are based on Profile Library in source form. You can use them as a reference point (e.g., in terms of parameter setting) against your own code.

    Hope that can help.

    Kind Regards

    Andrea