Troubleshooting 2 Pi picos over Ethernet? #17199
Replies: 4 comments 8 replies
-
For comparison I put 2 of these together w/a 1 foot cable and cross over. (Alpine linux and 64 MB) I got similar behavior in that I could ping back and forth and then all of a sudden "ping: sending packet: Network is unreachable". I think for now I have my answer... |
Beta Was this translation helpful? Give feedback.
-
The length of the cable, has no relevance. Any TP-Cable, up to 500m should work. There are cables, which are already crossed. You could try another one. Good luck |
Beta Was this translation helpful? Give feedback.
-
You may not need the cross-cable at all if you set the PHY to 100Mb auto nego. IIRC The standard mandate the nego can detect crossover, though I can't find that mentioned in the specsheet. Pg. 42 |
Beta Was this translation helpful? Give feedback.
-
Thanks all for the suggestions.
Just as I was thinking it was not going to work, I got it to work with new hardware. Initially I bought 3 and I think as @KnorkFox mentioned maybe it was a soldering issue/etc because I now have in my possession:
I.E I have a 40% module failure rate. And I think that one that is slowly fading it's LED (I don't remember that happening prior to posting) may just be the kicker so to speak. That is, it probably worked before and then now not -- who knows -- but it plausible. I was very diligent in ensuring wires and pins are lined and tight... Further when I got these to connect now, I tested explicitly by turning one on and WAITED 10-15 seconds to turn on the other... it still worked. I did this a few times. I.E. I thought maybe I had to get these to turn on and negotiate as closely as possible time-wise. Turns out that is a huge no. I was able to wait as I mention. So I think I'm going to turn these on/off a few times a day and see if they remain stable.
If I learn anything substantial apart from this, I'll be sure to post. |
Beta Was this translation helpful? Give feedback.
-
Connecting Two Raspberry Pi Picos via Ethernet (Directly!)
Goal
Establish reliable Ethernet communication between two Raspberry Pi Picos using a short (1-foot) cable.
TL;DR
While a direct, short Ethernet connection between two devices isn't standard practice, I've managed to get it working reliably for extended periods (8+ hours). I'm seeking insights into why it's sometimes inconsistent and if there are specific Ethernet startup parameters I might be overlooking. This is purely for a fun, space-saving aspect of a larger personal project. Any advice or learning opportunities are highly appreciated!
Background & Motivation
This endeavor stems from a desire to create a compact and visually appealing setup for a larger project. Directly connecting the two Picos via Ethernet, if reliable, would be a cleaner solution than introducing a network switch. Even if it ultimately doesn't become the permanent solution, the troubleshooting process promises to be educational.
Steps Taken
Hardware Setup:
IP Configuration:
Observations
MicroPython Configuration
Here's the MicroPython code snippet used on both Picos (with the IP address adjusted accordingly):
I followed the wiznetdoc for the pins.
Question
Could the inconsistent connectivity be related to the Ethernet startup parameters being configured incorrectly by default? After some searching, I haven't found clear methods within the
network.WIZNET5K
class to explicitly set parameters like duplex or speed, nor much in the way of advanced debugging options.I often encounter a
"wiznet5k_send_ethernet: fatal error -5"
message, although my searches for this specific error in the context of Micropython haven't yielded much information. I did notice the keyword in the Micropython source code:micropython/extmod/network_wiznet5k.c
.Any insights, suggestions for further debugging, or potential solutions would be greatly appreciated! Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions