Allthough I do all tests using USB connection, in future I plan to use TCP/IP communication between all hardware.

Ethernet connection has some significant advantages in comparsion with USB:

1. It’s more stable.

2. It’s faster and TCP/IP manages data integrity.

3. Device identity (IP address) is hard-coded (or stored in EEPROM memory) so there’s no need to change serial port name every time device is reconnected.

Being now away from home (and all my hardware) I’ve decided to intergrate ethernet support into Arduino firmware and router.


The few things I’d like (and still don’t know how to) figure out are:

1. Detecting when ethernet shield is connected to arduino. Now there’s a variable telling firmware to initialize TCP/IP server and it’s required to set it to TRUE before uploading firmware.

2. Setting up IP address. The same as above – now it’s hard coded. IP address must be somehow definded at the first connection between PC and arduino (assuming there’s no access to source code or no skills to change it).

2 thoughts on “Ethernet”

  1. Awesome work. It looks like I was heading down the EXACT same path as yourself.. Although I was using Java on the FSUIPC (I am going to be changing that this weekend I suppose). Anyway.. I actually added a POE module to the ethernet shield (had to solder it on), but now I only need one network cable going to my arduino, and no power cable..

    Setting up the IP Address… I wonder if you could do this by a couple of different ways..
    1) Could you read it off the SD Card?
    2) Other option would be just to set the MAC Address for DHCP ( But you would still need to set the MAC Address.

    Looks like based on :
    You could probably setup a file to store mac and/or IP Address settings..

    Just read it during setup() before doing the ethernet stuff. You could even have the windows app, have a utility to add a new arduino, and burn the sd card w/ the config file that it registers to listen to data for..

    1. Hi Chris!

      Thank you for advises. SD card with all data was one of the options. And I also was thinking about DHCP or broadcasting (device can find routing software itself or wise versa).

      Are you going to power with POE all your setup controlled by Arduino? For me it’s not an option: one mega2560 will control MCP and 2 EFIS panels and it will be powered by 12V power supply and convered to 5V by LM7805 where required (all lights are @12V).

Leave a Reply

Your email address will not be published. Required fields are marked *