Go to Post I will follow FIRST's guidelines, as long as they conform with those of the English language. - artdutra04 [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 20-01-2006, 06:31
Makubesu's Avatar
Makubesu Makubesu is offline
Registered User
None #1768
Team Role: Programmer
 
Join Date: Oct 2005
Rookie Year: 2005
Location: Massachusetts
Posts: 9
Makubesu is an unknown quantity at this point
Send a message via AIM to Makubesu
Ways to speed up code loading process?

Whenever we load our code onto the robot, it takes forever. I understand that this hardware has its limitations, but just to make sure, is there anything I can do when making the hex file in MPLAB to make it load up faster?
  #2   Spotlight this post!  
Unread 20-01-2006, 06:44
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Ways to speed up code loading process?

To maximize download speed, use a fast computer with a built-in serial port. Most USB-to-serial converters slow down the process a lot.
  #3   Spotlight this post!  
Unread 20-01-2006, 22:22
Oumonkey's Avatar
Oumonkey Oumonkey is offline
Master of the If statement
AKA: Josh Tyus
FRC #1555 (Pulse)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Monon, IN
Posts: 50
Oumonkey has a spectacular aura aboutOumonkey has a spectacular aura about
Re: Ways to speed up code loading process?

I was having the same problem, it is taking 17 minutes and is barely above 50%. But if we are not able to get a a laptop with a built in serial , are any other conection converters usefull? The laptop has only a few things but the only other thing that might be usefull is some type of connection that I don't know its name so I'll make it on here somewhat well it looks like a serial port (female) with 3 rows of 5 holes kinda like this if you can under stand it. Ok I'm an idiot so I couldn't find it but This should be enough to figure out what I mean.

its a little more compact....
--------
/ . . . . .\
/ . . . . . \
/ . . . . . \
------------

Thanks
__________________
  #4   Spotlight this post!  
Unread 20-01-2006, 22:35
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: Ways to speed up code loading process?

That's a VGA monitor port

You can try to get a PCMCIA serial port card - but they can be pricey.

I really don't understand why USB adapters slow things down so much - it's not like USB is the bottleneck in the system.
  #5   Spotlight this post!  
Unread 20-01-2006, 22:37
phrontist's Avatar
phrontist phrontist is offline
Proto-Engineer
AKA: Bjorn Westergard
FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Falls Church, VA
Posts: 828
phrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond repute
Send a message via AIM to phrontist
Re: Ways to speed up code loading process?

The factor which regulates the speed of download is how much the USB adapter is capable of buffering. Make sure your adapter is using the largest possible buffer...
__________________

University of Kentucky - Radio Free Lexington

"I would rather have a really big success or a really spectacular crash and failure then live out the warm eventual death of mediocrity" - Dean Kamen
  #6   Spotlight this post!  
Unread 20-01-2006, 23:34
Oumonkey's Avatar
Oumonkey Oumonkey is offline
Master of the If statement
AKA: Josh Tyus
FRC #1555 (Pulse)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Monon, IN
Posts: 50
Oumonkey has a spectacular aura aboutOumonkey has a spectacular aura about
Re: Ways to speed up code loading process?

Quote:
Originally Posted by phrontist
The factor which regulates the speed of download is how much the USB adapter is capable of buffering. Make sure your adapter is using the largest possible buffer...
Ok, But....How?
I still don't allways know to much about this stuff so, I just want to make sure I have everything correct before I mess with something I don't want/need to.
Also it took 33 min to upload the code to the controller

Thanks a lot.
And as for the adaptor that cost a lot how much do they on average cost? do you mean costly for an adaptor or just plan expensive.
__________________
  #7   Spotlight this post!  
Unread 20-01-2006, 23:46
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Ways to speed up code loading process?

Quote:
Originally Posted by Oumonkey
Ok, But....How?
I still don't allways know to much about this stuff so, I just want to make sure I have everything correct before I mess with something I don't want/need to.
Also it took 33 min to upload the code to the controller
Holy. Crap. Do you know any of the specs on the machine you're using? Pentium 3 or so? There's usually a little sticker on it somewheres...but that's beside the point.

