Go to Post This problem will be solved by one of the largest problem-solving machines in the world...the FIRST community. - ZZII 527 [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-12-2018, 02:04 PM
HighlandersFRC HighlandersFRC is offline
Team mentor
FRC #4499 (The Highlanders)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2005
Location: Fort Collins, CO
Posts: 33
HighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to behold
Multiple USB JeVois bandwidth limit

We are working on using two JeVois cameras to display on the drivers station for just a straight video feed (no vision/OpenCV) for the drivers to see the field. The goal is to use one on the front and one on the back via USB to the RoboRIO. We are looking to run each device with the MJPG 160x120 at 10FPS. We have the JeVois configured to convert YUYV to MJPG, so the USB bandwidth should be very low. The cameras work great individually, but canít be run together. We are getting the notorious VIDIOC_STREAMON: No space left on device error. We have tested running uncompressed YUYV as well so that the could leverage the uvcvideo quirks=128 (also tested 640), all to no avail (https://stackoverflow.com/questions/...ux-uvc-driver). We did this by editing the /etc/modprobe.d/uvcvideo.conf file and rebooting. The requested bandwidth on the RoboRIO looks to be 61% per USB device. These are the only 2 cameras(devices) that are attached to the RoboRIO and nothing else. This year we are programming in Java. We have reviewed the fantastic white paper from team 2073 and have two additional (totally separate) JeVois running well over serial for vision processing. We have power working well for all four devices. We have thought about using a button to switch between the 2 video feeds and we would prefer to not use that as a solution, but to use 2 video feeds at the same time. Does anyone have ideas to make this work?
__________________
The Highlanders
Reply With Quote
  #2   Spotlight this post!  
Unread 02-12-2018, 06:48 PM
Peter Johnson Peter Johnson is online now
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 425
Peter Johnson has a brilliant futurePeter Johnson has a brilliant futurePeter Johnson has a brilliant futurePeter Johnson has a brilliant futurePeter Johnson has a brilliant futurePeter Johnson has a brilliant futurePeter Johnson has a brilliant futurePeter Johnson has a brilliant futurePeter Johnson has a brilliant futurePeter Johnson has a brilliant futurePeter Johnson has a brilliant future
Re: Multiple USB JeVois bandwidth limit

I think the issue is the JeVois isn't a typical camera, and exposes much more to USB than just the video stream, so it's not just UVC allocating the bandwidth. Maybe try disabling the USB storage driver to free up some bandwidth allocation? There's also TTY and input devices but I would think those wouldn't consume as much bandwidth.

From http://jevois.org/doc/UserConnect.html
Code:
[14985.916593] usb 1-1.2: new high-speed USB device number 30 using xhci_hcd
[14986.021050] usb 1-1.2: New USB device found, idVendor=1d6b, idProduct=0102
[14986.021053] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[14986.021055] usb 1-1.2: Product: JeVois-A33 Smart Camera
[14986.021056] usb 1-1.2: Manufacturer: JeVois Inc
[14986.043758] uvcvideo: Found UVC 1.00 device JeVois-A33 Smart Camera (1d6b:0102)
[14986.045193] input: JeVois-A33 Smart Camera as /devices/pci0000:00/0000:00:1c.6/0000:09:00.0/usb1/1-1/1-1.2/1-1.2:1.0/input/input48
[14986.046144] cdc_acm 1-1.2:1.2: ttyACM0: USB ACM device
[14986.047206] usb-storage 1-1.2:1.4: USB Mass Storage device detected
[14986.047353] scsi host32: usb-storage 1-1.2:1.4
[14987.044678] scsi 32:0:0:0: Direct-Access     JeVois   Smart Camera     0333 PQ: 0 ANSI: 2
[14987.045298] sd 32:0:0:0: Attached scsi generic sg8 type 0
[14987.046092] sd 32:0:0:0: [sdh] Attached SCSI removable disk
__________________
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
  #3   Spotlight this post!  
Unread 02-12-2018, 08:37 PM
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,603
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: Multiple USB JeVois bandwidth limit

Quote:
Originally Posted by HighlandersFRC View Post
We are working on using two JeVois cameras to display on the drivers station for just a straight video feed (no vision/OpenCV) for the drivers to see the field. The goal is to use one on the front and one on the back via USB to the RoboRIO. We are looking to run each device with the MJPG 160x120 at 10FPS. We have the JeVois configured to convert YUYV to MJPG, so the USB bandwidth should be very low. The cameras work great individually, but can’t be run together. We are getting the notorious VIDIOC_STREAMON: No space left on device error. We have tested running uncompressed YUYV as well so that the could leverage the uvcvideo quirks=128 (also tested 640), all to no avail (https://stackoverflow.com/questions/...ux-uvc-driver). We did this by editing the /etc/modprobe.d/uvcvideo.conf file and rebooting. The requested bandwidth on the RoboRIO looks to be 61% per USB device. These are the only 2 cameras(devices) that are attached to the RoboRIO and nothing else. This year we are programming in Java. We have reviewed the fantastic white paper from team 2073 and have two additional (totally separate) JeVois running well over serial for vision processing. We have power working well for all four devices. We have thought about using a button to switch between the 2 video feeds and we would prefer to not use that as a solution, but to use 2 video feeds at the same time. Does anyone have ideas to make this work?
First and foremost, thanks for the shout out! Truly glad we could help.

4 JeVois? That sounds ambitious!
What frame rate are you intending to stream to the DS? [Edit] Ooops, just read your post again 10fps. [/Edit]
Have you increased the compression, or reduced quality, on the video MJPG video stream? The default quality is 75. You may want to try dropping it to 50.
It's a simple addition to the final line of code in the "conversion" scrip. It looks something like this.

Code:
outframe.sendCvBGR(outimg,50)
Considering your resolution and fps, I doubt bandwidth utilization is the issue. How do you have the two camera servers set up on the roboRio?
__________________
CalGames 2009 Autonomous Champion Award winner
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
2017 Utah Regional Winner!, Sacramento Finalist, Newton/Carver Innovation in Control, Newton #5 Captain

Last edited by billbo911 : 02-13-2018 at 10:43 AM.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-13-2018, 10:45 AM
HighlandersFRC HighlandersFRC is offline
Team mentor
FRC #4499 (The Highlanders)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2005
Location: Fort Collins, CO
Posts: 33
HighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to behold
Re: Multiple USB JeVois bandwidth limit

Thank you both for the quick response! And, thanks to the kind folks at JeVois I think we have a solution coming our way. You guys are awesome!

Check out the link below.

http://jevois.org/qa/index.php?qa=17...how=1784#q1784
__________________
The Highlanders
Reply With Quote
  #5   Spotlight this post!  
Unread 02-13-2018, 11:15 AM
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,603
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: Multiple USB JeVois bandwidth limit

Quote:
Originally Posted by HighlandersFRC View Post
Thank you both for the quick response! And, thanks to the kind folks at JeVois I think we have a solution coming our way. You guys are awesome!

Check out the link below.

http://jevois.org/qa/index.php?qa=17...how=1784#q1784
I just read Laurent's reply to your question.
That is one of the beauties of contacting JeVois directly. They can quite often create new modules, provide guidance, or make new images withing just a couple days. That is how the "Multiprocess" script came into to being, but that is another conversation.

Laurent suggested that the new image will likely expose some of the Kernel options for fine tuning performance. That should be a fantastic option for those of us that just love to push the envelope.
__________________
CalGames 2009 Autonomous Champion Award winner
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
2017 Utah Regional Winner!, Sacramento Finalist, Newton/Carver Innovation in Control, Newton #5 Captain
Reply With Quote
  #6   Spotlight this post!  
Unread 02-15-2018, 05:05 PM
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,603
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: Multiple USB JeVois bandwidth limit

It appears as a new "Beta" version is available for testing.
http://jevois.org/data/jevois-image-1.7.2beta-8G.zip

It should allow multiple JeVois cameras, at low resolution, to share the USB bus!
Oh the potential!!
Let us know how it goes.
__________________
CalGames 2009 Autonomous Champion Award winner
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
2017 Utah Regional Winner!, Sacramento Finalist, Newton/Carver Innovation in Control, Newton #5 Captain
Reply With Quote
  #7   Spotlight this post!  
Unread 02-15-2018, 11:19 PM
HighlandersFRC HighlandersFRC is offline
Team mentor
FRC #4499 (The Highlanders)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2005
Location: Fort Collins, CO
Posts: 33
HighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to beholdHighlandersFRC is a splendid one to behold
Re: Multiple USB JeVois bandwidth limit

Tested it tonight and works great! We had 2 vision cameras and 1 data camera and everything works. We are going to add 1 more data feed tomorrow.

Thanks JeVois!
__________________
The Highlanders
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 02:32 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi