Go to Post Achieving a goal by merely finishing, or reaching mediocrity is not acceptable; Excellence is the only satisfactory result. - AdamHeard [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 16-01-2007, 18:13
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
CMUCam over programming port problems..

Here's my current configuration - I have the CMUCam2 connected to the programming port with a M/M Serial Cable. Over the TTL connection it works perfectly, however, over the programming port, it doesn't. The servos center, the lights are on, both of them, on the CMUCam2. This is normally indicative of no camera signal.

I connected the programming port to my laptop, and ran a terminal program. I repeatedly received the CR?>, which I assume to mean camera ready? message. I am not receiving anything else, such as printf debug messages; so that can not be the cause of failure. I have tested the camera over the serial port with the java application, it also works fine.

I'm out of places to look, I reset the robot controller multiple times, and the voltage on the backup battery was 8.2 volts. I went through the FAQ already.
  #2   Spotlight this post!  
Unread 16-01-2007, 18:22
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: CMUCam over programming port problems..

Did you change the serial port the camera code is using?

Is the terminal serial port the same as the camera?
__________________
Eric Haskins KC9JVH
  #3   Spotlight this post!  
Unread 16-01-2007, 18:27
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
Re: CMUCam over programming port problems..

Yes - I changed the code. I am getting the CR?> message over the programming port.

The camera is plugged into the programming port. I unplugged it, and hooked my laptop to the port to use as a terminal.
  #4   Spotlight this post!  
Unread 16-01-2007, 18:38
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: CMUCam over programming port problems..

Quote:
Originally Posted by 114Klutz View Post
Here's my current configuration - I have the CMUCam2 connected to the programming port with a M/M Serial Cable. Over the TTL connection it works perfectly, however, over the programming port, it doesn't. The servos center, the lights are on, both of them, on the CMUCam2. This is normally indicative of no camera signal.

I connected the programming port to my laptop, and ran a terminal program. I repeatedly received the CR?>, which I assume to mean camera ready? message. I am not receiving anything else, such as printf debug messages; so that can not be the cause of failure. I have tested the camera over the serial port with the java application, it also works fine.

I'm out of places to look, I reset the robot controller multiple times, and the voltage on the backup battery was 8.2 volts. I went through the FAQ already.
If you want, zip-up your code and send it to me and I'll have a quick look this evening.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 16-01-2007, 20:03
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: CMUCam over programming port problems..

Quote:
Originally Posted by 114Klutz View Post
Here's my current configuration - I have the CMUCam2 connected to the programming port with a M/M Serial Cable. Over the TTL connection it works perfectly, however, over the programming port, it doesn't. The servos center, the lights are on, both of them, on the CMUCam2. This is normally indicative of no camera signal.

I connected the programming port to my laptop, and ran a terminal program. I repeatedly received the CR?>, which I assume to mean camera ready? message. I am not receiving anything else, such as printf debug messages; so that can not be the cause of failure. I have tested the camera over the serial port with the java application, it also works fine.

I'm out of places to look, I reset the robot controller multiple times, and the voltage on the backup battery was 8.2 volts. I went through the FAQ already.
I had a look at your code and didn't see anything obvious related to the camera. My guess is that you're using a straight through serial cable when a null-modem cable is needed. If you can, reverse pins 2 and 3. Also, in your timer ISR, make sure that you also check the timer interrupt enable too. It should look something like this:

else if (PIR1bits.TMR1IF && PIE1bits.TMR1IE)

Let me know if it's not the cable.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #6   Spotlight this post!  
Unread 17-01-2007, 21:48
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
Re: CMUCam over programming port problems..

That fixed it - thanks.
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
Programming for CMUCam teh_pwnerer795 Programming 6 25-12-2006 00:23
CMUCam TTL problems gabrielse Programming 4 13-02-2006 14:07
COM port settings for CMUcam labview testing and programming pwilczynski Programming 1 15-01-2006 15:09
CMUcam 2 problems KChampion Programming 1 07-06-2005 10:39
CMUcam autonomous programming kshot Programming 1 17-01-2005 19:18


All times are GMT -5. The time now is 09:57.

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