Go to Post You should always do CAD no matter how you plan on having parts made. - Garret [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 09-03-2008, 14:56
Jake M Jake M is offline
void* Jake;
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Missouri
Posts: 118
Jake M has a spectacular aura aboutJake M has a spectacular aura about
USB to 9-Pin Serial Conversion

No, I'm not talking about the USB Dongle.

I spent a week in Rolla over last summer for an Intro to Engineering Camp and in the Computer Engineering presentation, I got a small 3''x3'' circuit board with a cheap little microprocessor built in. The IO consists simply of four switches, four LEDs and a basic speaker. I'm going to replicate it a few times so each of our prospective programmers for next year can play around with them and get a feel for how microcontrollers work. The board utilizes a 9-pin serial port for program loading, much like the FIRST RC. Our school provides laptops for every student (except our Senior class. We were the last class to not get them), but none of them have a 9-pin serial port.

I know the basic background of how the 9-pin serial port works (RS232, I believe. Correct me if I'm wrong), but USB is very sketchy. I figured someone around here knows enough to help me. Am I correct in saying that USB is basically a 4 pin serial port that uses a +5V pin, a Tx pin, an Rx pin, and a Ground pin? If so, could I make a custom cable that wires the USB's Tx to the 9-Pin's Rx (In addition to using 9-pin serial, the board is designed so that you have to use a Null-Modem cable), and so forth?

Code:
RS232        USB
-----        ---
1:DCD        +5V
2:RxD--------Data-
3:TxD--------Data+
4:DTR      |-Gnd
5:Gnd------|
6:DSR
7:RTS
8:CTS
9:RI
I'm just hoping I don't have to actually go out and buy USB to 9-Pin Serial converters for everyone. I bought one for myself a while back, before I knew a whole lot about this stuff (though I still don't), and if I remember correctly, buying one for every member might get expensive.
__________________
Code:
void function(void)
 {
  function();
 }

Last edited by Jake M : 09-03-2008 at 14:58.
  #2   Spotlight this post!  
Unread 09-03-2008, 15:09
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: USB to 9-Pin Serial Conversion

Quote:
Originally Posted by Jake M View Post
I'm just hoping I don't have to actually go out and buy USB to 9-Pin Serial converters for everyone.
Sorry to be the bearer of bad news, but you do. There is no easy way to connect a RS232 device to your laptop's USB (you may very well frag something if you wire it up per your diagram).

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #3   Spotlight this post!  
Unread 09-03-2008, 15:13
Jake M Jake M is offline
void* Jake;
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Missouri
Posts: 118
Jake M has a spectacular aura aboutJake M has a spectacular aura about
Re: USB to 9-Pin Serial Conversion

Kinda thought so.

At the least, can anyone explain how USB actually does work?
__________________
Code:
void function(void)
 {
  function();
 }
  #4   Spotlight this post!  
Unread 09-03-2008, 16:29
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: USB to 9-Pin Serial Conversion

There are lots of resources online to tell you that.

What is important here is that RS-232 uses +12 and -12 volts for signaling, while USB does not. RS-232 uses one wire for "transmit" and one wire for "receive", USB uses two wires as a differential pair much like CAN Bus.

So yes, you need those converters.
__________________

I am N2IRZ - What's your callsign?
  #5   Spotlight this post!  
Unread 09-03-2008, 18:59
jzampier's Avatar
jzampier jzampier is offline
Finger Lakes Regional Staff
AKA: Jeffrey Zampieron
no team (-)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Rochester
Posts: 74
jzampier is on a distinguished road
Send a message via AIM to jzampier
Re: USB to 9-Pin Serial Conversion

The USB specification is IIR freely available (and several hundred pages). There is quite a bit that goes on at the MAC and PHY levels which software does not, typically, have control over. RS232 has none of that.

I recommend a little dongle. Blackbox makes some nice multi-port ones, as do other companies. I'd avoid anything with a prolific chipset, the FTDI chipset is better.

Hobby Engineering, http://www.hobbyengineering.com
Sells some modules for integration if you are interested. I've used them for projects before and they work pretty well. Drivers for windows and linux.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour.
Sit with a pretty girl for an hour,
and it seems like a minute. THAT'S relativity." -Einstein

----
First Resume: (If I can remember)
2001 NJ Regional
2001 Championship
2002 NYC Regional
2003 OH Regional
2003 Championship
2004 OH Regional
2005 Finger Lakes Regional
2006 Finger Lakes Regional (yes!)
  #6   Spotlight this post!  
Unread 09-03-2008, 22:36
hipsterjr's Avatar
hipsterjr hipsterjr is offline
Your bot can score but can it dance
AKA: CJ
FRC #4451 (The Burning Magnetos)
Team Role: College Student
 
Join Date: Dec 2006
Rookie Year: 2002
Location: summerville,SC
Posts: 587
hipsterjr has a reputation beyond reputehipsterjr has a reputation beyond reputehipsterjr has a reputation beyond reputehipsterjr has a reputation beyond reputehipsterjr has a reputation beyond reputehipsterjr has a reputation beyond reputehipsterjr has a reputation beyond reputehipsterjr has a reputation beyond reputehipsterjr has a reputation beyond reputehipsterjr has a reputation beyond reputehipsterjr has a reputation beyond repute
Send a message via AIM to hipsterjr
Re: USB to 9-Pin Serial Conversion

I broke down and had to buy one yesterday. We have had to use a Pentium 2 since 2000 to program our bot simply b/c of the serial port.! It cost me $36.99 at BestBuy.
__________________
2010 Palmetto Chairmens Winner
2009 Peachtree Finalist Thanks 1319 & 590 "Sure your robot can score, but can it dance?!"
2008 Palmetto Regional Finalist Thanks 343 & 804
2008 Florida Regional Finalist Thanks 179 & 69
2007 Palmetto Regional winners Thanks 1319 & 832
2005 Palmetto Chairmens Winner
  #7   Spotlight this post!  
Unread 09-03-2008, 22:43
mormannoob's Avatar
mormannoob mormannoob is offline
President and Senior Programmer
AKA: Clinton
FRC #0498 (Cobra Commanders)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Glendale,AZ
Posts: 93
mormannoob is on a distinguished road
Re: USB to 9-Pin Serial Conversion

Any word if IFIs new controllers are still serial or not
__________________
Why cant code work the first time

Wait I have to lead programmers thats like asking a kid who doesnt know how to ride a bike to lead a group of guys at the tour de france
  #8   Spotlight this post!  
Unread 10-03-2008, 11:27
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: USB to 9-Pin Serial Conversion

From what I've heard IFI is not providing the new controller(s)

But IFI plans to release a WIFI Vex Controller

Last edited by Kingofl337 : 10-03-2008 at 13:53.
  #9   Spotlight this post!  
Unread 10-03-2008, 12:48
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: USB to 9-Pin Serial Conversion

Quote:
Originally Posted by Kingofl337 View Post
From what I've heard IFI is not providing the new controller(s)
From what I've heard, Intelitek has signed a non-disclosure agreement that states they won't discuss anything related to the new control system with outside parties.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org

Last edited by Kevin Watson : 10-03-2008 at 12:50.
  #10   Spotlight this post!  
Unread 10-03-2008, 13:48
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: USB to 9-Pin Serial Conversion

Anything I have heard has been on these threads...

I have heard nothing as far as intelitek is concerned, if that is incorrect I'll gladly remove it....

-->http://firsttechchallenge.blogspot.com/

Last edited by Kingofl337 : 10-03-2008 at 14:08.
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
USB To Serial Devo1098 Programming 3 30-06-2007 19:51
Using a USB to 15 pin converter gillejr Control System 7 29-01-2007 20:44
BAFO USB to 9 Pin Adapter Skiguy523 Programming 2 29-01-2005 01:49
USB to 9-pin serial port (HELP!!) n00b Technical Discussion 10 01-02-2004 21:25
USB to Serial Jack Programming 24 23-12-2002 14:21


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

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