Hello, I am having a strange issue with my network. I have an arduino with a wiznet module that monitors and controls my garage door. It is connected via ethernet directly to the Netgear Switch in my server rack. Also connected directly is my Windows 10 based server which runs software i wrote to communicate with the arduino. I have been having issues with the communication between the arduino and the server. I can ping the arduino from my desktop (ethernet through a second switch in my office) and from my phone (wireless) with 0 to 1% packet loss. When pinging from the server I get 80+% packet loss. I have tried different cables, different switch ports and even reinstalled Windows on ther Server (I was having other issues as well) and no change. I can ping every other device from the server (including 2 other arduinos that run lighting in the house) without issue, it is only this one arduino and the server I'm having trouble with, which is a problem because it is really the only computer I need it to communicate with reliably. Any thoughts on what the issue might be? Thanks
-Brad
I apologize but I don't quite understand what you are asking. Do you want me to use the cable that currently connects my desktop to the switch in the office in place of the cable connecting the server to the rack mount switch?
I mean physically move either your server or desktop (whichever is lightest) and connect them to the cable segment where it works/doesn't work. If they're right next to each other (in the same office) unplug from your desktop and plug into the back of the server.
Ok, I moved the desktop downstairs and plugged it directly into the Ethernet switch in the server rack (I couldn't use the specific cable that the server normally uses as it is a custom length cable routed through the rack's cable management but It failed with many different cables and switch ports) and I got the same 80+% packet loss on the desktop as on the server, I tried about a half dozen different cables on the server, desktop, and Arduino as well as put another network controller in the server, so I think that rules out a cable being the issue, and since it is now failing on the desktop and a different NIC It rules out server hardware failure).
Here is where it gets confusing, I moved the desktop back to the office and I plugged the Arduino into the switch in my office. Ping from the Desktop to arduino is perfect (0% loss) and Ping from the desktop to the server is also perfect but Ping from the server to the arduino is 90% Loss.
I moved the Arduino back down stairs and plugged it into the rackmount switch with a brand new cable and I am now getting 88% loss from the desktop and 100% loss from the server. I think that narrows it down to the rackmount switch (although nothing else seems to be having any trouble) or maybe the Wiznet module is starting to fail. I will order (if I don't have one laying around) another wiznet module and try it, I hope it is the problem, I don't want to have to replace the switch it was relatively expensive.
I just wanted to give an update on my issue, it turns out the MAC address I chose for my Arduino Ethernet adapter (defined in code) just happened to be the same as the wireless mac address for my Surface which I use to RDP into my server (which has no Keyboard/mouse/monitor). (BTW thats a 1 in 281,474,976,710,656 chance if completely random) When I started messing with Ethernet on arduinos years ago I vaguely remember using an existing MAC and just changing the last 2 bytes, since I reuse proven code from project to project just changing a byte or 2 between them, I suppose a collision was bound to happen eventually) The only reason I discoved this was because I was messing with my router settings and noticed 2 entries in my connected devices table with the same MAC and different IP addresses. Whenever I was trying to ping the Arduino from my server, I would have had the surface on and connected to the Wireless, but when the surface wasn't connected to the wireless, everything worked perfectly. I simply redefined the MAC in my Arduino sketch and all is well.
Thanks
-Brad
Status
Not open for further replies.
You have insufficient privileges to reply here.
Related Threads
?
?
?
?
?
Tech Support Forum
4.7M posts
957.9K members
Since 2002
A forum community dedicated to tech experts and enthusiasts. Come join the discussion about articles, computer security, Mac, Microsoft, Linux, hardware, networking, gaming, reviews, accessories, and more!