Hello everybody!
I would like to make a backup copy from a Log files stored on SDCard to an external place.
.I don't know if it is possible.
I am working on MKR 1010 with Wifi access and SDCArd module added.
Can someone help?
Thanks!
Hello everybody!
I would like to make a backup copy from a Log files stored on SDCard to an external place.
.I don't know if it is possible.
I am working on MKR 1010 with Wifi access and SDCArd module added.
Can someone help?
Thanks!
What will the external place be?
I can visualise a FTP server somewhere and a FTP client can run on the MKR1010; do a search.
Another way might be to run a webserver somewhere and post the data to the webserver; the webserver will read the post request and store the received data.
I'm not familiar with your board so don't know what exactly is possible.
Plug the SD Card into a PC and copy the files?
Thank you very much sterretje.
I wil take al look on your suggested ways. Maybe I can start a VM as webserver. I will take a look of small web security issues.
thanks
This project is for ESP32, but you can adapt it to your module.
" ESP32, SD and WiFi - Download/Upload/Delete SD files using ESP32 microcontroller as a web server
" https://www.youtube.com/watch?v=zoYMU1tA3nI&ab_channel=MyCircuits
thanks gfvalvo, Yes. I am doing that right now, but I prefer a closed enclosure to protect the hardware, dificult to acces the card.
mailing the file as an attachment could possibly also be a solution
FTP is probably the low hanging fruit if you have a FTP server that is reachable
Depending on what the file-content is. If it is a simple textfile you can send each line using UDP or TCP.
Thanks rullviana,
Interesting way...
thanks again.
Thanks J-M-L,
Can you tell me, where to find a code for email/attachement.
thanks again.
StefanL38, yes, it's a text file, but I prefer send it complete.
Anyway, thanks !
I mean it this way:
open file on SD-card
while (not end of file reached) {
read in one line
send this line
}
If you use TCP you can be sure each transmission is repeated until successful
With UDP you would have to code handshaking = acknowledge receiving yourself
Joke about UDP:
I send you an UDP-packet. You might don't get it. But I don't care if you don't get it.
Thanks, It seems easy to install. but I will still need some external TCP receiver. I forgot this area many years ago. like putty and many other usefull tools.
in the exemple you send , can you tell me more aprox real code for
read in one line
send this line
or, where I can find a TCP working example for MKR1010?
Thanks again, and good joke!
may be that library. I've never tried it.
I take a look, many Thanks!!!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.