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. Troubleshooting
  3. [Solved]UPL:Fail

[Solved]UPL:Fail

Scheduled Pinned Locked Moved Troubleshooting
47 Posts 7 Posters 15.2k 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.
  • CrankyCoderC Offline
    CrankyCoderC Offline
    CrankyCoder
    wrote on last edited by tekka
    #1

    I have my mqtt client gateway up and running and I have a test node setup.

    The debug for the node is

    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=1)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1

    Not sure what is causing it. If i reset it a few times it eventually connects. I have tried clearing the eeprom and reuploaded the sketch.

    Thanks

    Home Automation Tinkerer
    www.CrankyCoder.net

    Controller: HomeAssistant in Kubernetes
    Gateway: MQTTClientGateway
    MySensors: 2.3

    tekkaT 1 Reply Last reply
    0
    • CrankyCoderC CrankyCoder

      I have my mqtt client gateway up and running and I have a test node setup.

      The debug for the node is

      TSP:MSG:PAR OK (ID=0, dist=1)
      TSM:FPAR:OK
      TSM:ID
      TSM:CHKID:OK (ID=1)
      TSM:UPL
      TSP:PING:SEND (dest=0)
      !TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1

      Not sure what is causing it. If i reset it a few times it eventually connects. I have tried clearing the eeprom and reuploaded the sketch.

      Thanks

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

      @Jason-Brunk Please provide additional information such as HW setup and configuration, and also post the complete log from node and GW while booting.

      1 Reply Last reply
      0
      • CrankyCoderC Offline
        CrankyCoderC Offline
        CrankyCoder
        wrote on last edited by
        #3

        Looks like it may have been related to my gateway and sensor being too close.

        Home Automation Tinkerer
        www.CrankyCoder.net

        Controller: HomeAssistant in Kubernetes
        Gateway: MQTTClientGateway
        MySensors: 2.3

        tekkaT 1 Reply Last reply
        0
        • CrankyCoderC CrankyCoder

          Looks like it may have been related to my gateway and sensor being too close.

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

          @Jason-Brunk Yes, this is a common issue.

          1 Reply Last reply
          0
          • X Offline
            X Offline
            xefil
            wrote on last edited by xefil
            #5

            Hello!
            I'm having the same issue. How to solve it?
            I've converted a working sensor having API 1.5 with last API and getting this errors:

            ---
            Setting S_LIGHT sensor: 1
            ---
            Setting S_LIGHT sensor: 2
            ---
            Setting S_LIGHT sensor: 3
            ---
            Setting S_LIGHT sensor: 4
            Starting sensor (RNNNA-, 2.0.0)
            TSM:INIT
            TSM:RADIO:OK
            TSP:ASSIGNID:OK (ID=20)
            TSM:FPAR
            TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
            TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
            TSP:MSG:FPAR RES (ID=0, dist=0)
            TSP:MSG:PAR OK (ID=0, dist=1)
            TSM:FPAR:OK
            TSM:ID
            TSM:CHKID:OK (ID=20)
            TSM:UPL
            TSP:PING:SEND (dest=0)
            TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
            TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
            TSP:MSG:BC
            TSP:CHKUPL:FAIL (hops=255)
            !TSM:UPL:FAIL
            TSM:FPAR
            TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
            TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
            TSP:MSG:FPAR RES (ID=0, dist=0)
            TSP:MSG:PAR OK (ID=0, dist=1)
            TSM:FPAR:OK
            TSM:ID
            TSM:CHKID:OK (ID=20)
            TSM:UPL
            TSP:PING:SEND (dest=0)
            TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
            TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
            TSP:MSG:BC
            TSP:CHKUPL:FAIL (hops=255)
            !TSM:UPL:FAIL
            TSM:FPAR
            TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
            TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
            TSP:MSG:FPAR RES (ID=0, dist=0)
            TSP:MSG:PAR OK (ID=0, dist=1)
            TSM:FPAR:OK
            TSM:ID
            TSM:CHKID:OK (ID=20)
            TSM:UPL
            TSP:PING:SEND (dest=0)
            TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
            TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
            TSP:MSG:BC
            TSP:CHKUPL:FAIL (hops=255)
            !TSM:UPL:FAIL
            TSM:FPAR
            TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
            TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
            TSP:MSG:FPAR RES (ID=0, dist=0)
            TSP:MSG:PAR OK (ID=0, dist=1)
            TSM:FPAR:OK
            TSM:ID
            TSM:CHKID:OK (ID=20)
            TSM:UPL
            TSP:PING:SEND (dest=0)
            TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
            TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
            TSP:MSG:BC
            TSP:CHKUPL:FAIL (hops=255)
            !TSM:UPL:FAIL```
            
            It has worked without issues until the last update.
            tekkaT CrankyCoderC 2 Replies Last reply
            0
            • X xefil

              Hello!
              I'm having the same issue. How to solve it?
              I've converted a working sensor having API 1.5 with last API and getting this errors:

              ---
              Setting S_LIGHT sensor: 1
              ---
              Setting S_LIGHT sensor: 2
              ---
              Setting S_LIGHT sensor: 3
              ---
              Setting S_LIGHT sensor: 4
              Starting sensor (RNNNA-, 2.0.0)
              TSM:INIT
              TSM:RADIO:OK
              TSP:ASSIGNID:OK (ID=20)
              TSM:FPAR
              TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
              TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
              TSP:MSG:FPAR RES (ID=0, dist=0)
              TSP:MSG:PAR OK (ID=0, dist=1)
              TSM:FPAR:OK
              TSM:ID
              TSM:CHKID:OK (ID=20)
              TSM:UPL
              TSP:PING:SEND (dest=0)
              TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
              TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
              TSP:MSG:BC
              TSP:CHKUPL:FAIL (hops=255)
              !TSM:UPL:FAIL
              TSM:FPAR
              TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
              TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
              TSP:MSG:FPAR RES (ID=0, dist=0)
              TSP:MSG:PAR OK (ID=0, dist=1)
              TSM:FPAR:OK
              TSM:ID
              TSM:CHKID:OK (ID=20)
              TSM:UPL
              TSP:PING:SEND (dest=0)
              TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
              TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
              TSP:MSG:BC
              TSP:CHKUPL:FAIL (hops=255)
              !TSM:UPL:FAIL
              TSM:FPAR
              TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
              TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
              TSP:MSG:FPAR RES (ID=0, dist=0)
              TSP:MSG:PAR OK (ID=0, dist=1)
              TSM:FPAR:OK
              TSM:ID
              TSM:CHKID:OK (ID=20)
              TSM:UPL
              TSP:PING:SEND (dest=0)
              TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
              TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
              TSP:MSG:BC
              TSP:CHKUPL:FAIL (hops=255)
              !TSM:UPL:FAIL
              TSM:FPAR
              TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
              TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
              TSP:MSG:FPAR RES (ID=0, dist=0)
              TSP:MSG:PAR OK (ID=0, dist=1)
              TSM:FPAR:OK
              TSM:ID
              TSM:CHKID:OK (ID=20)
              TSM:UPL
              TSP:PING:SEND (dest=0)
              TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
              TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
              TSP:MSG:BC
              TSP:CHKUPL:FAIL (hops=255)
              !TSM:UPL:FAIL```
              
              It has worked without issues until the last update.
              tekkaT Offline
              tekkaT Offline
              tekka
              Admin
              wrote on last edited by
              #6

              @xefil Did you also convert the GW to 2.0? If yes, please post the debug log.

              1 Reply Last reply
              0
              • Pictor LallemandP Offline
                Pictor LallemandP Offline
                Pictor Lallemand
                wrote on last edited by
                #7

                I have the same problem as do to solve it?

                Starting repeater (RNNRA-, 2.0.0)
                TSM:INIT
                TSM:RADIO:OK
                TSP:ASSIGNID:OK (ID=123)
                TSM:FPAR
                TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                TSM:FPAR
                TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                TSM:FPAR
                TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                TSM:FPAR
                TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                !TSM:FPAR:FAIL
                !TSM:FAILURE
                TSM:PDT
                TSM:INIT
                TSM:RADIO:OK
                TSP:ASSIGNID:OK (ID=123)
                TSM:FPAR
                TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                TSP:MSG:FPAR RES (ID=0, dist=0)
                TSP:MSG:PAR OK (ID=0, dist=1)
                TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                TSP:MSG:FPAR RES (ID=0, dist=0)
                TSM:FPAR:OK
                TSM:ID
                TSM:CHKID:OK (ID=123)
                TSM:UPL
                TSP:PING:SEND (dest=0)
                !TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
                TSP:CHKUPL:FAIL (hops=255)
                !TSM:UPL:FAIL
                TSM:FPAR
                TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                TSM:FPAR
                TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                TSM:FPAR
                TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                TSM:FPAR
                TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                !TSM:FPAR:FAIL
                !TSM:FAILURE
                TSM:PDT
                
                tekkaT 1 Reply Last reply
                0
                • X Offline
                  X Offline
                  xefil
                  wrote on last edited by
                  #8

                  I was quite sure the gateway (MQTTClient) was updated with latest API library, but I was wrong. It was on 1.5 version. Updated to the latest, the problem was solved. Hope it helps!

                  Simon

                  tekkaT 1 Reply Last reply
                  1
                  • X xefil

                    Hello!
                    I'm having the same issue. How to solve it?
                    I've converted a working sensor having API 1.5 with last API and getting this errors:

                    ---
                    Setting S_LIGHT sensor: 1
                    ---
                    Setting S_LIGHT sensor: 2
                    ---
                    Setting S_LIGHT sensor: 3
                    ---
                    Setting S_LIGHT sensor: 4
                    Starting sensor (RNNNA-, 2.0.0)
                    TSM:INIT
                    TSM:RADIO:OK
                    TSP:ASSIGNID:OK (ID=20)
                    TSM:FPAR
                    TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                    TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                    TSP:MSG:FPAR RES (ID=0, dist=0)
                    TSP:MSG:PAR OK (ID=0, dist=1)
                    TSM:FPAR:OK
                    TSM:ID
                    TSM:CHKID:OK (ID=20)
                    TSM:UPL
                    TSP:PING:SEND (dest=0)
                    TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
                    TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                    TSP:MSG:BC
                    TSP:CHKUPL:FAIL (hops=255)
                    !TSM:UPL:FAIL
                    TSM:FPAR
                    TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                    TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                    TSP:MSG:FPAR RES (ID=0, dist=0)
                    TSP:MSG:PAR OK (ID=0, dist=1)
                    TSM:FPAR:OK
                    TSM:ID
                    TSM:CHKID:OK (ID=20)
                    TSM:UPL
                    TSP:PING:SEND (dest=0)
                    TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
                    TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                    TSP:MSG:BC
                    TSP:CHKUPL:FAIL (hops=255)
                    !TSM:UPL:FAIL
                    TSM:FPAR
                    TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                    TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                    TSP:MSG:FPAR RES (ID=0, dist=0)
                    TSP:MSG:PAR OK (ID=0, dist=1)
                    TSM:FPAR:OK
                    TSM:ID
                    TSM:CHKID:OK (ID=20)
                    TSM:UPL
                    TSP:PING:SEND (dest=0)
                    TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
                    TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                    TSP:MSG:BC
                    TSP:CHKUPL:FAIL (hops=255)
                    !TSM:UPL:FAIL
                    TSM:FPAR
                    TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                    TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                    TSP:MSG:FPAR RES (ID=0, dist=0)
                    TSP:MSG:PAR OK (ID=0, dist=1)
                    TSM:FPAR:OK
                    TSM:ID
                    TSM:CHKID:OK (ID=20)
                    TSM:UPL
                    TSP:PING:SEND (dest=0)
                    TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
                    TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                    TSP:MSG:BC
                    TSP:CHKUPL:FAIL (hops=255)
                    !TSM:UPL:FAIL```
                    
                    It has worked without issues until the last update.
                    CrankyCoderC Offline
                    CrankyCoderC Offline
                    CrankyCoder
                    wrote on last edited by
                    #9

                    @xefil with my errors. I changed the capacitor value to 100u and that fixed ALOT of problems. Some one mentioned to me that 2.0 uses the radio a little more and may need a higher value cap.

                    Home Automation Tinkerer
                    www.CrankyCoder.net

                    Controller: HomeAssistant in Kubernetes
                    Gateway: MQTTClientGateway
                    MySensors: 2.3

                    1 Reply Last reply
                    1
                    • Pictor LallemandP Pictor Lallemand

                      I have the same problem as do to solve it?

                      Starting repeater (RNNRA-, 2.0.0)
                      TSM:INIT
                      TSM:RADIO:OK
                      TSP:ASSIGNID:OK (ID=123)
                      TSM:FPAR
                      TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                      TSM:FPAR
                      TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                      TSM:FPAR
                      TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                      TSM:FPAR
                      TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                      !TSM:FPAR:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      TSM:RADIO:OK
                      TSP:ASSIGNID:OK (ID=123)
                      TSM:FPAR
                      TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                      TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                      TSP:MSG:FPAR RES (ID=0, dist=0)
                      TSP:MSG:PAR OK (ID=0, dist=1)
                      TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                      TSP:MSG:FPAR RES (ID=0, dist=0)
                      TSM:FPAR:OK
                      TSM:ID
                      TSM:CHKID:OK (ID=123)
                      TSM:UPL
                      TSP:PING:SEND (dest=0)
                      !TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
                      TSP:CHKUPL:FAIL (hops=255)
                      !TSM:UPL:FAIL
                      TSM:FPAR
                      TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                      TSM:FPAR
                      TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                      TSM:FPAR
                      TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                      TSM:FPAR
                      TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                      !TSM:FPAR:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      
                      tekkaT Offline
                      tekkaT Offline
                      tekka
                      Admin
                      wrote on last edited by
                      #10

                      @Pictor-Lallemand Please make sure your GW is at 2.0.

                      1 Reply Last reply
                      0
                      • X xefil

                        I was quite sure the gateway (MQTTClient) was updated with latest API library, but I was wrong. It was on 1.5 version. Updated to the latest, the problem was solved. Hope it helps!

                        Simon

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

                        @xefil Perfect, have fun! :)

                        1 Reply Last reply
                        0
                        • X Offline
                          X Offline
                          xefil
                          wrote on last edited by
                          #12

                          @Jason-Brunk I already had a 100u capacitor, thanks for the suggestion.... btw strange, maybe the update was important.
                          @tekka , thank you!! ;)

                          1 Reply Last reply
                          0
                          • Pictor LallemandP Offline
                            Pictor LallemandP Offline
                            Pictor Lallemand
                            wrote on last edited by
                            #13

                            or find the code for my GW I use an Arduino pro mini card for a ENC28J60 network and nRF24L01 for radio. because I can not find it in the examples mysensors

                            1 Reply Last reply
                            0
                            • X Offline
                              X Offline
                              xefil
                              wrote on last edited by
                              #14

                              You mean you cannot find the examples from the API library? When you download it, you can find it in there. On github as well:

                              https://github.com/mysensors/MySensors/tree/master/examples

                              In case try to start uploading two examples (1 GW and 1 sensor) and check. They work without issues. If not, maybe a hardware failure.

                              Simon

                              1 Reply Last reply
                              0
                              • Pictor LallemandP Offline
                                Pictor LallemandP Offline
                                Pictor Lallemand
                                wrote on last edited by
                                #15

                                in the examples of the API (MySensors 2.0.0) I can not find ENC28J60 Gateway

                                send me please you the code in this gateway thank you

                                1 Reply Last reply
                                0
                                • hekH Offline
                                  hekH Offline
                                  hek
                                  Admin
                                  wrote on last edited by
                                  #16

                                  https://github.com/mysensors/MySensorsArduinoExamples/tree/master/examples/GatewayENC28J60

                                  1 Reply Last reply
                                  0
                                  • Pictor LallemandP Offline
                                    Pictor LallemandP Offline
                                    Pictor Lallemand
                                    wrote on last edited by
                                    #17

                                    it didnt change anything here is the log for sensors

                                    Starting sensor (RNNNA-, 2.0.0)
                                    TSM:INIT
                                    TSM:RADIO:OK
                                    TSP:ASSIGNID:OK (ID=123)
                                    TSM:FPAR
                                    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                    TSM:FPAR
                                    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                    TSM:FPAR
                                    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                    TSM:FPAR
                                    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                    !TSM:FPAR:FAIL
                                    !TSM:FAILURE
                                    TSM:PDT
                                    TSM:INIT
                                    TSM:RADIO:OK
                                    TSP:ASSIGNID:OK (ID=123)
                                    TSM:FPAR
                                    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                    TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                                    TSP:MSG:FPAR RES (ID=0, dist=0)
                                    TSP:MSG:PAR OK (ID=0, dist=1)
                                    TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                                    TSP:MSG:FPAR RES (ID=0, dist=0)
                                    TSM:FPAR:OK
                                    TSM:ID
                                    TSM:CHKID:OK (ID=123)
                                    TSM:UPL
                                    TSP:PING:SEND (dest=0)
                                    !TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
                                    TSP:CHKUPL:FAIL (hops=255)
                                    !TSM:UPL:FAIL
                                    TSM:FPAR
                                    
                                    
                                    

                                    the sketch use

                                    /**
                                     * The MySensors Arduino library handles the wireless radio link and protocol
                                     * between your home built sensors/actuators and HA controller of choice.
                                     * The sensors forms a self healing radio network with optional repeaters. Each
                                     * repeater and gateway builds a routing tables in EEPROM which keeps track of the
                                     * network topology allowing messages to be routed to nodes.
                                     *
                                     * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
                                     * Copyright (C) 2013-2015 Sensnology AB
                                     * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
                                     *
                                     * Documentation: http://www.mysensors.org
                                     * Support Forum: http://forum.mysensors.org
                                     *
                                     * This program is free software; you can redistribute it and/or
                                     * modify it under the terms of the GNU General Public License
                                     * version 2 as published by the Free Software Foundation.
                                     *
                                     *******************************
                                     *
                                     * REVISION HISTORY
                                     * Version 1.0 - Henrik Ekblad
                                     * 
                                     * DESCRIPTION
                                     * Example sketch showing how to control physical relays. 
                                     * This example will remember relay state after power failure.
                                     * http://www.mysensors.org/build/relay
                                     */ 
                                    
                                    // Enable debug prints to serial monitor
                                    #define MY_DEBUG 
                                    
                                    // Enable and select radio type attached
                                    #define MY_RADIO_NRF24
                                    //#define MY_RADIO_RFM69
                                    
                                    // Enable repeater functionality for this node
                                    #define MY_REPEATER_FEATURE
                                    
                                    #include <SPI.h>
                                    #include <MySensors.h>
                                    
                                    #define RELAY_1  8  // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
                                    #define NUMBER_OF_RELAYS 1 // Total number of attached relays
                                    #define RELAY_ON 1  // GPIO value to write to turn on attached relay
                                    #define RELAY_OFF 0 // GPIO value to write to turn off attached relay
                                    
                                    
                                    void before() { 
                                      for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) {
                                        // Then set relay pins in output mode
                                        pinMode(pin, OUTPUT);   
                                        // Set relay to last known state (using eeprom storage) 
                                        digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF);
                                      }
                                    }
                                    
                                    void setup() {
                                      
                                    }
                                    
                                    void presentation()  
                                    {   
                                      // Send the sketch version information to the gateway and Controller
                                      sendSketchInfo("Relay", "1.0");
                                    
                                      for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) {
                                        // Register all sensors to gw (they will be created as child devices)
                                        present(sensor, S_LIGHT);
                                      }
                                    }
                                    
                                    
                                    void loop() 
                                    {
                                      
                                    }
                                    
                                    void receive(const MyMessage &message) {
                                      // We only expect one type of message from controller. But we better check anyway.
                                      if (message.type==V_LIGHT) {
                                         // Change relay state
                                         digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);
                                         // Store state in eeprom
                                         saveState(message.sensor, message.getBool());
                                         // Write some debug info
                                         Serial.print("Incoming change for sensor:");
                                         Serial.print(message.sensor);
                                         Serial.print(", New status: ");
                                         Serial.println(message.getBool());
                                       } 
                                    }
                                    

                                    and that of the gateway

                                    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
                                    0;255;3;0;9;TSM:INIT
                                    0;255;3;0;9;TSM:RADIO:OK
                                    0;255;3;0;9;TSM:GW MODE
                                    0;255;3;0;9;TSM:READY
                                    IP: 192.168.1.15
                                    0;255;3;0;9;No registration required
                                    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
                                    0;255;3;0;9;Eth: connect
                                    0;255;3;0;9;Eth: 0;0;3;0;2;
                                    0;255;3;0;9;Eth: 0;0;3;0;2;Get Version
                                    0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                    0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                    0;255;3;0;9;TSP:SANCHK:OK
                                    

                                    the sketch use

                                    /**
                                     * The MySensors Arduino library handles the wireless radio link and protocol
                                     * between your home built sensors/actuators and HA controller of choice.
                                     * The sensors forms a self healing radio network with optional repeaters. Each
                                     * repeater and gateway builds a routing tables in EEPROM which keeps track of the
                                     * network topology allowing messages to be routed to nodes.
                                     *
                                     * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
                                     * Copyright (C) 2013-2015 Sensnology AB
                                     * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
                                     *
                                     * Documentation: http://www.mysensors.org
                                     * Support Forum: http://forum.mysensors.org
                                     *
                                     * This program is free software; you can redistribute it and/or
                                     * modify it under the terms of the GNU General Public License
                                     * version 2 as published by the Free Software Foundation.
                                     *
                                     *******************************
                                     *
                                     * REVISION HISTORY
                                     * Version 1.0 - Henrik EKblad
                                     * Contribution by a-lurker and Anticimex,
                                     * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de>
                                     * Contribution by Tomas Hozza <thozza@gmail.com>
                                     *
                                     *
                                     * DESCRIPTION
                                     * The EthernetGateway sends data received from sensors to the ethernet link.
                                     * The gateway also accepts input on ethernet interface, which is then sent out to the radio network.
                                     *
                                     * The GW code is designed for Arduino 328p / 16MHz.  ATmega168 does not have enough memory to run this program.
                                     *
                                     * LED purposes:
                                     * - To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h
                                     * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
                                     * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
                                     * - ERR (red) - fast blink on error during transmission error or recieve crc error
                                     *
                                     * See http://www.mysensors.org/build/ethernet_gateway for wiring instructions.
                                     *
                                     */
                                    
                                    // Enable debug prints to serial monitor
                                    #define MY_DEBUG 
                                    
                                    // Enable and select radio type attached
                                    #define MY_RADIO_NRF24
                                    //#define MY_RADIO_RFM69
                                    
                                    // When ENC28J60 is connected we have to move CE/CSN pins for NRF radio
                                    #define MY_RF24_CE_PIN 5
                                    #define MY_RF24_CS_PIN 6
                                    
                                    // Enable gateway ethernet module type 
                                    #define MY_GATEWAY_ENC28J60
                                    
                                    // Gateway IP address
                                    #define MY_IP_ADDRESS 192,168,1,15  
                                    
                                    // The port to keep open on node server mode / or port to contact in client mode
                                    #define MY_PORT 5003   
                                    
                                    // Controller ip address. Enables client mode (default is "server" mode). 
                                    // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. 
                                    //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 254   
                                     
                                    // The MAC address can be anything you want but should be unique on your network.
                                    // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
                                    // Note that most of the Ardunio examples use  "DEAD BEEF FEED" for the MAC address.
                                    #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
                                    
                                    // Flash leds on rx/tx/err
                                    #define MY_LEDS_BLINKING_FEATURE
                                    // Set blinking period
                                    #define MY_DEFAULT_LED_BLINK_PERIOD 300
                                    
                                    // Enable inclusion mode
                                    #define MY_INCLUSION_MODE_FEATURE
                                    // Enable Inclusion mode button on gateway
                                    #define MY_INCLUSION_BUTTON_FEATURE
                                    // Set inclusion mode duration (in seconds)
                                    #define MY_INCLUSION_MODE_DURATION 60 
                                    // Digital pin used for inclusion mode button
                                    #define MY_INCLUSION_MODE_BUTTON_PIN  3 
                                    
                                    #define MY_DEFAULT_ERR_LED_PIN 7  // Error led pin
                                    #define MY_DEFAULT_RX_LED_PIN  8  // Receive led pin
                                    #define MY_DEFAULT_TX_LED_PIN  9  // the PCB, on board LED
                                    
                                    #include <SPI.h>
                                    #include <UIPEthernet.h>
                                    #include <MySensors.h>
                                    
                                    
                                    void setup()
                                    {
                                    }
                                    
                                    void loop() {
                                    }```
                                    
                                      i add a capacitor 220U
                                    1 Reply Last reply
                                    0
                                    • Pictor LallemandP Offline
                                      Pictor LallemandP Offline
                                      Pictor Lallemand
                                      wrote on last edited by
                                      #18

                                      the gateway log

                                      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
                                      0;255;3;0;9;TSM:INIT
                                      0;255;3;0;9;TSM:RADIO:OK
                                      0;255;3;0;9;TSM:GW MODE
                                      0;255;3;0;9;TSM:READY
                                      IP: 192.168.1.15
                                      0;255;3;0;9;No registration required
                                      0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
                                      0;255;3;0;9;Eth: connect
                                      0;255;3;0;9;Eth: 0;0;3;0;2;
                                      0;255;3;0;9;Eth: 0;0;3;0;2;Get Version
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;TSP:SANCHK:OK
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                      0;255;3;0;9;TSP:MSG:BC
                                      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
                                      0;255;3;0;9;TSP:CHKUPL:OK
                                      0;255;3;0;9;TSP:MSG:GWL OK
                                      0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
                                      0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                      0;255;3;0;9;TSP:MSG:BC
                                      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
                                      0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
                                      0;255;3;0;9;TSP:MSG:GWL OK
                                      0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                      0;255;3;0;9;TSP:MSG:BC
                                      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
                                      0;255;3;0;9;TSP:CHKUPL:OK
                                      0;255;3;0;9;TSP:MSG:GWL OK
                                      0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;TSP:SANCHK:OK
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                      0;255;3;0;9;TSP:MSG:BC
                                      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
                                      0;255;3;0;9;TSP:CHKUPL:OK
                                      0;255;3;0;9;TSP:MSG:GWL OK
                                      0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
                                      0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                      0;255;3;0;9;TSP:MSG:BC
                                      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
                                      0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
                                      0;255;3;0;9;TSP:MSG:GWL OK
                                      0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                      0;255;3;0;9;TSP:MSG:BC
                                      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
                                      0;255;3;0;9;TSP:CHKUPL:OK
                                      0;255;3;0;9;TSP:MSG:GWL OK
                                      0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
                                      0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                      0;255;3;0;9;TSP:MSG:BC
                                      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
                                      0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
                                      0;255;3;0;9;TSP:MSG:GWL OK
                                      0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
                                      0;255;3;0;9;Eth: 0;0;3;0;18;PING
                                      0;255;3;0;9;TSP:SANCHK:OK
                                      
                                      1 Reply Last reply
                                      0
                                      • X Offline
                                        X Offline
                                        xefil
                                        wrote on last edited by
                                        #19

                                        Do you have some spare-parts to use a different radio? My gateway has a radio with nrf24l01+pa+lna to increase the range. Maybe the gain is needed with the new API? I don't know. How far are the two objects?

                                        Simon

                                        1 Reply Last reply
                                        0
                                        • Pictor LallemandP Offline
                                          Pictor LallemandP Offline
                                          Pictor Lallemand
                                          wrote on last edited by
                                          #20

                                          the gateway and the remote sensors are 100 cm I use these nRF24L01 I'm beginner with mysensors. I'm really frustrated that it does not work properly malgrer all my efforts to get it working properly alt text

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


                                          13

                                          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