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

How do you set up BLE communication between a central and peripheral?

Hey All,

I am trying to create a simple data transfer system using a DFRobot Bluno (CC2540 chip) as the central device, and a Redbear Labs Blend (nRF8001 chip) as the peripheral. I have had success getting either of them talking to an iPhone, but not to each other. By the way, both boards are arduino based.

My understanding is that the Bluno has to broadcast something, that the Blend will see and register as another BLE device, then communication happens! Just having a lot of trouble finding existing projects and documentation to help in actually doing this.

Parents
  • Hi

    The peripheral (slave) will broadcast an advertising packet, offering any central (master) device to connect to it. The central device will scan in order to discover any advertising packets from the peripheral. The central device will initiate the connection and perform a service discovery in order to know what services are present on the peripheral. Then the central can request the peripheral to start sending notification messages (e.g. sensor data) which the central device will receive. Perhaps this link can help you out for further understanding.

    I guess I have already suggested on this thread a starting point for the peripheral side. Unfortunately, I can not help you much on the CC2540 side.

Reply
  • Hi

    The peripheral (slave) will broadcast an advertising packet, offering any central (master) device to connect to it. The central device will scan in order to discover any advertising packets from the peripheral. The central device will initiate the connection and perform a service discovery in order to know what services are present on the peripheral. Then the central can request the peripheral to start sending notification messages (e.g. sensor data) which the central device will receive. Perhaps this link can help you out for further understanding.

    I guess I have already suggested on this thread a starting point for the peripheral side. Unfortunately, I can not help you much on the CC2540 side.

Children
Related