This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF51 as UART-HID Bridge for Arduino

Hi, i have only little experience in programming a nRF51, but i want to make just a simple application. before i used a btm222 BT2.1 SPP module to transmit serial UART-data via Bluetooth - that was pretty easy. now i would like to transmit UART-data via BLE as HID. so i found the HID-serialization example, but i am not sure, what this sample does exactly, though there is also the BLE-connectivity example related to it!? can i just use the serialization example and feed the uart-pins, and it will transmit the characters? or do i have to feed the uart with special SD API commands?! this would be too complicated for me... i would like to use a simple arduino as host controller to send the characters via UART to the nRF51822. otherwhise i thought about combining the uart-example with the HID-example and build my own uart-hid-bridge application, but if possible, i would like to avoid this action.

thanks for your help!

Parents
  • The serialized BLE HID example that you refer to is a BLE HID implementation where you only send the HID commands to the nRF51822 and it will handle the transfer of the data. It could work for what you are looking for, but I think you might have just as much use for the UART example available here.

    You would at least be able to set up the BLE link to send UART commands and then you could add (if necessary) the functionality to receive the data from your Arduino and send that across the air. Have a look at the example at least and there's also apps for both Android and iOS available to connect to.

Reply
  • The serialized BLE HID example that you refer to is a BLE HID implementation where you only send the HID commands to the nRF51822 and it will handle the transfer of the data. It could work for what you are looking for, but I think you might have just as much use for the UART example available here.

    You would at least be able to set up the BLE link to send UART commands and then you could add (if necessary) the functionality to receive the data from your Arduino and send that across the air. Have a look at the example at least and there's also apps for both Android and iOS available to connect to.

Children
No Data
Related