|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I’ve just about had it with the camera. When we first got it we couldn’t get it to power up but that was because we had a faulty backup battery. When we got the new battery the camera would power up but in the terminal window it kept saying “No camera data…”. We played around with it for about a week and decided to change the number of slow loops in tracking.h from the default value of 3, to 10. At first it didn’t work but then the camera magically started working and even tracked the light. I was working on the camera and was changing the search pattern. I built it and loaded it to the rc but the camera stopped working and all that was coming back was “No camera data…” even though the camera was on and the backup battery was charged. I undid my changes and built and downloaded again only to have the same result. So I took a .hex file I had saved to a flash drive that I knew worked and downloaded it to the rc only to have the same result. I came to the conclusion that it was a hardware issue and so I used the serial port diagnostic code to try and find the problem. I jumpered a pwm cable for the loop back test and it came back fine. When I plugged it into the camera it failed to return anything back to the terminal window. The backup battery is charged, the cables are connected properly, the camera’s green LED is on, and it was just working and tracking the light 20 minutes ago. What is wrong with the camera and why does it just mysteriously start working and stop working even when its hooked up properly.
![]() |
|
#2
|
||||
|
||||
|
Re: Camera Just stops!!!
I ran into a similar problem today. Our camera did not move, lights were on, servos were on, switches were on, but no data or tracking. It turned out that when the camera was moved form its bench testing setup to the robot I plugged in the serial cable backwards. Is it possible that this was your problem?
|
|
#3
|
||||
|
||||
|
Re: Camera Just stops!!!
Quote:
|
|
#4
|
||||
|
||||
|
Re: Camera Just stops!!!
You may want to try running the Debug command found in camera.h if you haven't already. This way if there is something wrong, such as an abnormal initialization, it will say so in the terminal.
Code:
// To view debugging information on the terminal screen, uncomment the // "#define _DEBUG" line below. // #define _DEBUG |
|
#5
|
||||
|
||||
|
Re: Camera Just stops!!!
Nothing is backwards or loose. I went and checked all the connections. The camera was up and tracking then I just hit the program button and it stopped. It started working just as mysteriously as when it started. Everything is connected properly but the terminal keeps saying "No camera data...". In Kevin Watson's instructions for the serial port diagnostic code, he said that if the camera test fails then the camera is either defective or the baud rate is wrong. Is it possible the baud rate somehow changed on the camera? If so, how do I change it back.
![]() |
|
#6
|
||||
|
||||
|
Re: Camera Just stops!!!
Thanks for your help you guys. The camera started working again but I cant igure out why. I did use that debug code and it did help. I still have no idea though why it just starts and stops.
-Thanks |
|
#7
|
|||
|
|||
|
Re: Camera Just stops!!!
I'm on round two of the same problem as reported in this thread.
The camera was originally functioning correctly using a variety of the sample camera code available. One afternoon after playing with labview and the camera it stopped tracking and red light remained on solid after initial power on. Calls to CaptureData() resulted in lengthy delays and then eventual timeout in our code. Labview also would no longer communicate with the camera. We went through some standard troubleshooting. Power, cables, code, etc. Several hours later without any changes in the sample code nor in our hardware setup, it magically started working again. We had no clue what kicked in, but after the resolution was in place, we would power on the camera and the red indicater would go off until presented with the appropriate green light. CaptureData() would return quickly and all was happy. The camera was working fine for several days perhaps a week. We implemented and tested our camera tracking code / servo control. Everything was performing correctly. We moved on to start working on other control functionality. However two days ago the same problem materialized again. We've not been able to recover from this one yet. Camera appears hung and calling capture data causes the robot controller to freeze for about 1/2 a second. We hooked up a logic analyzer to the camera mother board rs232 transceiver and have verified the transceiver is receiving signals from our computer and is transfering data to the camera motherboard. The transceiver itself is at least not fried but no telling what the motherboard is doing. The motherboard, however, never responds. No ACK is ever sent. We have verified baud rate, cables, power, multiple times. Everything looks correct. Four of us have now double checked everything we are doing... The only common thread seems to be that the failure occurs after hooking up and attempting to use labview.... That was the last interaction with the camera before the problems were detected in both events. We are ordering a new camera / motherboard tomorrow. It seems this is a common problem and the camera/motherboard is perhaps a very environmentally sensitive component. At least more than one of us seem to be having problems with stuck / non-responsive cameras. Is anyone else in a dry/arid climate experiencing problems with the camera hanging in this fashion? Bob Potterveld |
|
#8
|
|||
|
|||
|
Re: Camera Just stops!!!
We (1094) have also had a problem with the camera just stopping, and in addition, have discovered another issue with it.
We noticed that the camera/tracking software would find the light, the camera would hold steady on the light for about 4-5 seconds and then lose the light. The pan would go to the starting position (same tilt) and start panning and re-aquire the light. It seems the camera would send a confidence of zero, causing the camere to think it has lost the light. Using Labview to experiment, I removed the camera from the robot, loaded the 2006 Tracking configuration data and noticed something interesting. I was tracking the pixels and I would see the confidence values cycle from about 120-140 range, then go down and report a zero confidence. Neither the camera or the light was moving. Using the exact same setup, I tested the 2006 camera and the confidence remained steady between 120-140. Has anyone else witnessed this type of behavior? Is there a camera setting that could be modified (I am using all of the default values from Kevin's code) that could cause the camera to behave this way. We are working in a warehouse, could cold temps adversely affect the camera? Is there a warranty period on these cameras? We are going to continue programming the robot with the 2006 camera to create the necessary alogrithms. Would it be FIRST legal to sustitute the 2006 camera for the 2007? Any help would be appreciated. |
|
#9
|
|||||
|
|||||
|
Re: Camera Just stops!!!
Quote:
Our workaround is to change the search pattern so it starts from the "current" position instead of always resetting to the bottom left. The camera still reports that it lost tracking for a moment, but it reacquires the target immediately without taking extra time to go hunting for it. |
|
#10
|
||||
|
||||
|
Re: Camera Just stops!!!
Quote:
I've also noticed (as others have) that if you don't press the reset button for several seconds before releasing it, the camera will just sit there with both LEDs on with or without the green light present. -Kevin |
|
#11
|
|||||
|
|||||
|
Re: Camera Just stops!!!
I ran into this once last night (both LEDs on, etc.) while using it with the LabView GUI. Stupid newbie question: which reset button are you referring to? The one on the RC or is the "User Input Switch" next to the power connector on the CMUcam a reset? (I've never seen anything refer to this pushbutton for anything)
|
|
#12
|
|||
|
|||
|
Re: Camera Just stops!!!
I've held this "User Selection" button down for 10 seconds or more with no effect on the camera. Both led's remain on solid. I've looked through most of the documentation for the camera but have not seen anything which refers to what this button does.
Interesting that you also noticed the hang after using labview with the camera. I wonder what might be going on here? I'll probably do some more looking at our camera tonight but this remains a real mystery. Perhaps we are damaging the board somehow when plugging in the DB9 for labview use. I'm wondering if some sort of static discharge hit the board when we were plugging and unpluggin in the db9 cable. None of us recall any but who knows. We did look at the specs for the rs232 transciever on the camera and ttl board and it looks to be good enough to withstand a fairly substation static discharge. Can anyone describe the proper sequence of the 3 lights on the camera board when the camera powers on? Both when connected via rs232 and when unconnected? The last I remember when ours was working it would show the green light on powerup and only show the red led when it was hooked up and actively transfering data through the rs323 port (IE had acquired a target). Is the sold red light on all the time after powerup an indication of a significant problem on the camera? It seems to be in our camera. We need a good definition of the proper hard reset of the camera. I've seen others refer to running debug code in the camera but if the camera is not responsive at all, is there a hard reset mechanism one can try? Thanks, Bob Potterveld |
|
#13
|
|||
|
|||
|
Re: Camera Just stops!!!
Quote:
|
|
#14
|
|||||
|
|||||
|
Re: Camera Just stops!!!
Quote:
|
|
#15
|
|||
|
|||
|
Similar problem. The camara will rind the light and the proper lights come on on the camera, but the camera won't lock onto the light at all. I tried seeing what values are returned through easyc and printing all variables from the camera to the screen, and found that all values from the camera are consistently at 0.
Anyone have any idea why the camera will only report 0's? Thanks. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Different "Cam Suddenly Stops" Problem | JohnC | Programming | 10 | 30-01-2007 21:37 |
| Camera Help (New to Camera Programming) | Idaman323 | Programming | 6 | 14-01-2006 03:56 |
| Camera stops working when we use camera_set_servos()... | SeanCassidy | Programming | 16 | 13-02-2005 03:08 |
| Ken Leung, LA, Pit Stops, Cheering Squads | archiver | 2001 | 0 | 24-06-2002 02:13 |
| The luck stops here . . . | archiver | 1999 | 2 | 23-06-2002 22:41 |