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

Problem connecting to iPhone and HTC with the same code

I have a very simple problem - using nrf52832 sdk 14.1.0 I cannot connect to iphone (7 or greater) and HTC (android 7) with the same value of NRF_SDH_BLE_GAP_EVENT_LENGTH. The default value of 3 works for the HTC but does not work for iPhone while using 4 or greater works for iPhone but not the HTC. The HTC fails with status error 133 in NRF app). I'm not even sure why these phones would be so sensitive to his value, but since it controls something behind the curtains I'm also not sure what I can do about it.

Parents Reply
  • I am running my own custom code derived from some of the example peripherals in the development kit. I just advertise and accept a connection - nothing special. Worked fine for older phones and then when I tested against the iphone 7 would not connect. Does not throw errors and does not get events (I have a handler for ble events, pm events, shutdown events...) just fails silently in the stack. Saw some suggestions to up the EVENT_LENGTH from default of 3 so that worked for the iphone and other android phones but now the HTC fails.

Children
Related