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

  • Hi,

    1) I tried configure the default  (0xff) and 10 on TTL. It seems don't help the stability transmission through relay. 

    And i configured the Retransmission  (Count is 7, interval is 22), it seems don't help the stability. 

    And when i set Period, it seems don't stop

    2)It should have two type of transition fail.

    i) Server did not get the message, and the client (publish) side show  ACCESS_RELIABLE_TRANSFER_TIMEOUT "Acknowledged transfer timeout". 

    ii) Server got the message, but the client did not got the status response.

    Regards,

    Dragon

  • HI Terje , 

    There is a strange behavior on a Relay node.

    I connected the testing relay node with a J-Link and use the RTT viewer to view the __log form the relay node. 

    If I connect the RTT viewer software with the node, it is work for the Relay node. 

    If I disconnect the RTT viewer software with the node, it is show ACCESS_RELIABLE_TRANSFER_TIMEOUT "Acknowledged transfer timeout".

    Regards,

    Dragon

  • HI,

    I tried to monitor the network_packet_in on the Relay node(ID 7). 

    I tried to changed the publish TTL value (e.g 127) on client (ID 1) and I tried to publish reliable to client (ID 3), 

    the Relay node (ID7) show the TTL value of packet (ID 1 to ID2) was 127, but the TTL value of packet (ID2 to ID1) was 8 or 4. 

    and Found the TTL value of packet ( ID id 1 to  0x7fff)  always 4.

    Regards,

    Dragon

  • Hi,

    You mention a lot of nodes. Please note that the publish settings are distinct on each model, on each element. That means you must configure each model individually, setting both publish address and TTL setting.

    Also, what packet types are the packets that you mention?

    Regards,
    Terje

  • Hi Terje,

    1) I simplified the data payload from 40 to 7, that let the network packet form 4 segment to a un-segment data packet. The performance seems better.

    2) But when I put the target node D1 far away form the Proxy node D2. And I place the relay node D3 between the D1 and D2.   

    e.g.. APP <-> Proxy(D1) <-> Relay(D3) <-> Target(D2) 

    I monitor the rx packet on the Relay D3. It don't receive the packet (D1-> D2) or (D2<-D1)

    3) When I  tried to modify the following values, the performance of the relay seems better, that no lost packet.

    CORE_TX_REPEAT_ORIGINATOR_DEFAULT 100

    CORE_TX_REPEAT_RELAY_DEFAULT 100

    4) I am not sure how the effect of the timing (Repeat 1 or 100) e.g. scanning and advertisement.

    or any document figure out the setting and timing e.g interval, scanning windows re-transimit, repeat?

    5) And the response time seems slow when send reliable set  and get back status. It is about 4s. How the speed up the response time?

    Regards,

    Dragon

Related