How to retrieve current code from the controller?

Basic / Standard Reef Angel hardware
Post Reply
lmolenmaker
Posts: 59
Joined: Tue Nov 12, 2013 5:58 am

How to retrieve current code from the controller?

Post by lmolenmaker »

Hi guys,

After a system restore of my laptop I lost most files with the codes.

So at the moment I have no idea which code has been uploaded to the main unit.

Is there a way to retrieve the current code stored on my unit, so I can save that to my computer?

Hope somebody can help me out here, otherwise I need to start from scratch again.

Lesson learned here that I should have a external backup.

Thanks in advance.

Leslie
KRavEN
Posts: 104
Joined: Sun Mar 17, 2013 8:21 am

Re: How to retrieve current code from the controller?

Post by KRavEN »

It doesn't work like that. What gets uploaded to the unit is a compiled binary so you wouldn't be able to get it back to the arduino c++ code you're wanting.
lmolenmaker
Posts: 59
Joined: Tue Nov 12, 2013 5:58 am

Re: How to retrieve current code from the controller?

Post by lmolenmaker »

Thanks for the reply.

I guess to start all over again. Maybe a good thing.

Clean it up a bit.

Leslie
00Warpig00
Posts: 289
Joined: Wed May 16, 2012 9:52 pm

Re: How to retrieve current code from the controller?

Post by 00Warpig00 »

Something I have done...

In each revision of my code I increase a revision number and uploading my code to the RA sets a memory location in the RA+ to that value. It does not help me recover code from the RA but I can read the memory location any time I want and go through my sketches that are named by revision number and have that revision # hard coded into the sketch to at least identify which code I am actually running.

Nick
180G FOWLR
20GH QT#1
29G QT#2

Image
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: How to retrieve current code from the controller?

Post by binder »

depending on how code saavy you are, you could source control (git) and use it to handle your changes. when you make a change and upload code you are happy with, you can create a tag to keep track of it. then you could publish/store your code on github.com so you have a free, offsite backup.

just a thought....


Sent from my iPad mini
Post Reply