Go to Post Push the envelope a little, but not too much. There's a difference between being on the cutting edge and being on the bleeding edge. - cadandcookies [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 08-02-2006, 00:13
crossedheart's Avatar
crossedheart crossedheart is offline
Resident Female
AKA: Katherine
FRC #0753 (High Desert Droids)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Bend, Oregon
Posts: 2
crossedheart is an unknown quantity at this point
Send a message via AIM to crossedheart Send a message via MSN to crossedheart Send a message via Yahoo to crossedheart
Which Serial Port?

I'm sorry to be asking a dumb question, I hate doing that on forums. I've been trying to look around for the answer and I'm really tired. I'm trying to integrate the serial ports, eeprom, and camera code into the default code. With that said, I start reading my little readme's and I get to this:

5) Init_Serial_Port_One() and/or Init_Serial_Port_Two()
must be called from the User_Initialization() function
located in the user_routines.c source file.

So how do I tell which port I'm using? Which is which? The readme's are giving me a headache. I don't know what exactly I need to do with the serial port code just for the sole purpose of making the camera code work.

If someone wouldn't mind giving me an AIM or something I'd love to just sit down with someone experienced and get some better understanding. I know my C++ pretty well, I guess it's just the application for robotics that I need some work on.

Thank you all!
  #2   Spotlight this post!  
Unread 08-02-2006, 01:18
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
Re: Which Serial Port?

Call both, if I recall.
__________________
Team 694

2005 Championship - Galileo Semifinalist
2005 New York - Regional Chairmans Award
2005 New York - Semifinalist (Thanks 1257,1340)
  #3   Spotlight this post!  
Unread 08-02-2006, 01:23
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Which Serial Port?

Serial Port One I believe is the RS-232 Program Port, while Two is the TTL serial port on the side (four pin header) used mostly for the camera. For communication with a computer the first is the simplest. Of course I could have them reversed but now you know what to look for, so hopefully this helped.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #4   Spotlight this post!  
Unread 08-02-2006, 01:38
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,356
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Which Serial Port?

Quote:
Originally Posted by crossedheart
I'm sorry to be asking a dumb question, I hate doing that on forums. I've been trying to look around for the answer and I'm really tired. I'm trying to integrate the serial ports, eeprom, and camera code into the default code. With that said, I start reading my little readme's and I get to this:

5) Init_Serial_Port_One() and/or Init_Serial_Port_Two()
must be called from the User_Initialization() function
located in the user_routines.c source file.

So how do I tell which port I'm using? Which is which? The readme's are giving me a headache. I don't know what exactly I need to do with the serial port code just for the sole purpose of making the camera code work.

If someone wouldn't mind giving me an AIM or something I'd love to just sit down with someone experienced and get some better understanding. I know my C++ pretty well, I guess it's just the application for robotics that I need some work on.

Thank you all!
I am not a programmer on the level of Kevin W., but I have read through his code I believe I have a decent grasp on what he is doing.
To make things easier when trying to integrate these pieces together, try just unzipping Kevin's "Bells and Whistles" version and build off of that. It contains his Serial port driver to access the ports and is commented quite well. Make sure to read the .h files as well. It also contains the eeprom support, but I don't think it is the full blown eeprom stuff in his separate file set.
The question about which port is which is clearly documented in his files, I believe the .h files explain it the best.

Once you get the basic part working, just un-comment the sections you need. Make note, once you start un-commenting, watch out for the PWM01 and PWM02 mapping. Kevin uses them for the camera servos, the default code wants to use them for joysticks. I suggest you use them for the camera, but modifying the code is easy.

Good Luck
We'll see you at Davis/Sacramento Regional
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist

Last edited by billbo911 : 08-02-2006 at 16:02.
  #5   Spotlight this post!  
Unread 08-02-2006, 11:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Which Serial Port?

Quote:
Originally Posted by crossedheart
So how do I tell which port I'm using? Which is which?
Serial port 1 is the Program port on the RC
Serial port 2 is the TTL port on the RC
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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
CMUcam2 Serial Port Diagnostics Kevin Watson Programming 13 18-02-2006 15:05
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
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


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

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