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

BLE lost messages

Hi, as part of my project i have 2 nordic 52dks one as a pheripheral (sending) and on as a client (recieving). where i am sening a buffer of 8, in the order

buffer[0] = 10

buffer[1}= X gyro lsb

buffer[2] = X gyro msb

buffer[3] = y gyro lsb

buffer[4] = y gyro msb

buffer[5] = z gyro lsb

buffer[6] = z gyro msb

buffer[7] = 36   //terminator $

however sometimes i seem to lose a byte over ble such that the next byte received will be less and hence the order is correupted thus making processing rather and unpredictable for a large sample size like 1000000 samples.

how may i ensure that my ble settings are correct such that i ensure to limit this issue.

my code was based of the examples ble_app_uart and ble_app_uart_c for the peripheral and client respectivly.

thank u in advance 

  • Great! Thank you for confirming.

    Karl Ylvisaker said:
    Have you checked your logger output when this happens? - if so, what does it say?

    Are you seeing anything in your logger when the device suddenly resets?
    If so, please tell me what the logger says.

    Best regards,
    Karl 

  • hi , no i dont get anything in the logger, and as mentioned previously my client devboard doesnt connect to the perhiperal with the app error

  • is it possible to have some kind of meeting please? inorder to solve the issue please and also ask some minor questions with relation to this ticket please

  • NikTheNordicUser said:
    hi , no i dont get anything in the logger,

    Which logger backend are you using, and how have you configured it?
    Are you working out of an example from the SDK? If such, the example should have the logger setup already, so that you see output in your logger when starting any unmodified SDK example.
    These logs usually read something like ".... example started".

    If you are working out of the ble_app_uart example, the example uses the RTT logger backend by default. You will then only see the messages either in the SES debug terminal or using an RTT terminal such as Segger's RTT Viewer application. 

    NikTheNordicUser said:
    as mentioned previously my client devboard doesnt connect to the perhiperal with the app error

    This is likely due to a non-NRF_SUCCESS error being passed to an APP_ERROR_CHECK.
    While it may seem like a step in the wrong direction, it is actually a crucial step in the right direction, as this alerts you to the fact that a function call in your application is failing - and must be looked closer at.
    Without checking error codes you are only hiding potential problems in your application, and it will most likely cause major headaches later in your development/deployment to leave these unchecked.

    NikTheNordicUser said:
    is it possible to have some kind of meeting please? inorder to solve the issue please and also ask some minor questions with relation to this ticket please

    I do not think a meeting is necessary at this point. We have specific lead to follow to continue the debugging - seeing the logs in order to understand what part of the application is failing. My suspicion here is that your call to ble_nus_data_send fails with the NRF_ERROR_RESOURCES error code. This is however just my suspicion, and we will need the loggers output to know for sure.
    Please write any minor questions you might have here in the ticket - this will keep the forum tidy, and might help other forum-goers who have the same questions later.

    If these minor questions are sensitive or contain sensitive information, you can just let me know and I can mark the ticket as private. This will make the ticket only viewable to your self and the support staff here at Nordic.

    Looking forward to resolving this issue together.

    Best regards,
    Karl 

  • Hi, im using a serial terminal inorder to see the error , however as I mentioned previously when i add the app error check the central dev kit is not connecting to the pheripheral 

Related