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. General Discussion
  3. Trying to figure out the message packets [SOLVED]

Trying to figure out the message packets [SOLVED]

Scheduled Pinned Locked Moved General Discussion
7 Posts 3 Posters 1.4k Views 3 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.
  • D Offline
    D Offline
    dbemowsk
    wrote on last edited by dbemowsk
    #1

    So I am trying to figure out what all of this data that I see in the serial monitor means. This is not my data, but some from another post on here.

    read: 0-0-255 s=255,c=3,t=4,pt=0,l=2,sg=0:5
    
    send: 5-5-0-0 s=255,c=3,t=15,pt=0,l=2,sg=0,st=ok:
    send: 5-5-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=ok:2.0.0-beta
    

    So for the read line we have 0-0-255. Not sure what that is?

    s=255 I am assuming is the node ID with c=3 being the child ID. I am confused though on the t=4.. If that is the message type, then 4 is "Used for OTA firmware updates", so what is an OTA firmware update?

    The next part in the message structure though would be the ack. So what is pt=0, l=2, and sg=0?

    I am assuming the last :5 means that the payload data is 5.


    Now for one of the send messages we have 5-5-0-0. Similar to the read, not sure what that is?

    I am assuming too that the st=ok means that the status of the sent message was ok, or that it was sent properly, or does it mean that the node received it ok?

    Again, I am assuming that :2.0.0-beta is the payload being sent.


    This is all very different from the serial communication examples shown on the serial API page which shows something like:

    12;6;0;0;3;My Light\n
    

    Thanks in advance for any help in my understanding this.

    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      I understand your confusion. The output looks a bit like the serial api, but not quite. What you're seeing is the (serial) debug output.

      Your assumption about the payload data is correct.

      A description of the serial debug format is available at https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dbemowsk
        wrote on last edited by
        #3

        @mfalkvidd Perfect, that explains it. I had heard about the debug mode, but didn't know anything about it or where information on it was. I am assuming that for normal operation I should be turning debug mode off correct? I would think that debug mode would screw up the HA software receiving the data when it is expecting something like "12;6;0;0;3;My Light\n".

        I will read through the debug page that you posted. Looks like it will have everything I need.

        Thanks again for the help.

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        mfalkviddM 1 Reply Last reply
        1
        • D dbemowsk

          @mfalkvidd Perfect, that explains it. I had heard about the debug mode, but didn't know anything about it or where information on it was. I am assuming that for normal operation I should be turning debug mode off correct? I would think that debug mode would screw up the HA software receiving the data when it is expecting something like "12;6;0;0;3;My Light\n".

          I will read through the debug page that you posted. Looks like it will have everything I need.

          Thanks again for the help.

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @dbemowsk you're welcome!

          For sensors you can leave it on (see this thread for a short discussion on the topic). Debug does not affect what's sent over the radio. For an ethernet gateway you can leave debug on as well, since it won't affect what's being sent to the controller. I'm not sure how controllers handle serial gateways with debug on.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dbemowsk
            wrote on last edited by
            #5

            I am running a serial gateway communicating over my FTDI adapter, and I think when I get around to connecting it to my Orange Pi, I will use the FTDI port in to the serial in on the Pi. I would think that would affect things because the debug output is sent over the FTDI port correct?

            Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
            Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

            mfalkviddM 1 Reply Last reply
            0
            • D dbemowsk

              I am running a serial gateway communicating over my FTDI adapter, and I think when I get around to connecting it to my Orange Pi, I will use the FTDI port in to the serial in on the Pi. I would think that would affect things because the debug output is sent over the FTDI port correct?

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              @dbemowsk yes, unless the controller is tolerant and just discards the debug information.

              1 Reply Last reply
              0
              • martinhjelmareM Offline
                martinhjelmareM Offline
                martinhjelmare
                Plugin Developer
                wrote on last edited by
                #7

                The controller can use the debug serial output from the gateway of type internal message subtype 9, I_LOG_MESSAGE, and report it in a log.

                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


                16

                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