Go to Post You know this crazy ChiefDelphi... nothing but useless information and kids ranting about pizza. - 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 03-01-2008, 09:59
Mike Mahar Mike Mahar is offline
Registered User
FRC #0138
 
Join Date: Jan 2007
Location: Amherst, NH
Posts: 64
Mike Mahar will become famous soon enough
Downloading from laptops

I have a very weird problem downloading. I can download successfully from any of my desktop machines but I can't download using any of my laptops. All of my laptops have RS232 ports on them so I'm not using any USB-RS232 converters. I have three different brands of laptops (Dell, Toshiba, Gateway) and the problem exits on all of them.

Is there some secret setting to the COM ports that I have to adjust? I've tried just about everything that I can think of. The IFI loader seems to set up the uart with its own values anyway.

The symptoms vary for different download attempts. Usually, the robots stays in download mode after the download completes. But sometimes, I get a hex dump in the terminal window.

The problem doesn't seem to happen when our executable is smaller, If our manipulator code is missing or the camera code is missing, it is more likely to succeed. Sometimes, the full download succeeds but that is rare.

Does the IFI loader use CTS/RTS or does it try to use X-on or X-off? I've messed with the buffers setting for the com ports but that doesn't seem to help either.

I find it odd that I can almost always download with my desktop machines. Most of the desktop machines are running Windows 2000 while the laptops are running XP. I have on Desktop that is running XP and that seem to download OK.

Is there some secret IFI loader setting or COM port setting or, perhaps, some XP background task that is bumping the download? The progress bar on the laptops seems to move slower than it does on the desktop machines but I haven't actually timed it.

Has anyone seen this problem? We've had it since the regionals last year.
  #2   Spotlight this post!  
Unread 03-01-2008, 11:03
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: Downloading from laptops

Quote:
Originally Posted by Mike Mahar View Post
The symptoms vary for different download attempts. Usually, the robots stays in download mode after the download completes. But sometimes, I get a hex dump in the terminal window.

The problem doesn't seem to happen when our executable is smaller, If our manipulator code is missing or the camera code is missing, it is more likely to succeed. Sometimes, the full download succeeds but that is rare.
This sounds like what would happen with an outdated version of the IFI Loader program. What version are you using on the laptops?
  #3   Spotlight this post!  
Unread 03-01-2008, 12:40
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Downloading from laptops

Silly question: have you tried some different cables? Are you using a full cable and not a homemade one? You could ask the cts/rts question on the IFI's forums.
Brian
__________________
Brian K
Team 1225 Robotics Mentor
  #4   Spotlight this post!  
Unread 03-01-2008, 12:52
steveg's Avatar
steveg steveg is offline
Livin' the Dream
AKA: Stephen Guerrera
no team
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Boston, MA
Posts: 70
steveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to behold
Send a message via AIM to steveg
Re: Downloading from laptops

Another thing to try is to make sure that the laptops are plugged in to AC Power when you try to download the code. I've found that sometimes that helps.
  #5   Spotlight this post!  
Unread 03-01-2008, 14:57
Mike Mahar Mike Mahar is offline
Registered User
FRC #0138
 
Join Date: Jan 2007
Location: Amherst, NH
Posts: 64
Mike Mahar will become famous soon enough
Re: Downloading from laptops

I've tried several different cables and there does seem to be some effect in that the few times it succeeds is when the cable is very short. All our cables are commercially made.

The loader is 1.1.0 which was update in Feb07.

The laptops are always run with the AC adaptor.
  #6   Spotlight this post!  
Unread 03-01-2008, 20:09
Laaba 80 Laaba 80 is offline
Registered User
AKA: Joey
FRC #1714 (MORE Robotics)
Team Role: Alumni
 
Join Date: Dec 2007
Rookie Year: 2001
Location: San Jose, CA
Posts: 495
Laaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond repute
Re: Downloading from laptops

Try going to the control panel, then click on system. Once in sytem go over to hardware, and make sure all settings are correct, and that the loader is sending the code to the correct port. We had this problem a few years and I cant remember what we did after we got to the hardware screen, sorry.
Joey
__________________
Driving Record - 75-43-8
Coaching Record - 92-65
  #7   Spotlight this post!  
Unread 03-01-2008, 21:30
Tapoore's Avatar
Tapoore Tapoore is offline
Registered User
AKA: Tom Poore
FRC #1519 (Mechanical Mayhem)
Team Role: Alumni
 
Join Date: May 2006
Rookie Year: 2006
Location: Milford, NH/ now Columbus, IN
Posts: 207
Tapoore is a glorious beacon of lightTapoore is a glorious beacon of lightTapoore is a glorious beacon of lightTapoore is a glorious beacon of lightTapoore is a glorious beacon of lightTapoore is a glorious beacon of light
Re: Downloading from laptops

