First I register the address of the central device to the peripheral device. When I work with a single peripheral device and a single central device, I can send commands from the central device to the peripheral device. But when I have more than one peripheral device in the vicinity, I can not send commands to the peripheral device registered from the central device. I think the signals are mixed up. Because, as I said at first, I can send peripheral commands to the central device when the peripheral devices are turned off and there is only one peripheral device. I used connectable undirected advertising. Because;
- Peripheral device should be scannable and connectable
- I send commands both by phone and by keyfob.
That's why advertising packet type should not be directed advertising as I know. When I scan by phone, I can see and select peripheral devices. But with KeyFob I do not have such a chance.If KeyFob is used, I think that KeyFob's head is mixed because I can not make a selection if there are more than one peripheral.
I read this link: devzone.nordicsemi.com/.../
So, do you have any suggestions to scan and connect to the peripheral which I want with KeyFob?
I share sniffer pictures for information.