Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Bug Reports
  3. Failed to report version in skecth

Failed to report version in skecth

Scheduled Pinned Locked Moved Bug Reports
2 Posts 2 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • EtherE Offline
    EtherE Offline
    Ether
    wrote on last edited by
    #1

    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)?

    1 Reply Last reply
    0
    • cimba007C Offline
      cimba007C Offline
      cimba007
      wrote on last edited by
      #2

      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);
        */
      }
      
      1 Reply Last reply
      1

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      13

      Online

      12.0k

      Users

      11.2k

      Topics

      113.4k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular