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

Mesh config parameters #161

Closed
Zuputmer opened this issue Feb 19, 2019 · 6 comments
Closed

Mesh config parameters #161

Zuputmer opened this issue Feb 19, 2019 · 6 comments

Comments

@Zuputmer
Copy link

Hi, i came across these parameters in RF24Mesh_config.h and i have a few doubts. I would appreciate it if anybody could explain them to me-

(#define MESH_MAX_CHILDREN 4) - Is 4 the maximum or can i set it to 5? Will that affect the working of the mesh in any way?

(#define MESH_MIN_SAVE_TIME 30000) - the comment after this parameter says "minimum time required before changing nodeID". I am afraid i do not understand. Node id is unique to each node, right?

(#define MESH_ADDRESS_HOLD_TIME 30000) - if a mesh address was released by a slave after communication with the master, and if i wanted the master to immediately reassign that address to some other slave, what should i set this parameter to?

Thanks in advance.

@TMRh20
Copy link
Member

TMRh20 commented Feb 19, 2019 via email

@Zuputmer
Copy link
Author

@TMRh20 thank you very much for your reply. I have a few other doubts too and it would be very helpful if you could explain them to me-

  1. If i wanted to transfer a payload from the master to all the slaves at the same instant of time (RF24Mesh), could i use multicast? Could you please explain to me how i could do that? Would this transmission be instantaneous? if not, which nodes would receive them first?

  2. Instead of using multicast as mentioned above, could i "sync" one particular variable that is shared between all the slaves in the mesh, and then set that variable from the master?

  3. If mesh.write fails to send in the first attempt, how many times will it retry, at what intervals and for how long?

Thank you once again. Your help is invaluable.

@Zuputmer Zuputmer reopened this Feb 20, 2019
@TMRh20
Copy link
Member

TMRh20 commented Feb 21, 2019 via email

@Zuputmer
Copy link
Author

@TMRh20 Thank you for your reply.

Nodes at level 1 will receive data first. They would then relay it to level 2. Level to relays to level 3 and so on. BTW multicast relay needs to be enabled at the network level.

In this scenario, if i have configured all of my slaves to turn off as soon as they receive a particular payload from the master, will the slaves in level 1 relay the message to level 2 and then turn off or will they turn off without relaying the message?

  1. Yes.

if you don't mind, could you please explain how i could do this? And would this be 'quicker' than using the multicast mentioned above?

thanks in advance

@TMRh20
Copy link
Member

TMRh20 commented Feb 21, 2019 via email

@Zuputmer
Copy link
Author

@TMRh20 thank you very much.

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

No branches or pull requests

2 participants