To make sure you have the biggest buffer possible (I'm assuming you're using Windows 2000; not sure if these directions work in XP):

1. Open the Control Panel -- usually Start > Settings > Control Panel

2. Double-click System.

3. Click the Hardware tab.

4. Click the Device Manager button.

5. Expand the "Ports (COM & LPT)" item. Under it should be a port or two. Pick the one you plan to use with the robot controller (usually the highest number after "COM") and double-click it to open the properties window. Under one of the tabs (in my case it's Advanced) there will be an Advanced Port Settings button. Click it, and there should be a window with "FIFO" buffer settings. Make sure the sliders are moved all the way to the right, as this will make sure the buffer is as big as it can be.

That should do it. If it doesn't speed up, try using another serial cable, another USB-to-serial, or even another computer. I would like to say it's a driver issue, but it is HARD to find the right driver if you don't know exactly what you're doing...and its harder to walk someone through it.

Good luck on this,
JBotAlan

PS. If you found this helpful, good rep is always nice
__________________
Aren't signatures a bit outdated?
  #8   Spotlight this post!  
Unread 21-01-2006, 06:34
Oumonkey's Avatar
Oumonkey Oumonkey is offline
Master of the If statement
AKA: Josh Tyus
FRC #1555 (Pulse)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Monon, IN
Posts: 50
Oumonkey has a spectacular aura aboutOumonkey has a spectacular aura about
Re: Ways to speed up code loading process?

Cool, Thanks. I'll try this as soon as I get the laptop running.
And I'll give some rep to you guys, I just learned how to do it yeasterday...I thought it was some kind of post count for a while

Edit: Oh and I'll get the specs down soon, I thoiught it was a decent laptop at first. 256 ram I know, but thats all I can remember.
__________________
  #9   Spotlight this post!  
Unread 21-01-2006, 09:38
Makubesu's Avatar
Makubesu Makubesu is offline
Registered User
None #1768
Team Role: Programmer
 
Join Date: Oct 2005
Rookie Year: 2005
Location: Massachusetts
Posts: 9
Makubesu is an unknown quantity at this point
Send a message via AIM to Makubesu
Re: Ways to speed up code loading process?

Woah, we switched over to the pure serial connection using one of the school's laptops, and it takes like 30 seconds to complete! That's awesome, it was taking hours before Thanks for your help everyone.
  #10   Spotlight this post!  
Unread 21-01-2006, 14:09
Oumonkey's Avatar
Oumonkey Oumonkey is offline
Master of the If statement
AKA: Josh Tyus
FRC #1555 (Pulse)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Monon, IN
Posts: 50
Oumonkey has a spectacular aura aboutOumonkey has a spectacular aura about
Re: Ways to speed up code loading process?

Ya, I know I am going to try and get the other laptop if I can but it may be hard, out IT is a jerk somtimes.
But It is a lot faster, I wasn't able to play with the usb converter but I'll do it tonight.
__________________
  #11   Spotlight this post!  
Unread 21-01-2006, 17:23
phrontist's Avatar
phrontist phrontist is offline
Proto-Engineer
AKA: Bjorn Westergard
FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Falls Church, VA
Posts: 828
phrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond repute
Send a message via AIM to phrontist
Re: Ways to speed up code loading process?

Wow... hours! I can't imagine that. I'm used to it going down in like... 5 seconds. With USB it's more like 25 sometimes...
__________________

University of Kentucky - Radio Free Lexington

"I would rather have a really big success or a really spectacular crash and failure then live out the warm eventual death of mediocrity" - Dean Kamen
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
trentonDrive.c: our joystick/wheel drive code gnormhurst Programming 16 03-02-2005 14:40
Program for variable speed cabbagekid2 Programming 5 12-01-2005 13:20
Need PBASIC Balance Code Quick sanddrag Programming 1 11-05-2004 13:02
PID control loops - closed loop feedback KenWittlief Technical Discussion 56 26-04-2004 21:27
Speed limiting code from last year in C? Josh Siegel Programming 6 01-04-2004 22:27


All times are GMT -5. The time now is 13:06.

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