Thanks @mfalkvidd. The thing is that I have a Homey controller which unfortunately does not see any sensors even though I have the GW send the data to the IP address of the controller (could be Homey app as well). When I let the gateway act as a server it keeps on restarting. Maybe this is due to the W5100 shield. When I disconnect the ethernet cable it starts normally. I will try another w5100 to see if the restarting problem will be solved. My modem does supply an IP and the GW is pingable in client mode.
Posts made by LarsMachiels
-
RE: Can't get started
-
RE: Can't get started
Finally I got at least something to work after a lot of trying and fiddling with Murphy next to my side. I found out that RADIO:OK doesn't necessarily mean the radio is actually working. Unfortunately automatically assigning an ID to the node didn't work, but with #define CHILD_ID 1 it was OK. I can see the node / gateway sending and receiving each others messages. When I comment #define MY_CONTROLLER_IP_ADDRESS the gateway keeps on initialising. I assume I need to use my controllers IP there. Can anybody explain me what this constant is for?
Even though I have been programming for more than 20 years I find it hard to get everything up and running but I will not rest before it is working fine. Next step will be to connect the Gateway to my Homey. So far thanks for all the help.
-
RE: Can't get started
Hi @Boots33 ,
Today I got my Arduino stuf in. I took a new Nano V3, uploaded a sensor sketch, connected the radio etc. but still no success. I activated the debugger and it turns out that the radio doesn't initialise (RADIO:FAIL or something like that). I checked all my connections several times but those were all OK. The radio was working fine on the gateway (Uno + W5100 shield) so I tried the sensor sketch on the UNO. Now the radio was OK. Also tried the gateway on my Mega but there I get the same radio problem. So it seems I need another UNO to make it hopefully work. Or maybe there is another way (Burn new bootloader maybe?).
All suggestions are welcome.
Greetings,
Lars -
RE: Can't get started
Thanks for your sketch. I tried the sketch but unfortunately I could not connect the gateway to my Homey. So maybe it is not the sketch but something else. I ordered some Arduino stuff and will try again with separate sensor node.
-
RE: Can't get started
Hi @Boots33,
I deleted all my Arduino files including the ones in the user\documents\ directory (I hate it when files are automatically installed there), downloaded the Arduino compiler from Arduino.cc compiled and uploaded the W5100 sketch. Everything seems to be working fine now. Also Ping says it is OK. Thanks again for your simple and clear instructions.
The only thing I do not understand is why the Setup and Loop section are empty and I wonder how I can use the gateway itself with a simple sensor. If would like to first test it with my Homey before I start buying all kinds of sensors.
Regards,
Lars -
RE: Can't get started
Hi Boots33,
Thanks a lot for all the explanation! It looks very clear. Tonight I will try again. I might have the wrong Arduino compiler.
Thanks again,Lars
-
Can't get started
I am trying to get started with building the Mysensors Ethernet Gateway (Arduino Uno with W5100 shield). Whatever I try I do not get it to work due to zillions of compilation errors (files not found, etc.). Would it be possible to create a very simple step by step "build Ethernet gateway" including EXACT instructions which libraries to use and where to put them i.e. :
STEP 1 : Download this and that file and put them in : "C:\PROGRAM FILES\ARDUINO\LIBRARIES"
STEP 2: Download sketch this and that and put them in folder blablabla.
ETC.Obviously the current instruction video's don't work. It is not that I am completely new to programming but all the contradictions dazzle me a bit.
Thanks in advance!