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

Back to back calls to ble_advertising_start(..) in nRF SDK 16.0.0 fails with INVALID_PARAMETER (i.e. 10)

I am using SDK 16.0.0.
I want to switch from a NON-CONNECTABLE, NON-SCANNABLE advertisement to a CONNECTABLE, SCANNABLE advertisement.
I launch the first advertisement and wait for it to finish after its 'DURATION' expires.
Then I launch the second advertisement (this is triggered Out of Band with a GPIOTE event).
The firmware rexecutes ALL the steps it took when it launched the first advertisement EXCEPT it uses the same configuration tag as was used in the first advertisement.

The start operation for the second advertisement fails with the error 10 i.e. INVALID PARAMETER.
The only thing I have been able to figure out is that the 'type' is different than it was before.
But the firmware DOES initialize the advertising module with the NEW type.

So, I do not understand why the Soft Device is responding with the error 10.

Parents
  • Hi Karl,


    My design has gone through a few changes these past few days and I no longer am able to reproduce this failure.
    I suspect this may have been a bug that I luckily resolved in making other changes.
    But I still need to add the extra parameter to the Bluetooth advertising modules to handle my requirements.

    Apologize for wasting your time on this matter.
    Please feel free to close this ticket.

    Cheers
    RMV

  • Hello RMV,

    RMV said:
    My design has gone through a few changes these past few days and I no longer am able to reproduce this failure.
    I suspect this may have been a bug that I luckily resolved in making other changes.

    I am happy to hear that you are no longer seeing this issue.
    The issue you described and error code that was generated definitely sounds like something that could be fixed along the way while you are still developing your code. As the error code mentions, I suspect that you tried to pass an invalid parameter to a SoftDevice function somewhere.

    I understood the general execution of your program from your first description - it was a good description.

    RMV said:
    But I still need to add the extra parameter to the Bluetooth advertising modules to handle my requirements.

    Yes, this is correct - as mentioned in my previous reply, the BLE advertising module is made to facilitate connectable advertising (like mentioned in its documentation). However, I think the modification you have made to the module seems alright for the purpose - I do not immediately see any reason why this should not work.

    RMV said:
    Apologize for wasting your time on this matter.
    Please feel free to close this ticket.

    No worries, I am happy to help! :)

    Please do not hesitate to open a new ticket if you should encounter any issues or questions in the future.

    Good luck with your development!

    Best regards,
    Karl

Reply
  • Hello RMV,

    RMV said:
    My design has gone through a few changes these past few days and I no longer am able to reproduce this failure.
    I suspect this may have been a bug that I luckily resolved in making other changes.

    I am happy to hear that you are no longer seeing this issue.
    The issue you described and error code that was generated definitely sounds like something that could be fixed along the way while you are still developing your code. As the error code mentions, I suspect that you tried to pass an invalid parameter to a SoftDevice function somewhere.

    I understood the general execution of your program from your first description - it was a good description.

    RMV said:
    But I still need to add the extra parameter to the Bluetooth advertising modules to handle my requirements.

    Yes, this is correct - as mentioned in my previous reply, the BLE advertising module is made to facilitate connectable advertising (like mentioned in its documentation). However, I think the modification you have made to the module seems alright for the purpose - I do not immediately see any reason why this should not work.

    RMV said:
    Apologize for wasting your time on this matter.
    Please feel free to close this ticket.

    No worries, I am happy to help! :)

    Please do not hesitate to open a new ticket if you should encounter any issues or questions in the future.

    Good luck with your development!

    Best regards,
    Karl

Children
No Data
Related