Our batch of Raspberry Pis are all equipped with a TP-LINK TL-WN722N WiFi Dongle, which we use for testing our protocols. During the initial setup of the testbed, we have experience quite some trouble with these devices, as they didn’t always bring up the interface in a proper manner. And even worse: This ocurred between arbitrary pairs of devices, even though they were all placed in the same room.
To test wether the wireless links were running between every possible pair of devices, I created this little neat script:
It simply logs into to every device given in the second for-loop, from which it will ping every device given in the first for-loop. The result tells you, in a nice way, which devices aren’t able to communicate.