-
Notifications
You must be signed in to change notification settings - Fork 36
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
RPI and TUN - Link two RPi together via TCP/IP #41
Comments
First off you probably don’t need to call the sysctl or iptables functions. Those are mainly needed for routing internal rf24 network traffic to external sources. You may want to keep.
Second you will need to choose a master node. All other nodes need to be assigned nodeIDs. See line 99 of the ncurses example.
‘uint8_t nodeID =22;’
You will want to match this to the last octet of the nodes IP address. So let’s say 10.11.2.2 is master. You want to set the nodeid on 10.11.2.3 to 3 on line 99, Then on line 100 call ‘gw.begin(nodeID);’
|
Kindly thanks for the information. |
Thanks @epsi1on Yes I think UDP would be faster. I typically get speeds up to ~20KBps, but 10 is probably a good average. |
Thanks |
Hi,
I would like to make a network link of two RPI via rf24 (TCPIP link).
i did successfully ran the
/RF24/examples_linux/gettingstarted
on both devices, both can send and receive data successfully.To setup network link, this is what i did ran:
Machine 1 (IP: 10.11.2.2/24)
Machine 2 (IP: 10.11.2.3/24)
after running the
RF24Gateway_ncurses
file on both PIs, this is result:machine 1:
machine 2:
Finally i would like to be able to ping machine 2 from machine 1 and vise versa.
But when i try to
ping 10.11.2.3
from machine 1, there is no response from machine 2. I definitely think i'm missing something but cannot figure it out. :) Could you please tell me what am i missing?Thanks in advance
The text was updated successfully, but these errors were encountered: