Go to Post If mecanum wheels are the answer, I have found that I have asked myself the wrong question. - jwfoss [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-03-2015, 09:01
Dan5190 Dan5190 is offline
Registered User
FRC #5190
 
Join Date: Feb 2015
Location: Cary, NC
Posts: 5
Dan5190 is an unknown quantity at this point
USB Camera using too much bandwidth

Were using the Microsoft life cam camera with java and the smartdashboard. Were at the nc regionals and the fms crew is telling us the camera is using too much bandwidth. It spikes to 17mb/s when the camera first turns on and takes down the fms system for a few seconds then settles down to 3-4 mb/s but we still get a lot of dropped packets. Here is the code we are using on the robot.

CameraServer camera = CameraServer.getInstance();
camera.setQuality(25);
camera.setSize(1);
camera.startAutomaticCapture("cam0");
  #2   Spotlight this post!  
Unread 20-03-2015, 11:16
jvriezen jvriezen is offline
Registered User
FRC #3184 (Burnsville Blaze)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Burnsville, MN
Posts: 640
jvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond repute
Re: USB Camera using too much bandwidth

Quote:
Originally Posted by Dan5190 View Post
Were using the Microsoft life cam camera with java and the smartdashboard. Were at the nc regionals and the fms crew is telling us the camera is using too much bandwidth. It spikes to 17mb/s when the camera first turns on and takes down the fms system for a few seconds then settles down to 3-4 mb/s but we still get a lot of dropped packets. Here is the code we are using on the robot.

CameraServer camera = CameraServer.getInstance();
camera.setQuality(25);
camera.setSize(1);
camera.startAutomaticCapture("cam0");
Is it possible to configure the camera so that its power on state is low bandwidth settings?
__________________
John Vriezen
FRC, Mentor, Inspector #3184 2016- #4859 2015, #2530 2010-2014 FTC Mentor, Inspector #7152 2013-14
  #3   Spotlight this post!  
Unread 20-03-2015, 12:21
anthonyttu anthonyttu is offline
Texas Instruments Engineer
AKA: Master Chief
FRC #5417 (Eagle Robotics)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Dallas
Posts: 62
anthonyttu has a spectacular aura aboutanthonyttu has a spectacular aura about
Re: USB Camera using too much bandwidth

We had this issue at Dallas. No settings in our Java code affected the amount of data. We had to switch to the Default Dashboard and use the pull down options to turn down the resolution, down the frame rate, and turn up the compression.
  #4   Spotlight this post!  
Unread 21-03-2015, 00:53
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: USB Camera using too much bandwidth

The SmartDashboard will override the size setting in your code, and defaults to 640x480. You can change it in the properties, although it appears it doesn't save the setting.
  #5   Spotlight this post!  
Unread 02-04-2015, 20:32
makahn64 makahn64 is offline
Registered User
FRC #0256
 
Join Date: Nov 2011
Location: United States
Posts: 27
makahn64 is infamous around these partsmakahn64 is infamous around these partsmakahn64 is infamous around these partsmakahn64 is infamous around these partsmakahn64 is infamous around these partsmakahn64 is infamous around these parts
Re: USB Camera using too much bandwidth

We just got told we weren't allowed to use the Microsoft camera at all over the network @ SVR. Maybe would have been nice to discover this problem before it was given out in the kit of parts...
  #6   Spotlight this post!  
Unread 02-04-2015, 22:58
Levansic's Avatar
Levansic Levansic is offline
Registered User
AKA: Len Evansic
FRC #0585 (Cyber Penguins)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 185
Levansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud of
Re: USB Camera using too much bandwidth

Quote:
Originally Posted by makahn64 View Post
We just got told we weren't allowed to use the Microsoft camera at all over the network @ SVR. Maybe would have been nice to discover this problem before it was given out in the kit of parts...
What was the specific reason given?
  #7   Spotlight this post!  
Unread 03-04-2015, 13:30
makahn64 makahn64 is offline
Registered User
FRC #0256
 
Join Date: Nov 2011
Location: United States
Posts: 27
makahn64 is infamous around these partsmakahn64 is infamous around these partsmakahn64 is infamous around these partsmakahn64 is infamous around these partsmakahn64 is infamous around these partsmakahn64 is infamous around these parts
Re: USB Camera using too much bandwidth

Quote:
Originally Posted by Levansic View Post
What was the specific reason given?
It was taking down the field control system because of using too much bandwidth. I don't believe we were given the option of experimenting with lower resolutions, though our programmer thinks it was already on the lowest. Honestly, with the tight schedules of these events, banning it outright was the right move.

I did find out it was not in the KOP, just a recommended product. But we cannot recommend it at all for a driving feed. We ended up borrowing an Axis camera.
  #8   Spotlight this post!  
Unread 09-04-2015, 18:14
tomasuciu tomasuciu is offline
Registered User
FRC #1796 (RoboTigers)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: New York City
Posts: 4
tomasuciu has a spectacular aura abouttomasuciu has a spectacular aura about
Re: USB Camera using too much bandwidth

A team at LI regional appeared the have the same problem, although they had their visual settings down to a point where it was unbearable. Not sure if this plausible, but different wireless cards on different laptops might be the issue (I'm thinking the way they intercept and process packets and data is different in terns of bandwidth usage?). Another explanation is that background tasks could be consuming bandwidth.
  #9   Spotlight this post!  
Unread 10-04-2015, 05:46
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: USB Camera using too much bandwidth

The amount of data that a compressed image will take is not dependent on the wifi card. The dashboard and field monitor report megabits of data usage. What were the numbers? Or what were the camera settings?

Greg McKaskle
  #10   Spotlight this post!  
Unread 10-04-2015, 10:24
MikeE's Avatar
MikeE MikeE is offline
Wrecking nice beaches since 1990
no team (Volunteer)
Team Role: Engineer
 
Join Date: Nov 2008
Rookie Year: 2008
Location: New England -> Alaska
Posts: 381
MikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond repute
Re: USB Camera using too much bandwidth

One team at Northeastern had a similar issue, so there is some anecdotal evidence that the Microsoft LifeCam does not play as nicely as the Axis camera in the competition environment.
__________________
no stranger to the working end of a pencil
  #11   Spotlight this post!  
Unread 12-04-2015, 11:33
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,065
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: USB Camera using too much bandwidth

Quote:
Originally Posted by MikeE View Post
One team at Northeastern had a similar issue, so there is some anecdotal evidence that the Microsoft LifeCam does not play as nicely as the Axis camera in the competition environment.
No, that means the WPILib code to stream camera data is not as reliable/bandwidth friendly as the Axis camera streaming code.

My evidence? We used mjpg-streamer to stream *2* simulataneous Lifecam camera feeds (each was 160x120, 10fps, 30% compression -- but we resized the images to a much larger resolution so our drivers could see it, works surprisingly well) from our robot to our dashboard at our regional, and to my knowledge did not receive any bandwidth complaints from the field.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff

Last edited by virtuald : 12-04-2015 at 11:35.
Closed Thread


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 04:55.

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