How can i send a (file) from PC to Arduino Yun at running time ?

There's a way to send some commands via Serial. But how would a whole file goes ? Assuming the file can take place at RAM without any problems.


  • Please be precise about what type of file and content. – leoc7 Dec 23 '18 at 22:58
  • Just use scp... – Majenko Dec 23 '18 at 23:00
  • @leoc7 image file. JPEG extension. – Hamzah Hajeir Dec 23 '18 at 23:29
  • @Majenko can you guide me to a link or a library ? – Hamzah Hajeir Dec 23 '18 at 23:30
  • 1
    And what do you want to do with the file? – Majenko Dec 24 '18 at 9:17

You can send a file, byte after byte, using Serial. On the Arduino side, you parse serial communication and put bytes inside an array. At the end, you reconstruct the file.

  • What tool i can use to send that file from PC to Arduino ? – Hamzah Hajeir Dec 24 '18 at 9:30
  • I think that not exist a tool like this. You should create this PC tool using, for example, Visual Studio. – leoc7 Dec 24 '18 at 11:03

The first question is what do you want to do with your image : Arduino Yun has a Linux chip & an Arduino chip. And I don't think that image treatment must happen in the Arduino side... So you can send your image with scp to Linux side, then do what you want with it and perhaps, eventually, send the result for action to the Arduino part.

  • I want to send an image, This image is to be attached to an email which would be sent to email address. – Hamzah Hajeir Dec 28 '18 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.