Go to Post Mentors are here to guide and explain not to decide and do. - Fe_Will [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 09-01-2015, 20:24
denaliman99 denaliman99 is offline
Registered User
FRC #0240
 
Join Date: Oct 2014
Location: Newport, Michigan
Posts: 1
denaliman99 is an unknown quantity at this point
roboRIO usb

Does anyone know if you can use a usb hub on the roboRIO to increase the number of available usb ports to support additional cameras, etc.?
Reply With Quote
  #2   Spotlight this post!  
Unread 09-01-2015, 20:33
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,070
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: roboRIO usb

Hubs are part of the USB standard, so I don't see any reason why you wouldn't be able to use a USB hub. (I wouldn't be surprised if the 2 USB ports were 1 port connected like a hub internally.)

That said, make sure you either use a powered hub or make sure all the devices connected to the hub draw >900 mA/4.5 W total, the maximum current per port according to the roboRIO specifications.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2015, 17:54
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: roboRIO usb

Quote:
Originally Posted by denaliman99 View Post
Does anyone know if you can use a usb hub on the roboRIO to increase the number of available usb ports to support additional cameras, etc.?
We've done it. It works fine as long as you don't try to pull too much current from the RoboRIO. 500ma is the max draw on USB 2.0. So, if you're trying to power 3 cameras, for example, you'll likely be in an overcurrent situation. Try powering the hub from a 5V supply and see if it works better for you.

HTH,

Mike
Reply With Quote
  #4   Spotlight this post!  
Unread 10-01-2015, 18:01
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,070
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: roboRIO usb

Quote:
Originally Posted by taichichuan View Post
500ma is the max draw on USB 2.0.
The roboRIO specifications document says the maximum draw per port is 900 mA.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #5   Spotlight this post!  
Unread 10-01-2015, 18:52
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: roboRIO usb

Quote:
Originally Posted by cgmv123 View Post
The roboRIO specifications document says the maximum draw per port is 900 mA.
Quite true. That is the number they list. However, that *is* in excess of the USB 2.0 spec. That number is in line with the USB 3.0 spec, but the port on the RoboRIO isn't listed as a USB 3.x device. So, yes, you *should* be able to get by with it. But, even though the RoboRIO can supply 900ma, it doesn't mean that your hub is built to handle that kind of current inbound from a single USB port. You'd still be better off with a powered hub, IMHO.

Good luck,

Mike
Reply With Quote
  #6   Spotlight this post!  
Unread 10-01-2015, 20:36
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,070
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: roboRIO usb

Quote:
Originally Posted by taichichuan View Post
You'd still be better off with a powered hub, IMHO.
Agreed.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #7   Spotlight this post!  
Unread 12-01-2015, 12:08
Merfoo's Avatar
Merfoo Merfoo is offline
Registered User
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: America
Posts: 48
Merfoo is an unknown quantity at this point
Re: roboRIO usb

Hello I'm trying to use a usb hub on the roborio to increase the amount of usb cameras we can use as well, the problem I'm having is that I can't get the images from the camera when it is plugged into the usb hub. I have tried two usb hubs, one that was powered from 5v and one that was not. The camera shows up on the roborio web interface when plugged into the usb hub that is NOT powered by a 5v but I'm still not able to get images from it in java. You guys have any ideas what could be happening? (Sorry if I threadjacked)
Reply With Quote
  #8   Spotlight this post!  
Unread 12-01-2015, 12:40
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: roboRIO usb

Quote:
Originally Posted by Merfoo View Post
The camera shows up on the roborio web interface when plugged into the usb hub that is NOT powered by a 5v but I'm still not able to get images from it in java.
Have you changed the camera address in your java program to match the address reported in the web dashboard?
Reply With Quote
  #9   Spotlight this post!  
Unread 12-01-2015, 13:49
crake crake is offline
National Instruments
AKA: Chris Rake
no team (Athena)
Team Role: Engineer
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 184
crake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond repute
Re: roboRIO usb

900mA is indeed from USB 3.0 as roboRIO is designed to support USB 3.0 bus powered cameras, though at USB 2.0 rates.
Reply With Quote
  #10   Spotlight this post!  
Unread 12-01-2015, 15:05
Merfoo's Avatar
Merfoo Merfoo is offline
Registered User
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: America
Posts: 48
Merfoo is an unknown quantity at this point
Re: roboRIO usb

Quote:
Originally Posted by Joe Ross View Post
Have you changed the camera address in your java program to match the address reported in the web dashboard?
By address do you mean the name, ex "cam0"? If so the name didn't change when plugged into the usb hub.
Reply With Quote
  #11   Spotlight this post!  
Unread 13-01-2015, 06:49
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: roboRIO usb

As a point of compare, you may try launching Vision Assistant and choosing to Acquire images. You can pick the USB camera such as "cam0" in the list and see if it works there.

Greg McKaskle
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:40.

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