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

iOS (iPhone & iPad). Using BLEshield to acheive HID over GATT keyboard?

Hello,

firstly I would like to say that I tried searching the forum for a post that has similar problems to my own. But I haven't (please tell me if i'm wrong) seen any posts that has this issue.

I am currently using the BLE shield by RedBearLabs that uses the NORDIC nRF8001 Bluetooth Low Energy IC.

What I am trying to achieve is to make the apple product (whether iPhone or Ipad) to recognize my device as a bluetooth keyboard.

My aim is to be able to send some ascii code characters from the arduino to the iPhone/iPad.

I am currently using the examples provided on the nordic website, and running it in the arduino environment. The example is called : BLE_HID_KEYBOARD

The problem occurs when I attempt to pair the two devices.

firstly, my iPad/iPhone only sometimes detect the device. secondly, when pairing does occur, it disconnects a few moments later.

If I could get some assistance as to how I can rectify the issue, this would be great.

Another question I would like to add is how or where in the code I should be modifying in order to send the ascii code that I want.

Let's say i want to send a 'space' key every 5 seconds. How would i achieve this?

Sorry for the questions, I am new to BLE technology. I am somewhat familiar with C programming, and the arduino environment. Any help would be appreciated!

Don.

Related