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

full duplex communications using RF24Network #12

Open
cambazz opened this issue Nov 18, 2013 · 1 comment
Open

full duplex communications using RF24Network #12

cambazz opened this issue Nov 18, 2013 · 1 comment

Comments

@cambazz
Copy link

cambazz commented Nov 18, 2013

Hello,

I have been trying to use this library for full duplex communications.

One one side I have:

while(network.avail) { // read data }
if(//each 10ms) {
// send command
}

On the other side I have

while(network.avail) {
// read data
mesg = true;
}

if(mesg) {
// write back to other_node
}

so one side (ground) transmits commands each 10ms, looking for data each loop, and the other side, reads data, and if it gets data, it will just respond.

It seems that there are some sync issues with this scheme. if i just transmit on one side, and read on other side, everything is fine, but once we start doing read and writes, it gets out of sync, and sending packets start failing on both sides.

What is the proper way to enable really fast full duplex communications between two nrf24l01s?

Best Regards,

@ve2yag
Copy link

ve2yag commented Dec 19, 2013

If this can help, I have a 01 repeating node with two child: 021 and 011. 021 have weak signal and 011 is powered off. I scan my sensor network sending packet to all node in sequence, 01, 011, 021 and back to 01.

When I set timing to 100ms between each packet, 01 stop to anwser and network seem dead. When I use 500ms between packet, all is OK.

I think the 01 node is busy trying to reach 011 and 021 node and stop receiving base node and never answer to his own packet. I just finding this bug few minute ago in my home automation network, I think about this tomorrow...

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