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

how to program

hello

I am a beginer to design with wireless and I would like to know with soft can be used if i have one master with 4-6 slaves. It seam to be a S120 it right ?.

Also I have a developpement kit nRF51-DK to program nRF51822, is anybody have ever do that. Now I don't need to communicate with mobile just make a local net. the programation is dowloaded via a SPI port and debug feedback with 2 more pins , it is right ?

Thanks

  • Hi

    In the world of Bluetooth Low Energy it is more common to talk about peripherals and centrals. The central device is responsible for establishing the connection, and from that perspective the peripheral can be looked upon as the slave and the central as the master. In your case I assume by master you mean central, and if so, your assumption is correct. The S120 supports up to eight simultaneous Central role connections. Please have a look at the documentation here.

    If I understand you correctly you want to use the nRF51 DK to program and debug an external nRF51 chip and this is certainly possible. I don't understan what you try to say in you rlast two sentences, but the nRF51 use Serial Wire Debugger (SWD) and you can see here how to connect the devices. In addition there are lots of threads here on the forum discussing how to program external boards.

  • Ok now it's more clear, for my last two sentences, I just want to say I will use the boards as sensors (peripheral 4-6) an one central device.On the market they have some boards who must be program via SPI protocol but yours have only two pins, SWCLK, SWDIO and power 3,3V.

    my application is very basic to begin, I will use the nRF51822 to send a data analog to the central. I don't know the therminalogie about the system but what example program can I refer to do a similar application. I will study this application meanwhile the usb cable will coming. So the S120 software still the right program too ?

    thanks again !

  • What boards are you referring to? You cannot program the nRF5s with SPI. You can look into DFU and program it over UART, but that is a completely different and very advanced approach.

    You can use the S120 on your central and S110 on your peripherals. However you can use S130 as both peripheral and central and to get future updates I would recommend that you use this one. Here is an example using the S130 to transfer data between a peripheral and a central. You also have this example demonstrating how to make a central with S120 that you can use in conjuction with the ble_app_uart example found in the SDK.

  • Here is a tutorial guiding you through the S120 central example mentioned above.

Related