Go to Post This was my freshman year, and I can't wait for next year! - Éowyn [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 25-01-2006, 16:31
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
Using the IFI loader with a USB-to-serial adapter?

I am trying to use a USB-to-serial adapter with the IFI loader. Only problem is, it takes 30 minutes or longer to download!

Does anyone have any tips or tricks to getting this thing to download quickly with a USB-to-serial adapter?

One thing I did notice is that most of the time the IFI loader is not transmitting or recieving anything, it is just idling.
__________________
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
  #2   Spotlight this post!  
Unread 25-01-2006, 16:37
Dillon Compton Dillon Compton is offline
Jack-Of-All-Trades
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Malvern, PA
Posts: 186
Dillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud of
Send a message via AIM to Dillon Compton
Re: Using the IFI loader with a USB-to-serial adapter?

It really all depends on the adapter you use. I use the Radio-shack brand usb to serial adaptor, and it takes about 1.5-2 minutes as opposed to the 30-45 with a standard serial cable.
__________________
www.metalmoose.com
  #3   Spotlight this post!  
Unread 25-01-2006, 16:39
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: Using the IFI loader with a USB-to-serial adapter?

This thread looks familiar...hmmm

Anyhow, here's some troubleshooting steps I found, posted by Astronouth7303:

I have had problems with the loader, too. In My case, a legacy device claims an IRQ that COM2 uses. But mine just locks up.

Common Troubleshooting Steps:
1. Check What port your cable is connected to, and what COM Loader is using
2. Change What port your using
3. Check your hardware settings (Turn FIFO buffers off, just in case)
4. Reboot
5. Reinstall IFI_Loader
6. Recompile
7. E-mail IFI. they're real nice.

Some not-so-common Steps:
8. Remove unnecesary hardware (Modems frequently take the place of a COM port)
9. Barrow your friend's boot drive and use that (put hex on floppy)
10. Try safe mode
11. Is it actually a COM port?
12. Remove COM Mice (Use PS/2 or USB, if you can)
13. Check Bot
14. Check cable

(end qoute)

I have another thing to add. Make sure that you have the right drivers for your device (they should come on a disc with the converter).

Good luck with this,
JBotAlan
__________________
Aren't signatures a bit outdated?
  #4   Spotlight this post!  
Unread 25-01-2006, 21:46
Mark Pierce Mark Pierce is offline
Registered User
FRC #0085 (B. O. B.)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Zeeland, MI
Posts: 239
Mark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant future
Re: Using the IFI loader with a USB-to-serial adapter?

I just order the Bafo adapter and a Cables Unlimited USB 2.0 adapter from Tiger Direct. Both seem to work great. Do a search of the forums and you'll see more on adapters. The Cables Unlimited device can plug directly into the computer (no intervening cable).

BAFO - USB 1.1 To Serial Adapter (DB9) (B133-1014) $9.99

Cables Unlimited USB 2.0 to DB9M Serial Adapter (C250-1162) $12.99

On our old laptop which just had a complete OS reload, I had to locate new drivers on-line for the schools Bafo adapter.

It does take longer to download a large program than a small one, but never 30 minutes.
  #5   Spotlight this post!  
Unread 25-01-2006, 21:56
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: Using the IFI loader with a USB-to-serial adapter?

It takes me 33 min and I am looking for a usb-serial thing but I just went to wal-mart and they had nothing. I'll try and get that radio shack one, thanks for that info.
__________________
  #6   Spotlight this post!  
Unread 26-01-2006, 14:12
hoag's Avatar
hoag hoag is offline
Press any key
no team
Team Role: Programmer
 
Join Date: Jul 2004
Rookie Year: 2003
Location: My Computer
Posts: 30
hoag is on a distinguished road
Re: Using the IFI loader with a USB-to-serial adapter?

Be careful with the usb to serial adapters. Last year at the Finger Lakes regional, my team was trying to figure out why another team couldn't download code. It turns out that their new usb adapter was not working as it should, causing the robot controller to malfunction. (Innovation First had to give them a new controller)

One of the adults on the team brought in his Keyspan brand adapter. It's fairly expensive, but it has a lot of utilities. I've had the Cables to Go brand for the past 2 years, and it's been great. (It's been dropped in the snow and run over by the robot several times and still works)

Also, check in the Device Manager under ports to see if the serial port is set at 115200 bits per second.

You could also try moving to a desktop computer that has a serial port on board and downloading from that to see how long it takes.
  #7   Spotlight this post!  
Unread 26-01-2006, 14:29
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: Using the IFI loader with a USB-to-serial adapter?

Another issue I had using Bafo USB-Serial was I kept getting corrupted downloads - the robot wasn't working right. Turned out the problem was I had a USB thumb drive plugged in at the same time. Removing it solved the problem. Probably something h/w related like the two slots on the laptop were hubbed off the same physical port or something.

Regards,
DCBrown
  #8   Spotlight this post!  
Unread 26-01-2006, 23:33
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: Using the IFI loader with a USB-to-serial adapter?

Quote:
Originally Posted by hoag
Be careful with the usb to serial adapters. Last year at the Finger Lakes regional, my team was trying to figure out why another team couldn't download code. It turns out that their new usb adapter was not working as it should, causing the robot controller to malfunction. (Innovation First had to give them a new controller)

One of the adults on the team brought in his Keyspan brand adapter. It's fairly expensive, but it has a lot of utilities. I've had the Cables to Go brand for the past 2 years, and it's been great. (It's been dropped in the snow and run over by the robot several times and still works)

Also, check in the Device Manager under ports to see if the serial port is set at 115200 bits per second.

You could also try moving to a desktop computer that has a serial port on board and downloading from that to see how long it takes.
It only takes about 30 seconds from a desktop; the adapter is set to 115200.

I'm wondering if the timing is just slightly off, causing the IFI loader to enter a "wait for retry" loop of some kind. The theory is bolstered by the fact that the CPU usage goes way up in-between data TX/RX. (You do know the loader is just a VB 6.0 app, right? )

I'll try disabling buffering as soon as I get my hands back on the RC

Thanks for the suggestions.
__________________
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
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
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
USB to Serial adapter John Gutmann Programming 7 09-05-2005 01:34
Updated: Serial Port Driver Code Kevin Watson Programming 4 05-02-2005 18:39
New Serial Port Driver Kevin Watson Programming 16 09-01-2005 01:56
ifi loader with no serial port Jared Stofflett Programming 4 23-02-2004 22:50


All times are GMT -5. The time now is 01:02.

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