Go to Post Honestly, I always thought that the true meaning for nerd was an intellectual badass. - rcmolloy [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 28-12-2014, 13:55
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Use of USB Hub with Ethernet RJ45 Adapter

I recently purchased a small laptop to be used as our team's driver station. Our old one was broken. It has one USB 3.0 on the right and one USB 3.0 on the left but no ethernet port. I bought a 3 Ports USB 3.0 Hub with RJ45 10/100/1000 Gigabit Ethernet Converter LAN Wired Adapter.

Our driver station has three joysticks, one on the left for the robot operator and two on the right for the robot driver.

My question is does the RJ45 coming off of the adapter has to be dedicated to connecting to the FMS or is it okay to connect some joysticks to the 3 USB Hub also? Can you please explain the data rate requirements instead of a yes or no answer so I can learn something? Thanks.
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-12-2014, 14:09
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,378
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Use of USB Hub with Ethernet RJ45 Adapter

Ed, it would be helpful if you could also provide the make and model of the laptop as well as the USB adapter you bought.

It is quite likely that both USB 3 ports share common hub internally to the laptop. They may also be sharing the bandwidth available.

My $.02 without doing a bunch of calculations is that it might be beneficial to get a second USB hub and use it only for joysticks and the other for ethernet.

I'll need to dig a bit to find out what the data rates use for joysticks is.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist

Last edited by billbo911 : 28-12-2014 at 14:53.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-12-2014, 15:11
Leav's Avatar
Leav Leav is offline
Spud Gun Division
AKA: Leav Oz-Ari
FRC #3316 (D-Bug)
Team Role: Mentor
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Technion, Haifa, Israel
Posts: 774
Leav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond repute
Send a message via ICQ to Leav Send a message via AIM to Leav Send a message via MSN to Leav
Re: Use of USB Hub with Ethernet RJ45 Adapter

I have very little knowledge in the matter, but since this is such a "weird" question for the non-FIRST world, I would think the best approach to this would be to setup a test.

Basically you want to know if the data transfer rate for the network will suffer because of the joysticks being connected, right?

Maybe use something like this program to test the network speed and use some sort program or page like this to test the joysticks.
  1. Run the network test with no joysticks
  2. run the network test with joysticks running and working (mash the buttons!!!)


I would probably feel good if the tests showed no significant difference.

-Leav
__________________
"We choose to build robots this season and do the other things; Not because they are easy, but because they are hard."
-Paraphrasing JFK

Participated in FIRST as a student: 2005-2006 (But still learning every season!)
Mentor: 2008 - ? (Team 2630 2008-2011, and Team 3316 since 2013)
Engineer: 2011 - ? (B.Sc. and M.Sc. in Mech. Eng. from the Technion IIT)
FIRST Volunteer - 2007 - ? (MC, FTA, FIRST Aid etc.)
Reply With Quote
  #4   Spotlight this post!  
Unread 28-12-2014, 18:25
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 868
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Use of USB Hub with Ethernet RJ45 Adapter

I would be inclined to say that the fact that it is all USB3 means that you should be ok.

From wikipedia, USB3 can get 3.2 Gbps asa typical datarate. Let's say the field is running gigabit (unlikely), so that uses up 1Gbps of the 3.2. The remaining 2.2Gbps can easily be split to three joysticks. The joysticks I have seen are all USB 2 or 1.1, so lets say 280 Mbps, assuming they use up all the possible bandwidth they can (which they don't). 3x280Mbps < 2.2 Gbps. So even including all the ports running at the max possible rate, the USB3 spec still has plenty of room for all this data.

Also, the maximum datarate from the robot's bridge is 300Mbps on the wireless side.
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #5   Spotlight this post!  
Unread 28-12-2014, 18:40
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Use of USB Hub with Ethernet RJ45 Adapter

From experience, data rate isn't the problem, it's the latency from the adapter.
Reply With Quote
  #6   Spotlight this post!  
Unread 28-12-2014, 20:15
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: Use of USB Hub with Ethernet RJ45 Adapter

I have used an RJ45 to USB adapter on a tablet and it worked well enough. As a more helpful datapoint, the roboRIO images, downloads code, runs debugging protocols, DS, DB, and video over a USB2 connection that bridges ethernet. I have seen the latency climb up when too many things are going on, but it is generally OK, and I think most of the issues that do exist are due to the virtual network NIC driver, not the bus itself.

