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

S130 can't be a central and Peripheral at the same time

As a peripheral,S130 can work ok,but when I add a central role, there is a error at central start to connect a peripheral.err_code = sd_ble_gap_connect(&addr,&m_scan_param,&m_connection_param); APP_ERROR_CHECK(err_code);here,err_code=0x00000005,the return value is out of the legal returns.I don't know what happen. whether is the m_scan_param or the m_connection_param value wrong?

Parents
  • The headline is incorrect. The S130 indeed can handle both GAP Central and Peripheral roles at the same time and several nRF5 SDK examples show it. It's your FW which is buggy.

    From very little you shared it's impossible to help you. Please identify which exact HW do you use, which SD version, which nRF5/nRF51 SDK version, what example project you started from and also go back in your project history to be as close as possible to the example (ideally to the moment when all major features worked as expected). Then we can do something together. Otherwise your question is as effective as screaming from the window.

  • Do you want to say that "ble_app_hrs_rscs_relay" example in nRF51 SDK on nRF51 DK with S130 V1.0.0 doesn't work? That sound weird because I expect Nordic application engineers to test it before release. So if you are able to make that work with 3 other boards (or does it work with phone app in the up-stream?) then I stay by my claim that you killed the functionality in some of your modifications.

Reply
  • Do you want to say that "ble_app_hrs_rscs_relay" example in nRF51 SDK on nRF51 DK with S130 V1.0.0 doesn't work? That sound weird because I expect Nordic application engineers to test it before release. So if you are able to make that work with 3 other boards (or does it work with phone app in the up-stream?) then I stay by my claim that you killed the functionality in some of your modifications.

Children
No Data
Related