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. Still not going well for me.

Still not going well for me.

Scheduled Pinned Locked Moved Troubleshooting
24 Posts 7 Posters 6.5k Views 7 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.
  • CoffeesnobC Offline
    CoffeesnobC Offline
    Coffeesnob
    wrote on last edited by
    #14

    @petewill, appreciate it. I'm very happy with the outcome, for the most part. However, I now have a new challenger. I am using a relay module and I can happily turn relays on using MYSController but can't seem to figure out how to turn them off. I know you know a little about this product so I wonder if you can point me in the right direction.
    I have also connected to my gateway serially using HomeGenie and it can't turn either on or off. but I haven't had time to do any further fault finding there yet.

    As soon as I have time, I will provide promised doc. i then need to know where to send them.

    petewillP 1 Reply Last reply
    0
    • CoffeesnobC Offline
      CoffeesnobC Offline
      Coffeesnob
      wrote on last edited by
      #15

      @mfalkvidd, I can post here no problem. but I also want to provide a how-to of sorts that will help newbies like me to rule out anything that is Mysensors related. I just thought this would require me a to PM you

      1 Reply Last reply
      0
      • CoffeesnobC Coffeesnob

        @petewill, appreciate it. I'm very happy with the outcome, for the most part. However, I now have a new challenger. I am using a relay module and I can happily turn relays on using MYSController but can't seem to figure out how to turn them off. I know you know a little about this product so I wonder if you can point me in the right direction.
        I have also connected to my gateway serially using HomeGenie and it can't turn either on or off. but I haven't had time to do any further fault finding there yet.

        As soon as I have time, I will provide promised doc. i then need to know where to send them.

        petewillP Offline
        petewillP Offline
        petewill
        Admin
        wrote on last edited by
        #16

        @Coffeesnob said in Still not going well for me.:

        I am using a relay module and I can happily turn relays on using MYSController but can't seem to figure out how to turn them off.

        Can't you just send a 0 instead of a 1? I don't ever use MYSController for controlling devices. Only for monitoring traffic. All my control is done with Vera. That being said though you should only need to send a 0 to turn off the relay.

        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

        1 Reply Last reply
        0
        • CoffeesnobC Offline
          CoffeesnobC Offline
          Coffeesnob
          wrote on last edited by
          #17

          @petewill, yep you would think that would do it... however, it doesn't seem to work. what is interesting is if I send a 1 it also doesn't turn on the relay, only sending an empty message turns it on. I think I might post in the MYSController forum to see if they have any ideas.

          tekkaT 1 Reply Last reply
          0
          • CoffeesnobC Coffeesnob

            @petewill, yep you would think that would do it... however, it doesn't seem to work. what is interesting is if I send a 1 it also doesn't turn on the relay, only sending an empty message turns it on. I think I might post in the MYSController forum to see if they have any ideas.

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

            @Coffeesnob hmm, can you post your sketch and the debug logs, I assume something must be wrong the way you process incoming messages.

            1 Reply Last reply
            0
            • CoffeesnobC Offline
              CoffeesnobC Offline
              Coffeesnob
              wrote on last edited by
              #19

              @tekka, will do. I have had a hardware related issue that is unrelated to this directly. (i bricked my Nano trying to flush the eprom) but it means that until I get this fixed or get new hardware I am not going to be able to do anymore. Im hoping that Im getting close because this is really getting pretty frustrating.

              1 Reply Last reply
              0
              • CoffeesnobC Offline
                CoffeesnobC Offline
                Coffeesnob
                wrote on last edited by
                #20

                @mfalkvidd, I have finally had the opportunity to reply to your question from a week back “Could you list the top 3-5 things that would have helped you the most, and where you would have expected to find that information? That would be great input.”
                Ok so I think the big thing is there is not a lot of detail in troubleshooting. Clearly the radios are the most problematic part and not being able to get access to how they actually work makes it very frustrating. The table that peterwill provided is very helpful but this also requires you to have some background information.
                I understand that you are trying to limit the amount of detail so as not to scare people away but I personally believe that having optional reference material would be extremely helpful. For example a diagram which explains how all the different liberties link together, this would have helped me to determine how the SPI components are setup.
                It would have been extremely helpful if in your initial radio setup guide you had a reference to how the SPI components of the radios work. This would be an optional reference that people could look at if they wanted to. At the moment, the way these radios work is very much black magic, and because I am new to the whole Arduino thing I was unable to determine if you are using the standard SPI features of the Arduino or if you had created your own. An example of a reference might be https://www.arduino.cc/en/reference/SPI however it is also important to explain that Mysensors is using its own SPI library, you could (should) go into more detail about how the SPI library is setup from the Mysensors point of view, because if you have to work it out your self this is very chanalgin because there is no common reference to understand how Arduino default SPI relates to mysensors SPI

                And finally, something which would make things oh so much easier, is a sample sketch that will just allow you to test the radios, i.e you type the number 1 into the serial monitor on the gateway and you will see a message on the node if the radios are all working. And vice versa. I am willing to take this on as a project as I am already working on it however I would ideally like it to use all the Mysensors library’s. In other words, it should behave like any other sensor network would. But I really need a lot more information to work out how to do this. In the meantime, once I get my radios back up and running again I will post a very quick and dirty version and let you have a look at it.
                I hope this all makes sense. I am a huge fan of the work the my sensors team have done here. I want to do what I can to help make it better.

                1 Reply Last reply
                2
                • CoffeesnobC Offline
                  CoffeesnobC Offline
                  Coffeesnob
                  wrote on last edited by
                  #21

                  Ok, so the new hardware has finally arrived and I have been pulling my hair out trying to get it working. It appears like there is something wrong in the way the node and the gateway are setting up. I didn't have this problem a couple of weeks ago but since I have upgraded to v2.1.1 the problem has manifested. I have seen that there are a number of posts that appear to have similar issues but not exactly the same. Perhaps somebody can shed some light.

                  The setup is still exactly the same as I have described earlier in this post. I have a Mega and a Nano both with NRF24L01, I have a 10uf Cap across the power supplies of both radios, and I am 100% sure that the radios and the Arduinos are all working because I have built a NON Mysensor test sketch to prove this is all fine. Aside from that you can also see from the log transcript below that the units are actually talking. They just don’t seem to be able to complete the negotiation.

                  So here is what I am seeing. in the log transcript below you can see that the two devices are talking to each other. the Bold text are the messages being sent from the gateway and the normal text is the messages being sent from the Node.

                  0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
                  0;255;3;0;9;TSM:INIT
                  0;255;3;0;9;TSF:WUR:MS=0
                  0;255;3;0;9;TSM:INIT:TSP OK
                  0;255;3;0;9;TSM:INIT:GW MODE
                  0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
                  0;255;3;0;9;MCO:REG:NOT NEEDED
                  0;255;3;0;14;Gateway startup complete.
                  0;255;0;0;18;2.1.1
                  0;255;3;0;9;MCO:BGN:STP
                  0;255;3;0;9;MCO:BGN:INIT OK,TSP=1

                  0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
                  3 MCO:BGN:BFR
                  5 TSM:INIT
                  6 TSF:WUR:MS=0
                  12 TSM:INIT:TSP OK
                  14 TSM:FPAR
                  16 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:

                  0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                  0;255;3;0;9;TSF:MSG:BC
                  0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255
                  0;255;3;0;9;TSF:CKU:OK,FCTRL
                  0;255;3;0;9;TSF:MSG:GWL OK
                  0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0

                  89 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
                  94 TSF:MSG:FPAR OK,ID=0,D=1
                  2023 TSM:FPAR:OK
                  2024 TSM:ID
                  2025 TSM:ID:REQ
                  2027 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:

                  0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                  255;255;3;0;3;

                  4035 TSM:ID
                  4036 TSM:ID:REQ
                  4038 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:

                  0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                  255;255;3;0;3;

                  4035 TSM:ID
                  4036 TSM:ID:REQ
                  4038 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:

                  0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                  255;255;3;0;3;

                  4035 TSM:ID
                  4036 TSM:ID:REQ
                  4038 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:

                  0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                  255;255;3;0;3;

                  10066 !TSM:ID:FAIL
                  10067 TSM:FAIL:CNT=1
                  10070 TSM:FAIL:PDT

                  What you can clearly see here is that the initial node setup takes place, the request from the node to the gateway is received by the gateway and it reply’s. the node receives the reply and then it sends its reply, the Gateway receives the reply and then try to send an acknowledgment, but the node never gets the message. I suspect this is because the message being sent from the gateway is incomplete for some reason.

                  For example the Node sends

                  4038 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:

                  The gateway responds with
                  0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:

                  Which in and of its self doesn’t look exactly right to me, but as I am not the expert in this I am probably wrong.

                  The gateway then prints 255;255;3;0;3; with nothing else in the line, this looks to me like its trying to send something but the message is empty.

                  What are your thoughts? @mfalkvidd and @petewill I am hoping you guys can shed some light here.

                  Thanks in advance.

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

                    Which controller do you have setup with your gateway to answer the id requests from the node?

                    1 Reply Last reply
                    0
                    • petewillP Offline
                      petewillP Offline
                      petewill
                      Admin
                      wrote on last edited by
                      #23

                      @Coffeesnob I didn't look at your logs in too much detail (I still don't have the codes memorized) but like @hek is noticing you may not be getting a node id back. You could also try assigning a static node ID like this:

                      #define MY_NODE_ID 1
                      

                      Also, try adding a 40uF or 100uF capacitor to the radio. The new 2.1.1 library is much more efficient and can use more power in shorter periods (because it can transmit faster).

                      My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                      1 Reply Last reply
                      0
                      • CoffeesnobC Offline
                        CoffeesnobC Offline
                        Coffeesnob
                        wrote on last edited by
                        #24

                        Thanks heaps @Hek and @petewill I didn't realise that without the controller running I will not get a node id. I thought incorrectly the node id came from the gateway. I booted up MYSController and it now works as expected. thanks for pointing me in the right direction..

                        cheers until next time.

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


                        19

                        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