View Single Post
  #1   Spotlight this post!  
Unread 13-01-2012, 12:14
TofuRama TofuRama is offline
01000110 01010010 01000011
AKA: Matt
FRC #2484 (Team Implosion)
Team Role: Programmer
 
Join Date: Apr 2011
Rookie Year: 2009
Location: Woods Cross Utah
Posts: 17
TofuRama is an unknown quantity at this point
Can't connect to the camera

We are using C++, the axis 206 camera, and the 8-slot cRIO. We have used the Camera setup tool for a direct connection to the cRIO's second Ethernet port. However, our cRIO can't find it. Below is our code:

Quote:
AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteResolution(AxisCameraParams::kResoluti on_640x480);
camera.WriteBrightness(0);
camera.WriteCompression(20);
We are using a crossover cable and we have been able to connect it directly to a computer and were able to get video feed. The username and password for the camera are:
username: FRC
password: FRC

Whenever we run our code, the diagnostics message window reads:

Quote:
ERROR: S_errno_ECONNREFUSED (0x0000003D): Failed to connect to the camera ...in CreateCameraSocket() in C:/WindRiver/workspace/WPILib/Vision/AxisCameraParams.cpp at line 457
Any ideas?
Reply With Quote