Go Down

Topic: Programming the 32u4 through internet (Read 1 time) previous topic - next topic


The IDE doesn't support WAN programming yet.
But does anyone know how the IDE works when uploading a sketch through ethernet ? is ftp ? ssh ? other ?
and when the hex is finally uploaded on the linux side, may be there's a script to run ? which ? where ?
Thanks for your help :)


The flashing is done thusly:http://forum.arduino.cc/index.php?topic=192568.msg1423125#msg1423125

Judging from the tools available on the yun the IDE likely uses scp to transfer the compiled sketch.

For a really circuitous setup you could http://forum.arduino.cc/index.php?topic=191564.msg1415698#msg1415698 if you plug a USB cable from the USB A to microUSB B and power the Yun with REGULATED 5 volts from somewhere else. I haven't tried this, it would be a very good idea to check the schematics to make sure the Yun wouldn't be damaged by trying to power itself from one USB to the other. Since that post I have been using openssh-sftp-server - 6.2p2-1 from http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/ instead of pure-ftpd.


I confirm the IDE uses SCP to transfer the sketch to the yun

One way to flash a sketch via web (old style html upload form) is to code a brief python script that handles the upload, park the file somewhere and then call the scripts mentioned by noblepepper (here): these are the one called by the IDE right after having SCPed the file on the yun

Go Up