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. Simple Serial Gateway and sensor does not work...

Simple Serial Gateway and sensor does not work...

Scheduled Pinned Locked Moved Troubleshooting
14 Posts 5 Posters 5.9k Views 3 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.
  • tekkaT tekka

    @LOST @SGi also make sure GW and node are not too close from each other.

    SGiS Offline
    SGiS Offline
    SGi
    wrote on last edited by
    #5

    @tekka my node and gateway are about 1m apart

    tekkaT 1 Reply Last reply
    0
    • SGiS Offline
      SGiS Offline
      SGi
      wrote on last edited by
      #6

      Hmmm even when I try the example battery status sketch I get the same results from the debug.... Maybe something to do with the Nano or wiring?

      1 Reply Last reply
      0
      • SGiS Offline
        SGiS Offline
        SGi
        wrote on last edited by
        #7

        Oh I am using a Uno for the gateway and a nano for the DHT node...

        1 Reply Last reply
        0
        • SGiS SGi

          @tekka my node and gateway are about 1m apart

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

          @SGi I suggest to put them even further away, I've had similar issues with the LNA PA RF24 version.

          SGiS 1 Reply Last reply
          0
          • tekkaT tekka

            @SGi I suggest to put them even further away, I've had similar issues with the LNA PA RF24 version.

            SGiS Offline
            SGiS Offline
            SGi
            wrote on last edited by
            #9

            @tekka thanks but that doesn't appear to change anything. Do you understand the error from the sensor debug? Is it not getting a response so it restarts or something? Basically is it more likely the sensor or gateway end with the problem?

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by A Former User
              #10

              Here the same, a simple sketch sending a value every 2 seconds on Arduino Pro mini its working but on @scalz simple aa node with atmega328 1MHz bootloader i am getting this error

              Starting sensor (RRNNA-, 2.0.0)
              TSM:INIT
              TSM:RADIO:OK
              TSP:ASSIGNID:OK (ID=41)
              TSM:FPAR
              TSP:MSG:SEND 41-41-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
              TSM:FPAR
              TSP:MSG:SEND 41-41-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
              TSM:FPAR
              TSP:MSG:SEND 41-41-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
              TSM:FPAR
              TSP:MSG:SEND 41-41-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
              

              And this on the gateway

              0;255;3;0;9;TSP:MSG:BC
              0;255;3;0;9;TSP:MSG:FPAR REQ (sender=41)
              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-41-41 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0
              0;255;3;0;9;TSP:MSG:READ 41-41-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=41)
              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-41-41 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0
              0;255;3;0;9;TSP:MSG:READ 41-41-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=41)
              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-41-41 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0
              

              I am using RFM69 radio

              Here is the code link text

              1 Reply Last reply
              0
              • scalzS Offline
                scalzS Offline
                scalz
                Hardware Contributor
                wrote on last edited by scalz
                #11

                @kenci which aa node? I don't think this is my design ;)

                About your issue,I have not digged yet so I don't know. On my side, the stParentUpdate is working I guess as I have not this problem. I'm using RFM69 too with a serial GW. But I'm still on end june temp 2.0b rev so I have not completely migrated to the new lib as I had some sketch to finish. I will update and diffcheck tests device today. So I will see if I fall into this, and try to debug if I can replicate the problem ;)

                Just in case, what is your GW? I have serial gw + esp mqtt on my side for testing.

                ? 1 Reply Last reply
                0
                • SGiS Offline
                  SGiS Offline
                  SGi
                  wrote on last edited by
                  #12

                  https://forum.mysensors.org/topic/4316/version-2-0-isn-t-working this could be the fix... Have to try tomorrow night....

                  1 Reply Last reply
                  0
                  • scalzS scalz

                    @kenci which aa node? I don't think this is my design ;)

                    About your issue,I have not digged yet so I don't know. On my side, the stParentUpdate is working I guess as I have not this problem. I'm using RFM69 too with a serial GW. But I'm still on end june temp 2.0b rev so I have not completely migrated to the new lib as I had some sketch to finish. I will update and diffcheck tests device today. So I will see if I fall into this, and try to debug if I can replicate the problem ;)

                    Just in case, what is your GW? I have serial gw + esp mqtt on my side for testing.

                    ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by A Former User
                    #13

                    Sorry @scalz , it was another user who designed the board, user @m26872 was it. My gateway is an ESP8266 with MQTT. I will try to find out what the problem is. With the same sketch it's working on an Arduino Pro 328 3v3. But on @m26872's board with 1MHz it's not.

                    EDIT:
                    I found out that my Simple AA node is not receiving packets(ATMega328 1MHZ). So now i have to check why!

                    EDIT 2:
                    OK, i found out if i connect DI0 of RFM69 to D2 it's working. But if i want to use D3(because D2 is in use for a switch) it's not working, even if i set #define MY_RF69_IRQ_PIN 3 in my sketch!

                    1 Reply Last reply
                    0
                    • scalzS Offline
                      scalzS Offline
                      scalz
                      Hardware Contributor
                      wrote on last edited by scalz
                      #14

                      @kenci ok, I think I know where is your problem. Try to add this in your sketch (before mysensors include of course)
                      #define MY_RF69_IRQ_NUM 1

                      That should work. I will do the change.

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


                      7

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


                      Copyright 2019 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