Ethernet Gateway - Radio Init Fail
-
@stevebus Meant to add a couple more details
- this is all on a breadboard at the moment. prototyping before soldering it all via PCB
- LEDs are connected to pins 7, 8, and 9
- I get the same results in the serial monitor if I unplug VCC and GND for the radio!!.. Is this the first place in the code that we try to talk to the radio?? (not having a step debugger stinks :-) )
@stevebus The Ethernet shield does not play nice on the SPI bus, so it's having problems talking to the radio. You need to move the radio to different pins and enable SoftSPI. Search the board for details on that. As a quick test, set up a serial gateway first with the radio on the pins you are currently using and if that works, you know the radio is good.
Cheers
Al -
The ENC module usually works without SOFTSPI.. But it is really tight to get it in on the ATMega328.
-
thanks for the clarification and help, guys.. You guys rock with the quick responses! (and Mysensors in general is friggin' awesome!)
I moved the wires and enabled SoftSPI and got further than I was. I managed to get to the hallowed "gateway started" message, but got gobbledygook for the st param.. this is what got printed..
0;0;3;0;9;gateway started, id=0, parent=0, distance=0
c=327,t=310,pt=288,l=273,sg=631,st=»:qmjëlVúšÚö�iÿïs0¼�÷ïÜžºKmýÏO»rgædöûå=_ošóÕëÖÌ›§2ŒT†—<÷¿Îºô}~Bõò>,{÷5/does that look right? or an issue? what does a 'working' gateway look like (without yet having any sensors or connecting to Vera)? Should I be able to ping it? (I can't) Should I be able to telnet to port 5003? (I can't)
-
Ok... update... I had some debug code in there from when I was trying to find out where the initialization was failing, and I think I introduced a bug... I removed my code and re-ran and got this:
0;0;3;0;9;gateway started, id=0, parent=0, distance=0
that looks good :-)...
thanks for the help guys!
-
Ok... update... I had some debug code in there from when I was trying to find out where the initialization was failing, and I think I introduced a bug... I removed my code and re-ran and got this:
0;0;3;0;9;gateway started, id=0, parent=0, distance=0
that looks good :-)...
thanks for the help guys!