I am developing a device that should transmit data on any networks that can transmit data over Ethernet.The problem is this:
The device works fine with most of my network devices (all routers: mikrotik, dlink, tplink; switches: 3com baseline 2024, any switches cisco; PC, laptop), but does not work with the switch 3com baseline 2016.
The PC and laptop work correctly with this switch, which makes me think.
Any w5500 packets are lost on the switch; I can not ping the device (if ip and mask are set manually), I cannot get the host settings via DHCP (Dhcp discovery dropped on switch).
The MAC address is set correctly.
Maybe you know if there are similar problems with other network equipment? And are there any solutions to this problem?
Thank you for reply,
bot it’s too easy.
switch supports auto-mdix.
I tried to connect devices with any valid cable configurations.
The PC and laptop work with the switch, the device does not work.
I tried to enable and disable autonegotiation. - No results.
I tried to select 10Mbit / 100Mbit data and duplex / half duplex - no results.
In any phy-level configuration, the PC and laptop work with the network, my device does not.
And the problem is only with one of the switches I have.
A different Ethernet controller is installed in the PC and laptop, not the W5500.
If the PC and laptop did not work with this switch, I would consider that the problem is in the switch. But they work. So, my device should work.
Or there should be a list of devices incompatible with this ethernet controller.
W5500 link LED is on when cable is plugged in?
When W5500 tries reaching DHCP, does its TX LED flash?
Does its RX LED flash some times at all?
There could be a kind of “portfast” setting in the switch which does not allow switch’s port to initialize quickly. Simple test: turn on the W5500, wait for a minute with link LED being on (switch’s port must have detected and brought up so far), and then perform DHCP query.
The switch does not have the ability to update the software.
The switch does not have any settings.
PCB is developed by our engineers, but according to the reference design;
I am inclined to reject electrical incompatibility. Oscillograms of data exchange with a PC or device do not differ: the fronts are correct, the pulse duration too, up to noise.
Logical incompatibility - maybe. I want to know more precisely about this, I don’t have official information, but the facts show that any network devices work correctly with the switch, except for the W5500.
I connect the switch and the device through a special cable with a gap.
In the gap I connect a hardware traffic listener.
I launch Wireshark on the Dhcp-server.
I launch Dhcp - client on the device.
I see the following:
The device sends the packet. The switch confirms the activity by flashing the LED.
Dhcp-server does not receive packets from Dhcp-client;
Dhcp-client does not receive any data from the dhcp-server.
The switch does not forward (!) Packets from the device, ignores packets.
With any other device (PC, laptop, routers from different vendors), the switch works correctly, there are no problems.
With all the hardware I have, except for this switch, the w5500 chip also works correctly.
The problem is as follows:
Switch and W5500 do not work together.
The switch with other network devices works correctly.
other network equipment correctly works with this microcircuit.
and I need to understand why. I don’t need workarounds. I need a root solution, and for this I need to know the root of the problem.
I also tried to connect devices from WIZnet, the same problem with them.
In the start message I indicated the switch model with which problems: 3com baseline 2016
Other devices may logically work differently - e.g. PC with Windows or Linux may send packet each second, and if previous packet got lost due to switch issues, next packet will be replied to. As a test set W5500 sending requests in loop each second and see if any of the packets will go through.
You judge at the user interface level? Or at the packet exchange level?
MAC addresses of these devices, including the one you currently use?
This sounds a lot like the issue we had with our W5500 equipped device when it was plugged into a RJ45 wall jack at one corner of the office building and the company’s network switch was located at the other end of the same building. PHY detection was fine but DHCP wouldn’t happen. Adding another network device in between, such as another switch or a network sniffer (TAP) device, would make this problem go away. My hardware guy did something to circuit board to enhance the driving capability and that seemed to fix the problem.
@voroshilov which one is the termination resistor on the w5500 board? is there any number or pin name that is connected with it? I am using the w5500 ethernet shield and this is working well with all routers except switches.
I also face the same problem. after that I follow these steps now it’s working good.
There may be a form or “portfast” setting in the switch that does not permit the ports to be initialized quickly by the switch. Simple test: power on the W5500 then wait for one moment with the link LED turned on (switch’s port has to have been detected and been brought up) then run DHCP query.
Are you willing to buy an ethernet switch?. Some websites offer refurbished IT parts with warranty options. sites like amazon, xfurbish, flipkart