Timeline for W5100: get MAC address from devices in network? [closed]
Current License: CC BY-SA 3.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 7, 2014 at 14:11 | comment | added | powtac | I found a solution: github.com/powtac/Autarc_LAN_User_Stats/blob/master/… see function "pingDevice" | |
Feb 3, 2014 at 13:38 | comment | added | powtac | @DaveTweed thank you for your suggestions and your research. I have not yet asked Blake Foster. | |
Feb 2, 2014 at 18:32 | history | closed |
Dave Tweed Joe Hass Olin Lathrop Daniel Grillo Chetan Bhargava |
Not suitable for this site | |
Feb 2, 2014 at 16:30 | comment | added | jippie |
from a command line it would work like arp HP5180.local where HP5180.local is my printer, but can be any IP-address on the network. Address HWtype HWaddress Flags Mask Iface followed by HP5180.local ether 02:0f:b5:52:73:65 C eth0 . So what you have to do is use the ARP protocol.
|
|
Feb 2, 2014 at 13:03 | comment | added | Dave Tweed | OK, I finally found the relevant code in your Github project. Have you tried asking Blake Foster about this, since it's his code you're hacking? | |
Feb 2, 2014 at 12:48 | review | Close votes | |||
Feb 2, 2014 at 18:32 | |||||
Feb 2, 2014 at 12:38 | answer | added | Lior Bilia | timeline score: 2 | |
Feb 2, 2014 at 12:30 | comment | added | Dave Tweed | It's really unclear what you're asking. You're reading the correct register, but you might not have the W5100 in the correct state at the time you're reading it. You're going to have to show us your source code, and please reduce it to the smallest example that demonstrates the problem. For example, are you using "MAC raw" mode? See page 57 of the datasheet. | |
Feb 2, 2014 at 11:49 | comment | added | Wouter van Ooijen | If you've got the CPU time you could check all ethernet messages, collect their source MACs, and declare a device present if it had any activity in the last X seconds. | |
Feb 2, 2014 at 11:11 | history | edited | powtac | CC BY-SA 3.0 |
added 40 characters in body
|
Feb 2, 2014 at 11:11 | comment | added | powtac | @WoutervanOoijen all devices are in the same Ethernet segment. They are connected to a standard consumer router. They all were assigned to IP addresses in a range of 10.0.1.0 - 10.0.1.20. The goal is to protocol when a device is online. | |
Feb 2, 2014 at 11:06 | comment | added | Wouter van Ooijen | What type of network? MAC address is ethernet specific, are all nodes on the same ethernet segment? | |
Feb 2, 2014 at 11:03 | comment | added | powtac | @PeterJ, thanks for responding, I updated the description. | |
Feb 2, 2014 at 11:02 | history | edited | powtac | CC BY-SA 3.0 |
added 19 characters in body; edited title
|
Feb 2, 2014 at 10:53 | comment | added | PeterJ | Actually I might have misunderstood, I was thinking every node would be an Arduino + W5100 so your code could retrieve it from the module and broadcast it to other nodes. But that won't work if the other devices aren't things you can program yourself. | |
Feb 2, 2014 at 10:45 | comment | added | powtac | How can I ask devices to send their MAC address? | |
Feb 2, 2014 at 10:40 | comment | added | PeterJ | Have you thought about broadcast packets? Whether that will work does depend on the network topology a fair bit. But each device could just periodically send a packet with its MAC address and each node could build a table of MAC versus IP address. | |
Feb 2, 2014 at 10:27 | history | asked | powtac | CC BY-SA 3.0 |