Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds option to disable N2N (#1439) #1475

Open
wants to merge 5 commits into
base: development
Choose a base branch
from

Conversation

lelouch94
Copy link

This pull request adds the configuration option MY_TRANSPORT_N2N_FEATURE_DISABLED,
to disable the node to node transport feature.

see: #1439

@@ -553,6 +554,7 @@ bool transportRouteMessage(MyMessage &message)
}
TRANSPORT_DEBUG(PSTR("!TSF:RTE:N2N FAIL\n"));
}
#endif
Copy link
Member

@mfalkvidd mfalkvidd Feb 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about adding an else clause here, with something like
TRANSPORT_DEBUG(PSTR("!TSF:RTE:N2N DIS\n")); so people who enable this feature and forget about it (or don’t fully realize what it does) can get some information on why their N2N messages disappear?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I will try it out and check how it works.

@@ -1111,6 +1111,12 @@
#define MY_TRANSPORT_DISCOVERY_INTERVAL_MS (20*60*1000ul)
#endif

/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a small note on when this feature can/should be used? Maybe some sort of use case description?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mfalkvidd, my use case is a node that is located in a dead zone and can only be reached via a repeater.
When the node sends telegrams to other nodes or the gateway, I always get the error message !TSF:RTE:N2N FAIL in the log. This is a waste of node battery energy and in addition it pollutes the airwaves with traffic that interferes with the communication of other nodes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know what causes the node to try to sent to other nodes?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mfalkvidd, I am intentionally sending the message to another actuator node which unfortunately is not directly reachable via N2N.

@lelouch94
Copy link
Author

Hi @mfalkvidd, I have implemented your suggested change and it works for me so far. I have omitted the '!' because it is not an error, but a setting.

Are there any news regarding the CLA?

@lelouch94
Copy link
Author

lelouch94 commented Mar 17, 2021

Hi @mfalkvidd, I have now also extended the log parser for the new N2N disabled message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants