Portugal
Offline
Newbie
Karma: 0
Posts: 2
Mechanical Engineering student.
|
 |
« on: December 06, 2012, 10:14:52 am » |
I did a work for physics using arduino one year ago. Mean while I changed computer ('cause my old one broke) and I lost my arduino files that were on the computer. However my arduino is still programed and if I open the Serial Monitor it still do what I asked it to do. But I don't know how to acess the file, I mean, how can I do to "download" the "script" that's on my arduino and put it on my computer so I can change it?  I hope you understand what I'm saying, since english is not my native language.  Thanks
|
|
|
|
|
Logged
|
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3117
|
 |
« Reply #1 on: December 06, 2012, 10:19:00 am » |
You can't recover your original source code from the Arduino. It is possible to retrieve the compiled executable file, using avrdude, but you can't then convert that back to a sketch. I think you're going to have to rewrite it.
|
|
|
|
|
Logged
|
|
|
|
|
Portugal
Offline
Newbie
Karma: 0
Posts: 2
Mechanical Engineering student.
|
 |
« Reply #2 on: December 06, 2012, 10:26:22 am » |
Oh, ok.  Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Maine
Offline
Sr. Member
Karma: 7
Posts: 320
Caution: Explosives in use.
|
 |
« Reply #3 on: December 06, 2012, 11:11:25 am » |
You might want to look into an off-site backup solution, like Carbonite or Crashplan. Or if you don't have a lot of data, Google Drive will let you store 5gb for free.
|
|
|
|
|
Logged
|
"Anyone who isn't confused really doesn't understand the situation." Arduino-based airsoft props -> www.nightscapetech.com
|
|
|
|
New Jersey
Offline
Edison Member
Karma: 24
Posts: 2354
|
 |
« Reply #4 on: December 06, 2012, 11:26:29 am » |
Or post the finished code in the exhibition section of the site 
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5938
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #5 on: December 06, 2012, 12:10:52 pm » |
How much work will it be to rewrite the code?
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 90
Posts: 9429
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #6 on: December 07, 2012, 01:58:51 pm » |
Mean while I changed computer ('cause my old one broke) What was broken on the computer? If you still have the device you can try to mount is as an external disk to a linux system to see if data can be recovered. Don't you know a "nerd" that can revive old disks/computers etc.? You can also mail your sources to a 2nd gmail account. Lots of free storage and accessible from anywhere
|
|
|
|
|
Logged
|
|
|
|
|
California
Offline
Edison Member
Karma: 41
Posts: 1883
|
 |
« Reply #7 on: December 07, 2012, 04:10:24 pm » |
You can also mail your sources to a 2nd gmail account. Lots of free storage and accessible from anywhere
Or better yet, just move your sketch folder into your Google Drive folder.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5938
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #8 on: December 07, 2012, 04:12:27 pm » |
You can also mail your sources to a 2nd gmail account. Lots of free storage and accessible from anywhere
Or better yet, just move your sketch folder into your Google Drive folder. I personally don't trust google so much. I always log out of any google account before performing a google search. They are for-profit company  Having a flash drive is all it takes.
|
|
|
|
|
Logged
|
|
|
|
|
California
Offline
Edison Member
Karma: 41
Posts: 1883
|
 |
« Reply #9 on: December 07, 2012, 04:17:58 pm » |
They are for-profit company  Who isn't now-a-days?
|
|
|
|
|
Logged
|
|
|
|
|
Ayer, Massachusetts, USA
Offline
Edison Member
Karma: 28
Posts: 1110
|
 |
« Reply #10 on: December 07, 2012, 05:05:51 pm » |
Having a flash drive is all it takes.
Not really, you need to think about a tiered support. If files are really important, you want to keep generations of the file, so that you can go back to old versions if you accidently delete or corrupt the file (or make a major mistake in coding, and you want to undo those changes). A RAID system won't help you here, as it will delete the file on all of the disks. All a RAID system does is allow you to continue if you have a hard drive failure on one disk. If you have a single flash drive that you just copy the current contents of your hard drive, it will be deleted there as well unless you noticed the file was deleted before doing the backup. You also want to think about backups offsite in case your house burns down or somebody steals your computer and all of the flash drives that are sitting next to it. Keeping a flash drive at work, and rotating the backups helps (as long as you backup early and backup often). For smaller amounts of data, you can also use your cell phone. As somebody else mentioned, posting the code to the playground is one way to get it backed up. Obviously if you have sensitive information on your disks, you need to make sure all of the backups are encrypted. Every so often, you want to test your backup procedures, to make sure the files are indeed being backed up.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5938
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #11 on: December 07, 2012, 05:30:52 pm » |
MichaelMeissner,
Agreed! I usually keep folders such as 2012-12-07 with all my file backups. I keep adding more such folders until the drive is full, then milk rule applies. I only keep one backup of my pictures and videos.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
Every accomplishment starts with the decision to try
|
 |
« Reply #12 on: December 07, 2012, 06:30:42 pm » |
take the hard drive out of your old computer and git it loaded on to your new computer
|
|
|
|
|
Logged
|
|
|
|
|
Samplefinger
Offline
God Member
Karma: 8
Posts: 821
ALWAYS ASK FOR THREE. One to use. One to lose. One to abuse.
|
 |
« Reply #13 on: December 07, 2012, 07:01:40 pm » |
You might want to look into an off-site backup solution, like Carbonite or Crashplan. Or if you don't have a lot of data, Google Drive will let you store 5gb for free.
Everything that I have in my "EE" folder (yeah, I am a hobbiest but I still call the folder EE) including thousands of PDF datasheets, 3 versions of Arduino, all my source code and many downloaded examples, etc, all fit on an 8GB memory stick. That is my backup solution and it works fine. There is no reason not to back this stuff up, it's usually smaller than a decent sized movie file. You can easily keep multiple thumb drives and keep one offsite. Not really, you need to think about a tiered support. If files are really important, you want to keep generations of the file, so that you can go back to old versions if you accidently delete or corrupt the file (or make a major mistake in coding, and you want to undo those changes).
Install Visual Source Safe if you have a copy. It's damn simple and the "database" is just a bunch of files themselves you can copy off to a thumb drive.
|
|
|
|
« Last Edit: December 07, 2012, 07:04:00 pm by JoeN »
|
Logged
|
Latest Sampling Scores: ATXMEGA64A3U-MH x3, ATXMEGA256A3U-MH x3, SST38VF6404-90-5C-EKE x3, SST38VF6402-90-5C-EKE x3, PGA870 x3, THS770006 x3
|
|
|
|
|