Go to Post Pulling off an off season during a hurricane isn't easy. - Arefin Bari [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 13-01-2007, 13:32
krunal krunal is offline
Registered User
FRC #0188 (The Blizzard)
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: canada
Posts: 3
krunal is an unknown quantity at this point
Exclamation Camera won't initialize when reset from RC - reset from OI and Power-up works,

We've run into an interesting problem. We are using the streamlined code from Kevin Watson's code repository.

1) When we first turn on the RC, it successfully initializes the camera, and begins searching.

2) When we reset the RC by pressing the RESET button on the RC itself, the camera initialization fails. The debug information shows that we fail in STATE #3, with and error code of 131.

This is error what we got when press reset button .....
Camera: Initialized abnormally with the code 131
Camera: Initialization state : 1
Camera: Initialization state : 2
Camera: Initialization state : 3

No camera data ......

HOWEVER

3) If we reset using the ROBOT RESET button on the OI, or if we open and close the main breaker (power-down/power-up), the camera initializes perfectly fine.

We're wondering if anyone else is having this issue, or if this is an isolated problem that just we are having.

Thanks in advance!

Last edited by krunal : 13-01-2007 at 13:40.
  #2   Spotlight this post!  
Unread 13-01-2007, 14:19
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Camera won't initialize when reset from RC - reset from OI and Power-up works,

Are you sure your backup battery is charged?
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #3   Spotlight this post!  
Unread 13-01-2007, 14:51
krunal krunal is offline
Registered User
FRC #0188 (The Blizzard)
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: canada
Posts: 3
krunal is an unknown quantity at this point
Smile Re: Camera won't initialize when reset from RC - reset from OI and Power-up works,

yea it is charged ....
  #4   Spotlight this post!  
Unread 13-01-2007, 20:05
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Re: Camera won't initialize when reset from RC - reset from OI and Power-up works,

From Kevin's website:
Quote:
Q15: We're sure we've got the camera hooked-up correctly, but it doesn't do anything. What do we do?
A15: Enable debugging messages in the camera code by following the embedded instructions in camera.h and run the camera code. If you don't get any debugging information sent to your terminal screen when the code executes, there is a problem with your robot controller or the USB to RS232 converter you may have used to load the code into the robot controller. Call the InnovationFIRST support line at (903) 453-0802. If you get a message that says "Camera: Initialized abnormally with code 131", this means that the serial communications link to the camera isn't working properly. In this case, download the serial port diagnostics software from http://kevin.org/frc and follow the included instructions.
Also, what happens when you just power cycle the camera?

Good luck,
Robinson
  #5   Spotlight this post!  
Unread 14-01-2007, 00:02
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Camera won't initialize when reset from RC - reset from OI and Power-up works,

Power cycling just the camera when initialization fails does not help.

We performed the documented diagnostics on the TTL serial port and the TTL to RS-232 converter board, via the loopback jumpers on both and the DDT, and they both passed.

I'm wondering if the serial port receive interrupt handlers aren't properly reinitialized when the RC's RESET button is pressed, but are reinitialized fine when the entire RC is power cycled, or the OI ROBOT RESET button is pressed.

I'm thinking this might be, because we built a 3-pin camera serial to DB-9 cable, and were able to view the commands being sent to the camera when initialization failed. We saw that the "CR" command for STATE #3 was indeed being sent by the RC properly. Either the camera wasn't ACKing it, or the RC wasn't picking up the ACK.

I THINK the camera was ACKing the "CR" commands, because when I connected to the camera directly with a laptop (immediately after initialization from the RC failed), and issued equivalent "CR" commands from the laptop, the camera ACKed them just fine.

Still just trying to find out if this is an isolated incident though. And right now, it looks like it is.
  #6   Spotlight this post!  
Unread 14-01-2007, 00:18
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Camera won't initialize when reset from RC - reset from OI and Power-up works,

Krunal,

Check out this post by Dave Flowerday:

http://www.chiefdelphi.com/forums/sh...1#post48 3512

Based on his description, this sounds like the exact problem we're running in to.
  #7   Spotlight this post!  
Unread 14-01-2007, 00:20
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Camera won't initialize when reset from RC - reset from OI and Power-up works,

Quote:
Originally Posted by SlimBoJones View Post
Still just trying to find out if this is an isolated incident though. And right now, it looks like it is.
Don't be so sure. I'm seeing some "weirdness" with the CMUcam, too. Power cycle the camera, the RC, the camera, the RC again, plug the camera into the computer to make sure it is communicating, plug it back into the robot, error 131--that's as far as I've gotten, but I haven't really tried yet. I actually have a 3-pin to db9 sitting in the drawer, so I guess I should get it out and test before 5th week.....nah!

JBot
__________________
Aren't signatures a bit outdated?
  #8   Spotlight this post!  
Unread 15-01-2007, 00:13
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: Camera won't initialize when reset from RC - reset from OI and Power-up works,

The camera reset problem we had last year was, any type of reset worked fine in the lab, but when connected to the competition port at the regional the camera would not initialize with turning the robot power on. So our autonomous mode failed every time.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
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
FRC: Reset and Program Controls yanksrock777 General Forum 4 24-01-2007 22:37
Camera does not search in autonomous mode after reset Keith Watson Programming 17 07-03-2006 00:42
Robot Reset & Camera Initalization Don Reid Programming 3 06-03-2006 18:45
Complete Reset Windex Control System 3 20-02-2005 14:02
Visibility of Robot Controller and Reset Button Tracy Rules/Strategy 1 17-02-2003 07:36


All times are GMT -5. The time now is 03:18.

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