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: If you want to send data when in connection you should have GATT. If you plan to send data just by broadcasting ( advertising) you don't need GATT. You don't need HID Keyboard unless you want to use it as a keyboard to control your mobile device.

Reply
  • @ven: If you want to send data when in connection you should have GATT. If you plan to send data just by broadcasting ( advertising) you don't need GATT. You don't need HID Keyboard unless you want to use it as a keyboard to control your mobile device.

Children
  • Hi Hung,

    Currently I have a device with the following details: Ic Version - 2, Variant - CE AA , Build Code - D0, Hardware Id - 004d

    I am using the softdevice s110_nrf51822_7.0.0_softdevice.hex , nRF SDK 6.1

    I have flashed((along with the softdevice) the sample ble_app_hids_keyboard present at nrf51_sdk_v6_1_0_b2ec2e6\nrf51822\Board\nrf6310\s110\ble_app_hids_keyboard\arm

    but I am not able to see Bluetooth device or HID keyboard on my Windows7 pc or iphone4s. I can see the device on Master Emulator.

    Is there anything wrong I am doing here. Can you please guide me how to see the HID keyboard on windows and iphone4s.

    Kind Regards, Ven

  • @Ven: Please don't convert all my comment to answer. Secondly, when you have follow up question, please create another one.

    Windows 7 doesn't support BLE natively. So you might need to use API provided by third party to make it work as a keyboard. I'm not sure why your iPhone4s didn't work. Could you use an app, for example LightBlue on iOS to scan for the device ?

  • Thank you Hung.It happened by mistake and I was not able to delete them as I have not enough points.

  • I am able to see the connect to the device on ipad but i am seeing some other issue.will post separately

Related