I wrote a ethernet library for transferring files from a Raspberry PI over ethernet.
It uses an "Ethernet Module ENC28J60"
add on board for the ethernet connection. This costs around $2.50 - $5.00.
This board can be connected to the Raspberry PI via the GPIO (general purpose IO) pins.
The software handles the entire IP stack (
Repo).
- GPIO driver (handles raw read and write to the Ethernet board)
- Ethernet driver (handles ethernet packets)
- IP Stack (handles ping and 1 TCP connection at a time)
- Web-server (handles uploading and downloading)
The critical point is that the ethernet board is not registered with the operating system in any way.
It is a board that is purely controlled by the software. You don't need to ask about auto-running or anything by the OS, since the OS is not involved.
This means that it is safe to connect the ethernet board to your computer via ethernet.
You can run it using:
Listen for file upload./etransfer -i 192.168.0.50
Host my-file.txt./etransfer -i 192.168.0.50 my-file.txt
If you don't give an IP address it uses one of the 192.254.*.* addresses.
The software is functional, but probably needs another pass at least (and maybe a re-write) to verify that it is actually secure.