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. Controllers
  3. Domoticz
  4. Node are not receiving messages from domoticz

Node are not receiving messages from domoticz

Scheduled Pinned Locked Moved Domoticz
domoticzrelayincomming messages
16 Posts 4 Posters 6.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.
  • mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by
    #4

    You might meed to edit MyConfig.h to enable debug output. Details are available at https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help

    1 Reply Last reply
    0
    • D Offline
      D Offline
      davy39
      wrote on last edited by
      #5

      You're right, that the deal while moving between different libraries versions, I forgot to put back the debug mode on development version...
      Anyway, I had a drop in my voltage regulator last night, I guess that explains that my serial reads were not complete...
      So now I'm back with with MySensor 1.5.4, debug active, and Domoticz 3.5143, but with no more luck.

      Here is an entire sequence :

      • I run Domoticz, go to hardware and configure a Mysensors Gateway USB, Domoticz report :
      MySensors: Using serial port: /dev/ttyUSB3
      
      • I reset the gateway, Domoticz report :
      MySensors: Gateway Ready...
      

      And here is serial output of the gateway :

      0;0;3;0;9;gateway started, id=0, parent=0, distance=0
      0;0;3;0;14;Gateway startup complete.
      
      • I reset the relay node.

      Domoticz :

      MySensors: Node: 1, Sketch Name: Relay
      MySensors: Node: 1, Sketch Version: 1.0
      (Mysensors) Lighting 2 (Light)
      

      Gateway :

      t=15,pt=2,l=2,sg=0:0
      1;255;3;0;15;0
      0;0;3;0;9;read: 1-1-0 s=255,c=0,t=18,pt=0,l=5,sg=0:1.5.4
      1;255;0;0;18;1.5.4
      0;0;3;0;9;read: 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
      1;255;3;0;6;0
      0;0;3;0;9;read: 1-1-0 s=255,c=3,t=11,pt=0,l=5,sg=0:Relay
      1;255;3;0;11;Relay
      0;0;3;0;9;read: 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
      1;255;3;0;12;1.0
      0;0;3;0;9;read: 1-1-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
      1;1;0;0;3;
      

      Relay node :

      send: 1-1-0-0 s=255,c=3,t=15,pt=2,l=2,sg=0,st=ok:0
      send: 1-1-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=ok:1.5.4
      send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
      repeater started, id=1, parent=0, distance=0
      send: 1-1-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay
      send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
      send: 1-1-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
      
      • Then, the switch appears in domoticz devices so I add it to the panel and try to switch on/off

      Domoticz :

      Admin initiated a switch command
      (Mysensors) Lighting 2 (Light)
      

      Gateway and Node : nothing but the gateway serial led is shortly blinking...

      What wrong did I do ?

      AWIA 1 Reply Last reply
      0
      • D davy39

        You're right, that the deal while moving between different libraries versions, I forgot to put back the debug mode on development version...
        Anyway, I had a drop in my voltage regulator last night, I guess that explains that my serial reads were not complete...
        So now I'm back with with MySensor 1.5.4, debug active, and Domoticz 3.5143, but with no more luck.

        Here is an entire sequence :

        • I run Domoticz, go to hardware and configure a Mysensors Gateway USB, Domoticz report :
        MySensors: Using serial port: /dev/ttyUSB3
        
        • I reset the gateway, Domoticz report :
        MySensors: Gateway Ready...
        

        And here is serial output of the gateway :

        0;0;3;0;9;gateway started, id=0, parent=0, distance=0
        0;0;3;0;14;Gateway startup complete.
        
        • I reset the relay node.

        Domoticz :

        MySensors: Node: 1, Sketch Name: Relay
        MySensors: Node: 1, Sketch Version: 1.0
        (Mysensors) Lighting 2 (Light)
        

        Gateway :

        t=15,pt=2,l=2,sg=0:0
        1;255;3;0;15;0
        0;0;3;0;9;read: 1-1-0 s=255,c=0,t=18,pt=0,l=5,sg=0:1.5.4
        1;255;0;0;18;1.5.4
        0;0;3;0;9;read: 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
        1;255;3;0;6;0
        0;0;3;0;9;read: 1-1-0 s=255,c=3,t=11,pt=0,l=5,sg=0:Relay
        1;255;3;0;11;Relay
        0;0;3;0;9;read: 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
        1;255;3;0;12;1.0
        0;0;3;0;9;read: 1-1-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
        1;1;0;0;3;
        

        Relay node :

        send: 1-1-0-0 s=255,c=3,t=15,pt=2,l=2,sg=0,st=ok:0
        send: 1-1-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=ok:1.5.4
        send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
        repeater started, id=1, parent=0, distance=0
        send: 1-1-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay
        send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
        send: 1-1-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
        
        • Then, the switch appears in domoticz devices so I add it to the panel and try to switch on/off

        Domoticz :

        Admin initiated a switch command
        (Mysensors) Lighting 2 (Light)
        

        Gateway and Node : nothing but the gateway serial led is shortly blinking...

        What wrong did I do ?

        AWIA Offline
        AWIA Offline
        AWI
        Hero Member
        wrote on last edited by
        #6

        @davy39 What should happen is that your Relay node "reads" something. Are you using the 'example' sketch?

        D 1 Reply Last reply
        0
        • AWIA AWI

          @davy39 What should happen is that your Relay node "reads" something. Are you using the 'example' sketch?

          D Offline
          D Offline
          davy39
          wrote on last edited by davy39
          #7

          @AWI Yes, I'm using examples "Serial Gateway" and "relayActuator". I've just changed gw.begin(incomingMessage, AUTO, true); to gw.begin(incomingMessage, 1, true); otherwise my node was not detected.

          So, to answer to your first question, I guess I should read "Incoming change for sensor: ... , New status: ...." and state of pin 3 should change...

          AWIA 1 Reply Last reply
          0
          • D davy39

            @AWI Yes, I'm using examples "Serial Gateway" and "relayActuator". I've just changed gw.begin(incomingMessage, AUTO, true); to gw.begin(incomingMessage, 1, true); otherwise my node was not detected.

            So, to answer to your first question, I guess I should read "Incoming change for sensor: ... , New status: ...." and state of pin 3 should change...

            AWIA Offline
            AWIA Offline
            AWI
            Hero Member
            wrote on last edited by
            #8

            @davy39 That should pretty much bet true.. If you have "ack" set in Domoticz (default) then Domoticz will complain if the node did not receive the message.

            D 1 Reply Last reply
            0
            • AWIA AWI

              @davy39 That should pretty much bet true.. If you have "ack" set in Domoticz (default) then Domoticz will complain if the node did not receive the message.

              D Offline
              D Offline
              davy39
              wrote on last edited by
              #9

              @AWI I did get error messages (Error sending switch command, check device/hardware !) in the past and did played with the ack option in domoticz hardware menu.
              In fact, I've just checked and ack was enabled without getting error messages... So I've disabled and re-enabled it, and I got error message back... How to know what happens in the gateway while receiving messages from Domoticz ?

              AWIA 1 Reply Last reply
              0
              • D davy39

                @AWI I did get error messages (Error sending switch command, check device/hardware !) in the past and did played with the ack option in domoticz hardware menu.
                In fact, I've just checked and ack was enabled without getting error messages... So I've disabled and re-enabled it, and I got error message back... How to know what happens in the gateway while receiving messages from Domoticz ?

                AWIA Offline
                AWIA Offline
                AWI
                Hero Member
                wrote on last edited by AWI
                #10

                @davy39 The best way to move forward is detach the gateway from Domoticz and try to send the message manualy to the node. You can use MYSController to do this and see what is going on. I doubt if Domoticz is the cause..

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  davy39
                  wrote on last edited by
                  #11

                  Great idea. I'll dig in that way.
                  Is there same kind of tool for linux ?
                  If not, maybe could I send some serial messages through arduino IDE's serial monitor ?
                  That probably means I'll need to learn a bit more about mysensor API...

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    davy39
                    wrote on last edited by
                    #12

                    With my node-id=1, my child-sensor-id would be 1 as well, I should send 1;1;1;0;2;1(without ack) or 1;1;1;1;2;1(with ack). Am I right ?
                    I've tried to send it through arduino IDE with a new line at the end, but the gateway is still not responding...
                    Am I missing something ?

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      davy39
                      wrote on last edited by
                      #13

                      Finally I got it !
                      In the stable version, baud-rate is at 115200, I changed it to 38400 in MyConfig.h and now it is working !
                      A question still need to be solved : why it is not working with the development libraries since 38400 is default baud-rate ?

                      AWIA 1 Reply Last reply
                      0
                      • D davy39

                        Finally I got it !
                        In the stable version, baud-rate is at 115200, I changed it to 38400 in MyConfig.h and now it is working !
                        A question still need to be solved : why it is not working with the development libraries since 38400 is default baud-rate ?

                        AWIA Offline
                        AWIA Offline
                        AWI
                        Hero Member
                        wrote on last edited by
                        #14

                        @davy39 I'm not sure. All my nodes and gateways are running on 115200..

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          ToniA
                          wrote on last edited by
                          #15

                          8 MHz Arduinos absolutely need to use lower baud rate than 115200. The baud rate is generated from the internal clock, and at 8 MHz 38400 bps is the highest baud rate close enough to the standard.

                          1 Reply Last reply
                          1
                          • D Offline
                            D Offline
                            davy39
                            wrote on last edited by
                            #16

                            Good to know, indeed my setup is working now with stable libraries thanks to this helpful community.
                            I'll go back later to development libraries to see if I'm able to work with it as well.

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