Forum: Mikrocontroller und Digitale Elektronik arduino sdcard copyer


von synoptik (Gast)


Angehängte Dateien:

Lesenswert?

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.

von Sven (Gast)


Lesenswert?

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.

von synoptik (Gast)


Lesenswert?

Ich will machen sdcard kopier.

I want make sdcard backuper.

von Karl H. (kbuchegg)


Lesenswert?


von Karl H. (kbuchegg)


Lesenswert?

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 ..."

von troll (Gast)


Lesenswert?

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...

(Hopy my English is ok.)

von Karl H. (kbuchegg)


Lesenswert?

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 :-)

von synoptik (Gast)


Lesenswert?

> You can't beat that price
> http://www.amazon.com/Micro-Card-Reader-copy-backu...
Nein, diese einheit benutzung usb für anschluss der PC.
Atmel kannst anschließen einige sdcard.

No, That use usb for PC connection.
Could atmel keep connection with fiew sdcards?

von synoptik (Gast)


Angehängte Dateien:

Lesenswert?


von PittyJ (Gast)


Lesenswert?

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).

von Biohuhn (Gast)


Lesenswert?

synoptik schrieb:
> Es wird die batterie für eine unabhängige Ernährung benötigt.

Es ist eine gute Idee, eine unabhängige Ernährung aufzubauen. 
Ertragreiche Batterien sind Legehennen-Batterien.

von Markus W. (Firma: guloshop.de) (m-w)


Lesenswert?

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...

von Gerald B. (gerald_b)


Lesenswert?

SD-Card = SECURE Digital-Card. Und secure steht für ein paar 
Sicherheitsmerkmale (siehe Wikipedia)
http://de.wikipedia.org/wiki/SD_Memory_Card
Ich bezweifele mal, das die LIB diese Sicherheitsfunktionen ansprechen 
kann. Somit wird es keine 100% ige 1:1 Kopie geben.
Natürlich lasse ich mich auch gerne vom Gegenteil überzeugen ;-)))

Gruß Gerald

von Rufus Τ. F. (rufus) Benutzerseite


Lesenswert?

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.

von Manfred F. (manfred_f)


Lesenswert?

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.

von Rufus Τ. F. (rufus) Benutzerseite


Lesenswert?

Aha, na, wenn das so ist. Ich hatte das in meiner unbedarften Art 
angenommen, wusste nicht, daß es so einfach ist, die Daten zu, äh, 
"sichern".

von synoptik (Gast)


Lesenswert?

>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?

> DMA
Arduino nicht stütze der DMA?

Arduino not support DMA?

von Markus W. (Firma: guloshop.de) (m-w)


Lesenswert?

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

von synoptik (Gast)


Lesenswert?

>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.

von Snooker (Gast)


Lesenswert?

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.

von Wegstaben V. (wegstabenverbuchsler)


Lesenswert?

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.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.