Serial Gateway error (printing)



  • Hi guys, I'm new with mysensor, but I'm having a problem.
    I'm using a Serial gateway to print a node value (LightSensor example) , which is a light sensor, but I have the follwing information from the node:

    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    sensor started, id=255, parent=0, distance=1
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    100
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    100
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:

    and the following response from the Serial Gateway:

    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: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=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,sg=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,sg=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,sg=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,sg=0:
    255;255;3;0;3;

    Can anyone help me??? Thanks a lot


  • Admin



  • Sorry about it! @hek


  • Admin

    Connect the serial gateway to a controller.



  • thanks a lot @hek ! Its working


  • Mod

    I see this question over and over. Maybe the serial debug should be changed to something that people understand? Not sure what though. "Req id from controller" maybe? But will that be sufficient to make people understand that they need a controller? Having a more helpful error message would probably help a lot of people.


  • Plugin Developer

    Yes, I agree with @mfalkvidd, and I also think we need a section in the API for what the s, c , t, pt etc means. Right now you can only figure that out by reading the source, or by asking in the forum. I wrote a post explaining those, a while back, but posts get lost in the flood of posts.


Log in to reply
 

Suggested Topics

  • 3
  • 2
  • 24
  • 3
  • 15
  • 4

21
Online

11.2k
Users

11.1k
Topics

112.5k
Posts