Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   CMUCam over programming port problems.. (http://www.chiefdelphi.com/forums/showthread.php?t=52040)

114Klutz 16-01-2007 18:13

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.

EHaskins 16-01-2007 18:22

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?

114Klutz 16-01-2007 18:27

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.

Kevin Watson 16-01-2007 18:38

Re: CMUCam over programming port problems..
 
Quote:

Originally Posted by 114Klutz (Post 558354)
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 16-01-2007 20:03

Re: CMUCam over programming port problems..
 
Quote:

Originally Posted by 114Klutz (Post 558354)
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

114Klutz 17-01-2007 21:48

Re: CMUCam over programming port problems..
 
That fixed it - thanks.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi