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

S130 Testing

I want to use the s130 softdevice because we need the broadcaster/observer mode at the same time. I bought the nRF51 Dongle and the beacon Device.I use the Keil IDE, debugging works until i hit a breakpoint. After that I think the programm doesn´t work correct.

  1. Is this a normal behavior?

For our project we don´t want to connect the BLE devices. We want to make the whole communication with abvertising messages. Example

Device A advertises Device B receives the advertising message Device B sends a advertising message Device A receives the advertising message

  1. Is it possible to do this with the Softdevice s130?
  2. Which of the example files for Programm Application will be the right choice?

Thanks in advance!

Parents
  • Thanks for your response. I was using the experimantal demo you mentioned. Now I have able to run the debug_trace. Every time I want to connect to a peripheral I get this messages on the uart:

    Advertisement stopped.<\r>
    <\n>S130_DEMO_LOG: ..\..\src\main.c: 869: (Peripheral 0) Connecting.<\r>
    <\n>S130_DEMO_LOG: ..\..\src\main.c: 885: (Peripheral 0) Connection error: error code 0x5<\r>
    <\n>(Peripheral 0) Device not found.<\r>
    <\n>S130_DEMO_LOG: ..\..\src\main.c: 869: (Peripheral 1) Connecting.<\r>
    <\n>S130_DEMO_LOG: ..\..\src\main.c: 885: (Peripheral 1) Connection error: error code 0x5<\r>
    <\n>(Peripheral 1) Device not found.<\r>
    <\n>S130_DEMO_LOG: ..\..\src\main.c: 869: (Peripheral 2) Connecting.<\r>
    <\n>S130_DEMO_LOG: ..\..\src\main.c: 885: (Peripheral 2) Connection error: error code 0x5<\r>
    <\n>(Peripheral 2) Device not found.<\r>
    <\n>Advertisement starts.<\r>
    <\n>
    

    I´m using a sniffer tool. In this tool I saw that both devices are advertising. This can´t be correct. As far as I know the peripheral is advertising and the central is the observer. Every peripheral example in the SDK is advertising. Perhaps you understand whats wrong here?

    Are you able to explain how I can swap between Broadcaster and Observer in S130?

  • sorry for late response. I gave you that example to see how you can change states between central and peripheral. The demo_app which you used starts its role depending on the button state. Please look into the function do_work() in main.c to see how you control this. by default if you do not change anything, both devices are advertising and there is no connection happening between each other, hence the error that says NRF_ERROR_NOT_FOUND (0x05)

Reply
  • sorry for late response. I gave you that example to see how you can change states between central and peripheral. The demo_app which you used starts its role depending on the button state. Please look into the function do_work() in main.c to see how you control this. by default if you do not change anything, both devices are advertising and there is no connection happening between each other, hence the error that says NRF_ERROR_NOT_FOUND (0x05)

Children
No Data
Related