As for rates, the DS rates in past years were basically preallocated. The combined bandwidth of control and status was ~1Mbit at all times. The newer protocol has a better idea of what is actually used, is more dynamic, and uses TCP for some elements instead of repeated UDP transmissions. The newer protocol will use way less bandwidth. Depending on access point settings, it may also require fewer management packets to use bandwidth.

The video limits may change, but have historically been 6Mbits.

So a DS plugged into the field would have used about 7Mbits with video and about 1Mbit without video.

As for the joysticks, it depends on the reports of the device, but the typical FRC joystick transmits a five byte report . I'm not certain of the rate, but I'd guess that it is 50, possibly 100Hz. The Xbox joystick looks to take twelve bytes per update, as a comparison. Other custom ones will use one or two bytes per continuous axis and a bit per button. Rumble will be a few bytes the other direction and will be at a slower rate.

If there were a test I'd be curious to run, it would be plugging a dirt-slow USB1 device into the hub and see if that affects large and time-sensitive transfers such as a video stream or perhaps a file transfer.

Please post any results or conclusions. I use a thunderbolt adapter in order to get RJ45, and my wife's laptop has probably never used one in years. Wifi all the way.
I suspect your laptop's description will become increasingly common.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 28-12-2014, 21:23
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: Use of USB Hub with Ethernet RJ45 Adapter

The USB hub I bought is this http://www.amazon.com/gp/product/B00...?ie=UTF8&psc=1

We use one Logitech Attack 3 joystick and two Logitech Extreme 3D Pro joysticks which have USB 2.0
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #8   Spotlight this post!  
Unread 28-12-2014, 22:04
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: 580
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: Use of USB Hub with Ethernet RJ45 Adapter

Clearly this hub is the best for FRC use.

Or maybe it is this one.

More seriously, I think you're unlikely to run into throughput issues in FRC matches if you are using one hub to connect two joysticks and a USB Ethernet adapter, even if you're running at USB 2.0 speeds. I would instead focus on getting a USB Ethernet adapter that has rock solid drivers. Finally, using only one of the USB ports on your computer means that the port lasts longer. They do wear out.

Oh, and please test it out before you get to the competition. These haven't been stocked as spares in previous years.
__________________
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
  #9   Spotlight this post!  
Unread 29-12-2014, 10:22
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,844
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: Use of USB Hub with Ethernet RJ45 Adapter

I've usually run into USB issues not with the bitrate, but with the total power draw through a single port. Particularly a problem with hubs.
Too much peak power from one port can cause device brownouts.

It's not just the max USB power spec, but the Windows power saving features that cause problems, particularly while operating on battery power alone.
I'd recommend turning off USB power saving features through the Device Manager.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #10   Spotlight this post!  
Unread 29-12-2014, 13:12
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: 580
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: Use of USB Hub with Ethernet RJ45 Adapter

You're right that aggressive power management can cause problems. Testing the driver station in the exact configuration you plan to use BEFORE the end of build season is a good idea.

Now that there's shore power at the driver station, I think using it is a best practice.
__________________
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
  #11   Spotlight this post!  
Unread 29-12-2014, 15:55
Doug Frisk's Avatar
Doug Frisk Doug Frisk is offline
Keeping Score
AKA: Doug Frisk
no team
 
Join Date: Mar 2014
Rookie Year: 2011
Location: Behind the FMS
Posts: 352
Doug Frisk has a reputation beyond reputeDoug Frisk has a reputation beyond reputeDoug Frisk has a reputation beyond reputeDoug Frisk has a reputation beyond reputeDoug Frisk has a reputation beyond reputeDoug Frisk has a reputation beyond reputeDoug Frisk has a reputation beyond reputeDoug Frisk has a reputation beyond reputeDoug Frisk has a reputation beyond reputeDoug Frisk has a reputation beyond reputeDoug Frisk has a reputation beyond repute
Re: Use of USB Hub with Ethernet RJ45 Adapter

Quote:
Originally Posted by MrRoboSteve View Post
You're right that aggressive power management can cause problems. Testing the driver station in the exact configuration you plan to use BEFORE the end of build season is a good idea.

Now that there's shore power at the driver station, I think using it is a best practice.
I'm astounded by the number of teams that don't plug in their drivers station during a match. There is no downside to having the laptop on AC power and plenty of downside to relying on the battery.
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 18:39.

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