Failed to report version in skecth



  • Hello,

    When I'm using ack in sendSketchInfo, the gateway never see version string, whereas with no ack (as default) there's no problem.

    Here code of presentation
    void presentation()
    {
    sendSketchInfo("sketchABC", "v1.0",[true|false]);
    present(CHILD_DOOR_ID, S_DOOR, "garageDoor", true);
    }

    Result on gateway with ack=false:
    0;255;3;0;9;TSP:MSG:READ 123-123-0 s=255,c=3,t=11,pt=0,l=9,sg=0:sketchABC
    123;255;3;0;11;sketchABC
    0;255;3;0;9;TSP:MSG:READ 123-123-0 s=255,c=3,t=12,pt=0,l=4,sg=0:v1.0
    123;255;3;0;12;v1.0
    0;255;3;0;9;TSP:MSG:READ 123-123-0 s=234,c=0,t=0,pt=0,l=10,sg=0:garageDoor
    0;255;3;0;9;TSP:MSG:ACK msg
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=234,c=0,t=0,pt=0,l=10,sg=0,ft=0,st=ok:garageDoor
    123;234;0;0;0;garageDoor

    Result on sensor with ack= false
    TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=11,pt=0,l=9,sg=0,ft=0,st=ok:sketchABC
    !TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=12,pt=0,l=4,sg=0,ft=0,st=fail:v1.0
    TSP:MSG:SEND 123-123-0-0 s=234,c=0,t=0,pt=0,l=10,sg=0,ft=1,st=ok:garageDoor
    Request registration...
    !TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=fail:2
    TSP:MSG:READ 0-0-123 s=234,c=0,t=0,pt=0,l=10,sg=0:garageDoor
    TSP:MSG:READ 0-0-123 s=255,c=3,t=27,pt=1,l=1,sg=0:1
    Node registration=1

    Result on gateway with ack=true:
    0;255;3;0;9;TSP:MSG:READ 123-123-0 s=255,c=3,t=11,pt=0,l=9,sg=0:sketchABC
    0;255;3;0;9;TSP:MSG:ACK msg
    0;255;3;0;9;!TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=11,pt=0,l=9,sg=0,ft=0,st=fail:sketchABC
    123;255;3;0;11;sketchABC
    0;255;3;0;9;TSP:MSG:READ 123-123-0 s=234,c=0,t=0,pt=0,l=10,sg=0:garageDoor
    0;255;3;0;9;TSP:MSG:ACK msg
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=234,c=0,t=0,pt=0,l=10,sg=0,ft=0,st=ok:garageDoor
    123;234;0;0;0;garageDoor

    Result on sensor with ack=true
    TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=11,pt=0,l=9,sg=0,ft=0,st=ok:sketchABC
    !TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=12,pt=0,l=4,sg=0,ft=0,st=fail:v1.0
    TSP:MSG:SEND 123-123-0-0 s=234,c=0,t=0,pt=0,l=10,sg=0,ft=1,st=ok:garageDoor
    Request registration...
    !TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=fail:2
    TSP:MSG:READ 0-0-123 s=234,c=0,t=0,pt=0,l=10,sg=0:garageDoor
    TSP:MSG:READ 0-0-123 s=255,c=3,t=27,pt=1,l=1,sg=0:1
    Node registration=1

    Any idea?

    Note : May I have to do something special with ack (in presentation and send too)?



  • What is your code doing after the presentation? I always use a little wait after the presentation as many rapid presentations might congest the gateway:

    void presentation()
    { 
      // Send the sketch version information to the gateway and Controller
      char datetime[24]; // 22 + 1 should ben enough
      snprintf(datetime,24,"%s | %s",__DATE__,__TIME__);
      //Serial.print(F("SketchInfo: "));
      //Serial.println(datetime);
      
      sendSketchInfo("Microwave/Knocks.", datetime);
      mw_s_var1.present();
      wait(10);
      mw_s_var2.present();
      wait(10);
    
      /*
      ks_s_var1.present();
      wait(10);
      ks_s_var2.present();
      wait(10);
      */
    }
    

 

319
Online

7.9k
Users

8.8k
Topics

93.8k
Posts