several nodes gatewayserial it's possible??(problem).
-
good day
I have this problem
I have a couple of nodes connected to the serial gateway (without a controller)
And the problem is that they cross the transmissions that they send me
(I need to have the measurements of the nodes separately)
the question is
It is possible to avoid the crossings of transmissions so that I get the data of node N first and then the next and so on.I hope you can help me with this doubt
It's for a school project
Thank you. -
good day
I have this problem
I have a couple of nodes connected to the serial gateway (without a controller)
And the problem is that they cross the transmissions that they send me
(I need to have the measurements of the nodes separately)
the question is
It is possible to avoid the crossings of transmissions so that I get the data of node N first and then the next and so on.I hope you can help me with this doubt
It's for a school project
Thank you.If i understand correctly you want your nodes to send in the data sequentially and not whenever they like ?
One way that i can think of would be to use a node to node message from the gateway to trigger the data send on the nodes. The only thing I am not sure of is if this is possible from a gateway but it will be easy enough for you to test and see.
-
The basic format for a node to node message looks like this

You would need to place a message send to each of your nodes in your gateways loop part of the sketch. then use a non blocking timer to control when the messages are sent.
on the nodes you will need to have code to respond to the message, it could be quite basic depending on what sensors etc you have on the node.
void receive(const MyMessage &message) { if (message.type == V_STATUS ) { // put code here to send data } } -
The basic format for a node to node message looks like this

You would need to place a message send to each of your nodes in your gateways loop part of the sketch. then use a non blocking timer to control when the messages are sent.
on the nodes you will need to have code to respond to the message, it could be quite basic depending on what sensors etc you have on the node.
void receive(const MyMessage &message) { if (message.type == V_STATUS ) { // put code here to send data } }@Boots33
Yes, thanks, that's what I want to do.
I'll prove it.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login