PSoC4 BLE UART RX Problem

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

I want to data to BLE 012011 from my card via UART. 
Then i will press to CySmart Application via Bluetooth.
I selected BLE_Temperature_Measurement example at PSoC Creator 4.0 .
I added UART(SCB Mode)[V3.20], i don't have other UART version.
My problem is that i don't use UART interrupt and rx functions.
I should write an internal interrupt for RX busy, but i don't.
Another that i want to take these datas to an array.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Try this document.

View solution in original post

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

What dou you actually want to do? Send data from your PC, via UART, to the BLE module? Or do you want to transfer over BLE, via emulating an UART?

0 Likes
Anonymous
Not applicable

I have a card that sends data to my BLE's pin6 via UART. 

   

I want to take this data with BLE via RX pin and transmit to CySmart Application via Bluetooth.

   

Briefly, power card and BLE will be communicated via UART. Then BLE and Phone(CySmart Application) will be communicated via Bluetooth.

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

So have a look at the component data sheet for the SCB UART. When you right-click on the component, you can also search for example projects which show how to use it.

   

Depending on the UART baud rate, it would recommend using an interrupt to read the data. Otherwise, you need to poll the UART component to get received data. Once you have read a byte you can transfer it into an array.

0 Likes
Anonymous
Not applicable
        I know that datasheet, but there isn't any example about this. UART ISR don't exist.   
0 Likes

The 'UART advanced' page of the SCB UART configiguration allows you to set the interrupts. Set it to external, configure the conditions when you want to receive an interrupt and connect an ISR component to the 'interrupt' pin which appears.

   

Or configure a receive buffer size of more than 8 bytes, then the internal interrupt gets enabled and the UART handles an internal buffer for you. In this case you can set your own interrupt callback handler to get notified e.g. when there are more than a specified number of bytes in the RX buffer.

0 Likes
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Try this document.

0 Likes
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted
        Check this example http://www.cypress.com/comment/389231#comment-389231