How to detect presence of a device in a WiFi network

0 votes

I'm working on a project based on Intel Edison(Running Debian based Ubilinux). I need Edison to execute some code whenever my android phone(running CM11) connects to the same WiFi as the Edison. How can I detect the presence of my phone in Edison? I have tried the following.

1.Pinging: But the problem is that the router assigns different IP's every time because of DHCP.So,I will not be knowing the IP address of my phone. Is there any way to ping based on the device's MAC address?

2. I thought of broadcasting a special discovery packet from my phone, whenever it gets connected to the WiFi.But,I don't know where to start with this approach.

Nov 16, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
3,359 views

1 answer to this question.

0 votes
Finding the mac-address would probably work. Basically, you can run the arp command to see what mac-address matches which IP.
answered Nov 16, 2018 by Shubham
• 13,490 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

How to send a data from arduino uno to a webpage through esp8266 wifi module?

You are missing a few \r\n and the length ...READ MORE

answered Aug 9, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
3,670 views
0 votes
0 answers
0 votes
1 answer
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,441 views
0 votes
1 answer
0 votes
1 answer

Detecting when a sensor is not sending data to Orion CB in FiWARE

Orion in itself has no such mechanism ...READ MORE

answered Nov 22, 2018 in IoT (Internet of Things) by Shubham
• 13,490 points
753 views
0 votes
1 answer

How to prevent an application from publishing to a topic?

Devices and applications operate in a topic ...READ MORE

answered Jan 18, 2019 in IoT (Internet of Things) by Shubham
• 13,490 points
705 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP