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. Troubleshooting
  3. About Serial API 1.5

About Serial API 1.5

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 2.3k Views 1 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.
  • E Offline
    E Offline
    emre ünsal
    wrote on last edited by
    #1

    simple incomming message like in this example
    "0;0;3;0;9;read: 3-3-0 s=0,c=1,t=24,pt=0,l=11,sg=0:27"
    What are the meanings of each " s=0,c=1,t=24,pt=0,l=11,sg=0" characters in the information ?
    I look in the Serial API from http://www.mysensors.org/download/serial_api_15
    link but i cant find the "s,c,,t,pt,l,sg" charaters represent for?

    martinhjelmareM 1 Reply Last reply
    1
    • E emre ünsal

      simple incomming message like in this example
      "0;0;3;0;9;read: 3-3-0 s=0,c=1,t=24,pt=0,l=11,sg=0:27"
      What are the meanings of each " s=0,c=1,t=24,pt=0,l=11,sg=0" characters in the information ?
      I look in the Serial API from http://www.mysensors.org/download/serial_api_15
      link but i cant find the "s,c,,t,pt,l,sg" charaters represent for?

      martinhjelmareM Offline
      martinhjelmareM Offline
      martinhjelmare
      Plugin Developer
      wrote on last edited by
      #2

      @emre-ünsal

      Hi!

      From the source code in the dev branch: link

      s = sensor id
      c = message type 0-4: presentation, set, req, internal or stream
      t = value type: S_VALUE during presentation or V_VALUE during set/req
      pt = payload type: string, byte int, etc see link
      l = message length
      sg = signed or unsigned message: 0 or 1 for false or true

      0;0;3;0;9 means node 0 , sensor 0, internal message (3), not an ack message (0), log message (9). This means that it's the gateway that prints this info as a log after already having received the message from a node.

      At the end you have the payload: 27

      Similarly for a sent message: link

      1 Reply Last reply
      2
      • E Offline
        E Offline
        emre ünsal
        wrote on last edited by
        #3

        Thanks for your kindly reply

        1 Reply Last reply
        0

        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


        11

        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