Terminology: upload vs download

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
aivarannamaa
Posts: 171
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

Terminology: upload vs download

Post by aivarannamaa » Thu Feb 07, 2019 7:07 am

Hi!

Do you "upload" or "download" a firmware to a device? I've seen both usages. What about copying files to and from the device's file system? Are there better terms for these operations?

best regards,
Aivar
Aivar Annamaa
https://thonny.org

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Terminology: upload vs download

Post by dhylands » Thu Feb 07, 2019 4:10 pm

I generally say flashing which means programming the flash memory on the device. The micropython makefile uses the terminology "deploy".

Upload/download is relative to the host or the device so either can be used depending on the context.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Terminology: upload vs download

Post by pythoncoder » Fri Feb 08, 2019 7:00 am

I think upload/download belong to an era of fairly dumb devices connecting to mainframes. These days the terms are too ambiguous to mean much. Git uses push and pull (push from and pull to the device you're using), terms which make sense. If I ssh into a Raspberry Pi from a Core i7 machine and pull a file from the box to the Pi is it up or down? Who knows. Or cares ;)
Peter Hinch
Index to my micropython libraries.

chrismas9
Posts: 152
Joined: Wed Jun 25, 2014 10:07 am

Re: Terminology: upload vs download

Post by chrismas9 » Fri Feb 08, 2019 7:40 am

The most consistent use is on the Internet where upload and download are with respect to yourself. You always download a movie (to yourself) and upload a web page (from yourself) to a web server.

So you would download a log file from a pyboard and upload a new main.py to it.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Terminology: upload vs download

Post by dhylands » Fri Feb 08, 2019 6:42 pm

Except dfu-util decided to use the terminology from the device's perspective. So you download new firmware to the board and upload firmware to the host if you want to read the firmware from the device. Excerpt from dfu-util --help:

Code: Select all

  -U --upload <file>		Read firmware from device into <file>
  -Z --upload-size <bytes>	Specify the expected upload size in bytes
  -D --download <file>		Write firmware from <file> into device

Post Reply