- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content