For a project I am working on, I am wondering if there is a way to send internet packets between two arduinos. The set up would be to have both arduinos have ethernet shields. One shield is connected to a computer and the other to a router or other internet connection. The arduinos need to communicate to each other relaying the packets of information. The goal is, I can ping the router from my computer through that two arduinos. Any help would be greatly appreciated. Thank You.
The best way is probably to connect the router, the Arduinos and the computer via a network switch. Why do the packets have to go via the Arduinos?
There's SLIP for Arduino, but you have to run the entire TCP/IP stack in software, so an Uno will probably not have enough resources.
Pieter
Rey95:
For a project I am working on, I am wondering if there is a way to send internet packets between two arduinos.
Do you actually mean TCP\IP packets ?
Yes, I mean TCP/IP packets.. can you help me for the codes?, 'cause I don't have idea how to code this.. Thank you
The question remains: WHY?
You still haven't told us what your actual goal is.
I can see absolutely no reason to send the packets over Serial. Just get a switch/router, and use Ethernet.
Rey95:
can you help me for the codes?, 'cause I don't have idea how to code this.. Thank you
That's why you should try a simpler solution. Without any knowledge of the TCP/IP stack, writing code for what is basically an Arduino router is going to be pretty hard.
Pieter
Just look at the examples that come with the Ethernet shield, that shows you how to do it, and you can use an Uno as well.