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,210 points
41 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 12,890 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,098 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
95 views
0 votes
1 answer

how can i count the items in a list?

suppose you have a list a = [0,1,2,3,4,5,6,7,8,9,10] now ...READ MORE

answered May 2 in Python by Mohammad
• 1,400 points
56 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
• 12,890 points
24 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
• 12,890 points
13 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.