Go to Post If you're not trying to make the best possible product given your set of constraints and resources I'm not quite sure what you're doing. - Aren_Hill [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 28-02-2014, 17:29
MartyG33 MartyG33 is offline
Registered User
FRC #4624
 
Join Date: Jan 2014
Location: United States
Posts: 9
MartyG33 is an unknown quantity at this point
cRio Imaging Problems

Our team, 4624, recently encountered a fatal problem. We no longer can see an image, but we have been able to ping it. We know it is a cRio problem because Rochester team 2530 lent us an old cRio for which we have been using for testing. Does anybody know if this can be fixed?

Here is the error code.
>>>>nERROR: The object is in an incompatible mode: No content-length token found in packet ...in ReadImagesFromCamera() in C:/WindRiver/workspace/WPILib/Vision/AxisCamera.cpp
Reply With Quote
  #2   Spotlight this post!  
Unread 28-02-2014, 17:36
MartyG33 MartyG33 is offline
Registered User
FRC #4624
 
Join Date: Jan 2014
Location: United States
Posts: 9
MartyG33 is an unknown quantity at this point
Re: cRio Imaging Problems

We imaged the cRio and we have also reset the camera. We have also updated the camera.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-02-2014, 19:32
dsherw00d dsherw00d is offline
Registered User
FRC #0378
 
Join Date: Jan 2012
Location: Newfane NY
Posts: 44
dsherw00d is a jewel in the roughdsherw00d is a jewel in the roughdsherw00d is a jewel in the rough
Re: cRio Imaging Problems

Re-imaging was successful, but nothing changed? Can try NI MAX to reformat. Similar procedure, but just right click on CRio in MAX for options. http://digital.ni.com/public.nsf/all...257051006573CA

A couple years ago, I had to telnet in a delete the FRC files due to corruption, but the CRio was having more issue then you are having. It's a UNIX like OS on the CRio - VXWorks - Telnet, FTP, and you can even point your web browser at it.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-02-2014, 19:43
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: cRio Imaging Problems

NI MAX and the FRC software don't always play well together. If it's really messed up, MAX doesn't always let you do a reformat.

You can try imaging is safe mode, which wipes everything on the cRIO (like an NI MAX reformat). If you've got the new 4 slot, just push and hold the reset button for 10 sec. The older cRIO has a DIP switch for safe mode.
Reply With Quote
  #5   Spotlight this post!  
Unread 28-02-2014, 19:59
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: cRio Imaging Problems

Quote:
Originally Posted by MartyG33 View Post
We no longer can see an image...
What do you mean? Does the video stream not appear on the Dashboard? Or is your code not able to read from the camera?
Reply With Quote
  #6   Spotlight this post!  
Unread 28-02-2014, 20:17
MartyG33 MartyG33 is offline
Registered User
FRC #4624
 
Join Date: Jan 2014
Location: United States
Posts: 9
MartyG33 is an unknown quantity at this point
Re: cRio Imaging Problems

We are getting nothing on the dashboard.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-03-2014, 01:34
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: cRio Imaging Problems

The Dashboard camera view has nothing to do with the cRIO. All you need to do is use the camera configuration tool to set the camera's IP address and add the necessary FRC user name.

If it's just the Dashboard view you're trying to get working, what is the C++ error message about?
Reply With Quote
  #8   Spotlight this post!  
Unread 02-03-2014, 15:58
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: cRio Imaging Problems

Just to clarify a number of things.

Imaging a cRIO could also be called reformatting. It reinstalls the OS, the libraries and the FPGA bitfile. This needs to be done once at the beginning of the season and if the image were somehow corrupted. The cRIO runs the Reliance file system, described here. Corruptions are quite rare. You can also image if you were to accidentally delete critical files using ftp or similar tools.

The initial post is a runtime error that involves a call to the Axis Camera's mode. In order to fix the runtime error, you need to review your C++ code and look at the parameters to the camera initializer or other vision related calls. You may even want to step through the code to see when the error is produced. Reformatting the controller is one of the last recommendations I'd make to fix the error.

Greg McKaskle
Reply With Quote
Reply


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


All times are GMT -5. The time now is 07:23.

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