multiple nrf24 sending data to one master #871
Replies: 10 comments
-
Posted at 2014-03-27 by @gfwilliams Yes - that's absolutely fine... You can reconfigure the TX address of the 'receiver' on demand, so you can actually send to multiple NRF24s from one as well. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-24 by Andrey Hi,
but it answers
and
why it set 3,3,3,3,3 instead of 0,0,0,0,3 ?
what can be wrong? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-24 by @gfwilliams Hi Andrey, The nrf24 uses all 5 bytes of address for only the first 2 addresses. After that, it uses just the first byte and then the last 4 bytes of address #1. getAddr is just reporting the same first byte over and over. So:
Means that address 2 is actually 1,7,8,9,0. I guess I should update the driver to produce warnings and the correct addresses. Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-24 by Andrey Thanks, Gordon,
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-24 by @gfwilliams That's the point though. While it may report |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-24 by @gfwilliams In case anyone wants it, here is my code for multiple TX with one RX: RX:
TX 1:
TX2:
and so on... All that changes is the TX address. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-26 by Andrey Thank you very much, Gordon, that's quite useful samle. Now i need to synchronise several periodical processes on 4 espruinos. Those processes realised on setInterval's. Could you recomend the rigth way to start the circle on all of them simultaneously, with maximum accuracy, which is principle can be realized with those wireless devices? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-26 by @gfwilliams To re-synchronise an interval, I'd just clear it with clearInterval and re-start it. I was considering making a library to sync the Espruinos. My idea was:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-07-08 by user66100 I am really new to this. Still not quite understand the address setup for multiple transmitters. Actually I am setting up to have 3 transmitters sending individual data to one receiver. I have similar problem. TX2: Receiver: radio.openReadingPipe(1,pipes[1]); |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-07-08 by @gfwilliams @user66100 are you using an Espruino board at all? It looks a lot like you're using an Arduino as you're writing C code - if that's the case you'd need to post on the Arduino forum... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-26 by hansamann
Could one espruino with a nrf24 be used to receive sensor data from many other espruinos with nrf24…? Or is this a 1:1 setup always?
Beta Was this translation helpful? Give feedback.
All reactions