Hi all. I've seen a few posts about this, but none of them seem to have the knowledge I'm looking for. I am helping plan a device that has two units and will connect to a phone or other host device (maybe PC). Each will communicate relatively little information to the host, and would only need to send a syncing signal between them every once in a while to sync LEDs and maybe small audio files - so I guess you can think like ear buds but without so much data. I thought at first that it might make the most sense to have one unit as peripheral (call it unit A), one unit as combination central/peripheral that would act as central to the other unit and peripheral to the host (call it unit B), and then the host as a central to the B unit's peripheral. But then I saw in Hung Bui's reply to this post that there might be a way to use a host application to automatically connect to two devices simultaneously without the end user being aware of it. This sounds like it might be an even better idea, but I can't seem to find any more information about it, which leads me to think that I am googling the wrong words...
So, given that I don't want to the end user to have to be aware of the pairing scenario at all, from their perspective it should just work, and that there are only a few dozen bytes being transferred every few seconds at most, which makes more sense:
- Unit A connects as peripheral to Unit B as central which then acts as peripheral to the host. How do I have these devices pair during manufacture? If I let the user pair them on first power up, what happens if they buy several pairs and start them at once?
- Unit A and Unit B both connect as peripheral to the host. How do I prevent the user from having to manage two devices pairing with their phone, and the inevitable confusion if one of those pairings goes wrong in some way? How to prevent the user from even noticing that a device is pairing at all (other than maybe a permissions popup the first time)?
Thanks for any guidance you can give!