Problem sending message via IDE to Relay Node



  • Hi
    I am using the MYS API 1.5 with Arduino 1.77.
    I have the Relay example runing on one node (node id 6) and the Serial Gateway on the other.
    Looking at the Serial Gateway node serial monitor everything looks good:

    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    0;0;3;0;14;Gateway startup complete.
    0;0;3;0;9;read: 6-6-0 s=255,c=0,t=17,pt=0,l=3,sg=0:1.5
    6;255;0;0;17;1.5
    0;0;3;0;9;read: 6-6-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
    6;255;3;0;6;0
    0;0;3;0;9;read: 6-6-0 s=255,c=3,t=11,pt=0,l=5,sg=0:Relay
    6;255;3;0;11;Relay
    0;0;3;0;9;read: 6-6-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
    6;255;3;0;12;1.0
    0;0;3;0;9;read: 6-6-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
    6;1;0;0;3;
    0;0;3;0;9;read: 6-6-0 s=2,c=0,t=3,pt=0,l=0,sg=0:
    6;2;0;0;3;
    0;0;3;0;9;read: 6-6-0 s=3,c=0,t=3,pt=0,l=0,sg=0:
    6;3;0;0;3;

    I then try to send a message via the serial monitor of the Arduino IDE from the Serial Gateway to the the Relay Node to activate a relay. I type '6;1;1;0;2;1;' and click on the SEND button.

    Following output in the log but no relay activated:

    0;0;3;0;9;send: 0-0-6-6 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
    0;0;3;0;9;read: 6-6-0 s=255,c=0,t=17,pt=0,l=3,sg=0:1.5
    6;255;0;0;17;1.5
    0;0;3;0;9;read: 6-6-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
    6;255;3;0;6;0
    0;0;3;0;9;read: 6-6-0 s=255,c=3,t=11,pt=0,l=5,sg=0:Relay
    6;255;3;0;11;Relay
    0;0;3;0;9;read: 6-6-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
    6;255;3;0;12;1.0
    0;0;3;0;9;read: 6-6-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
    6;1;0;0;3;
    0;0;3;0;9;read: 6-6-0 s=2,c=0,t=3,pt=0,l=0,sg=0:
    6;2;0;0;3;
    0;0;3;0;9;read: 6-6-0 s=3,c=0,t=3,pt=0,l=0,sg=0:
    6;3;0;0;3;

    Can anyone help what I am doing wrong?


Log in to reply
 

Suggested Topics

  • 3
  • 3
  • 15
  • 2
  • 10
  • 2

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts