views:

79

answers:

2

So in a bluetooth piconet, there is one master with upto seven slaves. The master sets the clock and frequency hop that the slaves sync with. But is there a way to determine which device is the master and which is the slave? I'm mainly interested in portable devices (Android,iPhone) but beggars can't be choosers, if anybody has info in this field I would be interested.

Thanks

A: 

I don't think it's possible to do it programatically.The master/slave roles which a device assumes is invisible to the user(application).The same device can act as a master of one piconet and a slave in an (adjacent) piconet.What needs to be decided in your application is whether the device will act as a client or a server or both and what will be the services(profiles) that it supports.

itisravi
Thanks for the response. From what I've been researching it seems like master/slave roles are not determinable. It's just a little surprising.
Rich
A: 

It depends on the platform you are using. It should be possible to read the information associated with a connected device and the role of the device should ideally be part of that information in the API. So if the connected device is Master you can infer that you are slave and so on. -Dennis

Dennis Mathews