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

HOGP / ble_app_hids_keyboard / iOS 7.1 / softdevice versions

Hi,

Been testing the ble_app_hids_keyboard that comes with the nrf SDK and have some questions.

Notes:

  • The PCA10001 EK is V2.2.0 (2014.04)
  • I downloaded the nrf SDK today (filename: nrf51_sdk_v5_2_0_39364), so I assume it's the latest source files. Please confirm.
  • as the example is for the nrf6310-board, gpio mods were made in the h-file.

Questions:

  • Which S110 softdevice is supposed to be used? When I use the S110 5.2.1 softdevice, the device doesn't seem to work/advertise at all (confirmed to be same on the HRS example made for the PCA10001 board). When I switch to S110 6.0.0 HRS works, so does the ble_app_hids_keyboard example.

  • Tested in Master-Control panel and can see data coming through. Paired with Mac OS X 10.9.2, every click on Button0 sends one character to the mac, H... E... L... etc. Paired with iOS 7.1, clicking btn0 does nothing (notes is in foreground). Any known issues here? (have tried unpair/re-pair, reboot phone etc etc no succes, went back to mac, works. Confirm using another BLE HID devices and that sends data to iOS.)

  • Should this code be considered production stable for HID over GATT?

  • Are there other HID keyboard examples that I should test as well?

/d

Parents
  • Also tested with BlueZ under Ubuntu, here the result is a bit different, it connects successfully but pairing fails (using bluetoothctl pair), but the hid is still created in /dev/input/event4 !?

    btmon

    > ACL Data RX: Handle 64 flags 0x02 dlen 15                                                             [hci0] 7.399550
          ATT: Handle Value Notification (0x1b) len 10
            Handle: 0x0019
              Data: 00000b0000000000
    > ACL Data RX: Handle 64 flags 0x02 dlen 15                                                             [hci0] 7.429510
          ATT: Handle Value Notification (0x1b) len 10
            Handle: 0x0019
              Data: 0000000000000000
    
    

    Checking with evtest

    Event: time 1396799738.036831, -------------- SYN_REPORT ------------
    Event: time 1396799738.066701, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000b
    Event: time 1396799738.066701, type 1 (EV_KEY), code 35 (KEY_H), value 0
    
    

    output from bluetootd

    bluetoothd[11202]: profiles/input/hog.c:uhid_event_cb() Unsupported uHID output event: type 4 code 4 value 458763
    
    
Reply
  • Also tested with BlueZ under Ubuntu, here the result is a bit different, it connects successfully but pairing fails (using bluetoothctl pair), but the hid is still created in /dev/input/event4 !?

    btmon

    > ACL Data RX: Handle 64 flags 0x02 dlen 15                                                             [hci0] 7.399550
          ATT: Handle Value Notification (0x1b) len 10
            Handle: 0x0019
              Data: 00000b0000000000
    > ACL Data RX: Handle 64 flags 0x02 dlen 15                                                             [hci0] 7.429510
          ATT: Handle Value Notification (0x1b) len 10
            Handle: 0x0019
              Data: 0000000000000000
    
    

    Checking with evtest

    Event: time 1396799738.036831, -------------- SYN_REPORT ------------
    Event: time 1396799738.066701, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000b
    Event: time 1396799738.066701, type 1 (EV_KEY), code 35 (KEY_H), value 0
    
    

    output from bluetootd

    bluetoothd[11202]: profiles/input/hog.c:uhid_event_cb() Unsupported uHID output event: type 4 code 4 value 458763
    
    
Children
No Data
Related