W5100 Gateway not getting an IP
-
Hi, I am pretty new to this. I have a working serial gateway, but for convenience I want an ethernet Gateway. For that I am using an Arduino Uno and a W5100 ethernetshield. I am using the W5100 gateway sketch with the only modification that i commented the line with an ip adress so it uses dhcp and uncommented the line for the dhcp renewal.
But somehow i dont get an ip adress when i connect it to the netwerk. If i connect the cable to my laptop it works and my laptop gets an ip adress so the cable is good. I do not have an other arduino project currently on my netwerk, so the mac adress is unique in my network.
When i look at the debug it says:
0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;!TSM:INIT:TSP FAIL 0;255;3;0;9;TSM:FAIL:CNT=1 0;255;3;0;9;TSM:FAIL:PDT 0;255;3;0;9;TSM:FAIL:RE-INIT
With the CNT going up to 7. But with all the rest the same.
I do not have the rf24 yet connected as i first wanted to test this first.
What am I missing?
-
@avs what indicates that the gateway did not get an ip address?
The log says it is unable to initialize the radio, which is expected if the radio is not connected.
Connect the radio and try again.
-
@mfalkvidd thanks for your reaction; i am using an app to find devices in my network and it did not show the gateway, thus i jumped to the conclusion the gw did not get an ip adress. I shall try it tomorrow with the radio attached.
-
If radio doesn't initialize the gateway doesn't load pretty much anything
-
That was indeed the solution. Sometimes it can be so simple. Did not think that wiring the radio would matter. Thanks!
-
@avs great that it solved the problem. Thanks for reporting back.
-
Actually you can comment out the define of the gateway and use it as a simple gateway with sensors.
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47 -
Ghost Child
Troubleshooting • 15 Mar 2025, 07:44 • FcNanoLed 18 Mar 2025, 18:36 -
DHT22 wrong sensor type in Home Assistant
Troubleshooting • 9 days ago • Commodoreuno 3 days ago -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 19 Mar 2025, 21:00 • bocalexandru 28 days ago -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58