Radio fails to init on W5100
-
@ximinez Just tested your setup/settings using an Arduino UNO + W5100 shield and I can confirm, that SOFTSPI (A2=MISO, A1=MOSI, A0=SCK, D6=CSN, D5=CE) and HWSPI (D12=MISO, D11=MOSI, D13=SCK, D6=CSN, D5=CE + #define MY_W5100_SPI_EN 4) work with the refactored RF24 driver.
Please double check you are using the most recent MySensors 2.0.0-beta lib and GatewayW5100 sketch.
@tekka said:
@ximinez Just tested your setup/settings using an Arduino UNO + W5100 shield and I can confirm, that SOFTSPI (A2=MISO, A1=MOSI, A0=SCK, D6=CSN, D5=CE) and HWSPI (D12=MISO, D11=MOSI, D13=SCK, D6=CSN, D5=CE + #define MY_W5100_SPI_EN 4) work with the refactored RF24 driver.
Please double check you are using the most recent MySensors 2.0.0-beta lib and GatewayW5100 sketch.
I just did (for the second time), and lo and behold it works. Absolutely no clue why, but I'm sorry I've wasted your time.
My gateway can finally have DHCP and signing at the same time :)
-
@tekka said:
@ximinez Just tested your setup/settings using an Arduino UNO + W5100 shield and I can confirm, that SOFTSPI (A2=MISO, A1=MOSI, A0=SCK, D6=CSN, D5=CE) and HWSPI (D12=MISO, D11=MOSI, D13=SCK, D6=CSN, D5=CE + #define MY_W5100_SPI_EN 4) work with the refactored RF24 driver.
Please double check you are using the most recent MySensors 2.0.0-beta lib and GatewayW5100 sketch.
I just did (for the second time), and lo and behold it works. Absolutely no clue why, but I'm sorry I've wasted your time.
My gateway can finally have DHCP and signing at the same time :)
-
It depends on the module manufacturer. If they use the correct pin for CE, then it's possible. Otherwise the W5100 chip itself hold MISO line low, when the chip is not selected, effectively blocking the spi for other uses
So to keep things safe, I suggest that we keep the soft spi option.
-
Some W5100 boards also have a SPI-enable signal which can be used to turn off drivers from W5100 when the bus is used elsewhere. That is, enable it only when the W5100 is addressed. I used this in my sketch when I had a W5100-based ethernet gw but I don't think all modules offer this possibility.
-
Some W5100 boards also have a SPI-enable signal which can be used to turn off drivers from W5100 when the bus is used elsewhere. That is, enable it only when the W5100 is addressed. I used this in my sketch when I had a W5100-based ethernet gw but I don't think all modules offer this possibility.
-
All,
Is the content of this topic still valid? All my wiring is according to the intructions (and this topic). I get the following errors:
0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
0;255;3;0;9;TSM:INIT
0;255;3;0;9;RF24:write register, reg=0, value=14
0;255;3;0;9;RF24:write register, reg=3, value=3
0;255;3;0;9;RF24:write register, reg=4, value=95
0;255;3;0;9;RF24:write register, reg=5, value=76
0;255;3;0;9;RF24:write register, reg=6, value=39
0;255;3;0;9;RF24:read register, reg=6, value=255
0;255;3;0;9;RF24:read register, reg=5, value=255
0;255;3;0;9;RF24:Sanity check failed: configuration mismatch! Check wiring, replace module or non-P version
0;255;3;0;9;!TSM:RADIO:FAIL
0;255;3;0;9;!TSM:FAILURE
0;255;3;0;9;TSM:PDT
0;255;3;0;9;RF24:write register, reg=0, value=12
0;255;3;0;9;RF24:power downNote: I did fiddle around with the radio channel settings in myconfig.h, reinstalled the original myconfig.h though.
Thx
Ralph
-
All,
Is the content of this topic still valid? All my wiring is according to the intructions (and this topic). I get the following errors:
0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
0;255;3;0;9;TSM:INIT
0;255;3;0;9;RF24:write register, reg=0, value=14
0;255;3;0;9;RF24:write register, reg=3, value=3
0;255;3;0;9;RF24:write register, reg=4, value=95
0;255;3;0;9;RF24:write register, reg=5, value=76
0;255;3;0;9;RF24:write register, reg=6, value=39
0;255;3;0;9;RF24:read register, reg=6, value=255
0;255;3;0;9;RF24:read register, reg=5, value=255
0;255;3;0;9;RF24:Sanity check failed: configuration mismatch! Check wiring, replace module or non-P version
0;255;3;0;9;!TSM:RADIO:FAIL
0;255;3;0;9;!TSM:FAILURE
0;255;3;0;9;TSM:PDT
0;255;3;0;9;RF24:write register, reg=0, value=12
0;255;3;0;9;RF24:power downNote: I did fiddle around with the radio channel settings in myconfig.h, reinstalled the original myconfig.h though.
Thx
Ralph
@bisschopsr looks like a SPI issue (return value 255 hints to that).
edit: Is this referring to the same issue: https://forum.mysensors.org/topic/4662/ethernet-gateway-with-w5100-radio-error-solved/3 ?
-
@ximinez I also use a w5100 shield with SD card and I need to initialize the cs line of the SD card to high in the before() method, so before mysensors start (when using hardware spi) .
Otherwise the SD card will also be selected on the spi bus during startup and radio init will fail. -
@bisschopsr looks like a SPI issue (return value 255 hints to that).
edit: Is this referring to the same issue: https://forum.mysensors.org/topic/4662/ethernet-gateway-with-w5100-radio-error-solved/3 ?
@tekka: More or less. I wanted to know if the beta that was used in this thread still sticks with the content (does this make sense). It is supportive to my other question with the refered link.
Thx
Ralph
-
@bisschopsr looks like a SPI issue (return value 255 hints to that).
edit: Is this referring to the same issue: https://forum.mysensors.org/topic/4662/ethernet-gateway-with-w5100-radio-error-solved/3 ?
@tekka: In addition: the setup is working now, but not flawless. No radio connection between the node and the GW. But of course this is a different topic.