Go to Post Don't let the teams here be so much of an intimidation to you, but instead, an inspiration. They all had to start from the beginning, too. - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-03-2007, 13:53
geeknerd99's Avatar
geeknerd99 geeknerd99 is offline
Fire Hazard
AKA: Daniel Lin
FRC #0401 (Hokie Guard)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Blacksburg, VA
Posts: 276
geeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud of
Send a message via AIM to geeknerd99 Send a message via MSN to geeknerd99 Send a message via Yahoo to geeknerd99
Download from RC back to computer?

I know it's been covered, but searching is rather tough for it, and I took the time to try.

We just started our 5 hour fix-it window, and our test sled (last year's bot) has a broken gearbox. We're going to switch out test sled to our tetrabot, but we don't have the code backed up anywhere. While it wouldn't be that hard to reprogram it, we'd like to extract the code to dump back onto it after we're done.

Is this possible to do, and if so, how do we do it?

Ladies and gentlemen, you have 5 hours to provide answers.
__________________
  #2   Spotlight this post!  
Unread 31-03-2007, 14:22
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Download from RC back to computer?

You can use IFI Device Reader to read the hex file from the robot(I think).

I have never tried it and you won't be able to modifiy code, but it should work.
__________________
Eric Haskins KC9JVH
  #3   Spotlight this post!  
Unread 31-03-2007, 14:22
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Download from RC back to computer?

There is no way to get the source code back off the RC. You can get the hex file back but its not something that you can edit.

http://ifirobotics.com/docs/device-reader.zip
  #4   Spotlight this post!  
Unread 31-03-2007, 14:38
geeknerd99's Avatar
geeknerd99 geeknerd99 is offline
Fire Hazard
AKA: Daniel Lin
FRC #0401 (Hokie Guard)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Blacksburg, VA
Posts: 276
geeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud of
Send a message via AIM to geeknerd99 Send a message via MSN to geeknerd99 Send a message via Yahoo to geeknerd99
Re: Download from RC back to computer?

Thanks. I'll give it a try. We don't need to edit the source code, we just needed to keep a copy of the hex so that we could reload it after we're done.
__________________
  #5   Spotlight this post!  
Unread 31-03-2007, 15:02
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Download from RC back to computer?

Wow. I didn't know that this existed! Very cool.

Jacob
  #6   Spotlight this post!  
Unread 01-04-2007, 23:12
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Download from RC back to computer?

Note that you can also (through long, tedious, and often error-prone methods) generate assembly code from the HEX file. Not that I think that anyone really uses assembly for RC programming when C is available, but if you just absolutely need to change one constant or something and re-download (assuming you know PIC assembly reasonably well), it is an option.
  #7   Spotlight this post!  
Unread 01-04-2007, 23:18
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: Download from RC back to computer?

To avoid this type of problem in the future, maybe it would be a good idea if teams taped a CD with the code on it to the robot before mothballing it?

That way, 5 years down the line when no one on the team had the code, it will be sitting there on the CD with the robot.

Just a thought!
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
  #8   Spotlight this post!  
Unread 01-04-2007, 23:41
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,814
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Download from RC back to computer?

Quote:
Originally Posted by Eldarion View Post
To avoid this type of problem in the future, maybe it would be a good idea if teams taped a CD with the code on it to the robot before mothballing it?

That way, 5 years down the line when no one on the team had the code, it will be sitting there on the CD with the robot.

Just a thought!
CVS server. (CVS stands for Concurrent Versioning System.) What it does is it keeps old versions of code and changes to said code around for until they are removed. This way, you can make a change and still get your working code back if the new code "dies". Not only that, but multiple programmers can work on the same code without having to send each other code bits or even talk to each other. (To use here: keep the most recent code for each year on the server, until that robot dies totally and completely. Then use code to teach newbies...) Just be careful--mechanicals and photographers may also want to use the CVS to share stuff! (By the way, I'm not a programmer and don't know how to set one up.)
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #9   Spotlight this post!  
Unread 02-04-2007, 12:22
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Download from RC back to computer?

Quote:
Originally Posted by EricH View Post
CVS server. (CVS stands for Concurrent Versioning System.)
I'd recommend Subversion over CVS. It is less painful to set up, more flexible in terms of operations, and less quirky.

Just be warned: The 2004-2005 controllers used the PIC18F8520, while the 2006-2007 controllers use the PIC18F8722. Code compiled for one will not work on the other. It may be easier to swap the controllers.
  #10   Spotlight this post!  
Unread 02-04-2007, 18:31
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: Download from RC back to computer?

We used subversion, but when we tried using branches late in the project, we had a lot of trouble getting things to merge back and sync up. If you have a pointer to any documents that cover this with examples I would greatly appreciate hearing about it.

We used the command line and tortise SVN for a windows GUI. I've read the SVN manual and tortise documentation about branches, but I think I'm missing something since I don't think it should be so hard.

Quote:
Originally Posted by Astronouth7303 View Post
I'd recommend Subversion over CVS. It is less painful to set up, more flexible in terms of operations, and less quirky.

Just be warned: The 2004-2005 controllers used the PIC18F8520, while the 2006-2007 controllers use the PIC18F8722. Code compiled for one will not work on the other. It may be easier to swap the controllers.
  #11   Spotlight this post!  
Unread 02-04-2007, 18:37
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: Download from RC back to computer?

We used the device reader to unload code (and subsequently reloaded that code later). We found it worked well and was easy to use.

Our plan (never fully realized) was to archive a binary copies of "good" versions, after they had proven themselves by running in a robot. We have been burned on a few occasions by archiving out of the build (after testing on the robot) only to find out later that what we archived was not exactly what we had been testing. Either someone had made "just one little tweak" while we were off testing, or the person who did the archiving got a path a bit wrong and saved a different version than intended.

Saving the binary off the robot eliminates any chance of confusion. You save exactly what was running.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Contorl Solenoid direct from computer idahorobot Pneumatics 10 18-02-2007 23:52
Download code from robot Luminous Programming 4 25-05-2005 13:32
Download PowerPoints from conferences RudimentaryPeni Championship Event 1 25-04-2005 07:55
Trying to get my computer back... Ashley Weed Chit-Chat 16 04-08-2002 14:14
Download Free 3-d Software from PTC Matt Reiland Inventor 1 07-03-2002 12:48


All times are GMT -5. The time now is 19:48.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi