Allow sniffing at gateway level


  • Hero Member

    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.


  • Admin

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


  • Hero Member

    @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.


  • Admin

    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.


  • Hero Member

    @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.


  • Admin

    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).


  • Hero Member

    @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


  • Admin

    Yes, the gateway send this information to the controller.


Log in to reply
 

Suggested Topics

  • 90
  • 2
  • 3
  • 4
  • 3
  • 13

55
Online

11.4k
Users

11.1k
Topics

112.6k
Posts