We're developing a consumer device for the CC3200. During initial setup we need to scan the network for all devices (phones, laptops, PCs or other embedded devices - all platforms) and allow the user to select a few of them. During normal operation, we need to detect if the selected devices are present or not. What's the best way to do this on the CC3200?
Our plan was to use ARP broadcasts to scan the subnet and associate IPs with MACs, then use netbios or DNS to find the hostnames (so the user isn't picking from a list of hex characters). This is proving problematic:
- We can't seem to access the ARP table. Other posts have indicated that ARP is buried within the network processor, and doesn't expose any functions to the host.
- Netbios is not provided as an API
- We could perhaps manually formulate packets, but that seems a risky and arcane process. Also, the transceiver example seems to not work when connected to an AP.
Are we barking up the wrong tree? Can you suggest a way to access the ARP table/ force ARP requests, and resolve the found MAC addresses into hostnames? Is there a better/easier way to find devices on the network?