SPI to BLE Bridge Peripheral and Central role

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi,

   

I am trying to implement following attached project SPI to BLE Peripheral Bridge in my application, CYBLE 022001 module is already connected to BLE dongle. Now I am trying to write Data in SPI master, but I don't know how to implement it? Is it Possible to take SPI Master from BLE Pioneer Kit to send data to BLE Dongle via SPI communication?

   

Regards,

0 Likes
1 Solution
Anonymous
Not applicable

Hi,

   

Please refer our example BLE - SPI Bridge project along with the documentation.

   

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

   

Regards,

   

- Madhu Sudhan

View solution in original post

0 Likes
5 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Short answer: yes.

   

Long answer: you need a SPI master in your BLE module code. Look at its documentation for how to use it. Then you need a custom BLE service, which exposes the data you want to transfer. Then its data can be seen by the dongle (and maybe you want to use BLE notifications to regularly send new data to the dongle)

0 Likes
Anonymous
Not applicable

Hi,

   

Please refer our example BLE - SPI Bridge project along with the documentation.

   

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

   

Regards,

   

- Madhu Sudhan

0 Likes
Anonymous
Not applicable

Hi,

   

Thank you Hli, I am following this link regarding SPI_Master, but I didn't find SPI_Master in Component Catalog.

   

http://www.cypress.com/documentation/component-datasheets/serial-peripheral-interface-spi-master

   

 Yes Sudhan, I have modified your given project as our application, but still unable to write date to BLE dongle...

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

The PSoC BLE module can use only the SCB SPI component, which can be put into master mode.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi!

   

Trying to use Day 048 instructions:
Code builds and programs, OK, but what does this mean:
Hardware Connections
Connect the SPI lines of the SPI master to that of the PSoC 4 BLE / PRoC BLE?

   

I have PSoC plugged into Pioneer Board, nothing else. Is that all that's needed?

   

I see BLE-SPI in Supported Targets, connect, scan, see it in the Device list, then it times out, why? See attached error.

   

Where are the bytes that go to/from BLE? How are they generated in SPI? Is anything missing in this project to make it work?

   

Thank you.
Regards,

   

Oscar

0 Likes