arduino sdcard copyer

Gast #3076754
hallo,
Ich muss zwei sdcard zu atmel verbinden. Ob sich ergeben wird, von einer 
Karte auf andere zu kopieren, ob dsp ist?
Es wird die batterie für eine unabhängige Ernährung benötigt. Allet soll 
auf der software arduino auf der selbstigemachten Zahlung arbeiten.
Angehängte Dateien:
Gast
Wtf ? I think u better not use the Translator.

U will Copy everything vom an Sd Card to another Sd Card with an Avr?
Why will u do this? Avr not so fast.
But to answer your qustion.

Have you read the documentation for the SD-Card Library, that ist 
available for Arduino?

http://arduino.cc/en/Reference/SD
1
The communication between the microcontroller and the SD card uses SPI,
2
which takes place on digital pins 11, 12, and 13 (on most Arduino boards)
3
or 50, 51, and 52 (Arduino Mega). Additionally, another pin must be used
4
to select the SD card. This can be the hardware SS pin - pin 10 (on most
5
Arduino boards) or pin 53 (on the Mega) - or another pin specified in
6
the call to SD.begin()

Seems to me, as if it is possible to do what you want, since you can 
always shutdown the SD-Card Library und start with a new instance, which 
uses a different pin to address the other SD-Card.

But you will not be happy with that solution. There is way to few memory 
in the arduino as to make such an device usefull in any way. Copying an 
entire 2GB SD-Card will last forever.


And PS:
It is a little bit annoying, that I, as an non Arduino-programmer, can 
find the answer to your question in 15 seconds in the Arduino 
documentation, while you, the Arduino-programmer, can't. If one thinks 
of it, it should be the other way round.

"I want to ..." is nice. But first comes "I can ..."
troll schrieb:
> Karl Heinz Buchegger schrieb:
>> You can't beat that price
>>
> 
http://www.amazon.com/Micro-Card-Reader-copy-backup/dp/B005ARFM10/ref=pd_sim_sbs_p_3
>
> Yeah, but the quality of this thing seems to be very poor according to
> reviews... You get what you pay for...

to clearify that:
I do not recommend that device.
It was just the first, that came to my attention by doing a quick google 
search.
There are other devices on the market, which are nearly as cheap as this 
one and do the job.

> (Hopy my English is ok.)

I guess we are doing fine :-)
Gast
Hey, you have a regular computer. You use it to post here.
Whay not buy two simple USB-SDcard adapter, and then use the copy 
command of your OS. This would save a lot of time (for all here).
(Firma: guloshop.de)
I don't think that you really need a FAT library or something like this 
if you just want to copy the contents of one sd card to another sd card 
of the same type and size. You only need to copy the blocks 1:1 - 
providing that there are no bad blocks on the new sd card.

http://elm-chan.org/docs/mmc/mmc_e.html

Karl Heinz Buchegger schrieb:
> But you will not be happy with that solution. There is way to few memory
> in the arduino as to make such an device usefull in any way. Copying an
> entire 2GB SD-Card will last forever.

The memory might not be important as long as there is space for at least 
one block (512 bytes). You also could try to implement DMA like transfer 
(Fly-by-transfer). In this case you would not need to store a single 
byte of the contents because you would read and write simultaneously. 
However - that's theory, I never tried it. :-)

You are certainly right on this: to copy the entire memory contents of 
an sd card may take long... maybe very long...
Persönliche Seite
Gerald B. schrieb:
> SD-Card = SECURE Digital-Card. Und secure steht für ein paar
> Sicherheitsmerkmale

Zwar stimmt das, die aber werden bei den meisten Anwendungen von 
SD-Karten nicht genutzt, in mp3-Playern, in Kameras etc. sind das nur 
reine Massenspeicher.

In Navigationsgeräten, bei denen für Kartenupdates bezahlt werden muss, 
werden die "Sicherheits"merkmale hingegen für DRM-Zwecke genutzt.
Rufus Τ. Firefly schrieb:
> In Navigationsgeräten, bei denen für Kartenupdates bezahlt werden muss,
> werden die "Sicherheits"merkmale hingegen für DRM-Zwecke genutzt.

Bei welchen Geräten bitte? Mir ist nämlich bis heute noch kein Gerät - 
gleich welcher Art - begegnet das die Sicherheitsfunktionen nutzt. 
Navigon und Tomtom jedenfalls nicht, ich habe zwei Navigons und denen 
ist es völlig egal auf was für einer SD-Karte die Kartendaten liegen und 
wie oft die umkopiert wurden. Ein Arbeitskolege hat mit Tomtom die 
gleichen Erfahrungen gemacht.
(Firma: guloshop.de)
synoptik schrieb:
>>http://elm-chan.org/docs/mmc/mmc_e.html
> Ja, aber Ich bedarf atmel mit zwei sdcard werden stützen oder nicht?
> Yes, but I need atmel with double sdcard support or not?

It is certainly possible to access more than one SD card using an Atmel 
AVR - even if it is "jailed" into an Arduino. Elm Chan describes the 
basics bit by bit. Everything else is up to you. This community will try 
to help if encounter problems on the way.

>> DMA
> Arduino nicht stütze der DMA?
> Arduino not support DMA?

DMA = Direct Memory Access. In this case I wanted to express that the 
contents of one SD card needs not to be buffered in AVR's memory while 
being copied to another SD card. For example, you may temporarily 
connect the DO pin of the first card to the DI pin of the second. For 
further details on this technique you also may look for the keyword "fly 
by transfer" using an Internet search engine.

Markus
Gast
>For example, you may temporarily connect the DO pin of the first card to the DI 
pin of the second.
Transistor could be fine to use for that?

Transistor kann sind gute benutzung für jene.
Gast
Sorry but the thread starter doesn't seem to have the slightest idea of 
programming or electronics.
And on top of that he is to lazy to search for information to solve his 
problem. In any good frum he would be ignored, because the rules 
normally
say: Don't ask if the answer can be found by yourself.
I am really new to microcontrollers, but I could solve the problem.

In my eyes he is a wannabe.
Manfred Freise schrieb:
> Bei welchen Geräten bitte? Mir ist nämlich bis heute noch kein Gerät -
> gleich welcher Art - begegnet das die Sicherheitsfunktionen nutzt.
> Navigon und Tomtom jedenfalls nicht, ich habe zwei Navigons und denen
> ist es völlig egal auf was für einer SD-Karte die Kartendaten liegen und
> wie oft die umkopiert wurden. Ein Arbeitskolege hat mit Tomtom die
> gleichen Erfahrungen gemacht.

z.B. die NavGear Navis, welche man bei Pearl kaufen kann, sind auf die 
jeweilige individuelle SD-Karte "gebrannt". Ein Backup auf einer anderen 
Karte funktioniert nicht.

Antwort schreiben

Eine eigene Frage? Dieser Thread ist über 13 Jahre alt. Stell sie in einem eigenen Thread – dort lesen mehr Leute mit, und sie wird öfter und schneller beantwortet.

Neuen Thread starten

Eine Lösung, Ergänzung oder Rückmeldung zu diesem Thread? Dann antworte hier.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.