Have you tried reinstalling the loader? You probably have already thought of this, but that may work if you haven't...
__________________
- www.mechanicalmayhem.org -
* 2015 Granite State District Event Champions
* 2013 Einstein Finalists
* 2006, 2010, 2011 Granite State Regional Champions, 2009 Chairman's Award
* 2012, 2013 North Carolina Champions
  #8   Spotlight this post!  
Unread 03-01-2008, 21:36
rhoads2234's Avatar
rhoads2234 rhoads2234 is offline
Registered User
AKA: Erin
FRC #2234
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: PA
Posts: 80
rhoads2234 will become famous soon enough
Re: Downloading from laptops

It also does wierd things on the computer if the user does not have administrative privledges. If they don't try making an accont that in admin and seeing if it will download for that account.
__________________
ALWAYS a mechanical problem!
  #9   Spotlight this post!  
Unread 04-01-2008, 09:35
Mike Mahar Mike Mahar is offline
Registered User
FRC #0138
 
Join Date: Jan 2007
Location: Amherst, NH
Posts: 64
Mike Mahar will become famous soon enough
Re: Downloading from laptops

I've been to the com port system dialogs more times than I can count. I've re-installed the IFI loader several times and tried out old and new versions.

I don't recall checking for admin privledges. I'll check that out tonight.

We don't have problems downloading to the 2004/2005 controllers and we don't have problems downloading smaller executibles.

The weird thing is that it always works from the desktop machines and almost never works from laptops.
  #10   Spotlight this post!  
Unread 04-01-2008, 17:26
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Re: Downloading from laptops

Have you tried to change the com port setting on IFI loader until it finds one that works? I've had that issue before.

-Mike
  #11   Spotlight this post!  
Unread 04-01-2008, 18:42
Richard McClellan's Avatar
Richard McClellan Richard McClellan is offline
Engineering Mentor
FRC #0254 (Cheesy Poofs)
Team Role: Mentor
 
Join Date: May 2004
Rookie Year: 2004
Location: Palo Alto, CA
Posts: 322
Richard McClellan has much to be proud ofRichard McClellan has much to be proud ofRichard McClellan has much to be proud ofRichard McClellan has much to be proud ofRichard McClellan has much to be proud ofRichard McClellan has much to be proud ofRichard McClellan has much to be proud ofRichard McClellan has much to be proud ofRichard McClellan has much to be proud ofRichard McClellan has much to be proud of
Send a message via AIM to Richard McClellan
Re: Downloading from laptops

I had a similar problem recently. I couldn't download to the Vex controller from my laptop, but I could from several desktops. Results varied, but it would either fail to start downloading, fail halfway through, fail 1/3 through, fail 3/4 of the way through, etc. It was very strange.

I completely reinstalled Windows XP recently, reinstalled everything and it works perfectly every time, so I don't know what was wrong with it the first time.
__________________
~ Richard McClellan ~
Former Student on 1477 | Northside Roboteers | 2004-2005
Former Lead Mentor for 2158 | ausTIN CANs | 2007-2010
Current Mentor for 254 | Cheesy Poofs | 2013
  #12   Spotlight this post!  
Unread 05-01-2008, 01:33
Mike Mahar Mike Mahar is offline
Registered User
FRC #0138
 
Join Date: Jan 2007
Location: Amherst, NH
Posts: 64
Mike Mahar will become famous soon enough
Re: Downloading from laptops

I now have one of my laptops working and I'll try getting the others to work tomorrow.

I noticed that programs that were smaller than 0x8000 would download correctly while larger ones would not.

I also noticed that the IFI loader that ran on the desktop machines would print out that they were Erasing banks 1-8 but the laptop machines did not. The printed out a message that said it was erasing memory but nothing about bank numbers.

I found in the ifiloader directory in Program Files an INI file. This file has a variable called debug_level that was set to 0. I thought that I might get some insight if I raised this level so I edited the INI file to set the debug_level to 1

As soon as I did this, the loader started printing out the messages about erasing banks 1-8 and now larger executables download successfully. I was curious if this variable was set on my desktop machines. It is not set.

I went back to the laptop and changed the INI file back to its original state. The IFIloader still works!. I appears that changing the INI file somehow fixed the problem but changing it back does not cause the problem to reappear. IFIloader might write something into the registry but I couldn't find anything.

As I said, I'll try doing the same trick to the other laptops and see if that magically fixes things.
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
HP Laptops Beth Sweet Chit-Chat 23 28-05-2006 20:53
Downloading Video from a Camcorder woes Ian Curtis Chit-Chat 4 14-09-2005 21:13
Laptops Mike Chit-Chat 23 30-05-2005 19:52
Problem Downloading from Streamline petek Inventor 2 10-03-2005 21:07


All times are GMT -5. The time now is 22:33.

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