Arduino serial-over-TCP using your OpenWRT device

Here's how to control your Arduino over the network. Connect it using a serial cable to an OpenWRT device and use a network socket (TCP) to connect to it remotely.