# Remote Upload over Ethernet or serial - is RPI needed?

**URL:** <https://forum.arduino.cc/t/remote-upload-over-ethernet-or-serial-is-rpi-needed/553981>\
**Category:** General Guidance\
**Created:** [October 30, 2018, 11:15pm UTC](https://forum.arduino.cc/t/remote-upload-over-ethernet-or-serial-is-rpi-needed/553981 "2018-10-30T23:15:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![loyaltolex](https://avatars.discourse-cdn.com/v4/letter/l/a587f6/32.png) [@loyaltolex](https://forum.arduino.cc/u/loyaltolex)\
**Post date:** [October 30, 2018, 11:15pm UTC](https://forum.arduino.cc/t/remote-upload-over-ethernet-or-serial-is-rpi-needed/553981/1 "2018-10-30T23:15:20Z")

</div>

Can I program / upload to my Arduino Mega with Ethernet over an Ethernet connection from the IDE?  
(I am using Com3 over USB serial at the moment)

My Arduino Mega with ethernet is installed in physical position that makes connecting to its USB port extremely difficult, and the installation of a 30m extension USB cable is not a good practice.

I want to be able to upload new code and (ideally) monitor the serial terminal as well

If I cant do it using ethernet does anyone aware of a solution using RPI as a serial port to ethernet converter? I am thinking a RPI located beside the Arduino Mega, connected USB to USB, then code on the RPI to transport the serial data (9600 is fine) over Ethernet to a "virtual com port" on my PC that is running the Arduino IDE.

If the "virtual com port" and the Arduino IDE wont play nicely together that other option is to have another RPI to convert the Ethernet back to USB serial beside the PC

Summary  
Option 1  
Arduino Mega usb - (rpi usb - rpi ethernet) - LAN - PC running IDE through a virtual com port

Option 2  
Arduino Mega usb - (rpi usb - rpi ethernet) - LAN - - (rpi ethernet - rpi usb )- PC running IDE

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [October 30, 2018, 11:42pm UTC](https://forum.arduino.cc/t/remote-upload-over-ethernet-or-serial-is-rpi-needed/553981/2 "2018-10-30T23:42:30Z")

</div>

Option 0  
If you're using one of the W5x00 Ethernet controller chips then put the Ariadne bootloader on the Mega, which will allow you to upload over Ethernet. No RPi needed. If you're not using one of the W5x00 Ethernet controller chips then start using one.

> **[GitHub - loathingKernel/ariadne-bootloader: A little less unfinished TFTP...](https://github.com/loathingKernel/ariadne-bootloader)**
>
> A little less unfinished TFTP bootloader for Arduino Ethernet or Arduino with Ethernet Shield - GitHub - loathingKernel/ariadne-bootloader: A little less unfinished TFTP bootloader for Arduino Ethe...

---

<div class="post-metadata">

**Author:** ![loyaltolex](https://avatars.discourse-cdn.com/v4/letter/l/a587f6/32.png) [@loyaltolex](https://forum.arduino.cc/u/loyaltolex)\
**Post date:** [October 31, 2018, 12:16am UTC](https://forum.arduino.cc/t/remote-upload-over-ethernet-or-serial-is-rpi-needed/553981/3 "2018-10-31T00:16:25Z")

</div>

Thanks Pert, it is the Wiznet W5100 using pins D4, D50, D51 and D52 on the ATmega2560 so I will give it a go!

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [October 31, 2018, 12:49am UTC](https://forum.arduino.cc/t/remote-upload-over-ethernet-or-serial-is-rpi-needed/553981/4 "2018-10-31T00:49:31Z")

</div>

Ariadne expects Arduino pin 10 to be used for the W5100 CS. It is possible to change that at spi.h, line 43, but you'll need to recompile the bootloader after that:

> <https://github.com/loathingKernel/ariadne-bootloader/blob/master/bootloaders/ariadne/src/spi.h#L43>

---

<div class="post-metadata">

**Author:** ![loyaltolex](https://avatars.discourse-cdn.com/v4/letter/l/a587f6/32.png) [@loyaltolex](https://forum.arduino.cc/u/loyaltolex)\
**Post date:** [October 31, 2018, 2:51am UTC](https://forum.arduino.cc/t/remote-upload-over-ethernet-or-serial-is-rpi-needed/553981/5 "2018-10-31T02:51:17Z")

</div>

Good catch - thanks!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 6:43pm UTC](https://forum.arduino.cc/t/remote-upload-over-ethernet-or-serial-is-rpi-needed/553981/6 "2021-05-05T18:43:13Z")

</div>

Closed on May 5, 2021, 6:43pm UTC


