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,530 points
69 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. There's a question on doing that here:

Obtain MAC Address from Devices using Python

answered Nov 16, 2018 by Shubham
• 13,290 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,260 points
1,265 views
0 votes
1 answer
0 votes
1 answer

How to get Unicast, Dns and Gateway Address in UWP?

Try this code Snippet I found here: https://social.msdn.microsoft.com/Forums/en-US/27a8b7a8-8071-4bc1-bbd4-e7c1fc2bd8d7/windows-10-iot-core-how-do-you-create-a-tcp-server-and-client?forum=WindowsIoT ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
125 views
+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 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 177 views
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 21, 2018 in IoT (Internet of Things) by Shubham
• 13,290 points
26 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 in IoT (Internet of Things) by Shubham
• 13,290 points
17 views