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

Receive BLE beacon on TWI from nrf51422

We have a new daughter board connected via I2C to an Atmel controller. What we need to do is load the right softstack onto the NRF and then send the needed commands to tell it to start advertising and whatever we need to do to receive any beacons it detects.

Is there a simple explanation of the steps needed and are there any similar example projects available ?

Parents
  • Hello.

    Let me split my answer into two parts, programming the nRF, and running the application.

    Running the application Here you have two choices. The first one is using the nRF as a pure connectivity chip. Here the nRF will be used as a pure BLE chip, and all the logic is done on the host MCU. (The Atmel chip). The other is to create the custom firmware on the nRF, and implement some simple communication over i2c. We do have example projects in the SDK you can base your project on in both cases.

    Programming You can program the nRF chip through the SWD interface with a normal programmer/debugger unit (from a PC). You use this to first program the softdevice (BLE stack), and then the application. You can also program the nRF through your main MCU if that is needed (this is more complicated). You can do this either through the SWD interface, or other serial interfaces (SPI, I2C, uart). If you need the latter, you must first flash the nRF with a Serial bootloader.

    What kind of board is the nRF51 chip on?

    Are you going to use this both as a beacon and beacon scanner, or just the scanner?

    If you are completely new to the nRF, i recommend you to check out the getting started page, as well as our tutorial page.

  • You will then be an "observer", which is a device which scans for the advertisement packets of other devices (a beacon packet is a special advertisement packet). The s110 is not suited as it cannot take the "observer" role.You should use Softdevice S130.

    On the nRF51, you can assign i2c,SPI and UART pins at runtime. This means that you do not HAVE to use i2c, if your host controller can use the pins for other serial interfaces as well.

    It seems to me that you would benefit from learning a bit about BLE in general. This will help you understand our SDK and API's later on. I have linked some resources above. You can also check out our youtube channel, and other guides like this on on adafruit. This book is also worth a read.

Reply
  • You will then be an "observer", which is a device which scans for the advertisement packets of other devices (a beacon packet is a special advertisement packet). The s110 is not suited as it cannot take the "observer" role.You should use Softdevice S130.

    On the nRF51, you can assign i2c,SPI and UART pins at runtime. This means that you do not HAVE to use i2c, if your host controller can use the pins for other serial interfaces as well.

    It seems to me that you would benefit from learning a bit about BLE in general. This will help you understand our SDK and API's later on. I have linked some resources above. You can also check out our youtube channel, and other guides like this on on adafruit. This book is also worth a read.

Children
No Data
Related