I use sdk14.2 nrf52832 as the primary, connect two iphone peripherals, iphone is connected to broadcast, when I turn on both peripherals, sometimes everything is normal, sometimes the first time the service is found Just stuck, please help me
I use sdk14.2 nrf52832 as the primary, connect two iphone peripherals, iphone is connected to broadcast, when I turn on both peripherals, sometimes everything is normal, sometimes the first time the service is found Just stuck, please help me
If just open a peripheral device, no problem
Hi,
I suggest that when you connect to a device, you have a delay until service discovery completes for the 1st device, before connecting to a 2nd device. I assume there is some race condition occurring here.
Best regards,
Kenneth
I expect there is a race condition in code when two service discovery occurs in parallel, which may happen if two devices connect at the same time. Can you try workaround by delay 2nd connection works?
Best regards,
Kenneth
But I just used a service. I was scanning. After I matched, I stopped scanning and started to connect. I started to discover the service after I connected. I discovered that the service was completed and then scanned. I don't know if there is any competition.
in fact i find this situation is also happen only one device can be connect , so , my peripheral is iphone, it is After the connection is still broadcast, but I filtered the mac,
Hmm.. can you check out the following two links, if any issues may explain what you experience:
https://devzone.nordicsemi.com/f/nordic-q-a/29796/what-are-sdk-14-x-0-known-issues
hi ,This still did not help , thiis
hi ,This still did not help , thiis
Sometimes the service is found to be no problem, sometimes the situation shown in the figure above appears
Someone said you might want to delay the service discovery after connection event with >100ms. It seems that the GATT database on the phone may sometimes be delayed. Can you try that also?
this is resolve it is my code errror ,thanks
Thanks for confirming!
Best regards,
Kenneth