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

sd_rpc_open() error code 0x0D.

Hi 

I'm testing heart_rate_collector in pc-ble-driver. in CONSOLE application, it work well.

but in Win32 Application, it doesn't work when run sd_rpc_open().

error code always is 0x0D(NRF_ERROR_TIMEOUT).

what should I do and where is my problem? thanks !

Parents
  • Hello Carl

    there is no Window BLE API , just pc-ble-driver as a part of Win32 application.

    and I have found the answer why is timing out.

    In Win32 application, I use 'SendMessage' to transmit and show log data but not printf().

    then it will TIME OUT when opening BLE driver(sd_rpc_open()).

    I have no idea why is this so, 'PostMessage' can work normally but can not transmit log data in real time.

    What should I do ? great thanks again !

Reply
  • Hello Carl

    there is no Window BLE API , just pc-ble-driver as a part of Win32 application.

    and I have found the answer why is timing out.

    In Win32 application, I use 'SendMessage' to transmit and show log data but not printf().

    then it will TIME OUT when opening BLE driver(sd_rpc_open()).

    I have no idea why is this so, 'PostMessage' can work normally but can not transmit log data in real time.

    What should I do ? great thanks again !

Children
  • Hello,

    Zeddy said:
    there is no Window BLE API

    I thought you might have been using a non-Nordic BLE adapter for you windows computer, and thus would have had to use their API. I am glad to hear you are working with the nRF51 dongle, this will make things much easier!

    Zeddy said:

    In Win32 application, I use 'SendMessage' to transmit and show log data but not printf().

    then it will TIME OUT when opening BLE driver(sd_rpc_open()).

    Is sd_rpc_open returning NRF_SUCCESS? Could you tell me what parameters you are providing the function call that times out?

    Zeddy said:
    I have no idea why is this so, 'PostMessage' can work normally but can not transmit log data in real time.

    Could you elaborate what you mean by this; " 'PostMessage' can work normally but can not transmit log data in real time".
    Do you mean that it is working as expected, except for some kind of delay?

    Looking forward to resolving this issue together!

    Best regards,
    Karl 

  • Thanks Karl, I have fixed this issue. 

    now I use 'PostMessage' to show log data. it's my problem in using prameter.

    thanks for your reply again ! 

  • Hello,

    Zeddy said:

    I have fixed this issue. 

    now I use 'PostMessage' to show log data. it's my problem in using prameter.

    I am glad to hear that you were able to resolve your issue!

    Zeddy said:
    thanks for your reply again ! 

    No problem at all, I am happy to help! :)

    Please do not hesitate to ask if you should encounter any issues or questions in the future.
    Good luck with your development!

    Best regards,
    Karl

Related