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

Several questions about sparkfun nrf52840 BLE connections

Hello Nordic,

I have several questions regarding the BLE connection. I have 2 sparkfun nRF52840 boards and an android phone (android 6.0).

This is my scenario:

    - the android phone connects to nRF1 and transmits some data .

    - then, nRF1 connects to nRF2 and transmits also some data.

    - at the final, nRF2 connects to android phone and transmits other data.

Can you help me, please, telling how to solve this circle of connections? I don't think that my phone supports peripheral mode. So, if my phone can be only in the central mode, that means that the boards have to be in peripheral mode, but being in peripheral, the boards can't talk to each other or do you have an example in the SDK to be able to do this?

Thank you.

Parents
  • Hi

    The BLE_NUS_C_EVT_NUS_TX_EVT should be called to indicate that the central received something from a peer, so when you write something to the central from the peripheral, this event should be called.

    Out of curiosity, how are you flashing the applications onto your boards as you don't use a J-Link debugger of some kind?

    Best regards,

    Simon

Reply
  • Hi

    The BLE_NUS_C_EVT_NUS_TX_EVT should be called to indicate that the central received something from a peer, so when you write something to the central from the peripheral, this event should be called.

    Out of curiosity, how are you flashing the applications onto your boards as you don't use a J-Link debugger of some kind?

    Best regards,

    Simon

Children
  • Hi,

    I'm flashing using the USB cable and running some adafruit commands from terminal.

    I want to find out where in the code of ble_app_uart (peripheral), I write something to the central so that is called BLE_NUS_C_EVT_NUS_TX_EVT in central (ble_app_uart_c).  I really need this information because I want to do the same in ble_app_multiperipheral.

Related