Beginner First node setup issue



  • Hello
    I'm having some trouble understanding how to get my first node running. First I'm a bit confused on how to read the output. Mainly the fact that things are seemingly named differently between pages. This is how I understand it so far.

    s = sensor id			->this sensor id
    c = command				->message type
    t = message type		->Sub type
    pt = payload type		->???
    l = length of packet	->size
    sg = signed yes or no	->not using
    

    Beyond that if I'm reading the output right, it's trying to get a node id; however, I manualy put one in.

    Also what does the first numbers mean? eg 1-1-255-255.
    And what the st field means? bc?

    The setup
    I'm using the DallasTemperatueSensor example modified for the DHT11 temp sensor. The sensor is working.
    Some code excerpts

    //setup
    gw.begin(NULL, 1);
    gw.present(2, S_TEMP);
    //loop
    gw.send(msg.setSensor(2).set(temperature1,1));
    

    The controller is just the serial example
    The controller also has a 47uf cap between 3.3v and gnd

    Node 1 Output

    find parent
    send: 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    temp=21.00	Hum=32.00
    

    Controller Output

    0;0;3;0;9;read and forward: 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;0;3;0;9;send: 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,st=fail:0
    

    Thank you in advanced.


  • Mod

    Hi @Cyberzoid
    Welcome to MySensors!

    A description of how ro read all the output is available at http://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help


 

354
Online

7.8k
Users

8.7k
Topics

93.0k
Posts