Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Bug Reports
  3. Radio fails to init on W5100

Radio fails to init on W5100

Scheduled Pinned Locked Moved Bug Reports
19 Posts 7 Posters 5.5k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • tbowmoT Offline
    tbowmoT Offline
    tbowmo
    Admin
    wrote on last edited by
    #10

    @tekka

    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.

    1 Reply Last reply
    1
    • tbowmoT Offline
      tbowmoT Offline
      tbowmo
      Admin
      wrote on last edited by
      #11

      @tekka

      found this document http://www.i-vis.co.jp/pdf/wiznet/tcpip_chip/w3150a+/W5100_AN_SPI.pdf

      Look at page 3 "Multiple SPI Slave Usage". It describes the problem with W5100.

      1 Reply Last reply
      0
      • AnticimexA Offline
        AnticimexA Offline
        Anticimex
        Contest Winner
        wrote on last edited by
        #12

        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.

        Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

        tekkaT 1 Reply Last reply
        0
        • AnticimexA Anticimex

          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.

          tekkaT Offline
          tekkaT Offline
          tekka
          Admin
          wrote on last edited by
          #13

          Yeah, I think it's mainly applicable for the "dual" W5100 shield with SD card adapter.

          1 Reply Last reply
          0
          • ximinezX Offline
            ximinezX Offline
            ximinez
            wrote on last edited by
            #14

            Both soft and hard SPI work on my cheap W5100 clone shield (with SD).

            YveauxY 1 Reply Last reply
            0
            • bisschopsrB Offline
              bisschopsrB Offline
              bisschopsr
              wrote on last edited by
              #15

              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 down

              Note: I did fiddle around with the radio channel settings in myconfig.h, reinstalled the original myconfig.h though.

              Thx

              Ralph

              Domoticz, P1 meter interface, MySensors and more to come!

              tekkaT 1 Reply Last reply
              0
              • bisschopsrB bisschopsr

                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 down

                Note: I did fiddle around with the radio channel settings in myconfig.h, reinstalled the original myconfig.h though.

                Thx

                Ralph

                tekkaT Offline
                tekkaT Offline
                tekka
                Admin
                wrote on last edited by tekka
                #16

                @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 ?

                bisschopsrB 2 Replies Last reply
                0
                • ximinezX ximinez

                  Both soft and hard SPI work on my cheap W5100 clone shield (with SD).

                  YveauxY Offline
                  YveauxY Offline
                  Yveaux
                  Mod
                  wrote on last edited by
                  #17

                  @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.

                  http://yveaux.blogspot.nl

                  1 Reply Last reply
                  0
                  • tekkaT tekka

                    @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 ?

                    bisschopsrB Offline
                    bisschopsrB Offline
                    bisschopsr
                    wrote on last edited by
                    #18

                    @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

                    Domoticz, P1 meter interface, MySensors and more to come!

                    1 Reply Last reply
                    0
                    • tekkaT tekka

                      @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 ?

                      bisschopsrB Offline
                      bisschopsrB Offline
                      bisschopsr
                      wrote on last edited by
                      #19

                      @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.

                      Domoticz, P1 meter interface, MySensors and more to come!

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      15

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular