-
-
Notifications
You must be signed in to change notification settings - Fork 897
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
base: development
Are you sure you want to change the base?
Conversation
@@ -553,6 +554,7 @@ bool transportRouteMessage(MyMessage &message) | |||
} | |||
TRANSPORT_DEBUG(PSTR("!TSF:RTE:N2N FAIL\n")); | |||
} | |||
#endif |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 | |||
|
|||
/** |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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? |
Hi @mfalkvidd, I have now also extended the log parser for the new N2N disabled message. |
c412a09
to
b09be9c
Compare
to disable the node to node transport feature
to describe the use case.
b09be9c
to
68c54b7
Compare
This pull request adds the configuration option MY_TRANSPORT_N2N_FEATURE_DISABLED,
to disable the node to node transport feature.
see: #1439