CBPeripheral identifier is changing every few sconds

"Hi Guys


We have a problem with CBPerihperal identifiers changing every few seconds on the same peripheral.

From what we have noticed already when we are using mac address provided from Nordic, identifier stays the same for very long time.

When we are using our own mac addresses for example something like this: "ff:de:96:99:d5:33" identifier will change every few seconds, sometimes minutes and sometimes almost never.


Is it correct approach to to relay on CBPeripheral identifier?

Is soemthing wrong with our mac addresses ?


Tested on ios9 - ios9.1


Also there are no calls to centralManagerDidUpdateState between identifiers rotations.


Please 🙂 help

The identifiers are not guaranteed to stay the same over longer periods of time, but they should stay the same if you regularly use the peripherals.


1) Do you connect to the peripherals or do you only scan for them?

2) Are you sure that you have no accidently set the address-type on the nordic peripheral to random-resolvable?

3) Are you 100% sure that you dont have multiple peripherals that are advertisit that may cause a confusion?


I honestly don't know the answer, but the above questions might help you.


/Anton

1. Only scanning

2. Acording to BT spec for random static address type "The two most significant bits of the static address shall be equal to 1" So to make sure we are using now "FF"

3. 100%

It's very hard to debug as when I'm at home it's working just fine for most of the time.

At the office where is about +-300 devices advertising constantly it's happening almost everytime.

I did more testing to make sure from those 300 none have same mac addresses and they are all different.


I guess without Apple Engineer help it's a dead end as no one knows how exaclty UUID is generated 😟

CBPeripheral identifier is changing every few sconds
 
 
Q