Communications protocol allowing files to be transferred to or from USB-attached devices such as cameras and smartphones