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

Connect two nrf51822 possible?

i have found that

devzone.nordicsemi.com/.../

It seems impossible to connect two nrf51822,because soft device doesn't support the BLE Central role.But below said in August 2013 there will be a beta soft device release. Is it possible to connect two nrf51822 now ? If it is possible then where can i get some information?or example.

Thank you.

  • Hi

    It depends on your scene and players. Please check again here:

    S120 Bluestack will offer you for the role of been Master node. S110 Bluestack will offer you for the role of been Slave mode. S130 Bluestack will offer you for the role of been both Master and Slave mode.

    You just need to take care under the gatt handlers and fill correct struct packets with valid configs.

    • You req Scene #1 : One Slave, One Master :-> Then use BLE Stack s110 on slave one and use S120 on master one.

    • Your req Scene #2 : One Master + Slave, Other Master:-> Then use BLE Stack s130 as slave and other BLE Stack as S120.

    • Your req scene # 3: One Master + Slave, Other Master + Slave:-> Then use BLE stack 130 as Master and other BLE Stack 130 as slave. Or vice versa.

    Now the SoC IC can play one role at a time. That means if one SoC IC is playing role of Master at a given point of instance, and in case other slaves are connected to this, then the IC then have to disconnect all exiting connections and then convert to Slave and start adv all again.

    Now selection of service via you can exchange data:

    • UART Service
    • PairingLess Metod: Read adv packets only and exchange data.
    • Create your own service, needs to play on gatt packets. Many Application notes will help you out on this.

    So you can connect nrf51822 with other nrf51822 for sure. Go through the examples of master and slaves and central, and extract the relevant bits out of the code and fit the code according to your scene. It should work. I hope this might have helped you. Do let us know in case still any issue persist.

  • Concurrent multi-link operation for all roles <- I think it may allow you to be master and slave role at same time. I need to check. I did the same but keeping one master and other as slave at one time. S130 if says so, they definitely have provided such facilities to do it. Trust on there SDK as well.

  • Thank you for your answer.It really help me a lot.I will try it.Thanks again.

Related