B4R Question Faulty Ethernet shield ?

derez

Expert
Licensed User
Longtime User
Got my W5100 from Aliexpress, mounted it on Arduino UNO.
Coming to this part of the example:
B4X:
    If eth.InitializeDHCP(MacAddress) = False Then
        Log("Error connecting to network.")
        Return
    Else
        Log("Connected to network. My ip address: ", eth.LocalIp)
    End If
the logging stops, no errors, nothing is printed.
Changed to this init:
B4X:
eth.Initialize(MacAddress,Array As Byte(192, 168, 0, 116))
Log("IP= " ,eth.LocalIp)
This doesn't stop but I get IP= 0.0.0.0 and no connection later on.
Checked my router -it does not appear there. Checked another router - the same.
changed mac addresses (invented) - nothing.
Checked with an Arduino example (DHCPAddressPrint) - nothing.
Also - leds on the connector do not light or flash.

Comclusion - the board is faulty.
Any possible thing that can be done and I may have overlooked ?
 
Last edited:

derez

Expert
Licensed User
Longtime User
The problem was the cable. The Ethernet shield is more sensitive then other devices, so check first with a good quality cable.
 
Upvote 0
Top