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 make sense of Serial display

Trying to make sense of Serial display

Scheduled Pinned Locked Moved General Discussion
17 Posts 7 Posters 3.1k Views 4 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.
  • N NotTooTechy

    @BulldogLowell said:

    Have you read the Serial API?

    Ummm, yes, I mentioned "I am OK with the Serial Protocol for the data" but what is all the other stuff? I also mentioned I am writing my own Controller and surely that might have implied that I have been programming for a while as it is not a trivial task. As it happens that "while" is about 40 years. :)

    0;0;3;0;9;read: 23-23-0 s=255,c= < This mishmash
    3,t=11,pt=0,l=8,sg=0:Humidity< This mishmash
    23;255;3;0;11;Humidity< This mishmash
    0;0;3;0;9;read: 23-23-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0< This mishmash
    23;255;3;0;12;1.0 < aaahhhh finally, data!

    I am sure all that other stuff is important and means something, but where do I read about it? I know I could wade through the .h and .cpp files, but given the description for the Serial Protocol, I hoped (expected) something that similarly explains the "mishmash."

    It makes no sense to me to merely discard all that mishmash-data to just get at the Serial-Data portion.

    BulldogLowellB Offline
    BulldogLowellB Offline
    BulldogLowell
    Contest Winner
    wrote on last edited by
    #8

    @NotTooTechy said:

    but what is all the other stuff? I also mentioned I am writing my own Controller and surely that might have implied that I have been programming for a while as it is not a trivial task. As it happens that "while" is about 40 years.

    0;0;3;0;9;read: 23-23-0 s=255,c= < This mishmash
    3,t=11,pt=0,l=8,sg=0:Humidity< This mishmash
    23;255;3;0;11;Humidity< This mishmash
    0;0;3;0;9;read: 23-23-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0< This mishmash
    23;255;3;0;12;1.0 < aaahhhh finally, data!

    but, in the API it describes exactly what the "mishmash" is! It contains Node ID's, sensor ID's and other critical data for you to sort the messages... plus the data. ;)

    N 1 Reply Last reply
    1
    • BulldogLowellB BulldogLowell

      @NotTooTechy said:

      but what is all the other stuff? I also mentioned I am writing my own Controller and surely that might have implied that I have been programming for a while as it is not a trivial task. As it happens that "while" is about 40 years.

      0;0;3;0;9;read: 23-23-0 s=255,c= < This mishmash
      3,t=11,pt=0,l=8,sg=0:Humidity< This mishmash
      23;255;3;0;11;Humidity< This mishmash
      0;0;3;0;9;read: 23-23-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0< This mishmash
      23;255;3;0;12;1.0 < aaahhhh finally, data!

      but, in the API it describes exactly what the "mishmash" is! It contains Node ID's, sensor ID's and other critical data for you to sort the messages... plus the data. ;)

      N Offline
      N Offline
      NotTooTechy
      wrote on last edited by
      #9

      @BulldogLowell said:

      but, in the API it describes exactly what the "mishmash" is!

      Thanks for your patience, but I must be getting too old. I cannot find it.
      This page...
      http://www.mysensors.org/download/sensor_api_15#the-full-api
      As far as I can see does not explain...
      0;0;3;0;9;read: 23-23-0 s=1,c=1,t=0,pt=7,l=5,sg=0:69.8
      ^; ^; ^; ^; ^,,,,,,,,,,,,,,,,,,,,,,,,^,,,,,^,,,,,^,,,,,^,,,,,,,^,,,,,^

      The things above the Caret ("^") and their values. I can guess at the 23,23,0 as NodeId,NodeID,GatewayID but what is "s=1" etc?
      I assume the ":" is a delimiter for the data.

      I realize this is free stuff, but the documentation does leave a good deal to be desired. Or, maybe it IS just me. :)

      It is crazy having half of the cod in plain text and the rest on in Codebender. I understand why it IS in Codebender, but for a documentation page to make a copy of to refer to offline, it is useless.

      tbowmoT 1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #10

        If you actually read the post @mfalkvidd mentioned earlier, you'll find the information you seek.

        http://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help

        1 Reply Last reply
        1
        • B Offline
          B Offline
          boozz
          wrote on last edited by
          #11

          @NotTooTechy

          I think the point here is that you left debug on. I wrote my own controller too (using LabView, serial, VISA) and the only thing I needed (and I suppose you need the same) are the plain messages. I guess your serial output should look like this (I took it from your first message in this thread):

          0;0;3;0;14;Gateway startup complete.
          23;255;3;0;15;0
          23;255;0;0;17;1.5.4
          23;255;3;0;6;0
          23;255;3;0;11;Humidity
          23;255;3;0;12;1.0
          23;0;0;0;7;
          23;1;0;0;6;
          23;1;1;0;0;69.8
          23;0;1;0;1;37.0

          To switch "off" debug, go to Myconfig.h and make a small change:

          #define DEBUG

          into:

          // #define DEBUG

          You can put it on again once the serial gateway is up and running to get debug information from the nodes you create.

          BR,

          Boozz

          1 Reply Last reply
          0
          • N NotTooTechy

            @BulldogLowell said:

            but, in the API it describes exactly what the "mishmash" is!

            Thanks for your patience, but I must be getting too old. I cannot find it.
            This page...
            http://www.mysensors.org/download/sensor_api_15#the-full-api
            As far as I can see does not explain...
            0;0;3;0;9;read: 23-23-0 s=1,c=1,t=0,pt=7,l=5,sg=0:69.8
            ^; ^; ^; ^; ^,,,,,,,,,,,,,,,,,,,,,,,,^,,,,,^,,,,,^,,,,,^,,,,,,,^,,,,,^

            The things above the Caret ("^") and their values. I can guess at the 23,23,0 as NodeId,NodeID,GatewayID but what is "s=1" etc?
            I assume the ":" is a delimiter for the data.

            I realize this is free stuff, but the documentation does leave a good deal to be desired. Or, maybe it IS just me. :)

            It is crazy having half of the cod in plain text and the rest on in Codebender. I understand why it IS in Codebender, but for a documentation page to make a copy of to refer to offline, it is useless.

            tbowmoT Offline
            tbowmoT Offline
            tbowmo
            Admin
            wrote on last edited by tbowmo
            #12

            @NotTooTechy said:

            @BulldogLowell said:

            but, in the API it describes exactly what the "mishmash" is!

            Thanks for your patience, but I must be getting too old. I cannot find it.
            This page...
            http://www.mysensors.org/download/sensor_api_15#the-full-api
            As far as I can see does not explain...
            0;0;3;0;9;read: 23-23-0 s=1,c=1,t=0,pt=7,l=5,sg=0:69.8
            ^; ^; ^; ^; ^,,,,,,,,,,,,,,,,,,,,,,,,^,,,,,^,,,,,^,,,,,^,,,,,,,^,,,,,^

            If you look at the serial api, and decode the above string, it will be:

            0 -> NodeId (GW)
            0 -> ChildSensorID
            3 -> Internal message
            0 -> no ack
            9 -> Debug message

            So it's a debug message that is sent by the GW :) The rest is the payload..

            The format of the debug message (payload) could probably have been described better somewhere, but haven't been done yet. (feel free to chip in with documentation :))

            mfalkviddM 1 Reply Last reply
            0
            • tbowmoT tbowmo

              @NotTooTechy said:

              @BulldogLowell said:

              but, in the API it describes exactly what the "mishmash" is!

              Thanks for your patience, but I must be getting too old. I cannot find it.
              This page...
              http://www.mysensors.org/download/sensor_api_15#the-full-api
              As far as I can see does not explain...
              0;0;3;0;9;read: 23-23-0 s=1,c=1,t=0,pt=7,l=5,sg=0:69.8
              ^; ^; ^; ^; ^,,,,,,,,,,,,,,,,,,,,,,,,^,,,,,^,,,,,^,,,,,^,,,,,,,^,,,,,^

              If you look at the serial api, and decode the above string, it will be:

              0 -> NodeId (GW)
              0 -> ChildSensorID
              3 -> Internal message
              0 -> no ack
              9 -> Debug message

              So it's a debug message that is sent by the GW :) The rest is the payload..

              The format of the debug message (payload) could probably have been described better somewhere, but haven't been done yet. (feel free to chip in with documentation :))

              mfalkviddM Online
              mfalkviddM Online
              mfalkvidd
              Mod
              wrote on last edited by mfalkvidd
              #13

              @tbowmo documentation of the format of the debug message is, as hek also pointed out, available at the link I posted in my first response in this thread.

              1 Reply Last reply
              0
              • tbowmoT Offline
                tbowmoT Offline
                tbowmo
                Admin
                wrote on last edited by
                #14

                @mfalkvidd

                Yes, you are right.. My bad :)

                1 Reply Last reply
                0
                • hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #15

                  Haha, this must be one of the most confused up threads here :)

                  N 1 Reply Last reply
                  0
                  • hekH hek

                    Haha, this must be one of the most confused up threads here :)

                    N Offline
                    N Offline
                    NotTooTechy
                    wrote on last edited by
                    #16

                    @hek said:

                    Haha, this must be one of the most confused up threads here :)

                    But getting better. Thank you all. Now that I see that some of the messages are from the Gateway and not all from the Node it is making some more sense. It would be nice to see some CR and LF in the output, but having employed many programmers over my working life, I understand. ;)

                    Why does "c = message type" and not "m" for instance? before asking here I was trying to make sense of it without wasting everyone's time and searching files.

                    @boozz seems to have solved it for me with turn off Debug.

                    I think that, other than snide comments, we can close this thread from my standpoint. :)

                    1 Reply Last reply
                    0
                    • mfalkviddM Online
                      mfalkviddM Online
                      mfalkvidd
                      Mod
                      wrote on last edited by
                      #17

                      In the MySensors protocol, messageType is also called command (for historical reasons I guess?). So c made sense, at least when the debug output was added to the code. There is a link available in the description in the debug faq to the code where a comment saying "The command field (message-type) defines the overall properties of a message" is available.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      24

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      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