SerialGateway Output



  • Hi, This is my first post, I'm quite new to MySensors. I'm just becoming familiar with the SerialGateway with a long term intention of connecting it to a RPi. What I have done is used a Arduino Pro Mini (5v version) and wired the radio as per http://mysensors.org/build/connect_radio and I uploaded the SerialGateway sketch. I then used an Arduino Pro Mini (3v3 version) and install the radio is per the link above and I uploaded the BinarySwitchSensor sketch. When I open the serial monitor on the gateway I see the the following output.

    0;0;3;0;14;Gateway startup complete.
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
    255;255;3;0;3;

    And this is the output from the sensor

    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
    req node id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
    req node id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
    req node id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
    req node id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
    req node id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:

    The problem is the output does not change regardless of whether the switch is open of closed. Am I missing something? Should the output not be different based on the state of the switch?

    Any help would be appreciated , thank you.

    Mike


  • Admin

    Your sensor is asking gateway (or rather controller) for an id.

    You can study the serial api here: http://www.mysensors.org/build/serial_api



  • What did you do to fix this issue? I'm a newb and having the same problem with a distance sensor.



  • In the arduino serial monitor put 255;255;3;0;4;X where x is a number 1-254


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.