Go to Post This isn't about practical, it's about having fun and thinking outside the box... tetrahedron.... whatever....:rolleyes: - Cyberguy34000 [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-01-2017, 21:21
Bradley Boxer's Avatar
Bradley Boxer Bradley Boxer is offline
Registered User
AKA: Bradley Boxer
FRC #0303 (TEST Team 303)
Team Role: Programmer
 
Join Date: May 2015
Rookie Year: 2015
Location: United States
Posts: 26
Bradley Boxer is an unknown quantity at this point
Re: Axis Camera Not Displaying On Smart Dashboard

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.
__________________
The opinions expressed in this post are mine and do not necessarily reflect those of my team.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2017, 04:50
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 268
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: Axis Camera Not Displaying On Smart Dashboard

Quote:
Originally Posted by Bradley Boxer View Post
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)
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 11:43.

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