- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in the example the keystrokes send over HID is simulated: SimulateKeyboard();
I should like to receive keystrokes on the uart-RX line and send them over HID.
How can I check the UART RX buffer and read the incomming chars ?
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Go through the UART datasheet and look for the APIs GetRxBufferSize() and GetData().
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Go through the UART datasheet and look for the APIs GetRxBufferSize() and GetData().
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you Bob, I'm know able to get characters from the RX buffer and transmit them as HID key-press/release.
Where can I find the value of the connection and advertising interval setup in the project ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
when running in PSoC debugger all is running - GAP connecting, reading from RX buffer and sending as HID keypresses and going to CySysPmDeepSleep();
When leaving debug (shift+F5) - UART RX stops working.
Checking before going to deepsleep seams not good enough:
if(((UART_DEB_SpiUartGetTxBufferSize() + UART_DEB_GET_TX_FIFO_SR_VALID) == 0u) &&
((UART_DEB_SpiUartGetRxBufferSize() + UART_DEB_GET_RX_FIFO_SR_VALID) == 0u))
{
CySysPmDeepSleep();
}
A hint pls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please have a look at the BLE component configuration Window 'GAP Settings' tab.
Thanks,
Hima