This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Blood Pressure trigger subscribe willnot execute on_write

Hi All,

I want to port BPS to my custom project, I encountered the problem as the title.

When I connect and trigger the subscribe like this picture.

My project will not execute 【case BLE_GATTS_EVT_WRITE】 will be disconnected,like this picture.

Here is my project,please help me to take a look.

Lab06_BLE_AddService_BAS_DIS_BPS.zip

IDE => Segger

SDK => 17.1.0

Parents Reply
  • Hi Elfving,

    Just comparing the BPS example to yours I see a lot of changes. Any particular reason you decided not to include peer_manager_init() for instance?

    I don't plan to use the pairing feature yet.

    Or does BPS have to be paired with Peer?

    Can you tell me the problem as soon as possible, sorry I'm in a hurry.

    Best regards,

    Kai

Children
  • Hi Elfving,

    Is there any news?

  • Hi All,

    If anyone with the same question can refer to my answer.

    Research purpose => Add Blood Pressure Service to the project, do not use Peer Manager.

    Problem => BPS does not respond and disconnects when triggering Subscribe.

    Solution => SEC_JUST_WORKS should be changed to SEC_OPEN.

     // Here the sec level for the Blood Pressure Service can be changed/increased.
        //bps_init.bp_cccd_wr_sec    = SEC_JUST_WORKS;  // Nordic programming
        bps_init.bp_cccd_wr_sec    = SEC_OPEN;  // if donot use Peer Manager,you should use this code.
        bps_init.bp_feature_rd_sec = SEC_OPEN;

Related