This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF51822 UART interfacing and HID over GATT

Dear Nordic Team,

I am currently working on a project to develop firmware for S110 nRF51822 softdevice with the following requirements.

  • Read ASCII chars from a third party hardware over UART
  • Send these chars using HID over GATT from nRF51822 to IPAD or other Bluetooth devices.

I am new to nRF51 SDK and I am struggling with following questions.

  1. how do I receive chars from UART

  2. how do I sent these chars from UART to HID over GATT.

I have seen the following examples but not sure which one to use.

  1. UART/Serial Port Emulation over BLE

or

  1. HID Keyboard Application

are there any other examples available.

Please guide me in understating how to solve this.

Kind regards,

Ven

Parents
  • @Ven:

    1. You should start first with interfacing the nRF51 with your third party hardware over UART. Keep the Softdevice aside. You can try first with the SDKv8.1\examples\peripheral\uart project.

    2. After you have managed to receive the chars from UART you can start integrate it to the keyboard example we provided. The current example sending "h e l l o" text when a button is pressed, you can modify this to send the char you receive.

Reply
  • @Ven:

    1. You should start first with interfacing the nRF51 with your third party hardware over UART. Keep the Softdevice aside. You can try first with the SDKv8.1\examples\peripheral\uart project.

    2. After you have managed to receive the chars from UART you can start integrate it to the keyboard example we provided. The current example sending "h e l l o" text when a button is pressed, you can modify this to send the char you receive.

Children
  • Hi Hung,

    Thank you for the support. It is much helpful.

    Do I still need to use HID interface after receiving chars from UART or Can I send received UART chars directly to GATT.

    Kind Regards, Ven

  • Hi Hung,

    I went through the documentation for flashing the hardware but I am struggling to find the correct procedure to flash and test UART example and HID over GATT.

    If you can help me in understanding the following queries , that would be great.

    1. How do I flash the UART example and How do I test UART. Is there any document that has this procedure. What cables and connections I need to make to flash and to test the hardware.

    2. How to flash HID over GATT and test it. Is there any document that has this procedure. What cables and connections I need to make to flash and to test the hardware.

    Kind Regards, Ven

  • @ven: I need to know which hardware you have.

    If you have the nRF51 DK, you can simply compile and download the compiled hex to the nRF51 DK in KEIL. You can have a look at this tutorial.

    The SDK documentation could also be useful.

  • Hi Hung, Thank you. I am using InsightSIP ISP130301which has nRF51822.

    Any thoughts on first comment.

  • Hi Hung, Thank you for the response. I want to receive ascii chars from device connected to nRF51822 UART interface and pass them via GATT to any divices(ipad or phablet) that connects to the nRF51822 via blue tooth. Below is the flow.

    third party device-----(ascii)-------> nRF51 UART interface -> GATT -------------- (ascii chars via bluetooth)---------------------> ipad,iphone

    Please let me know if need to use HID here.

Related