pylon:
Use a capture filter (Capture -> Options) of:
host 192.168.1.65
given that 192.168.1.65 is the IP of your Arduino. This way you get all packets originating or targeting your Arduino. You may have to read a bit about TCP/IP though to be able to analyze the output you get
I have promiscuous mode on and WinPcap is running, but all I see are the ARP broadcast packets from the Arduino. It and the PC I'm running Wireshark on are plugged into two different ports on my router. Reading the Wireshark FAQ, sounds like I might need to use a hub, as the router is probably only switching unicast traffic to the intended destination. (192.168.0.1 is the gateway IP, the other IP and MAC addresses below are the Arduino.) I'm also looking to see if my router can replicate all traffic to a certain port.
No. Time Source Destination Protocol Length Info
1 0.000000 02:00:c0:a8:00:ca Broadcast ARP 60 Who has 192.168.0.1? Tell 192.168.0.202
2 60.000862 02:00:c0:a8:00:ca Broadcast ARP 60 Who has 192.168.0.1? Tell 192.168.0.202
3 119.996545 02:00:c0:a8:00:ca Broadcast ARP 60 Who has 192.168.0.1? Tell 192.168.0.202
Yep, that's correct, if your router has a switch (and not a hub) included, you have to get it to replicate all the traffic to your port. That's why I have a separate hub just for such situations :-).
Ha! I used to have this dumb hub kicking around, but now have a couple switches, so I tossed it. Dontcha hate it when that happens! Thanks for the verification, though! I'm off to find something cheap! XD
It shouldn't, else the switch is not doing what it's made for. Real switches give every port just the traffic intended for the MAC addresses connected there plus the broadcast traffic. You could trick them into hubs by intentionally overloading their MAC storage or similar techniques but I've seen simple routers with internal switches to freeze doing such stuff.
Sheesh, does anyone know where a hub can be found these days? Did a fair amount of Googling around and I think I only found switches. They're getting so cheap, there may be no percentage in selling hubs
You might get a Cisco smart switch (I think they call them small business). As far as I remember these could be configured have a monitoring port (getting all traffic) and they are relatively cheap.
I just checked the manual for my Cisco SLM2008 switch. It has that feature which is called "Port Mirror" in Cisco terminology. I paid about 100 bucks for that thing a few years ago, it's now on ebay for $65. You might get a cheaper alternative.
SurferTim:
I don't know exactly how this will send , but it appears to be sending one character per packet.
void pmToClient(char *s)
{
while (char c = pgm_read_byte_near(s++)) {
client << c;
}
}
How many character/packets are you sending?
Tim, thanks for that, got to looking through the code and if I'm reading it correctly, it may indeed only be sending one character per packet. I assumed (you know what they say) that "someone" might have been doing some buffering along the way, and so I got carried away with reclaiming my RAM. Gave some back in the form of a buffer and wrote a few lines of code to manage it.
In general things are looking better with this project. It's been running at my friend's place for quite a few days now with a couple improvements in the code. At my sister's, I'm still running a test where the code resets the WIZ811MJ if a connect failure happens. That seems to be working well so far, it's reset about a dozen times in 24 hours or so now. Seems to make good sense to include the reset code in the final project, but it is still just treating a symptom that I do not understand, yet.