¿Pueden dos teléfonos tener la misma dirección de bluetooth?

I am writing a code which can show nearby friends whose bluetooth devices (phones) are switched on. My codes uses the devices addresses of the users to keep track of their presence but I need to know whether this figure is unique or not. If not how can I generate a unique id for each phone, let's say for example address + friendly name (which unfortunately is not unique).

Muchas Gracias

preguntado el 02 de julio de 12 a las 16:07

No, Bluetooth addresses are unique. See this other question stackoverflow.com/questions/2004065/… -

This uniqueness you talk about should only exist within specific manufacturers, no? -

@ChibuezeOpata, Bluetooth addresses are globally unique. They are composed of an upper and lower address part. Some of the upper bytes identify specific manufacturer, then lower bytes are unique IDs from that manufacturer. So you will not find two devices with same address. -

Wow, okay so could you please post that an answer so I can accept it properly. Thanks. -

1 Respuestas

So two phones can't have the same Bluetooth address due to the way the mac addresses are assigned. Bluetooth addresses use the same MAC-48 identifier format. Read esta página para más detalles.

Respondido el 13 de Septiembre de 12 a las 10:09

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.