View Single Post
  #1   Spotlight this post!  
Unread 01-02-2011, 01:19
2733Programming 2733Programming is offline
Registered User
FRC #2733 (Pigmice)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Portland, OR
Posts: 6
2733Programming is an unknown quantity at this point
Odd error when trying to use camera: No content-length token found in packet

We've recently been trying to get the camera to work with Java. We're using the standard KoP camera plugged into port #2 on the cRIO with all of the correct settings as stated in the setting up your camera PDF. Based on what we read in this section of the forums, only a single line of code was actually required to make the camera send back an image to the stock dashboard (which is all we are trying to do). We added that line:

Code:
AxisCamera camera = AxisCamera.getInstance();
to the main class's constructor and everything compiled fine, but once we begin running teleop on the robot, we get this odd error:

"AxisCamera: No content-length token found in packet: S_errno_ECONNREFUSED"

It comes up every few seconds in the netbeans output window, and no video is displayed on the dashboard.

Anyone know why this is happening or what we can do to fix it? We've looked around, but haven't seen anyone posting about this problem anywhere else. Your help would be much appreciated! Thanks.
Reply With Quote