Go to Post Hmmm I think I hear phones ringing. Panic calls to the Rules committee to figure out how to close THAT loophole, which you could drive a truck through. Have you considered a career in Law? - ChrisH [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 14-01-2016, 21:18
MikeF1617 MikeF1617 is offline
Registered User
AKA: Michael Fischler
FRC #1124 (UberBots)
Team Role: Programmer
 
Join Date: Sep 2013
Rookie Year: 2013
Location: United States
Posts: 15
MikeF1617 is an unknown quantity at this point
Exclamation Authentication Failed Axis M1011

I have my code set up to connect to and send camera data to the dashboard. I had it working with the Microsoft LifeCam HD-3000, but when I set it up with an Axis M1011 (since I wanted manual control of exposure and other settings) I got authentication errors. We are programming our robot in Java this year, but in previous years we used LabVIEW. I remember fixing this by setting the camera to either a username/password combo of one of the following:

Code:
FRC, FRC
root, pas
root, admin
I found those combinations in the LabVIEW WPIlib vision code. However, none of these fix the error.

This is the error:
Code:
ERROR Unhandled exception: VisionException [com.ni.vision.VisionException: IMAQdxError: -1074360268: The camera is configured with password authentication and either the user name and password were not configured or they are incorrect.] at [com.ni.vision.NIVision._IMAQdxConfigureGrab(Native Method), com.ni.vision.NIVision.IMAQdxConfigureGrab(NIVision.java:30265), edu.wpi.first.wpilibj.vision.USBCamera.startCapture(USBCamera.java:94), edu.wpi.first.wpilibj.CameraServer.startAutomaticCapture(CameraServer.java:187), org.usfirst.frc.team1124.robot.DashboardConnection.initCamera(DashboardConnection.java:16), org.usfirst.frc.team1124.robot.Robot.robotInit(Robot.java:40), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:72), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:241)]
The code getting the camera stream:

Code:
CameraServer srv = CameraServer.getInstance();
		
USBCamera camera = new USBCamera("cam1");
camera.openCamera();
        
srv.setSize(1); // 320x240
srv.startAutomaticCapture(camera);
Does anyone know how to get this working?

Also: When I set it to allow viewing without password (from the axis config page) the Java code spams out this error:

Code:
Error when getting image from the camera: IMAQdxError: -1074360306: No acquisition in progress. at edu.wpi.first.wpilibj.CameraServer.capture(CameraServer.java:222)
edu.wpi.first.wpilibj.CameraServer$2.run(CameraServer.java:192)
java.lang.Thread.run(Thread.java:745)
Edit: I found how to edit the exposure of the Microsoft Camera using the USBCamera class, but I won't be able to test it until tomorrow. If someone has an answer to this issue it would still be appreciated.

Last edited by MikeF1617 : 14-01-2016 at 21:28. Reason: New Information
 


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 01:09.

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