This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Debugging Relay Node operation in Mesh network

Hi All,

I am testing the performance of a Relay Node in a mesh network.However it seems don't work.

I would like to show that the Relay node operation such as Rx and Re-TX message . Where is the location to indicate the operation in the code, I may add __log to debug the operation.

Thanks

Dragon

Parents
  • Hi,

    How does it not work? (What makes you think it does not work?)

    Remember that you need to provision the node into the network in order for it to participate in the network and relay messages.

    All code needed for relaying packets are behind preprocessor directives checking for MESH_FEATURE_RELAY_ENABLED. One possible location to add a debug log line is in packet_relay() in network.c. You will see there that there is already a warning message if there is not enough memory for storing the packet to be relayed. You could for instance add a log message in the case where a packet is queued up and sent as well.

    Regards,
    Terje

Reply
  • Hi,

    How does it not work? (What makes you think it does not work?)

    Remember that you need to provision the node into the network in order for it to participate in the network and relay messages.

    All code needed for relaying packets are behind preprocessor directives checking for MESH_FEATURE_RELAY_ENABLED. One possible location to add a debug log line is in packet_relay() in network.c. You will see there that there is already a warning message if there is not enough memory for storing the packet to be relayed. You could for instance add a log message in the case where a packet is queued up and sent as well.

    Regards,
    Terje

Children
No Data
Related