This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NRF51822 sensor (S110) reconnection between different APs (S120)

Hi, I am working on a project that the ble sensor will be mobile. I load mutiple nrf51822 with the softdevice S120 working as APs and place them in different places to extend its coverage. I load one nrf51822 with the softdevice S110 acting as the sensor. I expect it will automatically connect to the closest AP when it drops from the prvious AP. However, the sensor will stay in disconnected unless i reset the sensor or the closest AP. Any idea what causes that? Sensor: SDK Softdevice 8.0.0 + ble peripheral UART example AP: SDK softdevice 2.1.0 + ble central uart example

  • The solution I have now is quit stupid: when one S120 AP detects an disconnection, then I will ask all the other AP to keep reset until one of the AP sucessufully connects to the sensor. But this solution is not very robust and will also impacts the data transmission from other sensors.

  • Do you use the ble_app_uart_c example from github? Could you try to use the SDK 11 examples (ble_app_uart and ble_app_uart_c) instead? They use S130.

  • Thanks Ole Bauck, I prefer to use S120 for the AP as I don't want it to be discovered by any other devices. I noticed the SDK 10 has S120 example. I have tried both ble_app_uart_c and ble_app_multilink_central in the ble_central example. Both examples works well, but when I tried to integrated them together, I always end up some problem. I also noticed that there is a ser_s120_uart example under the ble_app_multilink_central. Does this example will do the multilink+UART? I also tried this example but it does not connect to the peripheral and also does not show up anything on the terminal. When I enable the app log support, it complains about the missing link. Is there a working solution for S120? Thanks very much! Jack

  • It can be discovered by other devices no matter if you use S120 or S130, the centrals will connect if they find the correct uuid in the advertisement packet. ble_app_uart_c with S120 from SDK 10 should work out of the box. I just tested and the peripherals will connect to another central if the one it was connected to is disconnected, which is expected behaviour.

    The ser_s120_uart example is a serialized example using uart as serialization interface, see here. You don't have to worry about this.

    Combining the ble_app_uart_c example and the ble_app_multilink example may not be straighforward.

  • Dear Ole, Thanks a lot for your detailed explanation and help on testing. I am still working on integrating the ble_app_uart_c and ble_app_multilink_central, so that it will handle uart connections from multiple peripherals at the same time. I have tested each example individually and both of them can do the re-connection between different central. However, the problem I am having now is that the program is not able to detect the NUS services after the integration. My code (based on the example) is available here [BLE_APP_MULTIPLE_UART]. (www.dropbox.com/.../nRF51_SDK_10.0.0_20160303.zip . It would be really appreciated if you could point out the problem on the code. Thanks so much for your time and help! Jack

Related