- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In WICED-SMART-SDK-1.1.0,
bleprofile.h contains two functions, bleprofile_ReadUART and bleprofile_regHandleUARTCb.
What port are these functions using?
As Puart is independently set, I guess this UART is for HCI or debugging.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi eyan,
Those functions are for the peripheral UART, so you can communicate with another device. Here's an example I wrote that uses it to communicate with an Arduino DUE:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello eyan
Let me research this for you tomorrow
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello eyan,
Still working on this, but the bleprofile_regHandleUARTCb is a Registered Call Back function.
Does this help?
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
JT,
can you answer what bleprofile_ReadUART is for?
EY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello eyan,
bleprofile_ReadUART:
Your application can call this function to read the content of the UART received buffer.
Your application needs to provide at least READ_UART_LEN
byte buffer
The Parameter:
data - This is the pointer to the buffer to read UART to.
Our API documentation is located in the SDK API.html file
Let me know if this answers your questions
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
J.T, which port of UART does "bleprofile_ReadUART" use?
I'm confused with peripheral UART.
EY An
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can specify which port you use for peripheral uart like below.
const BLE_PROFILE_PUART_CFG sample_puart_config = {
115200
, GPIO_PIN_UART_TX
, GPIO_PIN_UART_RX
};
sample_puart_config is used as the 4th parameter of bleapp_set_cfg().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi eyan,
Those functions are for the peripheral UART, so you can communicate with another device. Here's an example I wrote that uses it to communicate with an Arduino DUE: