Send data between two PSoC 4 BLE devices

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I need to send a message from one PSoC 4 BLE device to another directly (i.e. not with a dongle or phone acting as intermediary), does anyone know a way to do this? From what I'm seeing it seems like devices can only broadcast generally, but maybe I'm not looking in the right place.

   

 

   

Thanks!

0 Likes
1 Solution
Anonymous
Not applicable

Hi Claire,

   

 

   

Welcome to the forum!

   

 

   

Broadcasting/Scanning is one way to transfer data, but it is plagued by limited data length, no security and high power consumption. Rather, you can set BLE connection between two devices to transfer data reliably and with minimum power. For sending data between two BLE Devices (PSoC 4 BLE) over the connection, one needs to be set up as GAP Peripheral and another as GAP Central.

   

You can refer few of the projects at the following location to get an idea.

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days 

   

 

   

Also, you can refer the following App notes that will help you to get started with those projects:

   

http://www.cypress.com/documentation/application-notes/an91267-getting-started-psoc-4-ble

   

http://www.cypress.com/documentation/application-notes/an91184-psoc-4-ble-designing-ble-applications

   

http://www.cypress.com/documentation/application-notes/an91162-creating-ble-custom-profile

View solution in original post

0 Likes
5 Replies
Anonymous
Not applicable

Hi Claire,

   

 

   

Welcome to the forum!

   

 

   

Broadcasting/Scanning is one way to transfer data, but it is plagued by limited data length, no security and high power consumption. Rather, you can set BLE connection between two devices to transfer data reliably and with minimum power. For sending data between two BLE Devices (PSoC 4 BLE) over the connection, one needs to be set up as GAP Peripheral and another as GAP Central.

   

You can refer few of the projects at the following location to get an idea.

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days 

   

 

   

Also, you can refer the following App notes that will help you to get started with those projects:

   

http://www.cypress.com/documentation/application-notes/an91267-getting-started-psoc-4-ble

   

http://www.cypress.com/documentation/application-notes/an91184-psoc-4-ble-designing-ble-applications

   

http://www.cypress.com/documentation/application-notes/an91162-creating-ble-custom-profile

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You will have to build a client-server connection to transmit data, there is no magic behind that.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Hi ,

   

 

   

broadcasting is not the only functionality of BLE..

   

We can send data to the peer devices after connection also. First we need to connect to th peer device and then send the data to the eer device.

   

Refer the example projects in the link https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days

   

 

   

Regards,

   

Vikas

0 Likes
Anonymous
Not applicable

There is a good example from the 100 projects in 100 days. Try the UART to BLE example.  I do have a question about the type of data sent. In that example a uint8 is transferred from uart to uart via bluetooth.  Can and how do you send a uint32 number.

   

Thanks

0 Likes
Anonymous
Not applicable

There is a good example from the 100 projects in 100 days. Try the UART to BLE example.  I do have a question about the type of data sent. In that example a uint8 is transferred from uart to uart via bluetooth.  Can and how do you send a uint32 number.

   

Thanks

0 Likes