Go to Post If I understand what you're saying, you don't understand very far. - Alan Anderson [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 29-04-2016, 22:26
Golfer4646's Avatar
Golfer4646 Golfer4646 is offline
[SLFF]: The Breakfast Company
AKA: Nicholas L.
FRC #4646 (Team ASAP)
Team Role: Student
 
Join Date: Nov 2015
Rookie Year: 2014
Location: Des Moines, Iowa
Posts: 122
Golfer4646 is a splendid one to beholdGolfer4646 is a splendid one to beholdGolfer4646 is a splendid one to beholdGolfer4646 is a splendid one to beholdGolfer4646 is a splendid one to beholdGolfer4646 is a splendid one to beholdGolfer4646 is a splendid one to behold
Camera problems on FMS

Our Axis M1013 ethernet camera cuts out during matches, but only when it's connected to the FMS. The drivers say it's fine during auto, but then cuts out during teleop until the end. Does anyone have any advice? Both attempts at getting CSAs to look at the issue have solved it.
  • Firewall is disabled
  • Camera is 800x600 at 15 fps
  • It also broke on full practice fields
  • Camera is on 5v 2A on the VRM
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 30-04-2016, 00:46
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,557
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: Camera problems on FMS

What is the bandwidth used? 800x600 seems high. Does it change during the match, which might explain why it works earlier and fails later.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-04-2016, 08:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Camera problems on FMS

Ask the field staff to/watch your bandwidth during the match to see if it's pegging above 7 Mbps.

The bandwidth varies greatly depending on what the camera is pointing at and the compressibility of the image based on the complexity of the image.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 30-04-2016, 13:07
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 305
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Camera problems on FMS

Quote:
Originally Posted by Mark McLeod View Post
Ask the field staff to/watch your bandwidth during the match to see if it's pegging above 7 Mbps.

The bandwidth varies greatly depending on what the camera is pointing at and the compressibility of the image based on the complexity of the image.
You can watch bandwidth yourself using Task Manager as well.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-05-2016, 17:54
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,137
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Camera problems on FMS

I was sitting at the scoring table. A lot of teams were at 6 and 7 Mbps usage level prior to the start of the match (cameras eating up a lot of the bandwidth).

My team was too, and we had the camera dialed back.
__________________

Reply With Quote
  #6   Spotlight this post!  
Unread 01-05-2016, 17:58
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,137
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Camera problems on FMS

Quote:
Originally Posted by Golfer4646 View Post
[*]Camera is 800x600 at 15 fps
800x600 is 480,000 pixels
15 fps at 480,000 pixels is 7,200,000 pixels per second.

your limit is 7Mbps (7 million bits per second), and you are already at that limit

Note: That assumes 1 bit per pixel (white/black). Add color, and you are at a multiple of the limit.

Cutout is probably due to dropped pixels. Once you start dropping pixels, the software can't re-sync with the sporadic data stream (like when you get a pixelated picture on your TV). It needs a continuous clean data stream for a few seconds to resync.

I'm guessing that during setup and autonomous, as long as there is no conflict, FMS doesn't throttle bandwidth usage between the robot and Driver Station. Once teleop starts, the data usage increases dramatically, and the 7Mbps limit is then enforced - resulting in dropped pixels, and loss of picture on your DS.
__________________


Last edited by rich2202 : 01-05-2016 at 18:05.
Reply With Quote
  #7   Spotlight this post!  
Unread 03-05-2016, 21:28
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Camera problems on FMS

Quote:
Originally Posted by rich2202 View Post
800x600 is 480,000 pixels
15 fps at 480,000 pixels is 7,200,000 pixels per second.

your limit is 7Mbps (7 million bits per second), and you are already at that limit

Note: That assumes 1 bit per pixel (white/black). Add color, and you are at a multiple of the limit..

You can't estimate bandwidth that way... Not even 0% compression is that inefficient

That's saying a 1080p video thats an hour long is 1.46x10^16 bits large

Given, the point is still valid, 800x600 is too large for FRC use
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)

Last edited by Arhowk : 03-05-2016 at 21:32.
Reply With Quote
  #8   Spotlight this post!  
Unread 04-05-2016, 08:03
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,748
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: Camera problems on FMS

The estimate can be used as an upper bound, but unless you have written your own video server using BMPs, your bandwidth will not be anywhere near the estimated value.

Also, bandwidth limits are imposed at all times, disabled, auto, and tele. And teleOp doesn't inherently use more bandwidth than auto. The protocol is pretty much fixed rate. Even in disabled, most robots are using the field networking similar to how they'll use it in a match. This acts as a predictive test of the networking conditions before the match starts.

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 04-05-2016, 10:25
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 570
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Camera problems on FMS

Here's the place in Resource Monitor to look at bandwidth usage.
Click image for larger version

Name:	resource monitor.JPG
Views:	13
Size:	129.0 KB
ID:	20709

Note that the field limit is in Mbps (megabits per second), but the small circled values are in Bytes/second.

A good target would be camera settings that consistently keep you below 6mbps.
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
Reply With Quote
  #10   Spotlight this post!  
Unread 04-05-2016, 10:36
Conor Ryan Conor Ryan is offline
I'm parking robot yacht club.
FRC #4571 (Robot Yacht Club)
Team Role: Mentor
 
Join Date: Nov 2004
Rookie Year: 2004
Location: Midtown, NYC
Posts: 1,889
Conor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond repute
Re: Camera problems on FMS

Wireshark is a good way for measuring bandwidth usage. You can also use the estimation thats in the default dashboard.
Reply With Quote
  #11   Spotlight this post!  
Unread 04-05-2016, 11:16
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Camera problems on FMS

Here are directions for using both Wireshark and Win Performance Monitor:

http://wpilib.screenstepslive.com/s/...andwidth-usage

I'd suggest shooting for max bandwidth in the pit or at home of under 5 or 4 Mbps (my team shoots for under 2Mbps to give them the option of adding a third camera should they ever feel it's necessary.
On the playing field the measured bandwidth regularly jumps 2 Mbps or so during matches depending on what the camera happens to be pointed at.
Always ask the field staff to help you monitor the real field conditions - drive teams have other things to watch during a match...

Get everything operating in that range and you can always increase it later on the real playing field when you see what the real performance turns out to be.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 03:44.

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