Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Return error code that 0x4015.

I used SDK nRF5_SDK_14.1.0_1dda907.

I added cycling speed and cadence service of BLE and bicycle speed and cadence of ANT+ in ble_ant_app_hrm example of multiprotocol.

If i opened ant hrm disp channel, i did not send bsc packet.
Then success.

But, if i opened ant  bsc disp channel, i did not send bsc packet.
Then return error code that 0x4015.

How to solve it ?

Parents
  • Hi,

    I suggest you try to set some breakpoints or debug output in your code to find exactly which softdevice api call that return error code 0x4015 (NRF_ANT_ERROR_CHANNEL_IN_WRONG_STATE).

    It may be that you are trying to assign or open a channel that is already configured. In specific I suggest to check that each channel you setup have it's own unique: 
    @param[in] ucChannel is an unsigned char (1 octet) denoting the channel to assign/open.

    Best regards,
    Kenneth

  • Sorry, i modified my question.

    If i opened ant hrm disp channel, i did not send bsc packet.
    Then success.

    And, if i opened ant  bsc disp channel, i send bsc packet.
    Then success.

    But, if i opened ant  bsc disp channel, i did not send bsc packet.

    A period of time later.

    Then return error code that 0x4015.

Reply Children
Related