cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

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
Reply
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
Reply
5 Replies
HeLi_263931
Honored Contributor II

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
Reply
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
Reply
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
Reply
HeLi_263931
Honored Contributor II

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

0 Likes
Reply
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
Reply