@rvendrame
That was IT!! All working splendid now. I am very grateful to you. The debug log gives information on the CE and CS pin. I never knew this!!
@skywatch
Indeed a really good lead from @rvendrame.
Both thanks for your attention.
@rvendrame
That was IT!! All working splendid now. I am very grateful to you. The debug log gives information on the CE and CS pin. I never knew this!!
@skywatch
Indeed a really good lead from @rvendrame.
Both thanks for your attention.
@skywatch
Yes, I did filled in the altitude, but I think that's not the problem, because after starting the program it stays with the sanity check fail of the radio Nrf24l01, with the verbose debug. So it has definitely to do with this particular board and the radio. The radio's I use are working on other standard Arduino's. So the radio is OK. It is sad, that the board is not supported anymore by its creator!!
I do not know how to go further! I can not make sense of the output. Anyway thanks for reacting.
See here the verbose debug output:
15:19:06.087 ->
15:19:06.087 -> __ __ ____
15:19:06.087 -> | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___
15:19:06.087 -> | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
15:19:06.123 -> | | | | |_| |___| | __/ | | \__ \ _ | | \__ \
15:19:06.123 -> |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/
15:19:06.123 -> |___/ 2.3.2
15:19:06.123 ->
15:19:06.123 -> 16 MCO:BGN:INIT NODE,CP=RNNNA---,FQ=8,REL=255,VER=2.3.2
15:19:06.123 -> 28 TSM:INIT
15:19:06.123 -> 28 TSF:WUR:MS=0
15:19:06.123 -> 30 RF24:INIT:PIN,CE=9,CS=10
15:19:06.123 -> 34 RF24:SBY
15:19:06.157 -> 34 RF24:WBR:REG=0,VAL=14
15:19:06.157 -> 43 RF24:WBR:REG=3,VAL=3
15:19:06.157 -> 45 RF24:WBR:REG=4,VAL=95
15:19:06.157 -> 47 RF24:WBR:REG=5,VAL=76
15:19:06.157 -> 51 RF24:WBR:REG=6,VAL=37
15:19:06.157 -> 53 RF24:WBR:REG=29,VAL=4
15:19:06.157 -> 55 RF24:RBR:REG=29,VAL=255
15:19:06.157 -> 59 RF24:WBR:REG=16,VAL=115
15:19:06.157 -> 61 RF24:WBR:REG=29,VAL=4
15:19:06.157 -> 63 RF24:RBR:REG=6,VAL=255
15:19:06.157 -> 67 !RF24:INIT:SANCHK FAIL
15:19:06.157 -> 69 !TSM:INIT:TSP FAIL
15:19:06.190 -> 71 TSM:FAIL:CNT=1
15:19:06.190 -> 73 TSM:FAIL:DIS
15:19:06.190 -> 75 TSF:TDI:TSL
15:19:06.190 -> 77 RF24:SLP
15:19:06.190 -> 77 RF24:WBR:REG=0,VAL=12
15:19:16.161 -> 10082 TSM:FAIL:RE-INIT
15:19:16.161 -> 10084 TSM:INIT
15:19:16.161 -> 10086 RF24:INIT:PIN,CE=9,CS=10
15:19:16.194 -> 10088 RF24:SBY
15:19:16.194 -> 10090 RF24:WBR:REG=0,VAL=14
15:19:16.194 -> 10098 RF24:WBR:REG=3,VAL=3
15:19:16.194 -> 10100 RF24:WBR:REG=4,VAL=95
15:19:16.194 -> 10104 RF24:WBR:REG=5,VAL=76
15:19:16.194 -> 10106 RF24:WBR:REG=6,VAL=37
15:19:16.194 -> 10110 RF24:WBR:REG=29,VAL=4
15:19:16.194 -> 10113 RF24:RBR:REG=29,VAL=255
15:19:16.194 -> 10117 RF24:WBR:REG=16,VAL=115
15:19:16.194 -> 10119 RF24:WBR:REG=29,VAL=4
15:19:16.194 -> 10123 RF24:RBR:REG=6,VAL=255
15:19:16.194 -> 10125 !RF24:INIT:SANCHK FAIL
15:19:16.227 -> 10129 !TSM:INIT:TSP FAIL
15:19:16.227 -> 10131 TSM:FAIL:CNT=2
15:19:16.227 -> 10133 TSM:FAIL:DIS
15:19:16.227 -> 10135 TSF:TDI:TSL
15:19:16.227 -> 10137 RF24:SLP
@Sergio-Rius
It is a long time ago, but did you ever get a chance to solve the problem with this board? I have exactly the same problem as you explained in your message. In the past I bought a few of these boards, but never got so far to use them. Now I want to try them and @ceech is not appearing anymore on the forum.
Thank you for the hints. After have been looking further on the internet involving the compile problem and found the solution, that worked for me.link text.
I inform you that it is Mac OSX python problem in the installed python version on my Mac, a broken link to the python executable.
I simply installed the newest version 3.8.2 Python on my laptop Mac and the problem disappeared.
So, everything is working now with all the latest firmwares (see above).
Some time ago with an older Mysensors Library (I don't remember which) I had a working Gateway based on this board. Now i want to give this gateway a new live, but I have compile problems I cannot solve. I miss the knowledge to get it solved. I tried some things, however without success!
My environment is completely standard so:
Arduino ide: 1.8.12
Mysensors Library: 2.3.2
Board ESP8266: version 2.6.3
Sketch: ESP8286 wifi example completely standard; only ssid and password changed
Then I red somewhere to use board ESP8266 version: 2.5.2, so I loaded this version of ESP8266 board also, then:
In file included from /Users/robertus/Documents/Arduino/libraries/MySensors/MySensors.h:441:0,
from /Users/robertus/Documents/Arduino/GatewayESP8266-New/GatewayESP8266-New.ino:114:
/Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'void esp_yield_within_cont()':
/Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:102:36: error: 'run_scheduled_recurrent_functions' was not declared in this scope
run_scheduled_recurrent_functions();
^
/Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: At global scope:
/Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:140:27: error: expected initializer before 'ets_intr_lock'
extern "C" void IRAM_ATTR ets_intr_lock()
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Can somebody shed some light on this and hopefully has a solution, because I am stuck.
Questions:
I appreciate any help. Thanks
@gohan Thanks, as per your advice, I soldered 2 100 Ohm resistors between pin 1 and 2 and between pin 3 and 6 on the backside of the boards. I did this for the Ethernet module of the Sensebender Gateway as well as for the Arduino Ethernet shield on the Uno. And indeed both gateways are now perfectly working on the Ethernet Switch. MySensors forum works!! Issue solved within 24 hours.
I Am Very Grateful, @gohan
@gohan You are correct. I came across this information on internet: https://arduinodiy.wordpress.com/2017/04/12/the-w5100-bug/
There 3 "bugs" with the W5100 Ethernet module;
Bug 1: the spi-bug: needs soldering on the board; I don't want to do that, cost to much time.
Bug 2: the '510'-bug: needs soldering on the board; I am not going to destruct things!
Bug 3: the funduino reset bug: put a delay(250) in setup; did not resolve the issue.
So, I give up!! Spend the whole weekend on this and will think of doing things differently. At leats I know what caused the problem. That's positive, don't you think? May be someone comes up with a glamorous idea, that's is simple, cheap and easy to implement.
Thanks for thinking with me.
@yveaux I tried with two different gateways, one an Arduino Uno with Ethernet Shield and the other a Sensebender Gateway with the W5100 Ethernet module suitable for the gateway (I used two modules) So, two different hardware configurations, both with a W5100. Both gateways are working correctly directly on the router, but they refuse to work when a switch is connected between them. I will investigate if there exist issues with the W5100 and ethernet switches. At the moment I have no solution and I do not know if this is a hardware or software issue.
Thank you for giving it attention
@yveaux I toke your advise and made a small crossover network cable. Unfortunately with no success. I connected the crossover cable to my router and even with this cable, I was able to ping my both gateways. So, on the router and the gateways auto MDI-X is working, which means that Auto MDI-X automatically detects the required cable connection type and configures the connection appropriately, removing the need for crossover cables to interconnect switches. I tried two different brands of switches (not managed) with both the same problem:
D-Link Model No: GO-SW-5E H/W Ver.: E1
TP-Link: RE200 V 2.0
I am really astonished (is it bad luck!!), because @johnrob is reporting normal working of his non-managed switch.
I needed some extra ethernet ports, so I bought a simple TP-Link Switch. When I connect the Gateway (Uno) on the Switch , it does not work. On the router I have no problems. I tried with a new good working Sensebender Gateway on the router. On the Switch it is not working. I noticed that with the Switch i do not see the Tx-signal coming through.
Can this behaviour be explained? Have I setup something wrong? I tried different ethernet cables and interchanged them, but could not get it resolved. All my other devices are working correctly with the Switch, so it must be something with the Gateways!