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

The Bluetooth keyboard sample does not work in an IOS 14.3 environment.

The Bluetooth keyboard sample does not work in an ipad(IOS 14.3)

The development board I used was nrf52840dk_nrf52840 (PCA10056).

I built nRF Connect SDK v1.4.2 through SEGGER Embedded Studio in desktop.


The sources are as follows:
( github.com/.../main.c)
Pairing works well in window10 (Desktop) android (galaxy20) environments, and "hello" messages are sent well when the switch button is pressed.
However, the pairing was successful in the ipad (IOS) environment, but the data failed to transmit.
And if the device is disconnected, pairing on other devices is not possible.

Why doesn't it work normally in IOS?

What else should I do?

I'd really appreciate it if you could answer.

Parents
  • Hello!

    Can you try to add the following to your prj.conf: 

    This is a known issue in NCS. You can read more about it in this thread.

    Best regards,
    Carl Richard

  • CONFIG_BT_GATT_HIDS_DEFAULT_PERM_RW_ENCRYPT=y

    (changed to CONFIG_BT_HIDS_DEFAULT_PERM_ENCRYPT) is already set.
    I read the article you sent me, but there is still a problem with data transmission.
    Connection between devices is not a problem, but there seems to be a problem with data transfer.
    I tested it with ipad (4th generation) and iphone 11pro, but both devices had problems.

  • Hi I am Sunil , I am facing the same issues

    1. in IOS and MAC OS not sending the "hello" content

    2. after reset device get connect to paired device after 4 to 6 sec and then it show error-13 while sending data (windows android)

    The given hex is work fine

    can you please share the

    main.c and prj.conf file that will be better

  • I am receiving this error

    Disconnected from 88:19:08:77:0e:aa (public) (reason 19)
    Advertising failed to start (err -12)

    when i directly ble off on user device

    CONFIG_BT_MAX_CONN=1
    CONFIG_BT_MAX_PAIRED=1

    CONFIG_BT_HIDS_MAX_CLIENT_COUNT=1

  • Hello! 

    Did you add the configurations described earlier in this thread?



    Error -12 means ENOMEM, which suggests your advertising data may be bigger than the maximum of 31 bytes. Please check this. 

    If none of the above helps open a new case, so that we can give you more dedicated help.

    Best regards,
    Carl Richard

  • Hi carl, Thanks for reply

    I have already opened query https://devzone.nordicsemi.com/f/nordic-q-a/77588/advertising-failed-to-start-err--12

    but still not getting any response

    and i try to

    enable this CONFIG_BT_GATT_HIDS_DEFAULT_PERM_RW_ENCRYPT in prj.confg

    but the project reload is failed. without this it's working

    after changes in prj.confg file i do reload and then runcMake

    I am using nrf connect sdk 1.4.2 . SES 5.10d

  • Hello again!

    I'll ping the engineer assigned to your case. And I see now that the configuration option has changed, please try the following instead:



    Best regards,
    Carl Richard

Reply
  • Hello again!

    I'll ping the engineer assigned to your case. And I see now that the configuration option has changed, please try the following instead:



    Best regards,
    Carl Richard

Children
  • I'll ping the engineer assigned to your case

    Thank you Carl

  • Hi Carl,

    Hope you are fine,

    I have a question related to this issue.

    As you said i have enabled CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE=y

    so after power cycle the device automatically connects with iphone and the service also works fine

    after this

    I found that RAM flash memory

    gets increase at every disconnect and connect

    Example

    I connect the device with nrf connect app desktop -> programmer

    i read the device and found

    flash NVM size  25 bytes from F8000

                              24 bytes from F8FF7.

    after connected and paired with iphone 8 plus

    flash NVM size  158 bytes from F8000

                              72 bytes from F8FF7.

    again read the device

    flash NVM size  195 bytes from F8000

                              104 bytes from F8FF7.

    I need to work on DFU and also NVM flash storage to store 5KB data. My concern is because of this memory increase . where it get collapse or not

    to memories the CCCD where only enable is memorize and disable is not to be memorize is it possible

    because

    when device is out of bound then it will disconnect at the time memory will increase and then in bound it auto connect and that also write .

    i want to control this only write the enable function

  • Hello!

    I'm doing well, thanks! Hope you are fine too. I must ask you to please open a new ticket for this. It's straying away from the initial question, so I think it's better to handle it elsewhere.

    Best regards,
    Carl Richard

  • Ok, I'm doing well too, I will create new ticket hope i see you soon there.