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. Feature Requests
  3. Allow sniffing at gateway level

Allow sniffing at gateway level

Scheduled Pinned Locked Moved Feature Requests
8 Posts 2 Posters 3.0k 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.
  • Moshe LivneM Offline
    Moshe LivneM Offline
    Moshe Livne
    Hero Member
    wrote on last edited by
    #1

    I don't know if this is possible, but can the gateway send everything it writes on the serial to another node that will act as debug monitor? Currently the only way to see what the gateway writes is to use wireshark which is not trivial on headless rpi.

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

      Probably easer to setup a sniffer-node next to the gateway.
      http://www.mysensors.org/controller/sniffer

      Moshe LivneM 1 Reply Last reply
      0
      • hekH hek

        Probably easer to setup a sniffer-node next to the gateway.
        http://www.mysensors.org/controller/sniffer

        Moshe LivneM Offline
        Moshe LivneM Offline
        Moshe Livne
        Hero Member
        wrote on last edited by
        #3

        @hek I beg to differ.... This project is much more complicated both to setup and understand and it is on a much lower level. It is a "hack" not an integral part of the software.
        Also, theoretically, the arduino "sniffer" can also act as a watchdog or detect network anomalies more easily then digging through the logs with wireshark.
        Again, theoretically, myscontroller or other easily created tool can show you the network topology in real time while this sniffer will require you to do it yourself or analyze dumps.
        The basic idea of mysensors is the KISS principle, no? Using a sniffer node you can in 2 min see the network communication and even have the arduino or a simple program decode it.

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

          Nothing stops you to send off log messages to another node, but the problem is that you will be affecting the system you want to monitor. Messages will get lost and it will occupy the gateway radio/mcu.

          Moshe LivneM 1 Reply Last reply
          0
          • hekH hek

            Nothing stops you to send off log messages to another node, but the problem is that you will be affecting the system you want to monitor. Messages will get lost and it will occupy the gateway radio/mcu.

            Moshe LivneM Offline
            Moshe LivneM Offline
            Moshe Livne
            Hero Member
            wrote on last edited by
            #5

            @hek that is true... is there a way to write in the unix "plugin" side messages to a FIFO? does the gateway writes everything to the serial including topology? I guess it does otherwise MSController won't be able to display it.

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

              The gateway does not hold full network topology. Only enough information to route a packet to the next repeater or the final destination.

              MYSController solves the topology puzzle by examining the packet each node sends at startup (or when they switch parent) holding which parent the node has (I_CONFIG).

              Moshe LivneM 1 Reply Last reply
              0
              • hekH hek

                The gateway does not hold full network topology. Only enough information to route a packet to the next repeater or the final destination.

                MYSController solves the topology puzzle by examining the packet each node sends at startup (or when they switch parent) holding which parent the node has (I_CONFIG).

                Moshe LivneM Offline
                Moshe LivneM Offline
                Moshe Livne
                Hero Member
                wrote on last edited by
                #7

                @hek but the gw write this information to the serial, right? There are lots of problems people have because of routing. I know I had a couple (uncleared eeprom that still had hardcoded parent, nodes deciding to connect to the gw instead of the repeater etc) and i would really like to see the topology without stopping domoticz

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

                  Yes, the gateway send this information to the controller.

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


                  27

                  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