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. Hardware
  3. Help understanding addressing and log messages

Help understanding addressing and log messages

Scheduled Pinned Locked Moved Hardware
3 Posts 3 Posters 3.3k 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.
  • X Offline
    X Offline
    xefil
    wrote on last edited by
    #1

    Hello to all,

    I'm new to this forum and find this project awesome!
    I've used the old RF24 library (maniacbug) for a long while. a lot of code lines now replaced by this great library.

    I've only some doubts and I'm really confused with logging. I've used an arduino as MQTT gateway. I'm seeing these messages on the serial console. Could someone explain me how to understand it correctly?

    Example1:
    0;0;3;0;9;read: 21-20-0 s=0,c=1,t=0,pt=7,l=5:16.7

    Example2:
    0;0;3;0;9;read: 20-20-0 s=5,c=1,t=1,pt=7,l=5:54.0

    Example3:
    0;0;3;0;9;send: 0-0-20-20 s=2,c=1,t=2,pt=0,l=1,st=ok:0

    Example4
    MyMQTT/21/3/V_HUM
    .>> 30 17 00 11 4D 79 4D 51 54 54 2F 32 31 2F 33 2F 56 5F 48 55 4D 34 37 2E 32
    This last should be MQTT a message.

    Thanks for help!

    Simon

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pete1450
      wrote on last edited by mfalkvidd
      #2

      Based on this: http://www.mysensors.org/build/serial_api

      Example 1
      id Node-id 0
      Child-id 0
      internal message
      no ack
      payload is type I_LOG_MESSAGE
      and your actual payload is "read: 21-20-0 s=0,c=1,t=0,pt=7,l=5:16.7"

      EDIT: I'm not sure if there is an easier place to get this, but I looked in the code for process where it prints "read" messages and found this to describe the payload. Send is also in there.

      msg.sender
      -msg.last
      -msg.destination
      s=msg.sensor
      c=mGetCommand(msg)
      t=msg.type
      pt=mGetPayloadType(msg)
      l=mGetLength(msg)
      :msg.getString(convBuf));

      V 1 Reply Last reply
      1
      • P pete1450

        Based on this: http://www.mysensors.org/build/serial_api

        Example 1
        id Node-id 0
        Child-id 0
        internal message
        no ack
        payload is type I_LOG_MESSAGE
        and your actual payload is "read: 21-20-0 s=0,c=1,t=0,pt=7,l=5:16.7"

        EDIT: I'm not sure if there is an easier place to get this, but I looked in the code for process where it prints "read" messages and found this to describe the payload. Send is also in there.

        msg.sender
        -msg.last
        -msg.destination
        s=msg.sensor
        c=mGetCommand(msg)
        t=msg.type
        pt=mGetPayloadType(msg)
        l=mGetLength(msg)
        :msg.getString(convBuf));

        V Offline
        V Offline
        vikasjee
        wrote on last edited by
        #3

        @pete1450 said:

        Based on this: http://www.mysensors.org/build/serial_api

        Example 1
        id Node-id 0
        Child-id 0
        internal message
        no ack
        payload is type I_LOG_MESSAGE
        and your actual payload is "read: 21-20-0 s=0,c=1,t=0,pt=7,l=5:16.7"

        EDIT: I'm not sure if there is an easier place to get this, but I looked in the code for process where it prints "read" messages and found this to describe the payload. Send is also in there.

        Mysensor.cpp Line 221-222

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


        10

        Online

        11.7k

        Users

        11.2k

        Topics

        113.0k

        Posts


        Copyright 2019 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