|
Re: Axis Camera Not Displaying On Smart Dashboard
Quote:
Originally Posted by Bradley Boxer
The camera stopped working again today, working fine over USB but repeatedly connecting/disconnecting several times a second when connecting via wireless. We were able to resolve the problem, and I would like to share the solution in case anyone else is encountering this issue.
In the NetworkTables outline viewer, our Axis camera had a value "streams" which contained a string array with
1) the wireless URL of the camera (10.3.3.2:something)
2) the USB URL of the camera (172.22.11.2:something)
The solution was to delete the USB URL. I believe what was happening was that the camera would connect over wireless, see that it had another element in the array that took priority and try and connect to it, fail on the connection, and re-connect over wireless.
|
SmartDashboard doesn't apply a priority, it just round-robins over each address if it gets disconnected. I would suspect it's still getting disconnected from the wireless URL, you're just not seeing the disconnects because it reconnects successfully with minimal delay. Can you run SmartDashboard from a command prompt so you can see what's being printed to the console (the executable is located in C:\Users\yourname\wpilib\tools)? In particular, I'm interested in seeing the "Trying to connect to:" and "Connected to:" messages. Can you also state what the URLs actually are?
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC
2010 FRC World Champions ( 294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
|