i want to copy files from computer to memory card present in SD card shield.
Morover, i want to copy files from SD card to computer using serial port.
Currently i have to remove memory card from SD shield and to maually copy and paste files through computer. I want to make it simple without removing SD card from shield.
Details missing
Is there an Arduino involved? I assume yes. Which one?
Are the files text files or binary? What is their size?
Are you writing your own application for the PC or intend to use a terminal program?
Reading from SD card and sending to a PC using an relatively Arduino is simple. Storing them can be done using a 3rd party terminal program that can save files to disk; serial monitor does not support this.
Sending them from the PC to the Arduino is more complicated; writing to SD is relatively slow so you can't have the PC sending continuously at high speed.
If you write your own application at the PC side you have full control and can implement a protocol where you e.g. send 512 bytes from the PC and wait for an acknowledgement from the Arduino. Once the Arduino has written the 512 bytes to the SD card it sends the acknowledgement and the PC will send the next 512 bytes.
If you use a 3rd party terminal program, you will have to look if Xon/Xoff (software handshake) will suite your needs; it should.
This can be done.
There is code out there, for a product called flysight; GitHub - flysight/flysight: FlySight source code and schematics
FlySight uses an Atmel AT90USB646 microcontroller clocked at 8 MHZ. This chip has 64 KB of flash memory, 4 KB of RAM, an onboard USB PHY .
Have a closer look at
/***************************************************************************
** **
** FlySight firmware **
** Copyright 2018 Michael Cooper, Will Glynn **
** **
** This program is free software: you can redistribute it and/or modify **
** it under the terms of the GNU General Public License as published by **
** the Free Software Foundation, either version 3 of the License, or **
** (at your option) any later version. **
** **
** This program is distributed in the hope that it will be useful, **
** but WITHOUT ANY WARRANTY; without even the implied warranty of **
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
** GNU General Public License for more details. **
** **
** You should have received a copy of the GNU General Public License **
** along with this program. If not, see <http://www.gnu.org/licenses/>. **
** **
****************************************************************************
** Contact: Michael Cooper **
This file has been truncated. show original
/***************************************************************************
** **
** FlySight firmware **
** Copyright 2018 Michael Cooper, Will Glynn **
** **
** This program is free software: you can redistribute it and/or modify **
** it under the terms of the GNU General Public License as published by **
** the Free Software Foundation, either version 3 of the License, or **
** (at your option) any later version. **
** **
** This program is distributed in the hope that it will be useful, **
** but WITHOUT ANY WARRANTY; without even the implied warranty of **
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
** GNU General Public License for more details. **
** **
** You should have received a copy of the GNU General Public License **
** along with this program. If not, see <http://www.gnu.org/licenses/>. **
** **
****************************************************************************
** Contact: Michael Cooper **
This file has been truncated. show original
/***************************************************************************
** **
** FlySight firmware **
** Copyright 2018 Michael Cooper **
** MMC interface copyright 2013 Dean Camera **
** **
** This program is free software: you can redistribute it and/or modify **
** it under the terms of the GNU General Public License as published by **
** the Free Software Foundation, either version 3 of the License, or **
** (at your option) any later version. **
** **
** This program is distributed in the hope that it will be useful, **
** but WITHOUT ANY WARRANTY; without even the implied warranty of **
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
** GNU General Public License for more details. **
** **
** You should have received a copy of the GNU General Public License **
** along with this program. If not, see <http://www.gnu.org/licenses/>. **
** **
****************************************************************************
This file has been truncated. show original
/*
LUFA Library
Copyright (C) Dean Camera, 2013.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
without fee, provided that the above copyright notice appear in
all copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of the author not be used in
advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
This file has been truncated. show original
;************************************************************
; Windows USB CDC ACM Setup File
; Copyright (c) 2000 Microsoft Corporation
;************************************************************
[DefaultInstall]
CopyINF="FlySight.inf"
[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MFGNAME%
DriverVer=3/23/2014
[Manufacturer]
%MFGNAME%=DeviceList, NTx86, NTamd64, NTia64
[SourceDisksNames]
This file has been truncated. show original
And post back with a code example if you figure it out
(As I've never taken the effort to figure it out myself, yet...)